/**
 * Preview da home — paleta do logo em CTAs e destaques.
 * Tipografia: Ubuntu em todo o site da preview (pesos e itálico conforme a família no Google Fonts).
 */
/* Âncoras (#eventos, #homenagem-oficial, …) respeitam a navbar fixa */
html {
    scroll-padding-top: 5rem;
}

@media (min-width: 992px) {
    html {
        scroll-padding-top: 8.25rem;
    }
}

:root {
    --fegbt-green: #0d4d2c;
    --fegbt-green-700: #082f1b;
    --fegbt-green-600: #0a3d24;
    --fegbt-gold: #e8b923;
    --fegbt-gold-dark: #c49a16;
    --fegbt-red: #c41e1e;
    --fegbt-ink: #1a1a1a;
    --wp-font-ubuntu: "Ubuntu", ui-sans-serif, system-ui, sans-serif;
    --fegbt-hero-gradient: linear-gradient(
        135deg,
        var(--fegbt-green-700) 0%,
        var(--fegbt-green) 50%,
        #0a1f14 100%
    );
}

/* -------- Ubuntu em componentes Bootstrap (evita fontes do reboot em .btn, .nav, etc.) -------- */
body.wp-preview,
body.wp-preview .navbar,
body.wp-preview .navbar-brand,
body.wp-preview .nav-link,
body.wp-preview .btn,
body.wp-preview .accordion-button,
body.wp-preview .breadcrumb,
body.wp-preview .alert,
body.wp-preview .badge,
body.wp-preview .card,
body.wp-preview .table,
body.wp-preview .form-control,
body.wp-preview .form-select,
body.wp-preview input,
body.wp-preview select,
body.wp-preview textarea,
body.wp-preview .popover,
body.wp-preview .tooltip,
body.wp-preview .dropdown-menu,
body.wp-preview .dropdown-item,
body.wp-preview .modal,
body.wp-preview .list-group-item,
body.wp-preview .pagination,
body.wp-preview .page-link {
    font-family: var(--wp-font-ubuntu);
}

/* Bootstrap Icons: manter a fonte do ícone (classes .bi / .bi-*) */
body.wp-preview .bi {
    font-family: "bootstrap-icons" !important;
}

body.wp-preview {
    /* Menu em 2 linhas no desktop — espaço sob navbar fixa */
    padding-top: 4.5rem;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.55;
    color: #555;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Destaques de texto: itálico oficial da Ubuntu */
body.wp-preview em,
body.wp-preview i:not([class^="bi-"]):not([class*=" bi-"]),
body.wp-preview cite,
body.wp-preview address {
    font-style: italic;
    font-weight: 400;
}

body.wp-preview .lead {
    font-weight: 300;
    line-height: 1.55;
}

body.wp-preview code,
body.wp-preview kbd,
body.wp-preview samp {
    font-family: var(--wp-font-ubuntu);
    font-size: 0.9em;
    font-weight: 400;
}

body.wp-preview small,
body.wp-preview .small {
    font-weight: 400;
}

body.wp-preview b,
body.wp-preview strong,
body.wp-preview .fw-bold {
    font-weight: 700;
}

body.wp-preview .fw-semibold {
    font-weight: 500;
}

body.wp-preview .fw-medium {
    font-weight: 500;
}

body.wp-preview .fw-light {
    font-weight: 300;
}

/* Hierarquia de títulos (Ubuntu: 700 títulos principais, 500 subtítulos) */
body.wp-preview h1,
body.wp-preview .h1 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #444;
}

body.wp-preview h2,
body.wp-preview .h2 {
    font-weight: 500;
    line-height: 1.2;
    color: #444;
}

body.wp-preview h3,
body.wp-preview .h3,
body.wp-preview h4,
body.wp-preview .h4,
body.wp-preview h5,
body.wp-preview .h5,
body.wp-preview h6,
body.wp-preview .h6 {
    font-weight: 500;
    line-height: 1.25;
    color: #444;
}

body.wp-preview .hero-preview h1,
body.wp-preview .page-hero-inner h1 {
    color: #fff;
    font-weight: 700;
}

body.wp-preview .page-hero-inner .display-6 {
    font-weight: 700;
}

/* Títulos de seção da home preview */
body.wp-preview .section-title {
    font-weight: 700;
    line-height: 1.2;
    color: var(--fegbt-green-700);
    margin-bottom: 1.5rem;
}

/* Navegação: marca média, links regulares */
body.wp-preview .navbar-brand {
    font-weight: 500;
}

body.wp-preview .nav-link {
    font-weight: 400;
}

body.wp-preview .nav-link.active,
body.wp-preview .nav-link.show {
    font-weight: 500;
}

/* Menu preview: linha 1 (marca + CTAs) + linha 2 (links) no desktop; mobile em collapse */
@media (min-width: 992px) {
    body.wp-preview {
        padding-top: 7.75rem;
    }
}

body.wp-preview .navbar-preview-tiered .navbar-nav-tiered .nav-link-tiered {
    border-radius: 0.25rem;
}

body.wp-preview .navbar-preview-tiered .navbar-nav-tiered .nav-link-tiered:hover,
body.wp-preview .navbar-preview-tiered .navbar-nav-tiered .nav-link-tiered:focus {
    background-color: var(--bs-secondary-bg);
}

/* Accordion = meio-tom entre corpo e título */
body.wp-preview .accordion-button {
    font-weight: 500;
}

body.wp-preview .table thead th {
    font-weight: 500;
}

body.wp-preview .btn {
    font-weight: 500;
}

body.wp-preview footer.footer-preview {
    font-weight: 400;
}

body.wp-preview footer.footer-preview .fw-bold,
body.wp-preview footer.footer-preview strong {
    font-weight: 700;
}

/* Hero — banner (não full screen); em lg+ logo à esquerda, conteúdo à direita */
.wp-preview .hero-preview {
    background: var(--fegbt-hero-gradient);
    padding: 1.75rem 0 2rem;
}

@media (min-width: 992px) {
    .wp-preview .hero-preview {
        padding: 2rem 0 2.25rem;
    }
}

.wp-preview .hero-preview .hero-logo {
    max-width: min(280px, 75vw);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

@media (min-width: 992px) {
    .wp-preview .hero-preview .hero-logo {
        max-width: min(340px, 100%);
    }
}

.wp-preview .hero-divider {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--fegbt-gold), transparent);
    border-radius: 2px;
}

@media (max-width: 991.98px) {
    .wp-preview .hero-divider {
        margin: 1rem auto 1.25rem;
    }
}

@media (min-width: 992px) {
    .wp-preview .hero-divider {
        margin: 0 0 1rem;
    }
}

/* Animações no banner (desktop grande); desliga com prefers-reduced-motion */
@keyframes wp-hero-logo-in {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes wp-hero-content-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
    .wp-preview .hero-animate-logo {
        animation: wp-hero-logo-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .wp-preview .hero-animate-content > * {
        animation: wp-hero-content-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .wp-preview .hero-animate-content > *:nth-child(1) {
        animation-delay: 0.05s;
    }
    .wp-preview .hero-animate-content > *:nth-child(2) {
        animation-delay: 0.12s;
    }
    .wp-preview .hero-animate-content > *:nth-child(3) {
        animation-delay: 0.18s;
    }
    .wp-preview .hero-animate-content > *:nth-child(4) {
        animation-delay: 0.24s;
    }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: no-preference) {
    .wp-preview .hero-row-banner.hero-animate-mobile {
        animation: wp-hero-content-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
}

@media (min-width: 992px) {
    .wp-preview .hero-row-banner.hero-animate-mobile {
        animation: none;
    }
}

.wp-preview .text-gold {
    color: var(--fegbt-gold) !important;
}

.wp-preview .btn-gold {
    background: var(--fegbt-gold);
    border-color: var(--fegbt-gold-dark);
    color: var(--fegbt-green-700);
    font-weight: 700;
}

.wp-preview .btn-gold:hover {
    background: var(--fegbt-gold-dark);
    border-color: var(--fegbt-gold-dark);
    color: #fff;
}

.wp-preview .btn-outline-gold {
    border: 2px solid var(--fegbt-gold);
    color: var(--fegbt-gold);
    font-weight: 500;
}

.wp-preview .btn-outline-gold:hover {
    background: var(--fegbt-gold);
    color: var(--fegbt-green-700);
}

.wp-preview .section-preview {
    padding: 3.5rem 0;
}

.wp-preview .section-preview.section-alt {
    background: linear-gradient(180deg, #f8faf8 0%, #eef4ef 100%);
}

.wp-preview .accordion-button:not(.collapsed) {
    background-color: rgba(13, 77, 44, 0.12);
    color: var(--fegbt-green-700);
    box-shadow: none;
}

.wp-preview .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(232, 185, 35, 0.35);
}

.wp-preview footer.footer-preview {
    background: var(--fegbt-green-700);
    color: rgba(255, 255, 255, 0.88);
}

.wp-preview footer.footer-preview a {
    color: var(--fegbt-gold);
    text-decoration: none;
}

.wp-preview footer.footer-preview a:hover {
    color: #fff;
    text-decoration: underline;
}

.wp-preview .card-evento {
    border-left: 4px solid var(--fegbt-gold);
}

.wp-preview .badge-live {
    background: var(--fegbt-red);
}

.wp-preview .gallery-thumb {
    border: 3px solid var(--fegbt-green-600);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-preview .gallery-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(13, 77, 44, 0.25);
}

.wp-preview .avatar-diretoria {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--fegbt-gold);
}

.wp-preview .page-hero-inner {
    background: var(--fegbt-hero-gradient);
    padding: 2.5rem 0 2rem;
    color: #fff;
}

.wp-preview .page-hero-inner .breadcrumb {
    margin-bottom: 0;
}

.wp-preview .page-hero-inner .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.65);
}

.wp-preview .page-hero-inner .breadcrumb-item a:hover {
    color: #fff;
}

.wp-preview .page-hero-inner .breadcrumb-item.active {
    color: var(--fegbt-gold);
}

.wp-preview .page-hero-inner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
}

.wp-preview hr.divider {
    max-width: 200px;
    margin: 1rem auto;
    opacity: 1;
    border: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--fegbt-gold), transparent);
}

/* -------- Homenagem institucional (destaque solene) -------- */
.wp-preview .homenagem-section {
    background: linear-gradient(
        165deg,
        #fdfbf7 0%,
        #f6f2ea 42%,
        #f9f7f2 100%
    );
    border-top: 1px solid rgba(13, 77, 44, 0.1);
    border-bottom: 1px solid rgba(13, 77, 44, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.wp-preview .homenagem-header {
    max-width: 48rem;
}

.wp-preview .homenagem-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fegbt-green-600);
    opacity: 0.9;
}

.wp-preview .homenagem-title {
    font-weight: 700;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    line-height: 1.25;
    color: var(--fegbt-green-700);
    letter-spacing: -0.02em;
}

.wp-preview .homenagem-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: #4a4a4a;
    max-width: 40rem;
}

.wp-preview .homenagem-rule {
    width: min(280px, 70vw);
    height: 3px;
    margin: 1.75rem auto 0;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--fegbt-gold) 20%,
        var(--fegbt-gold) 80%,
        transparent
    );
    opacity: 0.95;
}

.wp-preview .homenagem-photo {
    max-width: 64rem;
    margin-top: 2rem;
}

.wp-preview .homenagem-photo-img {
    display: block;
    margin-inline: auto;
    border-radius: 0.5rem;
    border: 1px solid rgba(13, 77, 44, 0.12);
    box-shadow: 0 10px 32px rgba(13, 77, 44, 0.12);
}

.wp-preview .homenagem-body {
    max-width: 64rem;
    margin-top: 2.25rem;
    color: #4d4d4d;
    font-size: 0.98rem;
    line-height: 1.7;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.wp-preview .homenagem-body p + p {
    margin-top: 1.1rem;
}

.wp-preview .homenagem-closing {
    max-width: 38rem;
    margin: 2.5rem auto 0;
    padding: 1.35rem 1.5rem;
    border-left: 4px solid var(--fegbt-gold);
    background: rgba(13, 77, 44, 0.04);
    border-radius: 0 0.5rem 0.5rem 0;
    box-shadow: 0 4px 18px rgba(13, 77, 44, 0.06);
}

.wp-preview .homenagem-closing p {
    font-weight: 500;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--fegbt-green-700);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.wp-preview .homenagem-card {
    margin: 0;
    padding: 1.35rem 1.4rem 1.4rem;
    background: #fff;
    border: 1px solid rgba(13, 77, 44, 0.12);
    border-radius: 0.5rem;
    box-shadow: 0 6px 22px rgba(13, 77, 44, 0.07);
    position: relative;
    overflow: hidden;
}

.wp-preview .homenagem-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fegbt-green-600), var(--fegbt-gold));
    opacity: 0.95;
}

.wp-preview .homenagem-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fegbt-green-700);
    margin-bottom: 0.65rem;
}

.wp-preview .homenagem-card-text {
    font-size: 0.92rem;
    line-height: 1.65;
    font-style: italic;
    color: #555;
}

.wp-preview .homenagem-composicao {
    max-width: 36rem;
    font-size: 0.88rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.65;
    color: var(--fegbt-green-600);
    padding-top: 0.25rem;
    border-top: 1px solid rgba(232, 185, 35, 0.35);
}

@media (min-width: 992px) {
    .wp-preview .homenagem-body {
        font-size: 1rem;
    }
}
