/* Gerado por tools/gerar-glyphicons-css.php a partir de assets/css/pagina-inicial.css (ícones com Bootstrap Icons). */
.modern-box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    padding: 20px 15px;
    min-height: 240px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.modern-box:hover {
    border-color: #c5cdd6;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Watermark do ícone no hover */
.modern-box::after {
    content: '';
    position: absolute;
    right: -0.35em;
    bottom: -0.05em;
    font-family: 'bootstrap-icons';
    font-size: 7rem;
    line-height: 1;
    color: #374151;
    opacity: 0;
    transform: translate(14px, 20px) rotate(-14deg) scale(0.82);
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
    pointer-events: none;
}

.modern-box:hover::after {
    opacity: 0.16;
    transform: translate(0, 0) rotate(-8deg) scale(1);
}

.box-noticias::after { content: '\f24b'; }
.box-ouvidoria::after { content: '\f32f'; }
.box-produtos::after { content: '\f1cc'; }
.box-autweb::after { content: '\f1c5'; }
.box-anexorn::after { content: '\f392'; }
.box-redecredenciada::after { content: '\f3e7'; }

.modern-box > * {
    position: relative;
    z-index: 1;
}

.modern-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.modern-box:hover .modern-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.modern-icon i {
    color: white;
    font-size: 20px;
    line-height: 1;
}

.modern-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 12px 0 8px 0;
    text-align: center;
    flex-shrink: 0;
}

.modern-description {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    margin: 0 0 12px 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 12px;
    color: #495057;
    font-weight: 400;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modern-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    text-decoration: none;
}

.modern-btn:focus {
    color: #495057;
    text-decoration: none;
}

.modern-btn.btn-sx {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 12px;
    color: #495057;
    font-weight: 400;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Cores específicas para cada ícone */
.icon-noticias { background: #6c757d; }
.icon-ouvidoria { background: #6c757d; }
.icon-produtos { background: #6c757d; }
.icon-autweb { background: #6c757d; }
.icon-anexorn { background: #6c757d; }
.icon-redecredenciada { background: #6c757d; }

.boxes-section {
    margin: 20px 0 10px;
}

.boxes-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.box-item {
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    margin: 0;
    overflow: hidden;
}

@media (max-width: 991px) {
    .boxes-row {
        flex-wrap: wrap;
    }

    .box-item {
        flex: 1 1 calc(50% - 6px);
        min-width: calc(50% - 6px);
    }
}

@media (max-width: 576px) {
    .boxes-row {
        flex-direction: column;
        gap: 10px;
    }

    .box-item {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .modern-box {
        min-height: 200px;
        height: auto;
    }
}

html, body {
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
}

.container {
    overflow: visible !important;
}

/* Seção Fale Conosco - Padrão dos boxes */
.contact-section {
    padding: 25px 0;
    margin: 20px 0;
    border-top: 1px solid #f1f2f3;
    border-bottom: 1px solid #f1f2f3;
    margin: 50px 0;
    padding: 50px 0;
}

.contact-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    margin: 0;
}

.contact-card {
    box-sizing: border-box;
    margin-bottom: 0;
    padding: 0;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
}

.contact-card-inner {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 160px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
}

.contact-card-inner:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(99, 102, 241, 0.08);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.contact-card-inner::after {
    content: '';
    position: absolute;
    right: -0.3em;
    bottom: 0;
    font-family: 'bootstrap-icons';
    font-size: 5.5rem;
    line-height: 1;
    color: #374151;
    opacity: 0;
    transform: translate(12px, 18px) rotate(-14deg) scale(0.82);
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
    pointer-events: none;
}

.contact-card-inner:hover::after {
    opacity: 0.16;
    transform: translate(0, 0) rotate(-8deg) scale(1);
}

.contact-card:nth-child(1) .contact-card-inner::after { content: '\f5b4'; }
.contact-card:nth-child(2) .contact-card-inner::after { content: '\f32f'; }
.contact-card:nth-child(3) .contact-card-inner::after { content: '\f24b'; }
.contact-card:nth-child(4) .contact-card-inner::after { content: '\f1c5'; }

.contact-card-inner > * {
    position: relative;
    z-index: 1;
}

.contact-title {
    color: #4a5568;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-description {
    color: #6b7280;
    font-size: 11px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.contact-info {
    color: #374151;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.3;
}

.contact-btn {
    background: #f1f3f4;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    padding: 5px 10px;
    color: #6b7280;
    font-weight: 400;
    font-size: 11px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #4b5563;
    text-decoration: none;
}

/* Responsividade para a seção de contato */
@media (max-width: 991px) {
    .contact-row {
        flex-wrap: wrap;
    }

    .contact-card {
        flex: 1 1 calc(50% - 6px);
        min-width: calc(50% - 6px);
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 40px 0;
        margin: 30px 0;
    }

    .contact-row {
        flex-direction: column;
        gap: 10px;
    }

    .contact-card {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .contact-card-inner {
        padding: 15px 10px;
        min-height: 120px;
    }
    
    .contact-title {
        font-size: 13px;
    }
    
    .contact-description {
        font-size: 11px;
    }
    
    .contact-info {
        font-size: 13px;
    }
    
    .contact-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
}


/* Responsividade para mobile */
@media (max-width: 768px) {
    .modern-box {
        padding: 15px 10px;
    }
    
    .modern-icon {
        width: 50px;
        height: 50px;
    }
    
    .modern-icon i {
        font-size: 20px;
    }
    
    .modern-title {
        font-size: 13px;
    }
    
    .modern-description {
        font-size: 11px;
    }

    .modern-box::after {
        font-size: 5.5rem;
    }

    .contact-card-inner::after {
        font-size: 4.5rem;
    }
}
