/* Reset e Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF8356;      /* Laranja suave - Cor de destaque */
    --secondary-color: #3E2E29;    /* Marrom escuro - Cor institucional */
    --light-bg: #FAF9F7;           /* Cinza claro - Fundo neutro */
    --text-secondary: #4E4E4E;     /* Cinza médio - Texto secundário */
    --white: #FFFFFF;
    --black: #111111;
    --shadow: rgba(62, 46, 41, 0.1);
    --shadow-hover: rgba(62, 46, 41, 0.2);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Seções */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Cabeçalho */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Menu hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Seção Hero */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1538108149393-fbbd81895907?ixlib=rb-4.0.3&auto=format&fit=crop&w=2128&q=80') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: var(--white);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 131, 86, 0.3);
}

.cta-button:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Seção Quem Somos */
.quem-somos {
    background: var(--light-bg);
    padding: 80px 0;
}

.quem-somos-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.quem-somos-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.lei-marco {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 20px var(--shadow);
}

.lei-marco h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lei-marco h3 i {
    color: var(--primary-color);
}

.lei-beneficios {
    list-style: none;
    margin: 1rem 0;
}

.lei-beneficios li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.lei-beneficios li i {
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.quem-somos-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quem-somos-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.quem-somos-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.quem-somos-image:hover img {
    transform: scale(1.05);
}

.quem-somos-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Seção Atuação */
.atuacao {
    background: var(--white);
    padding: 80px 0;
}

.atuacao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.atuacao-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

.atuacao-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.atuacao-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.atuacao-card .card-content {
    padding: 2rem;
}

.atuacao-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.atuacao-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Estilos específicos para o card de Projetos Regionais com logo */
.atuacao-card.projetos-regionais .card-image-container {
    position: relative;
    overflow: hidden;
}

.atuacao-card.projetos-regionais .card-image-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.logo-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.card-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.atuacao-card.projetos-regionais:hover .logo-overlay {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 1);
}

.atuacao-card.projetos-regionais:hover .card-image-container img {
    transform: scale(1.05);
}

/* Responsividade para a logo */
@media (max-width: 768px) {
    .logo-overlay {
        top: 10px;
        right: 10px;
        padding: 6px;
    }
    
    .card-logo {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .logo-overlay {
        top: 8px;
        right: 8px;
        padding: 5px;
    }
    
    .card-logo {
        width: 30px;
        height: 30px;
    }
}

/* Ajuste para dispositivos touch */
.touch-device .atuacao-card.projetos-regionais:active .logo-overlay {
    transform: scale(0.95);
}

/* Seção Transparência */
.transparencia {
    background: var(--light-bg);
    padding: 80px 0;
}

.transparencia-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.transparencia-text {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.lei-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
    text-align: left;
}

.lei-info h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.lei-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.documentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.documento-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 5px 20px var(--shadow);
}

.documento-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.documento-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.documento-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.documento-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-modal {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-modal:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Modais */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.modal-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--primary-color);
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-footer {
    text-align: center;
}

.download-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Seção Contato */
.contato {
    background: var(--white);
    padding: 80px 0;
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contato-info {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
}

.contato-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contato-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contato-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contato-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contato-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.contato-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
}

.contato-form h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--white);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Mapa */
.mapa {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.mapa iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* Rodapé */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.footer-section p strong {
    color: var(--white);
    font-weight: 600;
}

.footer-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsividade Completa */

/* Tablets e telas médias (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .quem-somos-content {
        gap: 3rem;
    }

    .atuacao-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .documentos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px var(--shadow);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .quem-somos-content,
    .contato-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .quem-somos-sidebar {
        order: -1;
    }

    .quem-somos-image {
        margin-bottom: 1rem;
    }

    .quem-somos-image img {
        height: 200px;
    }

    .quem-somos-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .lei-marco {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .lei-marco h3 {
        font-size: 1.3rem;
    }

    .lei-beneficios li {
        font-size: 0.9rem;
    }

    .atuacao-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .atuacao-card img {
        height: 180px;
    }

    .atuacao-card .card-content {
        padding: 1.5rem;
    }

    .atuacao-card h3 {
        font-size: 1.2rem;
    }

    .transparencia-content {
        padding: 0 1rem;
    }

    .lei-info {
        padding: 1.5rem;
    }

    .documentos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .documento-card {
        padding: 1.5rem;
    }

    .documento-card i {
        font-size: 2.5rem;
    }

    .contato-info,
    .contato-form {
        padding: 1.5rem;
    }

    .contato-item {
        margin-bottom: 1rem;
    }

    .contato-item h4 {
        font-size: 1rem;
    }

    .contato-item p {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
    }

    .submit-btn {
        padding: 12px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-body {
        font-size: 0.9rem;
    }
}

/* Smartphones grandes (480px - 768px) */
@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .quem-somos-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .atuacao-card img {
        height: 160px;
    }

    .atuacao-card .card-content {
        padding: 1.2rem;
    }

    .documento-card {
        padding: 1.2rem;
    }

    .documento-card i {
        font-size: 2rem;
    }

    .documento-card h4 {
        font-size: 1.1rem;
    }

    .contato-content {
        gap: 1.5rem;
    }

    .mapa iframe {
        height: 250px;
    }
}

/* Smartphones pequenos (até 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 0.8rem 0;
    }

    .logo-img {
        height: 40px;
    }

    .hamburger {
        transform: scale(0.8);
    }

    .nav-menu {
        top: 70px;
        padding: 1.5rem 0;
    }

    .hero {
        padding: 100px 0 50px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    .quem-somos-text p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .quem-somos-image img {
        height: 180px;
    }

    .lei-marco {
        padding: 1.2rem;
    }

    .lei-marco h3 {
        font-size: 1.1rem;
    }

    .lei-beneficios li {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .stat-item {
        padding: 1.2rem 0.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .atuacao-card img {
        height: 140px;
    }

    .atuacao-card .card-content {
        padding: 1rem;
    }

    .atuacao-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .atuacao-card p {
        font-size: 0.9rem;
    }

    .transparencia-content {
        padding: 0;
    }

    .lei-info {
        padding: 1.2rem;
    }

    .lei-info h4 {
        font-size: 1.1rem;
    }

    .lei-info p {
        font-size: 0.9rem;
    }

    .transparencia-text {
        font-size: 1rem;
    }

    .documento-card {
        padding: 1rem;
    }

    .documento-card i {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .documento-card h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .documento-card p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .btn-modal {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .contato-info,
    .contato-form {
        padding: 1.2rem;
    }

    .contato-info h3,
    .contato-form h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .contato-item {
        margin-bottom: 0.8rem;
    }

    .contato-item i {
        font-size: 1rem;
    }

    .contato-item h4 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .contato-item p {
        font-size: 0.8rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 8px;
        font-size: 0.9rem;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .submit-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .mapa {
        margin-top: 1.5rem;
    }

    .mapa iframe {
        height: 200px;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-logo {
        height: 50px;
        margin-bottom: 0.8rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-section p {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .social-links {
        gap: 0.8rem;
        margin-top: 0.8rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }

    .modal-content {
        margin: 5% auto;
        width: 98%;
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-body {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .close {
        font-size: 1.5rem;
    }

    .download-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* Smartphones muito pequenos (até 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .atuacao-card img {
        height: 120px;
    }

    .documento-card i {
        font-size: 1.5rem;
    }

    .contato-item i {
        font-size: 0.9rem;
    }

    .social-link {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Landscape em smartphones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section {
        padding: 40px 0;
    }

    .modal-content {
        margin: 2% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll suave para navegadores que não suportam */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Estilos específicos para dispositivos móveis */
.mobile-device {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mobile-device input,
.mobile-device textarea {
    font-size: 16px !important; /* Previne zoom no iOS */
}

.ios-device {
    -webkit-overflow-scrolling: touch;
}

.touch-device .atuacao-card:hover,
.touch-device .stat-item:hover,
.touch-device .documento-card:hover {
    transform: none; /* Remove hover em dispositivos touch */
}

.touch-device .atuacao-card:active,
.touch-device .stat-item:active,
.touch-device .documento-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Melhorias para modais em dispositivos móveis */
.modal-open {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.modal-content {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-open .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Otimizações para performance */
.atuacao-card,
.stat-item,
.documento-card {
    will-change: transform, opacity;
}

/* Melhorias de acessibilidade */
.nav-link:focus,
.cta-button:focus,
.btn-modal:focus,
.submit-btn:focus,
.download-btn:focus,
.social-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Estilos para elementos lazy loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Melhorias para orientação landscape em mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .modal-content {
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* Estilos para dispositivos com notch (iPhone X+) */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Melhorias para contraste em modo escuro */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background: var(--white);
        color: var(--secondary-color);
    }
}

/* Redução de movimento para usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Melhorias para impressão */
@media print {
    .header,
    .hamburger,
    .modal,
    .footer {
        display: none !important;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .atuacao-card,
    .documento-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* Melhorias para os botões dos modais */
.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.modal-actions .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-actions .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2d1f1b);
    color: var(--white);
}

.modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2d1f1b, var(--primary-color));
    box-shadow: 0 4px 12px rgba(62, 46, 41, 0.3);
}

.modal-actions .btn-secondary {
    background: var(--light-gray);
    color: var(--secondary-color);
    border: 1px solid #ddd;
}

.modal-actions .btn-secondary:hover {
    background: #e9ecef;
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-actions .btn i {
    font-size: 0.9rem;
}

/* Melhorias para o botão de fechar (X) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    transform: scale(1.1);
}

.close-modal:active {
    transform: scale(0.95);
}

/* Melhorias para o cabeçalho do modal */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Melhorias para o conteúdo do modal */
.documento-info {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.documento-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.documento-info p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.documento-preview {
    line-height: 1.6;
    color: var(--text-color);
}

.documento-preview ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.documento-preview li {
    margin: 0.5rem 0;
    color: var(--secondary-color);
}

/* Responsividade para os modais */
@media (max-width: 768px) {
    .modal-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .modal-actions .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .modal-actions .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .documento-info {
        padding: 0.8rem;
    }
    
    .documento-info p {
        font-size: 0.85rem;
    }
} 