/* ==========================================================================
   CABEÇALHO DA HOME (HERO COM SLIDER E GLASSMORPHISM)
   ========================================================================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Background Slider */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 6s ease-out;
    transform: scale(1.05);
}

.bg-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Overlay Escuro com Gradiente */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.85) 0%, rgba(0, 92, 170, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Layout do Conteúdo do Hero */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 50px 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    min-height: 100vh;
}

/* Glass Panel (Esquerda) */
.glass-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 50px;
    max-width: 650px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    color: var(--texto-claro);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(var(--cor-secundaria-h), var(--cor-secundaria-s), var(--cor-secundaria-l), 0.2);
    border: 1px solid var(--cor-secundaria);
    color: var(--cor-secundaria);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
    color: var(--texto-claro);
}

.link-hero-destaque {
    color: #FFD700 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-style: italic;
    font-weight: 800;
    text-decoration: none !important;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

.link-hero-destaque::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #FFD700 !important;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-hero-destaque:hover {
    color: #FFF !important;
}

.link-hero-destaque:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Thumbnails da Galeria (Direita) */
.hero-thumbs-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 20px;
}

.thumbs-title {
    color: var(--texto-claro);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.gallery-thumbs {
    display: flex;
    gap: 15px;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.thumb::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.thumb:hover {
    opacity: 0.9;
    transform: translateY(-5px);
}

.thumb:hover::after {
    background: rgba(0,0,0,0.1);
}

.thumb.active {
    opacity: 1;
    border-color: var(--cor-secundaria);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 2;
}

.thumb.active::after {
    background: transparent;
}

/* Responsividade Básica do Hero */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-top: 150px;
    }
    .hero-thumbs-container {
        align-items: center;
        margin-top: 40px;
    }
    .hero h1 { font-size: 2.8rem; }
    .glass-panel { padding: 30px; }
}

/* ==========================================================================
   ÍCONES E DESTAQUES
   ========================================================================== */
.icone-card {
    font-size: 3.5rem; 
    color: var(--cor-primaria); 
    margin-bottom: 20px;
    display: block; 
}

.img-valor {
    font-size: 2.5rem; 
    color: var(--cor-primaria);
    width: 50px; 
    text-align: center; 
}

/* ==========================================================================
   CARDS DE SERVIÇOS/AÇÕES
   ========================================================================== */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--texto-claro);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-10px); }
.card h3 { margin-bottom: 15px; color: var(--cor-primaria); }

/* ==========================================================================
   VALORES (Lista com Hover)
   ========================================================================== */
.lista-valores {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.lista-valores li {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--texto-claro);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lista-valores li:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ==========================================================================
   CRONOGRAMA (Timeline)
   ========================================================================== */
.timeline {
    max-width: 600px;
    margin: 0 auto;
    border-left: 3px solid var(--cor-primaria);
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 0;
    width: 13px;
    height: 13px;
    background-color: var(--cor-primaria);
    border-radius: 50%;
}

.timeline-ano {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cor-primaria);
    margin-bottom: 10px;
}

.timeline-texto { color: #ccc; }

/* ==========================================================================
   ELEMENTOS ESPECÍFICOS DA HOME AMPA
   ========================================================================== */
.texto-sobre {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

/* ==========================================================================
   SEÇÃO COMO AJUDAR
   ========================================================================== */
.ajuda-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.ajuda-pix {
    background-color: var(--cor-primaria);
    color: var(--texto-claro);
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 92, 170, 0.2);
    /* Sem hover translateY para não atrapalhar o clique! */
}

.ajuda-pix h3 {
    margin-bottom: 15px;
    color: var(--texto-claro);
    font-size: 1.8rem;
}

.ajuda-pix p {
    color: #e0f0ff;
    margin-bottom: 20px;
}

.icone-pix-destaque {
    font-size: 4rem;
    color: var(--cor-secundaria);
    margin-bottom: 20px;
    display: block;
}

.ajuda-outros {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ajuda-item {
    background-color: var(--texto-claro);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.ajuda-item:hover {
    transform: translateX(10px);
}

.ajuda-item h3 {
    margin-bottom: 5px;
    color: var(--cor-primaria);
}

.ajuda-item p {
    font-size: 0.95rem;
    color: #555;
}

.ajuda-icone-circulo {
    background-color: #f0f8ff;
    color: var(--cor-primaria);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pix-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.pix-container input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
    background-color: #f9f9f9;
}

.localizacao-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: rgba(0,0,0,0.5);
    padding: 40px;
    border-radius: 10px;
    align-items: center;
}

.mapa-info {
    flex: 1;
    min-width: 250px;
}

.mapa-iframe {
    flex: 1;
    min-width: 300px;
}

/* ==========================================================================
   SEÇÃO ADOÇÕES (CARROSSEL MOBILE)
   ========================================================================== */
.carousel-wrapper {
    position: relative;
    width: 100%;
}
.carousel-container {
    width: 100%;
}

.carousel-dots {
    display: none;
}

.grid-adocao {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.item-adocao {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.item-adocao img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
#lightbox-img {
    position: relative;
    z-index: 10001;
    max-width: 95%;
    max-height: 95%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    object-fit: contain;
    transition: transform 0.3s ease-out, opacity 0.3s;
    touch-action: none; /* Previne zoom e scroll nativo ao arrastar a foto */
    user-select: none;
    -webkit-user-drag: none;
}
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 20px;
    color: white;
    font-size: 35px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10005;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    transform: translateZ(10px);
}
@supports (padding-top: max(0px)) {
    .lightbox-close {
        top: max(25px, env(safe-area-inset-top));
        right: max(20px, env(safe-area-inset-right));
    }
}
.lightbox-close:hover {
    background: var(--cor-secundaria);
    transform: scale(1.1) translateZ(10px);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-btn.prev { left: 20px; }
.lightbox-btn.next { right: 20px; }
@media (max-width: 768px) {
    .lightbox-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .lightbox-btn.prev { left: 10px; }
    .lightbox-btn.next { right: 10px; }
}

.lightbox-dots {
    display: flex;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    gap: 12px;
}
/* Reutilizando .dot do responsive.css para o lightbox */
.lightbox-dots .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.lightbox-dots .dot.active {
    background: white;
    transform: scale(1.2);
}