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

/* =====================================================
   RM GESSO - PORTAL DE PREFEITURAS
   CSS COMPLETO
   ===================================================== */

:root {
    --navy: #102b49;
    --navy-dark: #0d2035;
    --blue: #1766a8;
    --blue2: #0d4e86;
    --cyan: #5ab8d7;
    --ink: #17283d;
    --muted: #64748b;
    --line: #e3eaf1;
    --bg: #f5f8fb;
    --white: #ffffff;
    --success: #199b65;
    --radius: 12px;
    --shadow: 0 12px 35px rgba(16, 43, 73, .08);
}

/* RESET */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: 'DM Sans', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: .2s ease;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
input[type="submit"] {
    cursor: pointer;
}

::selection {
    background: #cce7f8;
    color: var(--navy);
}

:focus-visible {
    outline: 3px solid rgba(90, 184, 215, .65);
    outline-offset: 3px;
}

/* ESTRUTURA */

.wrap {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

/* BARRA SUPERIOR */

.topbar {
    background: var(--navy-dark);
    color: #dbe7f3;
    font-size: 12px;
}

.topinner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
}

/* CABEÇALHO */

.header {
    position: relative;
    z-index: 10;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brandmark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(145deg, #1c75b8, #103b68);
    color: white;
    display: grid;
    place-items: center;
    font: 800 19px 'Manrope', sans-serif;
    box-shadow: 0 5px 15px rgba(23, 102, 168, .2);
}

.brand b {
    display: block;
    font: 800 13px 'Manrope', sans-serif;
    letter-spacing: .4px;
    color: #15314f;
}

.brand small {
    display: block;
    color: #738397;
    font-size: 11px;
    margin-top: 4px;
}

.nav nav,
.nav > nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #43566b;
}

.nav nav a:not(.navcta):hover {
    color: var(--blue);
}

.navcta {
    background: #eaf3fb;
    color: #14558d;
    padding: 12px 17px;
    border-radius: 8px;
    font-weight: 700;
}

.navcta:hover {
    background: var(--blue);
    color: white;
}

/* HERO */

.hero {
    background:
        radial-gradient(circle at 80% 30%, #245c87 0, #163b60 32%, #102b49 70%);
    color: white;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    min-height: 510px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #3c91c8;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #80c7e4;
}

.hero h1 {
    font: 800 clamp(36px, 4.5vw, 56px)/1.08 'Manrope', sans-serif;
    letter-spacing: -1.8px;
    margin: 0 0 20px;
    max-width: 590px;
}

.hero-copy > p {
    font-size: 16px;
    line-height: 1.8;
    color: #d0dfec;
    max-width: 560px;
}

.actions {
    display: flex;
    gap: 12px;
    margin: 30px 0 24px;
    flex-wrap: wrap;
}

.btn {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    transition: .2s ease;
}

.primary {
    background: #1d83c5;
    color: white;
    box-shadow: 0 8px 20px rgba(11, 59, 101, .2);
}

.primary:hover {
    background: #126ca9;
    transform: translateY(-2px);
}

.ghost {
    border: 1px solid rgba(255, 255, 255, .45);
    color: white;
    background: transparent;
}

.ghost:hover {
    background: rgba(255, 255, 255, .1);
}

.hero-note {
    font-size: 12px;
    color: #d4e4ef;
    line-height: 1.7;
}

.check {
    color: #7ed3b0;
    font-weight: bold;
    margin-right: 8px;
}

/* ILUSTRAÇÃO DO HERO */

.hero-art {
    height: 360px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 20px;
    background: linear-gradient(145deg, #e8f2f8 0%, #a8c6d9 45%, #47799b 100%);
    position: relative;
    box-shadow: 0 25px 60px rgba(6, 26, 44, .35);
    overflow: hidden;
}

.hero-art:before {
    content: "";
    position: absolute;
    inset: 35px 34px 70px;
    border: 9px solid #f7fbff;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(
        90deg,
        #d7e7ef 0 33%,
        #f4f8fa 33% 36%,
        #9ebbd0 36% 67%,
        #e9f1f5 67%
    );
    box-shadow: 0 10px 30px rgba(21, 57, 84, .3);
}

.hero-art:after {
    content: "";
    position: absolute;
    bottom: 70px;
    left: 18px;
    right: 18px;
    height: 12px;
    background: #f9fcff;
    box-shadow: 0 10px 0 #577b96;
}

.art-label,
.art-stat {
    position: absolute;
    z-index: 1;
    background: white;
    color: #163653;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(21, 57, 84, .2);
}

.art-label {
    top: 20px;
    left: 20px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

.art-label b {
    font: 800 20px 'Manrope', sans-serif;
    color: var(--blue);
}

.art-stat {
    bottom: 20px;
    right: 20px;
    padding: 14px 18px;
    display: grid;
    gap: 4px;
}

.art-stat strong {
    font: 700 13px 'Manrope', sans-serif;
}

.art-stat small {
    font-size: 10px;
    color: #66798a;
}

/* FAIXA DE CONFIANÇA */

.trust {
    background: white;
    border-bottom: 1px solid var(--line);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 22px 0;
}

.trust-grid > div {
    padding: 0 28px;
    border-right: 1px solid var(--line);
}

.trust-grid > div:first-child {
    padding-left: 0;
}

.trust-grid > div:last-child {
    border: 0;
}

.trust b,
.trust span {
    display: block;
}

.trust b {
    font: 700 13px 'Manrope', sans-serif;
}

.trust span {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
    line-height: 1.5;
}

/* SEÇÕES */

.section {
    padding: 86px 0;
}

.section-head {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 42px;
}

.section-head h2,
.why h2,
.request h2 {
    font: 800 34px/1.2 'Manrope', sans-serif;
    letter-spacing: -.8px;
    margin: 0 0 12px;
    color: #142f4c;
}

.section-head p,
.why p,
.request-copy > p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 14px;
}

/* SERVIÇOS */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service {
    padding: 26px 22px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: white;
    transition: .25s ease;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: #c5dced;
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eaf4fb;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 23px;
}

.service h3 {
    font: 700 16px 'Manrope', sans-serif;
    margin: 20px 0 8px;
    color: #173654;
}

.service p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0;
}

/* DIFERENCIAIS */

.why {
    background: #eef4f8;
    padding: 78px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px;
    align-items: center;
}

.why-list {
    display: grid;
    gap: 18px;
}

.why-list > div {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: white;
    border: 1px solid #e0e9f0;
    border-radius: 10px;
    transition: .2s ease;
}

.why-list > div:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.why-list > div > b {
    font: 800 22px 'Manrope', sans-serif;
    color: #4a9bc8;
    flex-shrink: 0;
}

.why-list strong,
.why-list small {
    display: block;
}

.why-list strong {
    font: 700 14px 'Manrope', sans-serif;
}

.why-list small {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
    line-height: 1.6;
}

/* PROCESSO */

.process {
    padding-bottom: 90px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.steps > div {
    border-top: 2px solid #d8e7f1;
    padding-top: 20px;
}

.steps i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue);
    color: white;
    font-style: normal;
    font-weight: 700;
    margin-bottom: 15px;
}

.steps b {
    font: 700 15px 'Manrope', sans-serif;
}

.steps p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
}

/* FORMULÁRIO E CONTATO */

.request {
    background: var(--navy);
    padding: 82px 0;
    color: white;
}

.request-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.request h2 {
    color: white;
    font-size: 36px;
}

.request-copy > p {
    color: #c1d1df;
}

.contact-line {
    display: flex;
    gap: 13px;
    align-items: center;
    margin: 22px 0;
    font-size: 20px;
    color: #76c5e4;
}

.contact-line b,
.contact-line small {
    display: block;
}

.contact-line b {
    font-size: 13px;
    color: white;
}

.contact-line small {
    font-size: 11px;
    color: #b5c8d8;
    margin-top: 4px;
}

.notice {
    border-left: 3px solid var(--cyan);
    padding: 12px 15px;
    background: rgba(255, 255, 255, .06);
    color: #c1d1df;
    font-size: 11px;
    line-height: 1.7;
    margin-top: 35px;
    border-radius: 0 7px 7px 0;
}

/* CARTÃO DO FORMULÁRIO */

.form-card {
    background: white;
    color: var(--ink);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(7, 27, 46, .3);
}

.form-card h3 {
    font: 800 21px 'Manrope', sans-serif;
    margin: 0;
    color: #173654;
}

.form-sub {
    font-size: 11px;
    color: var(--muted);
    margin: 7px 0 23px;
    line-height: 1.6;
}

.field {
    margin-bottom: 15px;
}

.field label,
.login-card label,
.detail-card label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #43566b;
    margin-bottom: 7px;
}

.field input,
.field select,
.field textarea,
.login-card input,
.detail-card select,
.detail-card textarea {
    width: 100%;
    border: 1px solid #dce5ed;
    border-radius: 7px;
    padding: 12px;
    font: 13px 'DM Sans', sans-serif;
    color: #24384c;
    background: white;
    outline: none;
    transition: .2s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: #b7ccdc;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.login-card input:focus,
.detail-card select:focus,
.detail-card textarea:focus {
    border-color: #4598cc;
    box-shadow: 0 0 0 3px rgba(69, 152, 204, .12);
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.field input[type="file"] {
    font-size: 11px;
    padding: 10px;
    background: #f8fafc;
}

.field input[type="checkbox"] {
    width: auto;
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hint,
.privacy {
    display: block;
    font-size: 10px;
    color: #8190a0;
    line-height: 1.6;
    margin-top: 7px;
}

.consent {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #586a7b;
    line-height: 1.6;
    margin: 18px 0;
    align-items: flex-start;
}

.consent input {
    margin: 2px 0;
    accent-color: var(--blue);
    flex-shrink: 0;
}

.submit {
    width: 100%;
    margin-top: 8px;
}

.form-card .submit:hover {
    background: var(--blue2);
}

/* RODAPÉ TOTALMENTE CENTRALIZADO */

.footer {
    width: 100%;
    padding: 40px 20px;
    background: #0d2035;
    color: #d0deea;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 13px;
}

.footer .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    gap: 12px;
}

.footer .brandmark {
    margin: 0;
    flex-shrink: 0;
}

.footer .brand b {
    color: white;
    text-align: center;
}

.footer .brand small {
    color: #9eb3c5;
    text-align: center;
}

.footer p {
    display: block;
    width: 100%;
    max-width: 650px;
    margin: 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
    color: #b8c8d6;
}

.footer > small {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
    font-size: 10px;
    line-height: 1.6;
    color: #8fa4b7;
}

.footer > a {
    float: none;
    display: block;
    text-align: center;
    margin: 5px auto 0;
    font-size: 11px;
    color: #8faec7;
}

.footer > a:hover {
    color: white;
}

/* PÁGINA DE SUCESSO E ADMINISTRAÇÃO */

.success-page,
.admin-bg {
    background: #f1f5f8;
    min-height: 100vh;
}

.success-page {
    display: grid;
    place-items: center;
    padding: 20px;
}

.success-card,
.login-card {
    background: white;
    width: min(520px, 100%);
    padding: 42px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(23, 59, 91, .1);
}

.success-card {
    text-align: center;
}

.success-icon {
    margin: 0 auto 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #e5f7ef;
    color: var(--success);
    display: grid;
    place-items: center;
    font-size: 28px;
}

.success-card h1,
.login-card h1 {
    font: 800 28px 'Manrope', sans-serif;
}

.success-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
}

.protocol {
    background: #edf5fb;
    color: #15588e;
    padding: 15px;
    border-radius: 8px;
    font: 800 20px 'Manrope', sans-serif;
    letter-spacing: 1px;
    margin: 18px 0 22px;
}

/* LOGIN ADMINISTRATIVO */

.admin-bg {
    color: var(--ink);
}

.login-card {
    margin: 7vh auto;
}

.login-card h1 {
    font-size: 24px;
    margin: 30px 0 20px;
}

.login-card label {
    margin: 16px 0;
}

.login-card .brand {
    margin-bottom: 12px;
}

.back {
    display: block;
    color: var(--blue);
    font-size: 12px;
    margin-top: 18px;
}

.back:hover {
    color: var(--blue2);
}

/* ALERTAS */

.alert {
    background: #fff3e8;
    color: #9b4d12;
    border: 1px solid #f5d4b4;
    padding: 12px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.6;
    margin: 15px 0;
}

/* BARRA ADMINISTRATIVA */

.adminbar {
    background: white;
    border-bottom: 1px solid var(--line);
}

.adminbar > .wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.adminbar > div {
    font-size: 12px;
    color: var(--muted);
}

.adminbar a:not(.brand) {
    color: var(--blue);
}

/* ÁREA ADMINISTRATIVA */

.admin-main {
    padding: 45px 0;
}

.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-heading h1,
.detail-head h1 {
    font: 800 30px 'Manrope', sans-serif;
    margin: 0;
}

.admin-heading p,
.detail-head p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.admin-heading .ghost {
    color: var(--blue);
    border-color: #c9d9e6;
}

.filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.filterbar a {
    font-size: 11px;
    background: white;
    border: 1px solid var(--line);
    padding: 9px 12px;
    border-radius: 20px;
    color: #42617b;
    transition: .2s ease;
}

.filterbar a:hover {
    background: #eaf3fb;
    border-color: #c4dcec;
    color: var(--blue);
}

/* TABELAS */

.table-wrap {
    overflow-x: auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(16, 43, 73, .04);
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 850px;
}

th,
td {
    text-align: left;
    padding: 15px 13px;
    border-bottom: 1px solid #edf1f4;
    font-size: 11px;
    vertical-align: middle;
}

th {
    background: #f8fafc;
    color: #6b7d8e;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

tbody tr:hover {
    background: #f8fbfd;
}

td b,
td small {
    display: block;
}

td small {
    color: #7d8b99;
    margin-top: 5px;
    line-height: 1.5;
}

.status {
    display: inline-block;
    background: #eaf3fb;
    color: #1c659b;
    border-radius: 20px;
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.table-link {
    color: var(--blue);
    font-weight: 700;
}

.table-link:hover {
    color: var(--blue2);
    text-decoration: underline;
}

.admin-foot {
    font-size: 10px;
    color: #8493a1;
    margin-top: 20px;
}

/* DETALHES ADMINISTRATIVOS */

.detail-main {
    padding: 35px 0;
}

.detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 25px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px;
}

.detail-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(16, 43, 73, .04);
}

.detail-card h2 {
    font: 700 17px 'Manrope', sans-serif;
    margin: 0 0 22px;
}

.detail-card dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    font-size: 12px;
}

.detail-card dt {
    color: #738397;
}

.detail-card dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.detail-card .description {
    font-weight: 400;
    line-height: 1.8;
}

.detail-card label {
    margin: 18px 0;
}

.detail-card .submit {
    margin: 12px 0;
}

.detail-card .ghost {
    color: var(--blue);
    border-color: #c9d9e6;
}

.detail-card .privacy {
    margin-top: 5px;
}

/* RESPONSIVIDADE - TABLETS */

@media (max-width: 1000px) {
    .wrap {
        width: min(100% - 36px, 1160px);
    }

    .nav nav,
    .nav > nav {
        gap: 14px;
    }

    .hero-grid {
        gap: 35px;
    }

    .why-grid {
        gap: 45px;
    }

    .request-grid {
        gap: 40px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* RESPONSIVIDADE - TABLETS PEQUENOS */

@media (max-width: 850px) {
    .nav nav,
    .nav > nav {
        gap: 12px;
    }

    .nav nav a:not(.navcta) {
        display: none;
    }

    .hero-grid {
        gap: 25px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .why-grid,
    .request-grid {
        gap: 35px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }
}

/* RESPONSIVIDADE - CELULARES */

@media (max-width: 600px) {
    html {
        scroll-padding-top: 70px;
    }

    .wrap {
        width: calc(100% - 28px);
    }

    /* BARRA SUPERIOR */

    .topinner {
        gap: 8px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 11px 0;
    }

    /* CABEÇALHO */

    .nav {
        min-height: 70px;
        gap: 10px;
    }

    .brand {
        gap: 9px;
    }

    .brandmark {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 17px;
    }

    .brand b {
        font-size: 11px;
    }

    .brand small {
        font-size: 10px;
    }

    .navcta {
        font-size: 11px;
        padding: 10px 12px;
        white-space: nowrap;
    }

    /* HERO */

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 55px 0;
        gap: 35px;
    }

    .hero h1 {
        font-size: 39px;
        letter-spacing: -1.2px;
    }

    .hero-copy > p {
        font-size: 14px;
    }

    .hero-art {
        height: 230px;
    }

    .hero-art:before {
        inset: 25px 25px 55px;
    }

    .hero-art:after {
        bottom: 55px;
    }

    .art-label {
        top: 12px;
        left: 12px;
        padding: 8px 10px;
    }

    .art-stat {
        bottom: 12px;
        right: 12px;
        padding: 10px 13px;
    }

    .actions {
        gap: 10px;
        margin: 24px 0 18px;
    }

    .btn {
        padding: 13px 16px;
        font-size: 12px;
    }

    /* CONFIANÇA */

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 17px;
        padding: 23px 0;
    }

    .trust-grid > div {
        padding: 0;
        border: 0;
    }

    /* SEÇÕES */

    .section {
        padding: 60px 0;
    }

    .section-head {
        margin-bottom: 30px;
    }

    .section-head h2,
    .why h2,
    .request h2 {
        font-size: 28px;
    }

    .section-head p,
    .why p {
        font-size: 13px;
    }

    /* SERVIÇOS */

    .service-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .service {
        padding: 18px 14px;
    }

    .service h3 {
        font-size: 13px;
        line-height: 1.4;
    }

    .service p {
        font-size: 11px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    /* DIFERENCIAIS */

    .why {
        padding: 60px 0;
    }

    .why-grid,
    .request-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .why-list {
        gap: 12px;
    }

    .why-list > div {
        padding: 16px;
        gap: 13px;
    }

    /* PROCESSO */

    .steps {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .steps > div {
        padding-top: 16px;
    }

    .steps p {
        margin-bottom: 0;
    }

    /* FORMULÁRIO */

    .request {
        padding: 60px 0;
    }

    .request h2 {
        font-size: 29px;
    }

    .form-card {
        padding: 22px 17px;
        border-radius: 12px;
    }

    .form-card h3 {
        font-size: 19px;
    }

    .two {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .field {
        margin-bottom: 14px;
    }

    .field input,
    .field select,
    .field textarea {
        font-size: 14px;
        padding: 12px;
    }

    .field textarea {
        min-height: 120px;
    }

    .submit {
        min-height: 48px;
    }

    /* RODAPÉ */

    .footer {
        padding: 32px 16px;
        gap: 12px;
        text-align: center;
        align-items: center;
    }

    .footer .brand {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 9px;
    }

    .footer .brandmark {
        margin: 0 auto;
    }

    .footer .brand b,
    .footer .brand small {
        text-align: center;
    }

    .footer p,
    .footer > small {
        width: 100%;
        text-align: center;
    }

    .footer > a {
        float: none;
        display: block;
        margin: 5px auto 0;
        text-align: center;
    }

    /* ADMINISTRAÇÃO */

    .admin-main {
        padding: 28px 0;
    }

    .admin-heading {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .admin-heading h1,
    .detail-head h1 {
        font-size: 24px;
    }

    .detail-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .detail-card {
        padding: 18px;
    }

    .detail-card dl {
        grid-template-columns: 110px 1fr;
        gap: 10px;
    }

    .success-card {
        padding: 30px 20px;
    }

    .success-card h1 {
        font-size: 24px;
    }

    .login-card {
        padding: 28px 20px;
        margin: 25px auto;
    }

    .login-card h1 {
        font-size: 22px;
    }

    .adminbar > .wrap {
        gap: 12px;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .adminbar > div {
        font-size: 10px;
    }

    .filterbar {
        gap: 6px;
    }

    .filterbar a {
        font-size: 10px;
        padding: 8px 10px;
    }

    .table-wrap {
        border-radius: 8px;
    }
}

/* CELULARES MUITO PEQUENOS */

@media (max-width: 380px) {
    .wrap {
        width: calc(100% - 22px);
    }

    .hero h1 {
        font-size: 34px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .navcta {
        font-size: 10px;
        padding: 9px;
    }

    .brand b {
        font-size: 10px;
    }

    .form-card {
        padding: 19px 14px;
    }
}

/* ACESSIBILIDADE - MOVIMENTO REDUZIDO */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* CORREÇÃO DE CENTRALIZAÇÃO DOS TEXTOS INSTITUCIONAIS */

/* Rodapé */
.footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.footer p,
.footer small,
.footer > a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Marca e identificação da empresa */
.footer .brand {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
}

.footer .brand > span {
    text-align: center !important;
}

/* Título institucional */
.topbar,
.topbar .topinner {
    text-align: center !important;
}

.topbar .topinner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* Responsividade */
@media (max-width: 600px) {
    .footer,
    .footer p,
    .footer small,
    .topbar,
    .topbar .topinner {
        text-align: center !important;
    }
}


/* =====================================================
   GALERIA INSTITUCIONAL RM — AJUSTE DEFINITIVO
   ===================================================== */

.hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
}

.hero-art {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 38px 0 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 45px rgba(6, 26, 44, .30) !important;
    transform: translateY(12px);
}

/* Remove definitivamente a ilustração antiga */
.hero-art::before,
.hero-art::after,
.hero-art .art-label,
.hero-art .art-stat {
    display: none !important;
    content: none !important;
}

/* Imagem principal */
.hero-art .institutional-image {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: none !important;
}

/* Legenda abaixo da imagem */
.hero-art .image-caption {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    padding: 12px 10px !important;
    margin: 0 !important;
    text-align: center !important;
    color: #d0dfec !important;
    font-size: 11px !important;
    line-height: 1.6 !important;
    background: #102b49 !important;
}

/* Tablets */
@media (max-width: 850px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .hero-art {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 0 !important;
        transform: none !important;
    }
}

/* Celulares */
@media (max-width: 600px) {
    .hero-art {
        width: 100% !important;
        margin: 15px 0 0 !important;
        border-radius: 12px !important;
    }

    .hero-art .institutional-image {
        width: 100% !important;
        border-radius: 12px !important;
    }

    .hero-art .image-caption {
        font-size: 10px !important;
        padding: 10px 8px !important;
    }
}
