/* ==============================
   RESET + BASE
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7D0909;
    --primary-dark: #5a0606;
    --secondary: #FFCD1B;
    --accent: #FF3702;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    /*  scroll-behavior: smooth; */
    font-size: 1.2rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}



/* Efeito de transição suave em tudo */
* {
    transition: all 0.2s ease;
}

/* Destaque nos links quando clica */
a:active {
    opacity: 0.7;
}

/* Scrollbar mais bonita */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #7D0909;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a0606;
}

/* ==============================
   TIPOGRAFIA
============================== */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

/* ==============================
   NAVBAR
============================== */
#navbar {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 1rem 2rem;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 2rem;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.25rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

nav a:hover {
    color: var(--accent);
}

nav a.active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent);
    bottom: 0;
    left: 0;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

/* ==============================
   MENU MOBILE
============================== */
.menu-toggle {
    font-size: 1.75rem;
    cursor: pointer;
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    padding: 0.5rem;
    transition: var(--transition);
    z-index: 2500;
}

.menu-toggle:hover {
    color: var(--accent);
}

body.menu-open {
    overflow: hidden;
}

/* ==============================
   HERO
============================== */
.hero {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #ffffff;
}

.logo {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
    aspect-ratio: 1200 / 675;
}

.subtitle {
    max-width: 600px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* ==============================
   BOTÕES
============================== */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1.5rem;
}

.btn:active {
    transform: scale(0.96);
}

.primary {
    background: var(--primary);
    color: var(--white);
}

.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.highlight {
    background: var(--secondary);
    color: var(--text-dark);
}

.highlight:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==============================
   SEÇÃO PROJETO - MOD #004
============================== */

#projeto {
    background: #fff5f0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajuste para garantir que o conteúdo fique centralizado verticalmente */
#projeto .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50vh;
}

/* Ajuste da cor do texto para contraste (amarelo escuro) */
#projeto h2,
#projeto p,
#projeto .stat-number,
#projeto .stat-label {
    color: #2c2c2c;
    /* Texto escuro para contraste com fundo amarelo */
}

/* Opcional: ajustar a linha decorativa do título */
#projeto h2::after {
    background: #7D0909;
    /* Vermelho principal para destaque */
}

/* ==============================
   SEÇÃO EVENTOS - MOD #005 (AMARELO)
============================== */
/* ==============================
   SEÇÃO EVENTOS - MOD #005 (ALTURA AUTOMÁTICA)
============================== */

#eventos {
    background: #FFCD1B;
    padding: 10rem 0;
    /* Sem min-height fixa */
}

#eventos h2,
#eventos .section-subtitle {
    color: #5a0606;
}

#eventos h2::after {
    background: #FFCD1B;
}

#eventos .card {
    background: #ffffff;
    color: #333333;
}

#eventos .card h3 {
    color: #7D0909;
}

/* ==============================
   SEÇÕES
============================== */
.section {
    padding: 10rem 0;
}

.section:nth-child(even) {
    background: var(--gray-light);
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.section p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem auto;
    color: var(--text-light);
}

/* ==============================
   STATS
============================== */
.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==============================
   GRID GERAL
============================== */
.grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==============================
   EVENTOS
============================== */
.eventos {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;              /* ← JÁ DEVE TER */
    flex-direction: column;     /* ← JÁ DEVE TER */
    position: relative;
    overflow: visible;          /* ← ALTERE PARA visible */
}

.eventos .card {
    min-height: 100%;
}

.eventos {
    align-items: stretch;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0.5rem 0;
}

.event-date {
    display: inline-block;
    font-size: 1rem;
    color: var(--accent);
    font-weight: 700;
    /*margin-top: 0.1rem;*/
    margin-bottom: 0.5rem;
}

.event-name {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--primary-dark);
    font-weight: 700;
    /*margin-top: 0.1rem;*/
    margin-bottom: 0.5rem;
}

/* ==============================
   CTA
============================== */
.cta {
    background: var(--primary);
    color: var(--white);
    padding: 10rem 0;
    text-align: center;
}

.cta h2 {
    color: var(--white);
}

.cta h2::after {
    background: var(--secondary);
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

/* ==============================
   EDITAL INFO
============================== */
.edital-info {
    display: flex;
    justify-content: center;
    gap: 0.1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.info-item {
    padding: 0.75rem 1.5rem;
    background: var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
}

.info-item strong {
    color: var(--primary);
}

/* ==============================
   TEXTOS CARDS
============================== */
.textos {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.text-card {
    background: linear-gradient(135deg, var(--primary) 0%, #a52a0a 100%);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    transform: rotate(var(--rotation, 0deg));
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.text-card:nth-child(odd) {
    --rotation: -2deg;
}

.text-card:nth-child(even) {
    --rotation: 2deg;
}

.text-card:hover {
    transform: scale(1.02) rotate(0deg);
    box-shadow: var(--shadow-lg);
}

.text-preview {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #111 !important;
    margin: 0 auto 0.2rem auto !important;
}

.read-more {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==============================
   MODAL
============================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: 20px;
    text-align: left;
    position: relative;
    animation: slideUp 0.3s ease;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-light);
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.modal-title {
    margin-bottom: 1rem;
    color: var(--primary);
}

.modal-content p {
    line-height: 1.6;
    color: var(--text-dark);
}

/* ==============================
   EQUIPE
============================== */
.equipe {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.team-photo-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.team-card h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.team-card p {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.team-bio {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ==============================
   FOOTER
============================== */
footer {

    position: relative;
    z-index: 6;
    background: #111;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}



.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logos {
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.footer-info {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
}

.footer-copy {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-contact {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.social-links {
    margin: 1rem 5rem 0.5rem 5rem;
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* ==============================
   ANIMAÇÕES
============================== */
.fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.15s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
   RESPONSIVIDADE
============================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-container {
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        z-index: 2400;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        padding: 10rem;
    }

    nav.active {
        opacity: 1;
        pointer-events: auto;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .hero {
        padding-top: 5rem;
        min-height: 80vh;
    }

    .subtitle {
        font-size: 1rem;
    }

    .stats {
        gap: 1.5rem;
    }

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

    .edital-info {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .textos {
        grid-template-columns: 1fr;
    }

    .text-card {
        transform: rotate(0deg) !important;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1.25rem;
    }

    .card {
        padding: 0.75rem;
    }

    .equipe {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   ACESSIBILIDADE
============================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/*:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}*/

/* ==============================
   PRINT STYLES
============================== */
@media print {

    #navbar,
    .cta,
    footer,
    .modal {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}


/* ==============================
   BOTÃO SAIBA MAIS NOS CARDS
============================== */
.btn-saiba {
    background: transparent;
    border: none;
    color: var(--accent, #FF3702);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    margin-top: auto;
    padding: 0.5rem 0;
    transition: var(--transition);
    display: inline-block;
}

.btn-saiba:hover {
    color: var(--primary, #7D0909);
    transform: translateX(4px);
}

/* ==============================
   POPUP DOS EVENTOS - CORRIGIDO
============================== */

.event-popup {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-overlay {
    position: absolute;
    inset: 0;
}

.popup-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 150vh;
    background: white;
    overflow-y: auto;
    z-index: 2;
}

.popup-layout {
    display: flex;
    width: 100%;
}

.popup-image {
    width: 45%;
    flex-shrink: 0;
}

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

.popup-info {
    flex: 1;
    padding: 25px;
}

.popup-info h3 {
    font-size: 1.8rem;
    color: #7D0909;
    margin-bottom: 15px;
}

.popup-info p {
    margin-bottom: 12px;
    line-height: 1.5;
}

.popup-description {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.popup-description strong {
    display: block;
    margin-bottom: 10px;
    color: #7D0909;
}

/* Scroll apenas no desktop */
.scroll-area {
    overflow-y: auto;
    max-height: 310px;
    padding-right: 10px;
}

/* Scrollbar personalizada */
.scroll-area::-webkit-scrollbar {
    width: 6px;
}

.scroll-area::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.scroll-area::-webkit-scrollbar-thumb {
    background: #7D0909;
    border-radius: 3px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #ffcd1b;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #dcb218;
    transform: scale(1.05);
}

/* Travar scroll da página quando popup aberto */
body.popup-open {
    overflow: hidden;
}

/* ==============================
   POPUP MOBILE - TELA INTEIRA
============================== */
@media (max-width: 768px) {
    .event-popup {
        align-items: stretch;
    }

    .popup-container {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
        overflow-y: auto;
        padding: 2vh;
    }

    .popup-layout {
        flex-direction: column;
        height: 100%;
    }

    .popup-image {
        width: 100%;

        min-height: 200px;
    }

    .popup-image img {
        height: 100%;
        object-fit: cover;
    }

    .popup-info {
        flex: 1;
        padding: 20px;
        overflow-y: visible;
        /* SEM scroll - texto inteiro visível */
    }

    .popup-info h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    /* Remove o scroll da descrição no mobile */
    .scroll-area {
        overflow-y: visible;
        max-height: none;
        margin-top: 10px;
        padding-right: 0;
    }

    .popup-description {
        margin-top: 15px;
        padding-top: 12px;
    }

    .popup-close {
        position: fixed;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 24px;
        background: #ffcd1b(125, 9, 9, 0.9);
    }
}

@media (max-width: 480px) {
    .popup-image {
        width: 100%;

    }

    .popup-info {
        padding: 15px;
    }

    .popup-info h3 {
        font-size: 1.3rem;
    }

    .popup-info p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .popup-description {
        margin-top: 10px;
        padding-top: 10px;
    }

    .popup-description strong {
        font-size: 0.9rem;
    }
}

/* ==============================
   IMAGENS STICKY (MOD #002)
============================== */

/* Container que envolve a imagem sticky */
.sticky-image-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 750px;
    /* Altura desejada para a imagem */
    overflow: hidden;
}

/* Imagem com comportamento sticky */
.sticky-image {
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 0;
    width: 100%;
    height: 750px;
    /* Mesma altura do container */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    will-change: transform;
}

/* Overlay opcional para escurecer a imagem (ajuda na legibilidade) */
.sticky-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Escurecimento sutil - ajustável */
    pointer-events: none;
}

/* Garantir que as seções tenham z-index maior para sobrepor */
.section {
    position: relative;
    z-index: 2;
    background: #ffffff;
    /* Mesma cor do fundo das seções */
}

/* Ajuste para seções com fundo alternado */
.section:nth-child(even) {
    background: var(--gray-light, #f5f5f5);
    z-index: 2;
}

.sticky-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Responsividade - ajustar altura em telas menores */
@media (max-width: 768px) {

    .sticky-image-container,
    .sticky-image {
        height: 300px;
        /* Altura menor em mobile */
    }
}

@media (max-width: 480px) {

    .sticky-image-container,
    .sticky-image {
        height: 250px;
        /* Altura ainda menor em celular pequeno */
    }
}

.footer-section {
    position: relative;
    z-index: 5;
    background: var(--secondary) !important;
    padding: 6rem 0;
    color: var(--text-dark);
    padding: 3rem 2rem;
    text-align: left;
}

.footer-equipe {
    margin: 1rem 5rem 0.5rem 5rem;
    text-align: left;
    font-size: 0.875rem;
}

.footer-equipe h3 {
    margin: 1rem 5rem 0.5rem 5rem;
    color: var(--primary);
    font-size: 1rem;
}

.footer-equipe p {
    margin: 0 5rem 0.1rem 5rem;
    max-width: 100%;
    text-align: left;
    font-size: 0.875rem;
}

.footer-institucional {
    margin: 0 5rem 0.1rem 5rem;
    text-align: left;
    font-size: 0.95rem;
}

.footer-institucional p {
    margin: 0 5rem 0.1rem 5rem;
    margin-bottom: 0.1rem;
    text-align: left;
    font-size: 0.95rem;
}

.footer-institucional h3 {
    margin: 0 5rem 0.1rem 5rem;
    color: var(--primary);
    font-size: 0.95rem;
}

.footer-institucional a {
    color: #7D0909;
    text-decoration: none;
}

.footer-institucional a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-section {
        padding: 1rem 1rem;
        text-align: center;
    }

    .footer-equipe,
    .footer-institucional {
        margin: 0 0 1rem 0;
        text-align: center;
    }
    
    .footer-equipe p{
        margin: 0 0 1rem 0;
        text-align: center;
    }
    .footer-institucional p{
        margin: 0 0 1rem 0;
        text-align: center;
    }
    .footer-equipe h3,
    .footer-institucional h3 {
        font-size: 1.25rem;
    }
    .social-links {
    margin: 1rem 0 1rem 0;
    display: flex;
    justify-content: center;
}
}
/* ==============================
   EQUIPE - COM SCROLL NAS DESCRIÇÕES
============================== */

.team-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    flex-shrink: 0;
}

.team-card h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.team-card p {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
    max-height: 140px;
    overflow-y: auto;
    padding-right: 6px;
    display: block;
    margin-top: auto;
}

/* Scrollbar personalizada para o card */
.team-bio::-webkit-scrollbar {
    width: 4px;
}

.team-bio::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.team-bio::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .team-card {
        min-height: 300px;
        padding: 1.25rem;
    }

    .team-photo {
        width: 100px;
        height: 100px;
    }

    .team-bio {
        max-height: 70px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .team-card {
        min-height: auto;
    }

    .team-bio {
        max-height: none;
        /* No celular pequeno, mostra tudo sem scroll */
        overflow-y: visible;
    }
}

/* ==============================
   SEÇÃO EQUIPE - FUNDO PERSONALIZADO
============================== */

#equipe {
    background-color: #fff5f0 !important;
}



/* ==============================
Tarja sobrepondo o card
============================== */

/* ============================================================
   TARJA CENTRALIZADA (sem cortes)
   ============================================================ */

.tarja-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    /* Remove qualquer overflow que possa cortar */
    overflow: visible !important;
}

.tarja-realizado {
    background: #009029 ;
    color: #1a1a1a;
    padding: 12px 40px;
    transform: rotate(-20deg) scale(1);
    text-align: center;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 220px;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* GARANTE QUE NÃO CORTE */
    overflow: visible !important;
}

.tarja-titulo {
    display: block;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    color: #ffffff;
}

.tarja-subtitulo {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-top: 4px;
    color: #ffffff;
}

/* Efeito hover */
.tarja-link:hover .tarja-realizado {
    transform: rotate(-20deg) scale(1.08);
    box-shadow: 0 8px 30px rgba(255, 205, 27, 0.6);
}

/* ============================================================
   RESPONSIVO DA TARJA
   ============================================================ */

@media (max-width: 768px) {
    .tarja-realizado {
        padding: 10px 28px;
        min-width: 160px;
        transform: rotate(-15deg) scale(1);
    }
    
    .tarja-titulo {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }
    
    .tarja-subtitulo {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .tarja-realizado {
        padding: 8px 20px;
        min-width: 130px;
        transform: rotate(-12deg) scale(1);
    }
    
    .tarja-titulo {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
    
    .tarja-subtitulo {
        font-size: 0.5rem;
    }
}
/* ============================================================
   TEXTOS - CARDS COM LINK PARA PDF
   ============================================================ */

.text-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Rotação alternada */
.text-card-link:nth-child(odd) .text-card {
    --rotation: -2deg;
    transform: rotate(-2deg);
}

.text-card-link:nth-child(even) .text-card {
    --rotation: 2deg;
    transform: rotate(2deg);
}

.text-card-link .text-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffcd1b;
    color: var(--white);
    padding: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.text-card-link:hover .text-card {
    transform: rotate(0deg) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.text-card-link .read-more {
    display: inline-block;
    font-weight: 700;
    color: #ffffff  ;
    transition: all 0.3s ease;
}

.text-card-link:hover .read-more {
    transform: translateX(4px);
    color: #ffffff;
}