/* =========================================
   1. VARIÁVEIS E RESET
   ========================================= */
:root {
    --azul-profundo: #0d1b2a;
    --dourado: #c79857;
    --dourado-hover: #b0864b;
    --preto: #000000;
    --branco: #ffffff;
    --cinza-claro: #f8f9fa;
}

html {
    overflow-x: hidden;
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
    max-width: 100%;
    width: 100%;
}

body {
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cinza-claro);
    color: #333;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
    font-family: 'Cinzel', serif;
}

/* =========================================
   2. UTILITÁRIOS
   ========================================= */
.text-primary-custom {
    color: var(--azul-profundo) !important;
}

.bg-primary-custom {
    background-color: var(--azul-profundo) !important;
}

.text-gold {
    color: var(--dourado) !important;
}

.bg-gold {
    background-color: var(--dourado) !important;
}

.hover-white:hover {
    color: #fff !important;
    border-color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   3. BOTÕES
   ========================================= */
.btn-gold {
    background-color: var(--dourado);
    color: var(--branco);
    border: 1px solid var(--dourado);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--dourado-hover);
    border-color: var(--dourado-hover);
    transform: translateY(-1px);
}

.btn-outline-gold {
    color: var(--dourado);
    border-color: var(--dourado);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--dourado);
    color: #fff;
}

/* =========================================
   4. HEADER
   ========================================= */
.header-wrapper {
    background-color: var(--azul-profundo);
    border-bottom: 4px solid var(--dourado);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
    position: relative;
    z-index: 1030;
}

.brand-container {
    width: 200px;
    margin: auto;
    text-align: center;
}

.logo-img {
    width: 100%;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}

.brand-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: .15em;
    color: #fff;
}

.brand-subtitle {
    font-family: 'Cinzel', serif;
    font-size: .75rem;
    color: var(--dourado);
    border-top: 0px solid rgba(199, 152, 87, .3);
    padding-top: 0px;
}

/* =========================================
   5. HERO / CARROSSEL
   ========================================= */
.hero-item {
    height: 50vh;
    min-height: 350px;
    background: var(--azul-profundo);
}

.hero-overlay {
    background: linear-gradient(to right, rgba(13, 27, 42, .9), rgba(13, 27, 42, .4));
}

/* =========================================
   6. FOOTER (CORRIGIDO DEFINITIVO)
   ========================================= */
footer {
    background-color: var(--azul-profundo);
    color: #fff;
    padding: 50px 0 20px;
    margin-top: auto;
}

footer a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

footer a:hover {
    color: var(--dourado) !important;
}

/* FORÇA BRANDING DO FOOTER */
footer .brand-text .brand-title {
    color: #ffffff !important;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 0.18em;
}

footer .brand-text .brand-subtitle {
    color: #c79857 !important;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    border-top: none;
    padding-top: 4px;
    display: inline-block;
}

/* =========================================
   7. ADMIN / DASHBOARD
   ========================================= */
.admin-card {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}

/* ==================================================
   DASHBOARD - SPLIT CARD HORIZONTAL (NOVO LAYOUT)
================================================== */

.widget-card {
    display: flex;
    align-items: stretch;

    height: 100%;
    border-radius: 18px;
    overflow: hidden;

    background: rgba(13, 27, 42, 0.96);
    border: 1px solid rgba(199, 152, 87, 0.25);

    box-shadow: 0 10px 28px rgba(13, 27, 42, 0.45);
    isolation: isolate;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, box-shadow;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.widget-card:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 16px 40px rgba(13, 27, 42, 0.6);
}

/* COLUNA DO ÍCONE */
.widget-icon {
    min-width: 78px;
    background: linear-gradient(180deg, #c79857, #b0864b);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    font-size: 1.6rem;
}

/* CONTEÚDO */
.widget-body {
    flex: 1;
    padding: 22px 24px;

    display: flex;
    flex-direction: column;
}

/* TÍTULO */
.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

/* DESCRIÇÃO */
.widget-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
}

/* ESTATÍSTICA */
.widget-stat {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: #c79857;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* REMOVE SUBLINHADO */
.widget-card,
.widget-card:hover {
    text-decoration: none;
}

/* RESPONSIVO */
@media (max-width: 767px) {
    .widget-icon {
        min-width: 64px;
        font-size: 1.4rem;
    }

    .widget-body {
        padding: 18px 20px;
    }
}


/* =========================================
   9. RESPONSIVO
   ========================================= */
@media (max-width: 991px) {
    .hero-item {
        height: 55vh;
    }
}

@media (max-width: 768px) {
    .brand-title {
        font-size: 1.5rem;
    }
}


/* ==================================================
   10. CARDS - TEXTO CENTRALIZADO
================================================== */
.footer-card {
    background: rgba(0, 0, 0, .5);
    border: 1px solid rgba(199, 152, 87, 0.25);
    border-radius: 20px;
    padding: 30px 26px;
    height: 100%;
    transition: all 0.35s ease;

    /* CENTRALIZAÇÃO */
    text-align: center;
}

/* TÍTULOS */
.footer-title {
    color: #c79857;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}

/* TEXTO DESCRITIVO */
.footer-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    text-align: center;
}

/* LINKS */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-nav li {
    margin-bottom: 12px;
}

/* CONTATO */
.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    /* CENTRALIZA ÍCONE + TEXTO */
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
}