/* ==========================================================================
   Python Nordeste 2027 (PyNE 2027) - Estilos Principais
   Identidade Visual: Rosa Dunas, Areia Quente e Linhas Topográficas
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--accent-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Utilitário de Acessibilidade / SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    background: linear-gradient(145deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #FFFFFF;
    padding: 3.5rem 1.5rem 4.5rem;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(159, 53, 92, 0.4);
}

/* Atmosfera e iluminação suave das dunas no Hero */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 65% 55% at 50% 35%, rgba(255, 255, 255, 0.16) 0%, transparent 70%),
        radial-gradient(circle at 85% 85%, rgba(184, 73, 114, 0.4) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Curvas de nível topográficas na lateral direita (Exata composição da ID Visual) */
.hero-contour-right {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 36vw;
    min-width: 280px;
    max-width: 540px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.hero-contour-right-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(0 4px 20px rgba(184, 73, 114, 0.35));
    animation: duneRightFloat 14s ease-in-out infinite alternate;
}

@keyframes duneRightFloat {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.015);
    }
    100% {
        transform: translateY(6px) scale(0.995);
    }
}

.hero-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
    zoom: 0.9;
}

/* Badge de Localização e Ano com Guará */
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(249, 244, 232, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 0.35rem 1.15rem 0.35rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 2rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.location-badge:hover {
    transform: translateY(-2px);
    background: rgba(249, 244, 232, 0.32);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.badge-guara-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #E47A9F;
    animation: guaraAvatarFloat 3s ease-in-out infinite alternate;
}

@keyframes guaraAvatarFloat {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.06) rotate(3deg); }
}

.badge-guara-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transform: translate(2px, 1px);
}

.badge-text {
    font-weight: 600;
}

.badge-tag-pill {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    color: #FFFDF9;
}

/* Logo Oficial Horizontal PyNE 2027 (Exata ID Visual com vetor puro) */
.hero-brand-lockup,
.logo-wrapper {
    max-width: 660px;
    width: 90%;
    margin: 0.5rem auto 1.85rem;
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

.logo-tilt-container {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.hero-logo-horizontal,
.hero-logo {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    background: transparent;
    filter: drop-shadow(0 16px 36px rgba(60, 20, 35, 0.38));
    animation: floatHorizontalLogo 6s ease-in-out infinite;
    transition: filter 0.3s ease;
    will-change: transform, filter;
}

@keyframes floatHorizontalLogo {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 16px 36px rgba(60, 20, 35, 0.38));
    }
    50% {
        transform: translateY(-9px);
        filter: drop-shadow(0 28px 48px rgba(60, 20, 35, 0.46));
    }
}

.hero-logo-horizontal:hover,
.hero-logo:hover {
    filter: drop-shadow(0 34px 56px rgba(60, 20, 35, 0.55));
}

/* Tipografia do Hero */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.edition-highlight {
    display: inline-block;
    color: var(--accent-color);
    background: linear-gradient(110deg, var(--accent-color) 20%, #FFFFFF 48%, var(--accent-color) 76%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer2027 6s ease-in-out infinite;
}

@keyframes shimmer2027 {
    0% {
        background-position: 150% 0;
    }
    45%, 100% {
        background-position: -50% 0;
    }
}

.hero-tagline {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero-description {
    font-size: clamp(0.98rem, 1.8vw, 1.1rem);
    line-height: 1.65;
    max-width: 660px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Data e Local do Evento */
.event-details {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: -0.5rem 0 2.25rem;
}

.event-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    border-radius: 14px;
    background: rgba(43, 27, 34, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
}

.event-detail i {
    font-size: 1.1rem;
    color: var(--accent-color);
}

.event-detail a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.event-detail a:hover,
.event-detail a:focus-visible {
    text-decoration-thickness: 2px;
}

/* Botões de Ação */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.85rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    background: #FFFFFF;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: rgba(249, 244, 232, 0.15);
    transform: translateY(-3px);
}

/* Redes Sociais */
.social-section {
    margin-top: 1.5rem;
}

.social-call {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--secondary-color);
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.social-pill i {
    font-size: 1.05rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-pill:hover {
    transform: translateY(-3px);
    background: #FFFFFF;
    color: var(--text-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.social-pill:hover i {
    transform: scale(1.15);
}

.social-pill.instagram:hover i {
    color: #E1306C;
}

.social-pill.linkedin:hover i {
    color: #0A66C2;
}

.social-pill.youtube:hover i {
    color: #FF0000;
}

.social-pill.telegram:hover i {
    color: #24A1DE;
}

.social-pill.github:hover i {
    color: #24292E;
}

.footer-heart {
    color: var(--primary-color);
    margin: 0 0.25rem;
}


/* ==========================================================================
   Venue Section (Local do Evento)
   ========================================================================== */

.venue-section {
    padding: 5rem 1.5rem 4rem;
    background: #FFFFFF;
    text-align: center;
}

.venue-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.venue-photo,
.venue-map {
    min-height: 360px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(43, 27, 34, 0.12);
}

.venue-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue-photo.is-placeholder {
    box-shadow: none;
    border: 2px dashed rgba(212, 99, 138, 0.45);
    background: var(--accent-color);
}

.venue-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 100%;
    color: var(--secondary-color);
    font-weight: 600;
}

.venue-photo-placeholder i {
    font-size: 2.25rem;
}

.venue-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

.venue-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.venue-address {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    color: #55444D;
}

.venue-address i {
    color: var(--secondary-color);
}

.venue-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 9999px;
    background: var(--secondary-color);
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.venue-directions:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(212, 99, 138, 0.35);
}

.venue-directions:focus-visible {
    outline: 3px solid var(--text-dark);
    outline-offset: 3px;
}

@media (max-width: 800px) {
    .venue-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .venue-photo,
    .venue-map,
    .venue-map iframe {
        min-height: 260px;
    }
}

/* ==========================================================================
   Destination Section (Galeria de Parnaíba)
   ========================================================================== */

.destination-section {
    padding: 5rem 1.5rem 4rem;
    background: var(--accent-color);
    text-align: center;
}

.section-header {
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.section-tag {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

.section-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #55444D;
}

/* ==========================================================================
   [EM ESPERA] Estilos do Palco Cênico das Casinhas do Porto & Guará Interativo
   Comentados conforme solicitado para manter o Destino da main (não remover).
   --------------------------------------------------------------------------
.destination-container {
    max-width: 1140px;
    margin: 0 auto;
}

-- Palco Cênico das Casinhas do Porto e Guará --
.casinhas-stage-card {
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid rgba(228, 122, 159, 0.22);
    box-shadow: 0 16px 40px -10px rgba(43, 27, 34, 0.08);
    overflow: hidden;
    margin-bottom: 3.5rem;
    transition: box-shadow 0.3s ease;
}

.casinhas-stage-card:hover {
    box-shadow: 0 22px 50px -10px rgba(43, 27, 34, 0.12);
}

.casinhas-stage-header {
    padding: 2.25rem 2.5rem 1.5rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.stage-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(228, 122, 159, 0.12);
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.stage-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
}

.stage-desc {
    font-size: 1.02rem;
    line-height: 1.6;
    color: #55444D;
}

-- Cenário das Fachadas e Guará --
.casinhas-stage-scenery {
    position: relative;
    background: linear-gradient(180deg, #FFF8F2 0%, #FEECE5 60%, #FAD7CE 100%);
    padding: 3rem 2rem 0;
    border-top: 1px solid rgba(228, 122, 159, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

-- Guará Pousado / Observador --
.guara-perch-element {
    position: absolute;
    top: 1.5rem;
    left: 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    z-index: 5;
    animation: guaraFloat 5s ease-in-out infinite;
}

@keyframes guaraFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(-1.5deg);
    }
}

.guara-artwork {
    width: 105px;
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(180, 50, 40, 0.28));
    transition: transform 0.3s ease;
}

.guara-perch-element:hover .guara-artwork {
    transform: scale(1.1) rotate(2deg);
}

.guara-label {
    background: rgba(43, 27, 34, 0.85);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

-- Fileira de Casinhas Coloniais --
.casinhas-street {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.75rem;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 2;
    padding-bottom: 0.5rem;
}

.casinha-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 250px;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}

.casinha-card:hover {
    transform: translateY(-12px) scale(1.04);
}

.casinha-vector {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(43, 27, 34, 0.16));
    transition: filter 0.35s ease;
}

.casinha-card:hover .casinha-vector {
    filter: drop-shadow(0 20px 32px rgba(43, 27, 34, 0.26));
}

.casinha-caption {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(228, 122, 159, 0.2);
}

-- Linha d'Água do Rio Igaraçu --
.casinhas-waterfront {
    position: relative;
    width: 100%;
    height: 38px;
    background: linear-gradient(180deg, rgba(0, 134, 201, 0.35) 0%, rgba(0, 65, 211, 0.55) 100%);
    border-top: 2px solid rgba(255, 255, 255, 0.6);
    z-index: 3;
    overflow: hidden;
}

.water-wave {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(255, 255, 255, 0.25) 30px, rgba(255, 255, 255, 0.25) 60px);
    opacity: 0.6;
}

.water-wave.wave-1 {
    animation: waveSlide 12s linear infinite;
}

.water-wave.wave-2 {
    animation: waveSlide 8s linear infinite reverse;
    opacity: 0.4;
}

@keyframes waveSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-120px); }
}

-- Cards de Destaque da Experiência em Parnaíba --
.destination-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 4rem;
}

.dest-highlight-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(228, 122, 159, 0.2);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(43, 27, 34, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dest-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(228, 122, 159, 0.18);
    border-color: var(--primary-color);
}

.dest-icon-banner {
    position: relative;
    background: linear-gradient(135deg, #FAF4EB 0%, #FDF0E8 100%);
    padding: 2.25rem 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    border-bottom: 1px solid rgba(228, 122, 159, 0.12);
}

.dest-art-icon {
    max-height: 110px;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(43, 27, 34, 0.14));
    transition: transform 0.3s ease;
}

.dest-highlight-card:hover .dest-art-icon {
    transform: scale(1.08);
}

.dest-pill-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(228, 122, 159, 0.3);
}

.dest-card-body {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dest-category {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.dest-card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.65rem;
    line-height: 1.25;
}

.dest-card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #55444D;
}

-- Bloco da Galeria --
.phb-gallery-container {
    margin-top: 1rem;
    text-align: center;
}

.phb-gallery-title-wrap {
    margin-bottom: 2rem;
}

.phb-gallery-badge {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.phb-gallery-heading {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
}

-- Responsividade do Destino (Casinhas & Palco Cênico) --
@media (max-width: 860px) {
    .casinhas-stage-header {
        padding: 1.75rem 1.25rem 1rem;
    }

    .casinhas-stage-scenery {
        padding: 4.5rem 1rem 0;
    }

    .guara-perch-element {
        left: 50%;
        transform: translateX(-50%);
        top: 0.75rem;
    }

    .casinhas-street {
        gap: 0.75rem;
    }

    .casinha-vector {
        max-height: 140px;
    }

    .casinha-caption {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}
========================================================================== */
/* ==========================================================================
   Footer
   ========================================================================== */

#footer {
    background: var(--text-dark);
    color: rgba(249, 244, 232, 0.85);
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
    font-size: 0.95rem;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.footer-brand-emblem {
    margin-bottom: 0.15rem;
    opacity: 0.9;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.footer-brand-emblem:hover {
    opacity: 1;
    transform: scale(1.12);
}

.footer-emblem-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(228, 122, 159, 0.45));
}

.footer-cdc {
    margin: 0;
    line-height: 1.6;
}

#footer a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: color 0.2s ease;
}

#footer a:hover {
    color: #FFFFFF;
}

.footer-repo {
    margin: 0.25rem 0;
}

.footer-github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.3rem;
    background: rgba(249, 244, 232, 0.08);
    border: 1px solid rgba(249, 244, 232, 0.22);
    border-radius: 9999px;
    color: var(--accent-color) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-github-link i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.footer-github-link:hover {
    background: rgba(249, 244, 232, 0.18);
    border-color: rgba(249, 244, 232, 0.45);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.footer-github-link:hover i {
    transform: scale(1.15);
}

.footer-sub {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(249, 244, 232, 0.55);
}

/* ==========================================================================
   Responsividade
   ========================================================================== */

@media (max-width: 860px) {
    .hero-contour-right {
        width: 75vw;
        max-width: 380px;
        opacity: 0.38;
        right: -30px;
    }

    .hero-brand-lockup,
    .logo-wrapper {
        max-width: 92%;
        margin: 0.25rem auto 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding: 2.5rem 1rem 3.5rem;
    }

    .hero-contour-right {
        opacity: 0.28;
    }

    .location-badge {
        font-size: 0.85rem;
        padding: 0.35rem 1rem;
    }

    .social-badges {
        gap: 0.5rem;
    }

    .social-pill {
        padding: 0.45rem 1rem;
        font-size: 0.85rem;
    }

    .destination-section,
    .venue-section {
        padding: 3.5rem 1rem 2.5rem;
    }

    .event-detail {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
}

/* ==========================================================================
   Entradas Escalonadas (Staggered Reveal)
   ========================================================================== */

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate-1 {
    animation: heroReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.hero-animate-2 {
    animation: heroReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-animate-3 {
    animation: heroReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-animate-4 {
    animation: heroReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-animate-5 {
    animation: heroReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

/* Acessibilidade: Desativa animações se o usuário preferir menos movimento */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before,
    .hero-contour-right-svg,
    .badge-pin,
    .hero-logo,
    .hero-logo-horizontal,
    .edition-highlight,
    .hero-animate-1,
    .hero-animate-2,
    .hero-animate-3,
    .hero-animate-4,
    .hero-animate-5 {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .edition-highlight {
        background: none !important;
        -webkit-text-fill-color: var(--accent-color) !important;
    }
}

/* ==========================================================================
   Barra de Navegação Superior (Navbar Fixa e Responsiva - Issue #01)
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    background: rgba(43, 27, 34, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(228, 122, 159, 0.18);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.navbar.navbar-scrolled {
    background: rgba(43, 27, 34, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom-color: rgba(228, 122, 159, 0.35);
}

.navbar-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #FFFFFF;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-logo {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.navbar-brand-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

.navbar-edition {
    color: var(--primary-color);
    font-weight: 800;
}

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 2rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(249, 244, 232, 0.88);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.35rem 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #FFFFFF;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.navbar-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(249, 244, 232, 0.12);
    color: rgba(249, 244, 232, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-social-icon:hover {
    background: var(--primary-color);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-color);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(228, 122, 159, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-nav-cta:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 38px;
    background: rgba(249, 244, 232, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.navbar-toggle:hover {
    background: rgba(249, 244, 232, 0.2);
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar-toggle.toggle-active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.toggle-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.toggle-active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Offset para âncoras não ficarem sob a navbar fixa */
section[id], article[id] {
    scroll-margin-top: 80px;
}

@media (max-width: 860px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(43, 27, 34, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 2px solid var(--primary-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.5rem 1.5rem 2rem;
        margin-left: 0;
        display: none;
    }

    .navbar-menu.navbar-menu-open {
        display: flex;
        animation: menuDropdown 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes menuDropdown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 0.5rem 0;
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(249, 244, 232, 0.08);
    }

    .navbar-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
        padding-top: 0.5rem;
    }

    .navbar-social {
        width: 100%;
        gap: 1rem;
    }

    .btn-nav-cta {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
    }
}

/* ==========================================================================
   Seção Sobre a Python Nordeste (Issue #02)
   ========================================================================== */

.about-section {
    position: relative;
    background-color: #FFFFFF;
    color: var(--text-dark);
    padding: 5rem 1.5rem;
    border-bottom: 1px solid rgba(43, 27, 34, 0.06);
}

.about-container {
    max-width: 1140px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-top: 2.5rem;
}

.about-text-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-paragraph {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #403037;
}

.motto-highlight {
    display: inline-block;
    font-weight: 700;
    color: var(--text-dark);
    background: linear-gradient(135deg, rgba(228, 122, 159, 0.20) 0%, rgba(212, 99, 138, 0.12) 100%);
    padding: 0.12rem 0.6rem;
    margin: 0 0.15rem;
    border-radius: 8px;
    border: 1px solid rgba(228, 122, 159, 0.38);
    box-shadow: 0 2px 6px rgba(228, 122, 159, 0.10);
    letter-spacing: -0.01em;
    vertical-align: baseline;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.motto-highlight:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(228, 122, 159, 0.30) 0%, rgba(212, 99, 138, 0.20) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(228, 122, 159, 0.22);
    color: #1A0D14;
}

.about-quote-card {
    position: relative;
    background: #FAF6EF;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 1.75rem 1.5rem 2rem;
    border-radius: 0 16px 16px 0;
    margin-top: 0.75rem;
    overflow: hidden;
}

.quote-watermark {
    position: absolute;
    right: -20px;
    bottom: -25px;
    width: 130px;
    height: 130px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transform: rotate(6deg);
}

.quote-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert(18%) sepia(45%) saturate(700%) hue-rotate(300deg);
}

.quote-icon {
    position: relative;
    z-index: 1;
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.quote-text {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.45;
    margin-bottom: 0.35rem;
}

.quote-author {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-stats-column {
    display: flex;
    justify-content: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.stat-card {
    background: #FAF6EF;
    border: 1px solid rgba(228, 122, 159, 0.2);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 16px rgba(43, 27, 34, 0.04);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 24px rgba(228, 122, 159, 0.15);
}

.stat-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(228, 122, 159, 0.15);
    color: var(--secondary-color);
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 860px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-section {
        padding: 3.5rem 1.25rem;
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Página Dedicada do Código de Conduta (Issue #03)
   ========================================================================== */

.cdc-page {
    background: var(--accent-color);
    min-height: calc(100vh - 200px);
    padding-bottom: 5rem;
}

.cdc-hero-section {
    background: linear-gradient(145deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #FFFFFF;
    padding: 3.5rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(159, 53, 92, 0.35);
}

.cdc-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.cdc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(249, 244, 232, 0.18);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}

.cdc-back-btn:hover {
    background: rgba(249, 244, 232, 0.3);
    transform: translateX(-3px);
    color: #FFFFFF;
}

.cdc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFF2C0;
    margin-bottom: 0.85rem;
}

.cdc-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}

.cdc-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(249, 244, 232, 0.95);
}

.cdc-article-container {
    max-width: 860px;
    margin: -2.5rem auto 0;
    padding: 0 1.25rem;
    position: relative;
    z-index: 5;
}

/* Cartão de Alerta para Denúncia */
.cdc-alert-card {
    background: #FFFDF9;
    border: 2px solid #E69D45;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(43, 27, 34, 0.08);
    margin-bottom: 2.5rem;
}

.cdc-alert-card .alert-icon {
    font-size: 2rem;
    color: #D97706;
    background: #FEF3C7;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.cdc-alert-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: #92400E;
    margin-bottom: 0.5rem;
}

.cdc-alert-card p {
    color: #553C28;
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-cdc-report {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #D97706;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-cdc-report:hover {
    background: #B45309;
    transform: translateY(-2px);
}

.alert-note {
    display: block;
    margin-top: 0.75rem;
    color: #78350F;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Seções de Conteúdo do CDC */
.cdc-content-section {
    background: #FFFFFF;
    border: 1px solid rgba(43, 27, 34, 0.08);
    border-radius: 16px;
    padding: 2.25rem 2.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 16px rgba(43, 27, 34, 0.03);
}

.cdc-section-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(228, 122, 159, 0.2);
}

.heading-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-color);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
}

.cdc-content-section p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #403037;
    margin-bottom: 1rem;
}

.cdc-content-section p:last-child {
    margin-bottom: 0;
}

.cdc-checklist,
.cdc-prohibited-list {
    list-style: none;
    margin: 1.25rem 0 0.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cdc-checklist li,
.cdc-prohibited-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #37282F;
}

.cdc-checklist i {
    color: #10B981;
    font-size: 1.2rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.cdc-prohibited-list i {
    color: #EF4444;
    font-size: 1.2rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.cdc-scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.scope-card {
    background: #FAF6EF;
    border: 1px solid rgba(228, 122, 159, 0.15);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
}

.scope-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.scope-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.scope-card p {
    font-size: 0.85rem;
    line-height: 1.45;
    color: #634F58;
}

.cdc-steps-list {
    margin: 1rem 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.cdc-steps-list li {
    font-size: 1rem;
    line-height: 1.6;
    color: #37282F;
}

.cdc-credits-footer {
    text-align: center;
    background: #FFFFFF;
    border: 1px solid rgba(43, 27, 34, 0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.cdc-credits-footer p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #634F58;
    margin-bottom: 1.5rem;
}

.cdc-credits-footer a {
    color: var(--secondary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .cdc-hero-section {
        padding: 2.5rem 1rem 3.5rem;
    }

    .cdc-alert-card {
        flex-direction: column;
        padding: 1.25rem;
    }

    .cdc-content-section {
        padding: 1.5rem 1.25rem;
    }

    .cdc-scope-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Guará-vermelho: Animações de Voo, Flapping Realista e Revoada
   ========================================================================== */

/* Componente Genérico de Batimento de Asas (2 Frames Oficiais) */
.guara-flapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    transform-origin: center center;
}

.guara-flapper .guara-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    will-change: opacity, transform;
    pointer-events: none;
}

/* Ciclo de voo aerodinâmico: bate as asas 6 vezes, depois plana em downstroke */
.guara-flapper .frame-up {
    opacity: 0;
    animation: guaraWingUp 3.6s ease-in-out infinite;
}

.guara-flapper .frame-down {
    opacity: 1;
    animation: guaraWingDown 3.6s ease-in-out infinite;
}

@keyframes guaraWingUp {
    0%, 7%, 14%, 21%, 28%, 35% {
        opacity: 1;
        transform: translateY(-2px) scaleY(1.02);
    }
    3.5%, 10.5%, 17.5%, 24.5%, 31.5%, 38.5% {
        opacity: 0;
        transform: translateY(0) scaleY(1);
    }
    40%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
}

@keyframes guaraWingDown {
    0%, 7%, 14%, 21%, 28%, 35% {
        opacity: 0;
        transform: translateY(1px);
    }
    3.5%, 10.5%, 17.5%, 24.5%, 31.5%, 38.5% {
        opacity: 1;
        transform: translateY(0);
    }
    40%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 1. Bando de Guarás no Céu do Hero (3 Pássaros Oficiais) */
.hero-guara-flock {
    position: absolute;
    top: 10%;
    left: -220px;
    width: 250px;
    height: 140px;
    pointer-events: none;
    z-index: 3;
    animation: heroFlockCrossing 22s cubic-bezier(0.35, 0, 0.25, 1) infinite;
    animation-delay: 1.5s;
    filter: drop-shadow(0 10px 18px rgba(180, 40, 30, 0.22));
}

@keyframes heroFlockCrossing {
    0% {
        transform: translate3d(0, 0, 0) scale(0.8);
        opacity: 0;
    }
    4% {
        opacity: 0.95;
    }
    40% {
        transform: translate3d(calc(45vw), -30px, 0) scale(0.95);
        opacity: 1;
    }
    75% {
        transform: translate3d(calc(80vw), -55px, 0) scale(0.9);
        opacity: 0.95;
    }
    100% {
        transform: translate3d(calc(100vw + 280px), -80px, 0) scale(0.85);
        opacity: 0;
    }
}

.flock-bird {
    position: absolute;
    will-change: transform;
    animation: flockBobbing 3.6s ease-in-out infinite;
}

.bird-lead {
    width: 95px;
    height: 48px;
    top: 35px;
    left: 120px;
    z-index: 3;
}

.bird-wing-top {
    width: 76px;
    height: 38px;
    top: 0px;
    left: 45px;
    z-index: 2;
    animation-delay: -0.8s;
}

.bird-wing-bottom {
    width: 80px;
    height: 40px;
    top: 75px;
    left: 0px;
    z-index: 1;
    animation-delay: -1.6s;
}

@keyframes flockBobbing {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    20% {
        transform: translateY(-8px) rotate(-1.5deg);
    }
    55% {
        transform: translateY(4px) rotate(1deg);
    }
    80% {
        transform: translateY(-4px) rotate(-0.5deg);
    }
}

/* 2. Guará Interativo no Palco do Porto das Barcas */
.guara-perch-element {
    position: absolute;
    top: 1.5rem;
    left: 7%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    cursor: pointer;
    outline: none;
}

.guara-interactive-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guara-stage-flapper {
    width: 125px;
    height: 62px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    filter: drop-shadow(0 12px 22px rgba(180, 45, 35, 0.32));
    animation: guaraStageHover 4.5s ease-in-out infinite;
}

@keyframes guaraStageHover {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    45% {
        transform: translateY(-12px) rotate(-2deg);
    }
    75% {
        transform: translateY(-3px) rotate(1.5deg);
    }
}

.guara-perch-element:hover .guara-stage-flapper,
.guara-perch-element:focus-visible .guara-stage-flapper {
    transform: scale(1.15) translateY(-8px);
    filter: drop-shadow(0 18px 28px rgba(180, 45, 35, 0.45));
}

/* Balão de Fala do Guará */
.guara-speech-bubble {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    background: #FFFFFF;
    color: var(--text-dark);
    padding: 0.5rem 0.95rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(43, 27, 34, 0.18);
    border: 1px solid rgba(228, 122, 159, 0.25);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s ease;
    z-index: 20;
}

.guara-speech-bubble.speech-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.speech-tail {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #FFFFFF transparent transparent;
}

/* Botão Disparador da Revoada */
.btn-trigger-revoada {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #E84133;
    color: #FFFFFF;
    border: none;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(232, 65, 51, 0.35);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.btn-trigger-revoada:hover {
    background: #C92A1D;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 16px rgba(232, 65, 51, 0.48);
}

.btn-trigger-revoada:active {
    transform: translateY(0) scale(0.98);
}

/* 3. Camada Global da Revoada dos Guarás (Easter Egg) */
.revoada-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
    display: none;
}

.revoada-container.active {
    display: block;
}

.revoada-flyer {
    position: absolute;
    left: -180px;
    filter: drop-shadow(0 12px 24px rgba(200, 35, 25, 0.35));
    animation: revoadaFlight linear forwards;
    will-change: transform;
}

@keyframes revoadaFlight {
    0% {
        transform: translate3d(0, 0, 0) scale(0.85) rotate(-2deg);
        opacity: 0;
    }
    4% {
        opacity: 1;
    }
    50% {
        transform: translate3d(calc(50vw), calc(-1 * var(--sway-amount, 35px)), 0) scale(1) rotate(1deg);
        opacity: 1;
    }
    96% {
        opacity: 1;
    }
    100% {
        transform: translate3d(calc(100vw + 240px), calc(var(--sway-amount, 35px)), 0) scale(0.9) rotate(-1deg);
        opacity: 0;
    }
}

/* Penas e Partículas da Revoada */
.feather-particle {
    position: absolute;
    width: 8px;
    height: 18px;
    background: linear-gradient(135deg, #FF6B5B 0%, #E84133 100%);
    border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
    opacity: 0;
    pointer-events: none;
    animation: featherDrift ease-in-out forwards;
}

@keyframes featherDrift {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.85;
    }
    100% {
        transform: translate3d(80px, 160px, 0) rotate(140deg);
        opacity: 0;
    }
}

/* Toast de Notificação da Revoada */
.revoada-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(43, 27, 34, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(232, 65, 51, 0.45);
    border-radius: 16px;
    padding: 0.9rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    color: #FFFFFF;
    z-index: 100000;
    transform: translateY(120px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
}

.revoada-toast.toast-active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.revoada-toast .toast-icon {
    font-size: 1.5rem;
    color: #E84133;
    animation: featherPulse 2s ease-in-out infinite;
}

@keyframes featherPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(8deg); }
}

.revoada-toast .toast-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.revoada-toast .toast-title {
    font-size: 0.95rem;
    color: #FFFDF9;
    font-weight: 700;
}

.revoada-toast .toast-msg {
    font-size: 0.82rem;
    color: rgba(249, 244, 232, 0.8);
}

/* Responsividade do Guará no Mobile */
@media (max-width: 860px) {
    .hero-guara-flock {
        top: 6%;
        transform: scale(0.75);
    }

    .guara-perch-element {
        left: 50%;
        transform: translateX(-50%);
        top: 0.75rem;
    }

    .guara-stage-flapper {
        width: 105px;
        height: 52px;
    }

    .revoada-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* Acessibilidade: Desativa animações se o usuário preferir menos movimento */
@media (prefers-reduced-motion: reduce) {
    .hero-guara-flock,
    .guara-flapper .guara-frame,
    .guara-stage-flapper,
    .revoada-flyer,
    .feather-particle {
        animation: none !important;
        transform: none !important;
    }

    .guara-flapper .frame-up {
        display: none !important;
    }

    .guara-flapper .frame-down {
        opacity: 1 !important;
    }
}

/* ==========================================================================
   Guará Acompanhando a Navegação (Navbar Flight Stream & Companion)
   ========================================================================== */

/* 1. Linha do horizonte e Guará Piloto na Navbar */
.nav-guara-stream {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(249, 244, 232, 0.08);
    pointer-events: none;
    overflow: visible;
    z-index: 10;
}

.stream-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #FFFFFF 65%, var(--accent-color) 100%);
    box-shadow: 0 0 10px rgba(228, 122, 159, 0.8);
    transition: width 0.12s ease-out;
}

.stream-guara-pilot {
    position: absolute;
    top: -15px;
    left: 0%;
    width: 38px;
    height: 19px;
    pointer-events: auto;
    cursor: pointer;
    transform: translate(-50%, 0);
    transition: left 0.12s ease-out, transform 0.25s ease;
    filter: drop-shadow(0 2px 8px rgba(180, 45, 35, 0.5));
}

.stream-guara-pilot:hover {
    transform: translate(-50%, -4px) scale(1.15);
}

.nav-pilot-flapper {
    width: 100%;
    height: 100%;
}

/* Modo planeio suave quando a navegação para */
.stream-guara-pilot.is-gliding .nav-pilot-flapper .frame-up {
    opacity: 0 !important;
}

.stream-guara-pilot.is-gliding .nav-pilot-flapper .frame-down {
    opacity: 1 !important;
}

/* 2. Guará Companheiro Flutuante (Scroll Companion & Voltar ao Topo) */
.guara-nav-companion {
    position: fixed;
    right: 1.75rem;
    bottom: 1.75rem;
    z-index: 990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(0.85);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.35s;
    pointer-events: none;
}

.guara-nav-companion.companion-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.companion-bubble {
    background: rgba(43, 27, 34, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(228, 122, 159, 0.35);
    color: #FFFFFF;
    padding: 0.4rem 0.85rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.guara-nav-companion:hover .companion-bubble,
.guara-nav-companion:focus-within .companion-bubble {
    opacity: 1;
    transform: translateY(0);
}

.companion-section-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
}

.companion-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #FFFDF9;
}

.companion-flyer-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E47A9F 0%, #D4638A 50%, #B84972 100%);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 26px rgba(180, 45, 35, 0.42), inset 0 2px 6px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.companion-flyer-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 14px 32px rgba(180, 45, 35, 0.55), inset 0 2px 8px rgba(255, 255, 255, 0.4);
}

.companion-flyer-btn:active {
    transform: scale(0.95);
}

.companion-flapper {
    width: 44px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.companion-hover-hint {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #D4638A;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.companion-flyer-btn:hover .companion-hover-hint {
    transform: translateY(-2px);
}

/* Decolagem do Guará ao clicar para voar ao topo */
.companion-soaring {
    animation: guaraSoarFlight 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

@keyframes guaraSoarFlight {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    40% {
        transform: translateY(-50px) scale(1.25) rotate(-12deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) scale(1.4) rotate(-22deg);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .guara-nav-companion {
        right: 1rem;
        bottom: 1rem;
    }

    .companion-flyer-btn {
        width: 52px;
        height: 52px;
    }

    .companion-flapper {
        width: 38px;
        height: 20px;
    }

    .companion-bubble {
        display: none;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .stream-line,
    .stream-guara-pilot,
    .guara-nav-companion,
    .companion-flyer-btn {
        transition: none !important;
        animation: none !important;
    }
}


