:root {
    --primary: #005fa3;
    --secondary: #00a3e0;
    --dark: #1a365d;
    --light: #f8fafc;
    --success: #0bb04b;
    --warning: #ffb74d;
    --danger: #e74c3c;
    --text: #2d3748;
    --border: #e2e8f0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 30px 15px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    width: 100%;
}

.logo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.tagline {
    font-size: 1rem;
    opacity: 0.95;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.4;
}

/* Sections */
.section {
    background: white;
    margin: 25px 0;
    padding: 25px 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    width: 100%;
    overflow: hidden;
}

.section-title {
    color: var(--primary);
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 1.4rem;
    width: 100%;
}

.section-title i {
    color: var(--secondary);
    font-size: 1.6rem;
    margin-bottom: 5px;
}

/* Alerta de Prazo */
.deadline-alert {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.deadline-alert h3 {
    color: #856404;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
}

.deadline-alert .deadline-date {
    background: var(--danger);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 10px 0;
    display: inline-block;
}

.deadline-alert p {
    color: #856404;
    margin-bottom: 10px;
    font-size: 1rem;
}

/* RDC Grid - Desktop */
.rdc-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
    width: 100%;
}

.rdc-card {
    background: var(--light);
    border-left: 5px solid var(--primary);
    padding: 20px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.rdc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.rdc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.rdc-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
    width: 100%;
}

.rdc-number {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    align-self: flex-start;
}

.requirement-list {
    list-style: none;
    width: 100%;
}

.requirement-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.requirement-item:last-child {
    border-bottom: none;
}

.check-icon {
    color: var(--success);
    font-size: 1.2rem;
    margin-right: 8px;
}

.requirement-content {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.ondevou-feature {
    background: rgba(0, 163, 224, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-top: 6px;
    font-weight: 600;
    border-left: 3px solid var(--secondary);
    width: 100%;
    font-size: 0.9rem;
}

.compliance-badge {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 12px;
    font-weight: bold;
}

/* NOVA ESTRUTURA PARA MOBILE - Requisitos e Soluções Integradas */
.mobile-integrated {
    display: none;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.mobile-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mobile-requisito {
    background: #f0f7ff;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.mobile-requisito-icon {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.mobile-requisito-content {
    flex: 1;
}

.mobile-requisito-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1rem;
}

.mobile-requisito-desc {
    font-size: 0.9rem;
    color: var(--text);
}

.mobile-solucao {
    background: #f0fff4;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 4px solid var(--success);
}

.mobile-solucao-icon {
    color: var(--success);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.mobile-solucao-content {
    flex: 1;
}

.mobile-solucao-title {
    font-weight: 600;
    color: var(--success);
    margin-bottom: 5px;
    font-size: 1rem;
}

.mobile-solucao-desc {
    font-size: 0.9rem;
    color: var(--text);
}

/* Workflow - Layout Centralizado */
.workflow-container {
    background: white;
    padding: 20px 15px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    width: 100%;
}

.workflow {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.workflow-step-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: rgba(0, 95, 163, 0.05);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.workflow-step-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.workflow-step-mobile:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.workflow-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 95, 163, 0.3);
}

.workflow-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.workflow-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.workflow-desc {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.workflow-deadline {
    font-size: 0.85rem;
    color: var(--danger);
    font-weight: 500;
    margin-bottom: 10px;
}

.saiba-mais {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(0, 163, 224, 0.1);
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}


.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.site-card {
    background: #f0f4ff;
    border-radius: 14px;
    text-align: center;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.site-card i {
    font-size: 42px;
    color: #005bbb;
    margin-bottom: 10px;
}

.site-card a {
    text-decoration: none;
    color: #004aad;
    font-weight: bold;
    font-size: 17px;
}

.workflow-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: transform 0.2s ease;
}

.workflow-link:hover {
    text-decoration: none;
    color: inherit;
    transform: none;
}

.workflow-step-mobile:hover .saiba-mais {
    background: var(--secondary);
    color: white;
    transform: scale(1.05);
}

/* Desktop Styles para Workflow */
@media (min-width: 768px) {
    .workflow-container {
        padding: 35px 25px;
    }

    .workflow {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
    }

    .workflow::before {
        content: '';
        position: absolute;
        top: 30%;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        z-index: 1;
    }

    .workflow-step-mobile {
        width: 30%;
        padding: 25px 20px;
        background: transparent;
        position: relative;
        z-index: 2;
    }

    .workflow-step-mobile::before {
        display: none;
    }

    .workflow-icon {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .workflow-title {
        font-size: 1.2rem;
    }

    .workflow-desc {
        font-size: 1rem;
    }

    .saiba-mais {
        font-size: 0.95rem;
        padding: 8px 16px;
    }
}

@media (min-width: 992px) {
    .workflow-icon {
        width: 90px;
        height: 90px;
        font-size: 2rem;
    }

    .workflow-title {
        font-size: 1.3rem;
    }
}

/* Contact Section */
.contact-section {
    text-align: center;
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: white;
    padding: 40px 15px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--success);
    color: white;
    padding: 14px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(11, 176, 75, 0.4);
    width: 100%;
    max-width: 280px;
}

.contact-btn:hover {
    background: #0a9c3f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11, 176, 75, 0.6);
}

/* QR Code Section */
.qrcode-section {
    text-align: center;
    background: white;
    padding: 25px 15px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    width: 100%;
}

.qrcode-container {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}

.qrcode {
    width: 180px;
    height: 180px;
    border: 2px solid var(--border);
    border-radius: 8px;
}

.url-text {
    margin-top: 12px;
    font-weight: 500;
    font-size: 0.85rem;
    word-break: break-all;
    padding: 0 10px;
    color: var(--primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 25px 15px;
    color: var(--text);
    margin-top: 30px;
    border-top: 1px solid var(--border);
    width: 100%;
}

.company-info {
    margin-bottom: 15px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px;
    font-size: 0.95rem;
}

.contact-link:hover {
    color: var(--secondary);
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 95, 163, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 163, 224, 0.5);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Estilos adicionais específicos para página de norma */
.official-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.official-info h3 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.info-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.info-value {
    font-weight: 600;
    font-size: 1rem;
}

.legal-text {
    background: #f8f9fa;
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-style: italic;
}

.article-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid var(--border);
}

.article-title {
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: rgba(0, 95, 163, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(0, 95, 163, 0.2);
    transform: translateX(-5px);
}

.chapter-section {
    background: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 5px solid var(--primary);
}

.chapter-title {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.definition-list {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.definition-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.definition-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.definition-term {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.definition-desc {
    color: var(--text);
    font-size: 0.95rem;
}

.requirement-highlight {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

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

    .official-info {
        padding: 20px 15px;
    }

    .chapter-section {
        padding: 20px 15px;
    }
}


/* Desktop Styles */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        padding: 20px;
    }

    header {
        padding: 40px 20px;
        margin-bottom: 30px;
    }

    .logo-header {
        flex-direction: row;
        justify-content: center;
        text-align: left;
        gap: 20px;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .section {
        padding: 35px 25px;
        margin: 30px 0;
    }

    .section-title {
        flex-direction: row;
        align-items: center;
        font-size: 1.6rem;
    }

    .deadline-alert {
        padding: 25px;
        margin: 30px 0;
    }

    .deadline-alert h3 {
        font-size: 1.5rem;
    }

    .rdc-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .rdc-card {
        padding: 25px 20px;
    }

    .rdc-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .requirement-item {
        flex-direction: row;
        align-items: flex-start;
    }

    /* Ocultar estrutura mobile no desktop */
    .mobile-integrated {
        display: none !important;
    }

    .contact-btn {
        width: auto;
        padding: 16px 30px;
    }

    .contact-links {
        flex-direction: row;
        justify-content: center;
        gap: 25px;
    }

    .qrcode-section {
        padding: 35px 25px;
    }

    .url-text {
        font-size: 1rem;
    }
}

/* Mobile Styles - Abaixo de 768px */
@media (max-width: 767px) {

    /* Ocultar cards desktop no mobile */
    .rdc-grid {
        display: none;
    }

    /* Exibir estrutura integrada no mobile */
    .mobile-integrated {
        display: flex;
    }
}

@media (min-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

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

    .workflow-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}