:root {
    /* Timing */
    --transition-fast: 0.25s ease;
    --transition-medium: 0.3s ease;

    /* Radius */
    --radius-md: 12px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.2);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* Blur */
    --blur: 10px;

    /* Colors */
    --text-dark: #212529;
    --text-muted: #6c757d;
    --text-soft: #495057;
}

/* Base */
html {
    scroll-padding-top: 60px;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    background: #f1f5f9;
}

/* Home link */
.home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(var(--blur));
    transition: 
        background var(--transition-fast),
        transform var(--transition-fast),
        color var(--transition-fast);
}

.home-link:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    color: #fff;
}

.btn {
    transition: transform .3s ease;
}

.btn:hover{
    transform: translateY(-3px);
}

/* Footer */
.premium-footer {
    background: rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(var(--blur));
}

/* Timeline */
.timeline {
    position: relative;
    margin-left: clamp(20px, 5vw, 60px);
    padding-left: clamp(20px, 5vw, 50px);
}

.timeline::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.6);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -50px;
    top: 8px;

    width: 16px;
    height: 16px;

    background: #fff;
    border-radius: 50%;
    border: 3px solid #dc3545;

    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.timeline-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;

    box-shadow: var(--shadow-sm);

    transition: 
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-text {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-text-item {
    color: var(--text-soft);
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Gallery */
.gallery-item {
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.8);
}

/* Modal */
.modal-content {
    background: #000;
}

#modalImage {
    max-height: 80vh;
    object-fit: contain;
    transition: opacity 0.2s ease-in-out;
}

#modalCaption {
    transition: opacity 0.2s ease-in-out;
}

/* Layout */
.section {
    padding: clamp(60px, 8vw, 120px) 0;
}

.navbar {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(var(--blur));
    transition: box-shadow var(--transition-medium);
}

.navbar.scrolled {
    box-shadow: var(--shadow-soft);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(100px, 12vw, 160px) 0 120px;
    color: #fff;
}

.hero--home {
    background: url('/imagens/bg.jpg') center / cover no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA */
.cta-primary {
    font-size: 1.2rem;
    padding: 14px 28px;
    box-shadow: var(--shadow-sm);
}

/* Logos */
.logos-wrapper{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:0 7rem; /* mesmo espaçamento horizontal do carousel */
}

.logo{
    display:flex;
    align-items:center;
    justify-content:center;
    height:80px;
    text-decoration:none;
}

.logo img{
    display:block;
    max-width:160px;
    max-height:80px;
    width:auto;
    height:auto;
    object-fit:contain;
    pointer-events:none;
    -webkit-user-drag:none;
    user-select:none;
    transition: transform .3s ease, opacity .2s ease;
}

.logo:hover img{
    opacity:.8;
    transform: translateY(-3px);
}

.logo:focus-visible{
    outline:3px solid var(--bs-primary);
    outline-offset:4px;
    border-radius:.5rem;
}

@media (max-width:576px){

    .logos-wrapper{
        gap:0 3rem;
    }

    .logo{
        height:60px;
    }

    .logo img{
        max-width:120px;
        max-height:60px;
    }

}

/* Animate */
.animate {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* NGOs */
.ngos-slider{
    overflow:hidden;
    user-select:none;
    -webkit-user-select:none;
    mask-image:linear-gradient(to right,transparent 0,#000 4rem,#000 calc(100% - 4rem),transparent 100%);
    -webkit-mask-image:linear-gradient(to right,transparent 0,#000 4rem,#000 calc(100% - 4rem),transparent 100%);
}

.ngos-track{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    width:max-content;
    will-change:transform;
}

.ngo{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    height:80px;
    margin-right:7rem;
    text-decoration:none;
}

.ngo img{
    display:block;
    max-width:160px;
    max-height:80px;
    width:auto;
    height:auto;
    object-fit:contain;
    pointer-events:none;
    -webkit-user-drag:none;
    user-select:none;
    transition:transform .3s ease, opacity .2s ease;
}

.ngo:hover img{
    opacity:.8;
    transform: translateY(-3px);
}

.ngo:focus-visible{
    outline:3px solid var(--bs-primary);
    outline-offset:4px;
    border-radius:.5rem;
}

@media (max-width:576px){

    .ngo{
        margin-right:3rem;
    }

    .ngo img{
        max-width:120px;
        max-height:60px;
    }

}

@media (prefers-reduced-motion:reduce){

    .ngos-track{
        transform:none !important;
    }

}

/* Responsive */
@media (max-width: 767px) {
    .premium-footer,
    .home-link {
        backdrop-filter: none;
    }
}

@media (max-width: 576px) {
    .logo-item img {
        max-height: 60px;
    }
}
