/* Estilos adicionais para garantir responsividade em todos os dispositivos */

/* Ajustes para tablets e dispositivos médios */
@media (max-width: 992px) {
    /* Ajustes de layout para tablets */
    .container {
        width: 95%;
    }
    
    /* Ajustes para grid em tablets */
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    /* Ajustes para artigos em tablets */
    .article {
        padding: 30px 0;
    }
    
    /* Ajustes para sidebar em tablets */
    .sidebar {
        padding: 20px;
    }
    
    /* Ajustes para cards em tablets */
    .card-img {
        height: 180px;
    }
    
    /* Ajustes para formulários em tablets */
    input, textarea, select {
        padding: 8px;
    }
    
    /* Ajustes para botões em tablets */
    .btn {
        padding: 10px 20px;
    }
    
    /* Ajustes para seções em tablets */
    .section {
        padding: 50px 0;
    }
    
    /* Ajustes para hero em tablets */
    .hero {
        padding: 50px 0;
    }
    
    /* Ajustes para footer em tablets */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajustes para smartphones e dispositivos pequenos */
@media (max-width: 768px) {
    /* Ajustes de layout para smartphones */
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    /* Ajustes para grid em smartphones */
    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Ajustes para row em smartphones */
    .row {
        flex-direction: column;
    }
    
    /* Ajustes para colunas em smartphones */
    .col {
        margin-bottom: 20px;
    }
    
    /* Ajustes para artigos em smartphones */
    .article {
        padding: 20px 0;
    }
    
    .article h1 {
        font-size: 2rem;
    }
    
    .article h2 {
        font-size: 1.5rem;
    }
    
    .article h3 {
        font-size: 1.2rem;
    }
    
    /* Ajustes para sidebar em smartphones */
    .sidebar {
        margin-top: 30px;
    }
    
    /* Ajustes para cards em smartphones */
    .card {
        margin-bottom: 15px;
    }
    
    /* Ajustes para formulários em smartphones */
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Ajustes para botões em smartphones */
    .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Ajustes para seções em smartphones */
    .section {
        padding: 40px 0;
    }
    
    /* Ajustes para hero em smartphones */
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    /* Ajustes para footer em smartphones */
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    /* Ajustes para menu em smartphones */
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        margin-top: 80px;
    }
    
    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 10px;
    }
    
    .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        background: none;
        border: none;
        color: var(--primary-color);
        cursor: pointer;
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        display: none;
        z-index: 999;
    }
    
    .overlay.active {
        display: block;
    }
    
    /* Ajustes para newsletter em smartphones */
    .newsletter-form .row {
        flex-direction: column;
    }
    
    .newsletter-form .col {
        margin-bottom: 10px;
    }
    
    /* Ajustes para botões sociais em smartphones */
    .social-buttons {
        justify-content: center;
    }
}

/* Ajustes para dispositivos muito pequenos */
@media (max-width: 480px) {
    /* Ajustes de tipografia para dispositivos muito pequenos */
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    /* Ajustes para hero em dispositivos muito pequenos */
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    /* Ajustes para seções em dispositivos muito pequenos */
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Ajustes para cards em dispositivos muito pequenos */
    .card-img {
        height: 150px;
    }
    
    /* Ajustes para formulários em dispositivos muito pequenos */
    input, textarea, select {
        padding: 8px;
        font-size: 14px;
    }
    
    /* Ajustes para botões em dispositivos muito pequenos */
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* Ajustes para footer em dispositivos muito pequenos */
    .footer-col h4 {
        font-size: 1rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

/* Ajustes para impressão */
@media print {
    header, footer, .cta, .sidebar, .back-to-top, .mobile-menu-toggle, .overlay, .close-menu, .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .article {
        width: 100%;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }
    
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    p, blockquote, ul, ol, dl, table {
        page-break-inside: avoid;
    }
    
    h1 {
        font-size: 24pt;
    }
    
    h2 {
        font-size: 20pt;
    }
    
    h3 {
        font-size: 16pt;
    }
}

/* Ajustes de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #5A9AE6;
        --secondary-color: #60E8C7;
        --text-color: #F0F0F0;
        --light-bg: #2A2A2A;
        --white: #1A1A1A;
        --dark-gray: #CCCCCC;
        --light-gray: #444444;
    }
    
    body {
        color: var(--text-color);
        background-color: var(--white);
    }
    
    .card, .sidebar {
        background-color: #252525;
    }
    
    input, textarea, select {
        background-color: #333;
        color: var(--text-color);
        border-color: #555;
    }
    
    input:focus, textarea:focus, select:focus {
        border-color: var(--primary-color);
    }
    
    a {
        color: var(--primary-color);
    }
    
    a:hover {
        color: var(--secondary-color);
    }
    
    .btn {
        background-color: var(--secondary-color);
        color: #000;
    }
    
    .btn:hover {
        background-color: #3bc6a7;
    }
    
    .hero, .cta {
        background-color: #2C5A8C;
    }
    
    footer {
        background-color: #111;
    }
}
