/* 
   AÇÕES SOCIAIS PAGE STYLES 
   Dual Column Photo Slider - Linear Infinite Marquee - PREMIUM DARK DESIGN
*/

:root {
    --bg-social: #0D0C12;
    --primary-social: #7C3AED;
    --accent-social: #C084FC;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(124, 58, 237, 0.2);
    --glass-blur: blur(12px);
}

body.acoes-sociais-page {
    background-color: var(--bg-social);
    color: #fff;
}

/* --- Hero Section (Ações Sociais) --- */
#acoes-sociais-hero {
    position: relative;
    height: auto; 
    min-height: 400px;
    padding: 160px 0 100px; 
    background-color: #0A090E; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff; 
    overflow: hidden;
}

#acoes-sociais-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%),
                linear-gradient(180deg, 
                rgba(10, 9, 14, 0.3) 0%, 
                rgba(124, 58, 237, 0.25) 50%, 
                var(--bg-social) 100%);
    z-index: 1;
}

/* Efeito sutil flutuante de fundo */
#acoes-sociais-hero::after {
    content: '';
    position: absolute;
    inset: -50%;
    background-image: radial-gradient(circle, rgba(192, 132, 252, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: floatingGrid 60s linear infinite;
    z-index: 0;
}

@keyframes floatingGrid {
    0% { transform: translateY(0); }
    100% { transform: translateY(40px); }
}

.hero-content-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 40px;
}

.hero-tagline {
    display: inline-block;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-social);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

#acoes-sociais-hero h1 {
    font-size: clamp(3rem, 7vw, 4.5rem); 
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--accent-social));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
    font-weight: 800;
}

#acoes-sociais-hero .subtitle {
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

#acoes-sociais-hero .description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#acoes-sociais-hero .btn-login {
    background: linear-gradient(135deg, var(--primary-social), #5B21B6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#acoes-sociais-hero .btn-login:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.6);
    border-color: var(--accent-social);
}

/* --- Social Gallery Section --- */
#social-gallery {
    padding: 100px 0 120px; 
    background: var(--bg-social);
    overflow: hidden;
    position: relative;
}

/* Luzes difusas atrás da galeria */
#social-gallery::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 40%;
    height: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
}
#social-gallery::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.06) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
}

#social-gallery .section-header h2 {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

#social-gallery .divider {
    background: linear-gradient(90deg, transparent, var(--primary-social), transparent);
    height: 2px;
    width: 100px;
    margin: 15px auto 40px;
    box-shadow: 0 0 10px var(--primary-social);
}

.gallery-grid {
    display: flex;
    flex-direction: column; 
    gap: 0; 
    max-width: 100%;
    margin: 0;
    padding: 0; 
    position: relative;
    z-index: 2;
}

.gallery-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    position: relative;
    background: transparent;
}

.column-header {
    padding: 24px 24px 12px; 
    background: linear-gradient(to bottom, var(--bg-social), transparent);
    z-index: 10;
    text-align: center;
}

.column-header h3 {
    display: inline-block;
    font-size: 1.2rem; 
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 8px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Base Marquee Track */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: transparent;
    padding: 10px 0 30px; 
}

/* Sombra nas bordas do carrossel para suavizar entrada/saída */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10vw;
    z-index: 5;
    pointer-events: none;
}
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-social) 0%, transparent 100%);
}
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-social) 0%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.marquee-track img {
    height: 300px; 
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.5s ease, 
                filter 0.5s ease;
    cursor: pointer;
    background: #1a1a24;
}

.marquee-track img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 
                0 0 20px rgba(124, 58, 237, 0.4),
                0 0 0 2px var(--accent-social);
    filter: brightness(1.1) contrast(1.1);
    z-index: 10;
    position: relative;
}

/* Keyframes for Continuous Scrolling */
@keyframes scroll-ltr {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes scroll-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.track-ltr {
    animation: scroll-ltr 40s linear infinite;
}

.track-rtl {
    animation: scroll-rtl 40s linear infinite;
}

/* Pause on gallery hover */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

/* --- OVERRIDE BANNERS & NOSSOS DEPARTAMENTOS --- */
body.acoes-sociais-page #banners,
body.acoes-sociais-page #nossos-departamentos {
    background-color: var(--bg-social);
}

body.acoes-sociais-page #banners .banner {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    color: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

body.acoes-sociais-page #banners .banner:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

body.acoes-sociais-page #banners .banner h3,
body.acoes-sociais-page #nossos-departamentos h3 {
    color: #fff;
}

body.acoes-sociais-page #banners .banner p {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsividade */
@media (max-width: 1024px) {
    .marquee-track img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    #acoes-sociais-hero {
        padding: 140px 0 80px;
    }
    
    #acoes-sociais-hero h1 {
        font-size: 2.5rem;
    }

    #social-gallery {
        padding: 80px 0;
    }
    
    .marquee-track img {
        height: 200px;
    }
}
