/* ============================================================
   ABANFAR BF — blog.css
   Tema: Branco & Dourado Elegante | Música que Transforma
   Fontes: Playfair Display + Cormorant Garamond + Libre Baskerville
   ============================================================ */

/* =============================================
   DESIGN TOKENS
============================================= */
:root {
    --gold:         #C9A84C;
    --gold-light:   #E8C96A;
    --gold-pale:    #F5E9C8;
    --gold-dim:     #9A7A30;
    --cream:        #FDFAF3;
    --white:        #FFFFFF;
    --ink:          #1A1612;
    --ink-soft:     #3D3530;
    --gray-text:    #7A6E65;
    --gray-line:    #E8E0D4;
    --section-bg:   #F9F5EC;
    --shadow-gold:  0 4px 28px rgba(201,168,76,0.18);
    --shadow-soft:  0 8px 32px rgba(26,22,18,0.08);
    --radius-lg:    1.25rem;
    --radius-sm:    0.6rem;
    --transition:   0.28s ease;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: var(--cream);
    color: var(--ink-soft);
    line-height: 1.75;
    font-size: 1.08rem;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--ink);
    letter-spacing: -0.01em;
}

a { transition: color var(--transition); }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* =============================================
   TOP BAR
============================================= */
.top-bar {
    background: var(--ink);
    color: var(--gold-pale);
    font-size: 0.78rem;
    font-family: 'Libre Baskerville', serif;
    letter-spacing: 0.08em;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--gold-dim);
}

.top-bar a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color var(--transition);
}

.top-bar a:hover { color: var(--white); }

/* =============================================
   MAIN NAVBAR
============================================= */
.main-navbar {
    background: var(--white);
    border-bottom: 2px solid var(--gold);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(201,168,76,0.12);
    transition: box-shadow var(--transition);
}

.main-navbar.scrolled {
    box-shadow: 0 4px 32px rgba(201,168,76,0.2);
}

.navbar-inner { padding: 0.7rem 0; }

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo-ring {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    padding: 3px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold-pale);
    flex-shrink: 0;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.navbar-brand:hover .brand-logo-ring {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

.brand-logo-ring img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.brand-logo-placeholder {
    font-size: 1.5rem;
    color: var(--gold);
}

.brand-text .brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    display: block;
}

.brand-text .brand-sub {
    font-size: 0.68rem;
    color: var(--gray-text);
    letter-spacing: 0.05em;
    font-family: 'Libre Baskerville', serif;
    display: block;
    max-width: 210px;
}

/* Nav links */
.main-navbar .navbar-nav .nav-link {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color var(--transition);
}

.main-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 1rem; right: 1rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link.active {
    color: var(--gold) !important;
}

.main-navbar .navbar-nav .nav-link:hover::after,
.main-navbar .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Entrar button */
.btn-entrar {
    background: var(--gold);
    color: var(--ink) !important;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    padding: 0.45rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-entrar:hover {
    background: var(--gold-dim);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(201,168,76,0.3);
}

/* Mobile toggler */
.navbar-toggler { border-color: var(--gold) !important; }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C9A84C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* =============================================
   HERO SECTION
============================================= */
.hero-section {
    background: linear-gradient(135deg, #1A1612 0%, #2C2318 60%, #1A1612 100%);
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

/* Floating musical notes */
.music-float {
    position: absolute;
    color: var(--gold);
    opacity: 0.08;
    pointer-events: none;
    animation: floatNote 8s ease-in-out infinite;
    user-select: none;
}

.music-float:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; font-size: 5rem; }
.music-float:nth-child(2) { top: 60%; left: 3%; animation-delay: 1.5s; font-size: 3rem; }
.music-float:nth-child(3) { top: 25%; right: 5%; animation-delay: 3s; font-size: 6rem; }
.music-float:nth-child(4) { bottom: 15%; right: 12%; animation-delay: 0.8s; font-size: 4.5rem; }
.music-float:nth-child(5) { top: 70%; right: 28%; animation-delay: 2s; font-size: 2.5rem; opacity: 0.05; }

@keyframes floatNote {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Large bg treble clef */
.hero-clef {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20rem;
    color: var(--gold);
    opacity: 0.06;
    pointer-events: none;
    line-height: 1;
    font-family: serif;
}

.hero-content { position: relative; z-index: 2; }

/* Eyebrow label */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: inline-block;
    width: 28px; height: 1px;
    background: var(--gold);
}

/* Hero heading */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-title .gold-word {
    color: var(--gold-light);
    font-style: italic;
}

.hero-description {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: #C8BFB4;
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* CTA buttons */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gold);
    color: var(--ink);
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 6px 24px rgba(201,168,76,0.35);
}

.hero-cta:hover {
    background: var(--gold-light);
    color: var(--ink);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(201,168,76,0.45);
}

.hero-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--gold-light);
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid rgba(201,168,76,0.4);
    transition: all 0.3s;
}

.hero-cta-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,168,76,0.06);
}

/* Stats bar */
.hero-stats {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(201,168,76,0.2);
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    display: block;
    animation: countUp 1s ease-out forwards;
}

.stat-item .stat-label {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8C7E72;
    display: block;
    margin-top: 0.3rem;
}

/* Emblem: logo no centro, 3 anéis e uma nota orbitando em cada anel */
.hero-musical-emblem {
    width: 420px; height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.25);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}

.hero-musical-emblem::before,
.hero-musical-emblem::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero-musical-emblem::before { inset: 12px; border: 1px solid rgba(201,168,76,0.15); }
.hero-musical-emblem::after  { inset: 28px; border: 1px solid rgba(201,168,76,0.1); }

.emblem-logo {
    position: relative; z-index: 2;
    /* Ocupa quase todo o anel interno; borda fina e pouco respiro para a logo ficar grande */
    width: 318px; height: 318px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #FFFBF0 60%, var(--gold-pale) 100%);
    border: 1px solid rgba(201,168,76,0.7);
    /* margem que respeita a curva do círculo: o slogan da logo vai quase de ponta a ponta */
    padding: 40px;
    display: flex; align-items: center; justify-content: center;
    animation: emblemGlow 4s ease-in-out infinite;
}
.emblem-logo img { width: 100%; height: 100%; object-fit: contain; }

/* Usado também pelo ícone da seção "Apoie a música" */
@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 40px rgba(201,168,76,0.3); }
    50%       { text-shadow: 0 0 80px rgba(201,168,76,0.6), 0 0 120px rgba(201,168,76,0.2); }
}

@keyframes emblemGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(201,168,76,0.25); }
    50%      { box-shadow: 0 0 70px rgba(201,168,76,0.45); }
}

/* Cada órbita tem o tamanho de um anel e gira; a nota fica no topo dela */
.emblem-orbit {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    animation: orbit var(--orbit-tempo) linear infinite;
    animation-delay: var(--orbit-atraso, 0s);
}
.orbit-1 { inset: -1px; --orbit-tempo: 22s; --orbit-atraso: -3s; }
.orbit-2 { inset: 12px; --orbit-tempo: 16s; --orbit-atraso: -9s;  animation-direction: reverse; }
.orbit-3 { inset: 28px; --orbit-tempo: 12s; --orbit-atraso: -2s; }

@keyframes orbit {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.orbit-note {
    position: absolute;
    top: 0; left: 50%;
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    background: var(--ink);
    border: 1px solid rgba(201,168,76,0.55);
    box-shadow: 0 0 14px rgba(201,168,76,0.45);
    display: flex; align-items: center; justify-content: center;
}
/* Gira ao contrário da órbita para a nota ficar sempre em pé */
.orbit-note > span {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--gold-light);
    animation: orbit var(--orbit-tempo) linear infinite reverse;
    animation-delay: var(--orbit-atraso, 0s);
}
.orbit-2 .orbit-note > span { animation-direction: normal; }

/* Quem pede "menos movimento" (ex.: animações do Windows desligadas) ainda vê as notas
   girando, mas bem devagar e sem o brilho pulsando. */
@media (prefers-reduced-motion: reduce) {
    .orbit-1 { --orbit-tempo: 60s; }
    .orbit-2 { --orbit-tempo: 48s; }
    .orbit-3 { --orbit-tempo: 40s; }
    .emblem-logo { animation: none; box-shadow: 0 0 40px rgba(201,168,76,0.3); }
}

@media (max-width: 1199.98px) {
    .hero-musical-emblem { width: 350px; height: 350px; }
    .emblem-logo { width: 262px; height: 262px; padding: 33px; }
}

/* =============================================
   MARQUEE STRIP
============================================= */
.featured-strip {
    background: var(--ink);
    padding: 1.2rem 0;
    overflow: hidden;
    position: relative;
}

.strip-marquee {
    display: flex;
    gap: 3.5rem;
    white-space: nowrap;
    animation: marquee 22s linear infinite;
    width: max-content;
}

.strip-marquee:hover { animation-play-state: paused; }

.strip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-pale);
}

.strip-item i { color: var(--gold); font-size: 1rem; }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =============================================
   SECTION UTILITIES
============================================= */
.section-label {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}

.section-label::before {
    content: '';
    width: 32px; height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.section-divider {
    text-align: center;
    margin: 0.5rem 0 2.5rem;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--gray-line);
}

.section-divider span {
    background: var(--cream);
    padding: 0 1.2rem;
    position: relative;
    color: var(--gold);
    font-size: 1.4rem;
}

/* =============================================
   PROGRAMS SECTION
============================================= */
.programs-section {
    padding: 5.5rem 0;
    background: var(--cream);
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-line);
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.program-card:hover::before { transform: scaleX(1); }

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
}

.program-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--gold-pale);
    line-height: 1;
    position: absolute;
    top: 1rem; right: 1.5rem;
    transition: color var(--transition);
}

.program-card:hover .program-number { color: rgba(201,168,76,0.2); }

.program-icon {
    width: 52px; height: 52px;
    background: var(--gold-pale);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-dim);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    transition: background var(--transition), color var(--transition);
}

.program-card:hover .program-icon {
    background: var(--gold);
    color: var(--white);
}

.program-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.7rem;
}

.program-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--gray-text);
    line-height: 1.7;
}

/* =============================================
   BLOG SECTION
============================================= */
.blog-section {
    padding: 5.5rem 0;
    background: var(--cream);
}

/* Featured post */
.post-featured {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 440px;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-line);
}

.post-featured:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
}

.post-featured .feat-img {
    background: linear-gradient(145deg, #2C2318, #1A1612);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 280px;
    overflow: hidden;
}

.post-featured .feat-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; inset: 0;
    transition: transform 0.6s ease;
    z-index: 2;
}

.post-featured:hover .feat-img img { transform: scale(1.05); }

.feat-img-placeholder {
    font-size: 8rem;
    color: var(--gold);
    opacity: 0.35;
    position: relative; z-index: 1;
    transition: opacity var(--transition);
}

.post-featured:hover .feat-img-placeholder { opacity: 0.5; }

.feat-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(255,253,248,0.1) 100%);
    z-index: 3;
}

.post-featured .feat-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Post tag pills */
.post-tag {
    display: inline-block;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.post-tag.tag-projeto   { background: #EEF5EE; color: #3A6B3A; border-color: #C5DCC5; }
.post-tag.tag-orquestra { background: #F0F0F8; color: #3A3A7A; border-color: #C5C5E8; }
.post-tag.tag-historia  { background: var(--gold-pale); color: var(--gold-dim); border-color: rgba(201,168,76,0.3); }
.post-tag.tag-noticias  { background: #F8EEF0; color: #6B3A4A; border-color: #DCC5CC; }

/* Post title */
.feat-body .post-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.feat-body .post-excerpt {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--gray-text);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

/* Meta info */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.72rem;
    color: #9A8E85;
    letter-spacing: 0.04em;
    flex-wrap: wrap;
}

.post-meta i { color: var(--gold); }

/* Read more link */
.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gold-dim);
    font-family: 'Libre Baskerville', serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: gap var(--transition), color var(--transition);
    margin-top: 1rem;
}

.post-read-more:hover {
    gap: 0.75rem;
    color: var(--gold);
}

/* Standard blog cards */
.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-line);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
}

.blog-card .card-img-wrap {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(145deg, #2C2318, #1A1612);
    position: relative;
    display: flex; align-items: center; justify-content: center;
}

.blog-card .card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; inset: 0;
    transition: transform 0.5s ease;
    z-index: 2;
}

.blog-card:hover .card-img-wrap img { transform: scale(1.06); }

.img-placeholder-icon {
    font-size: 4.5rem;
    color: var(--gold);
    opacity: 0.3;
    position: relative; z-index: 1;
    transition: opacity var(--transition);
}

.blog-card:hover .img-placeholder-icon { opacity: 0.5; }

.blog-card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.blog-card .card-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--gray-text);
    line-height: 1.7;
    flex-grow: 1;
}

.blog-card .card-footer-custom {
    border-top: 1px solid var(--gray-line);
    padding: 0.85rem 1.5rem;
    background: var(--section-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =============================================
   SIDEBAR WIDGETS
============================================= */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-line);
    overflow: hidden;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-soft);
    transition: box-shadow var(--transition);
}

.sidebar-widget:hover { box-shadow: var(--shadow-gold); }

.widget-header {
    background: var(--ink);
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 2px solid var(--gold);
}

.widget-header h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin: 0;
}

.widget-header i { color: var(--gold); font-size: 1rem; }

.widget-body { padding: 1.4rem; }

/* About */
.about-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.75;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gold-pale);
    color: var(--gold-dim);
    font-size: 0.7rem;
    font-family: 'Libre Baskerville', serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    margin: 0.2rem 0.1rem;
    transition: background var(--transition), color var(--transition);
}

.about-badge:hover {
    background: var(--gold);
    color: var(--white);
}

/* Project list */
.project-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gray-line);
    transition: background var(--transition);
}

.project-list-item:last-child { border-bottom: none; }

.project-icon {
    width: 36px; height: 36px;
    background: var(--gold-pale);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--gold-dim);
    font-size: 0.9rem;
    transition: background var(--transition), color var(--transition);
}

.project-list-item:hover .project-icon {
    background: var(--gold);
    color: var(--white);
}

.project-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
}

.project-desc {
    font-size: 0.78rem;
    color: var(--gray-text);
    font-family: 'Cormorant Garamond', serif;
}

/* Contact */
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-line);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
    width: 36px; height: 36px;
    background: var(--gold-pale);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--gold-dim);
    font-size: 0.9rem;
}

.contact-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #B0A398;
    font-family: 'Libre Baskerville', serif;
}

.contact-value {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--ink);
}

/* Social buttons */
.social-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-family: 'Libre Baskerville', serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid var(--gray-line);
    color: var(--ink-soft);
    background: var(--section-bg);
}

.btn-social:hover {
    background: var(--gold-pale);
    border-color: var(--gold);
    color: var(--gold-dim);
    transform: translateY(-2px);
}

/* Newsletter */
.newsletter-form input {
    border: 1px solid var(--gray-line);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 0.7rem;
    background: var(--section-bg);
    color: var(--ink);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.btn-newsletter {
    width: 100%;
    background: var(--ink);
    color: var(--gold-light);
    font-family: 'Libre Baskerville', serif;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.65rem;
    border-radius: var(--radius-sm);
    border: none;
    transition: background var(--transition), transform var(--transition);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}

.btn-newsletter:hover {
    background: #2C2318;
    transform: translateY(-2px);
}

/* =============================================
   PAGINATION
============================================= */
.pagination-custom {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.page-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-line);
    background: var(--white);
    color: var(--ink-soft);
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}

/* =============================================
   QUOTE BANNER
============================================= */
.quote-banner {
    background: var(--ink);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.quote-banner::before {
    content: '♪';
    position: absolute;
    left: -2rem; top: 50%;
    transform: translateY(-50%);
    font-size: 18rem;
    color: var(--gold);
    opacity: 0.04;
    line-height: 1;
    pointer-events: none;
}

.quote-banner::after {
    content: '♩';
    position: absolute;
    right: -1rem; top: 50%;
    transform: translateY(-50%);
    font-size: 18rem;
    color: var(--gold);
    opacity: 0.04;
    line-height: 1;
    pointer-events: none;
}

.quote-mark {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: var(--gold);
    opacity: 0.4;
    line-height: 0.5;
    display: block;
    margin-bottom: 0.5rem;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--white);
    line-height: 1.55;
    max-width: 700px;
    margin: 0 auto;
}

.quote-author {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 1.5rem;
}

/* =============================================
   GALLERY SECTION
============================================= */
.gallery-section {
    padding: 5.5rem 0;
    background: var(--section-bg);
}

.gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-section .gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--ink);
}

.gallery-section .gallery-item:first-child {
    grid-column: span 2;
}

.gallery-section .gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; inset: 0;
    transition: transform 0.5s ease, opacity 0.3s ease;
    display: block;
    min-height: 200px;
    z-index: 2;
}

.gallery-section .gallery-placeholder {
    min-height: 200px;
    display: flex; align-items: center; justify-content: center;
}

.gallery-section .gallery-placeholder:first-child { min-height: 280px; }

.gallery-section .gallery-placeholder i {
    color: var(--gold);
    opacity: 0.3;
    font-size: 3.5rem;
    transition: opacity var(--transition);
    position: absolute;
    z-index: 1;
}

.gallery-section .gallery-item:hover .gallery-placeholder i { opacity: 0.6; }
.gallery-section .gallery-item:hover img { transform: scale(1.07); opacity: 0.8; }

.gallery-section .gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,22,18,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex; align-items: flex-end;
    padding: 1.2rem;
    z-index: 3;
}

.gallery-section .gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-section .gallery-overlay-text {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--white);
    font-weight: 600;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
    background: var(--ink);
    color: #9A9088;
    padding: 5rem 0 0;
}

.footer-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 0.03em;
    line-height: 1;
}

.footer-brand-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    color: #6A6058;
    margin-top: 0.5rem;
    max-width: 280px;
    line-height: 1.65;
}

.footer-divider-gold {
    width: 48px; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 1.5rem 0;
    border-radius: 1px;
}

.footer-col-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.footer-link {
    display: block;
    color: #8A8078;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: color var(--transition), padding-left var(--transition);
}

.footer-link:hover {
    color: var(--gold-light);
    padding-left: 0.5rem;
}

.footer-bottom {
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.5rem 0;
}

.footer-bottom p {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: #5A5450;
    margin: 0;
}

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

.footer-bottom a:hover { color: var(--gold-light); }

/* Animated footer notes */
.footer-music-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.footer-note {
    font-size: 1.3rem;
    color: var(--gold);
    opacity: 0.2;
    animation: footerPulse 3s ease-in-out infinite;
}

.footer-note:nth-child(1) { animation-delay: 0s; }
.footer-note:nth-child(2) { animation-delay: 0.4s; }
.footer-note:nth-child(3) { animation-delay: 0.8s; }
.footer-note:nth-child(4) { animation-delay: 1.2s; }
.footer-note:nth-child(5) { animation-delay: 1.6s; }

@keyframes footerPulse {
    0%, 100% { opacity: 0.15; }
    50%       { opacity: 0.55; }
}

/* Social icon circles in footer */
.footer-social-icon {
    width: 36px; height: 36px;
    background: rgba(201,168,76,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 0.95rem;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    border: 1px solid rgba(201,168,76,0.2);
}

.footer-social-icon:hover {
    background: rgba(201,168,76,0.25);
    color: var(--gold-light);
    transform: translateY(-3px);
}

/* =============================================
   SCROLL REVEAL (JS-powered)
============================================= */
/* Só esconde quando o JS está ativo e o usuário não pediu menos movimento:
   sem JS (ou com movimento reduzido) o conteúdo aparece normalmente. */
@media (prefers-reduced-motion: no-preference) {
    html.js .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    html.js .reveal.visible {
        opacity: 1;
        transform: none;
    }
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 991px) {
    .post-featured {
        grid-template-columns: 1fr;
    }

    .post-featured .feat-img { min-height: 260px; }

    .hero-stats { gap: 2rem; }
}

@media (max-width: 768px) {
    .brand-logo-ring { width: 44px; height: 44px; }

    .hero-section { min-height: 70vh; padding: 3rem 0; }

    .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }

    .hero-stats { gap: 1.5rem; }

    .stat-item .stat-number { font-size: 2rem; }

    .gallery-section .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-section .gallery-item:first-child { grid-column: span 2; }

    .programs-section,
    .blog-section,
    .gallery-section { padding: 3.5rem 0; }

    .quote-banner { padding: 3rem 0; }
}

@media (max-width: 480px) {
    .hero-cta, .hero-cta-outline {
        width: 100%;
        justify-content: center;
    }

    .gallery-section .gallery-grid { grid-template-columns: 1fr; }

    .gallery-section .gallery-item:first-child { grid-column: span 1; }
}

/* =============================================
   AJUSTES GERAIS (melhorias)
============================================= */
html, body { overflow-x: clip; }
img { max-width: 100%; }

/* Bootstrap: gutters g-5 (3rem) são maiores que o padding do container em telas
   pequenas e criam rolagem horizontal. */
@media (max-width: 575.98px) {
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
    .top-bar .top-bar-local { display: none; }
    .top-bar .container { justify-content: center !important; }
}

/* Mensagens do sistema */
.site-messages { position: relative; z-index: 5; padding-top: 1.25rem; }
.site-alert {
    display: flex; align-items: flex-start; gap: .7rem;
    font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; line-height: 1.5;
    background: var(--gold-pale); color: var(--ink-soft);
    border: 1px solid rgba(201,168,76,.45); border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm); padding: .8rem 2.8rem .8rem 1rem; margin-bottom: .75rem;
    position: relative;
}
.site-alert i { color: var(--gold-dim); margin-top: .15rem; }
.site-alert.alert-error { background: #FBEDEB; border-color: #E8BDB7; border-left-color: #B04848; }
.site-alert.alert-error i { color: #B04848; }
.site-alert .btn-close { position: absolute; top: .75rem; right: .75rem; font-size: .7rem; }

/* Newsletter (rodapé e home) */
.newsletter-inline input[type=email] {
    width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(201,168,76,.25);
    border-radius: var(--radius-sm); padding: .45rem .8rem; margin-bottom: .5rem;
    font-family: 'Cormorant Garamond', serif; font-size: .95rem; color: #C8BFB4; outline: none;
}
.newsletter-inline input[type=email]:focus { border-color: var(--gold); }
.newsletter-inline button {
    width: 100%; background: var(--gold); color: var(--ink); border: none; border-radius: var(--radius-sm);
    font-family: 'Libre Baskerville', serif; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
    padding: .5rem; font-weight: 700; cursor: pointer; transition: background var(--transition);
}
.newsletter-inline button:hover { background: var(--gold-light); }

/* Erros de formulário */
.form-gold-control.is-invalid { border-color: #B04848 !important; }
.field-error { display: block; font-family: 'Cormorant Garamond', serif; font-size: .95rem; color: #B04848; margin-top: .3rem; }

/* Paginação real */
.pagination-custom .page-btn.disabled { opacity: .4; pointer-events: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Números do topo da home em grade 2×2 no celular (antes quebravam 2 + 1 + 1) */
@media (max-width: 575.98px) {
    .hero-stats { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.5rem; }
}

/* =============================================
   REFINO DE DESIGN (legibilidade e acabamento)
============================================= */
:root {
    /* Dourado escuro para TEXTO pequeno sobre fundo claro: o --gold (#C9A84C)
       sobre creme tem contraste ~2:1 (ilegível); este passa de 4,5:1 (WCAG AA). */
    --gold-text: #7A5F22;
}

/* Rótulos de seção em fundo claro */
.section-label { color: var(--gold-text); }
.section-label i { color: var(--gold); }
.quote-banner .section-label, .support-section .section-label, .site-footer .section-label { color: var(--gold); }
.post-read-more { color: var(--gold-text); }
.post-read-more:hover { color: var(--ink); }

/* Título do topo: 3 linhas no computador em vez de 4 */
.hero-title { font-size: clamp(2.6rem, 5.4vw, 4.7rem); letter-spacing: -0.01em; }
.hero-description { color: #D9CFC3; }

/* Notícias sem foto: fundo claro com a logo, no lugar do bloco escuro */
.blog-card .card-img-wrap:not(:has(img)),
.post-featured .feat-img:not(:has(img)) {
    background: radial-gradient(circle at 50% 45%, #FFFDF7 0%, var(--gold-pale) 100%) !important;
}
.blog-card .card-img-wrap:not(:has(img))::before,
.post-featured .feat-img:not(:has(img))::before {
    content: '';
    position: absolute; inset: 0;
    background: url('/static/img/logo_abanfar.png') center / auto 62% no-repeat;
    opacity: .9;
}
.blog-card .card-img-wrap:not(:has(img)) .img-placeholder-icon,
.post-featured .feat-img:not(:has(img)) .feat-img-placeholder { display: none; }

/* Rodapé: textos com contraste suficiente sobre o fundo escuro */
.footer-link { color: #B5AA9F; }
.footer-brand-tagline { color: #A89E94; }
.footer-bottom p { color: #9A9086; }
.footer-bottom a { color: var(--gold-light); }

/* Cartões: sombra e borda um pouco mais suaves e consistentes */
.program-card, .blog-card, .sidebar-widget { border-color: #EDE6DA; }

/* Foco visível em links e botões (navegação por teclado) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold); outline-offset: 2px;
}
