/* ========================================
   RESPONSIVE DESIGN - REDESIGN
   Desenvolvido por MagoWeb
======================================== */

/* Tablets e dispositivos médios (até 991px) */
@media (max-width: 991px) {

    /* Top Bar */
    .top-bar {
        display: none;
    }

    /* Header */
    .main-nav {
        padding: 0.7rem 0;
    }

    .logo-name {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    /* Hero Campaign */
    .hero-campaign {
        padding: 50px 20px 60px;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-slogan h2 {
        font-size: 1.4rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

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

    .stat-label {
        font-size: 0.78rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-social {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero Image */
    .hero-image {
        order: -1;
    }

    .image-frame {
        max-width: 320px;
    }

    .hero-credential {
        display: none;
    }

    .image-glow {
        filter: blur(40px);
    }

    .image-ring {
        display: none;
    }

    .hero-particles .particle {
        display: none;
    }

    .hero-content {
        text-align: center;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle,
    .hero-cargo {
        justify-content: center;
    }

    .hero-divider {
        margin-left: auto;
        margin-right: auto;
    }

    /* Campaign Numbers */
    .campaign-numbers {
        margin-top: -60px;
        padding: 30px 20px 40px;
    }

    /* Section Headers */
    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    /* Sobre Preview */
    .sobre-card {
        min-height: auto;
    }

    .sobre-photo {
        position: relative;
        height: 400px;
    }

    .sobre-text {
        padding: 2rem;
        max-width: 100%;
        min-height: auto;
        background: var(--white);
    }

    .sobre-text p {
        font-size: 0.93rem;
    }
    
    .sobre-highlights {
        background: var(--bg-subtle);
        backdrop-filter: none;
    }

    /* Propostas */
    .propostas-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.2rem;
    }

    /* Notícias */
    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    /* Eventos */
    .evento-card {
        flex-direction: column;
        gap: 1.2rem;
    }

    .evento-data {
        width: auto;
        max-width: 90px;
        align-self: flex-start;
    }

    /* Depoimentos */
    .depoimentos-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Sobre Page */
    .sobre-grid {
        grid-template-columns: 1fr;
    }

    .visao-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }
}

/* Mobile (até 767px) */
@media (max-width: 767px) {

    /* LGPD Banner Mobile */
    .lgpd-content {
        flex-direction: column;
        padding: 1rem 16px;
        gap: 1rem;
    }

    .lgpd-text {
        min-width: auto;
    }

    .lgpd-text p {
        font-size: 0.82rem;
    }

    .lgpd-actions {
        width: 100%;
    }

    .lgpd-btn {
        flex: 1;
        justify-content: center;
        padding: 0.7rem 1rem;
    }

    /* Back to Top Mobile */
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 18px;
        left: 18px;
        border-radius: 12px;
    }

    /* Container */
    .container {
        padding: 0 16px;
    }

    /* Logo */
    .logo-icon svg {
        width: 35px;
        height: 35px;
    }

    .logo-name {
        font-size: 1rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    /* Nav Menu Mobile */
    .nav-menu {
        width: 100%;
        right: -100%;
    }

    /* Hero Campaign */
    .hero-campaign {
        padding: 35px 16px 100px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-cargo {
        font-size: 0.92rem;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 0.35rem 0.9rem;
    }

    .hero-stats {
        gap: 1rem;
    }

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

    .hero-slogan h2 {
        font-size: 1.2rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Hero Image */
    .image-frame {
        max-width: 100%;
    }

    .image-badge {
        bottom: 10px;
        right: 10px;
        padding: 0.6rem 1rem;
        font-size: 0.78rem;
    }

    /* Section Spacing */
    section {
        padding: 50px 16px;
    }

    .sobre-preview,
    .propostas-preview,
    .noticias-preview,
    .eventos-preview,
    .depoimentos-preview,
    .cta-section {
        padding: 50px 16px;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .section-label {
        font-size: 0.75rem;
    }

    .section-label::before,
    .section-label::after {
        width: 14px;
    }

    /* Sobre */
    .sobre-photo {
        height: 280px;
    }

    .sobre-text {
        padding: 1.5rem;
    }

    .sobre-highlights {
        padding: 1rem;
    }

    .highlight-item {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    /* Propostas */
    .propostas-grid {
        grid-template-columns: 1fr;
    }

    .proposta-card {
        padding: 1.5rem;
    }

    .proposta-icon {
        font-size: 2.5rem;
    }

    .proposta-card h3 {
        font-size: 1.05rem;
    }

    /* Notícias */
    .noticia-imagem {
        height: 190px;
    }

    .noticia-content {
        padding: 1.2rem;
    }

    .noticia-content h3 {
        font-size: 1rem;
    }

    /* Eventos */
    .evento-card {
        padding: 1.4rem;
        gap: 1rem;
    }

    .evento-data {
        padding: 1rem 0.8rem;
        min-width: 65px;
    }

    .evento-data .dia {
        font-size: 1.8rem;
    }

    .evento-data .mes {
        font-size: 0.78rem;
    }

    .evento-info h3 {
        font-size: 1.05rem;
    }

    .evento-local,
    .evento-horario {
        font-size: 0.85rem;
    }

    /* Depoimentos */
    .depoimento-card {
        padding: 2rem 1.5rem;
    }

    .depoimento-quote {
        font-size: 3.5rem;
        left: 15px;
    }

    .depoimento-texto {
        font-size: 0.92rem;
    }

    .depoimento-autor {
        font-size: 0.95rem;
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: 1.6rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-main {
        padding: 40px 16px 30px;
    }

    .footer-col h4 {
        font-size: 0.8rem;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
        bottom: 18px;
        right: 18px;
        border-radius: 14px;
    }

    /* Timeline */
    .gestao-timeline::before {
        left: 20px;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .timeline-content {
        padding: 1.4rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }
}

/* Mobile Extra Small (até 480px) */
@media (max-width: 480px) {

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-cargo {
        font-size: 0.88rem;
    }

    .hero-slogan h2 {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.2rem 0;
    }

    .stat-item {
        text-align: center;
        width: 100%;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
    }

    .hero-social {
        font-size: 0.8rem;
    }

    .hero-social a {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
    }

    /* Numbers */
    .number-value {
        font-size: 2rem;
    }

    .number-label {
        font-size: 0.82rem;
    }

    /* Section Title */
    .section-title {
        font-size: 1.5rem;
    }

    /* Buttons */
    .btn-hero-primary,
    .btn-hero-secondary,
    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 0.8rem 1.2rem;
        font-size: 0.88rem;
    }

    /* Cards */
    .proposta-card,
    .noticia-card,
    .evento-card,
    .depoimento-card {
        padding: 1.2rem;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.4rem;
    }

    .cta-content p {
        font-size: 0.88rem;
    }

    /* Page Hero */
    .page-hero {
        padding: 40px 16px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {

    .hero-campaign {
        padding: 25px 16px 70px;
    }

    .hero-grid {
        gap: 25px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }

    .stat-item {
        text-align: left;
    }
}

/* Tablets Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {

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

    .hero-title {
        font-size: 3.2rem;
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .propostas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .depoimentos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Tablets e Small Desktops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {

    .hero-title {
        font-size: 3.8rem;
    }

    .container {
        max-width: 960px;
    }
}

/* Print Styles */
@media print {

    .top-bar,
    .mobile-toggle,
    .btn-nav-volunteer,
    .whatsapp-float,
    .hero-buttons,
    .cta-section,
    .newsletter-form,
    .back-to-top,
    .lgpd-banner,
    .skip-nav {
        display: none !important;
    }

    .main-header {
        position: relative;
        box-shadow: none;
        backdrop-filter: none;
    }

    body {
        font-size: 11pt;
        line-height: 1.5;
        color: #000;
    }

    .hero-campaign {
        background: white !important;
        color: black !important;
        page-break-after: always;
    }

    .hero-title,
    .section-title {
        color: black !important;
    }

    a {
        text-decoration: underline;
    }

    .proposta-card,
    .noticia-card,
    .evento-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility - Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-credential {
        animation: none;
    }

    .particle {
        animation: none;
        display: none;
    }

    .image-glow {
        animation: none;
    }

    .image-ring {
        animation: none;
    }

    .badge-dot {
        animation: none;
    }

    .fade-up,
    .fade-left,
    .fade-right,
    .scale-in {
        opacity: 1;
        transform: none;
    }

    .hero-title span {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {

    .nav-link {
        border: 2px solid transparent;
    }

    .nav-link:hover,
    .nav-link.active {
        border-color: currentColor;
    }

    .btn {
        border: 2px solid currentColor;
    }

    .proposta-card,
    .noticia-card,
    .evento-card,
    .depoimento-card {
        border: 2px solid var(--text-color);
    }
}