/* ============================================
   Funcionalidades - Estilos Detallados
   ============================================ */

.hero-funcionalidades {
    background: linear-gradient(135deg, #1e3a8a 0%, #2d5a27 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

.hero-funcionalidades h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-funcionalidades .lead {
    font-size: 1.35rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-funcionalidades .btn-light {
    padding: 1rem 3rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.hero-funcionalidades .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.func-nav {
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.func-nav .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.func-nav .nav-link:hover,
.func-nav .nav-link.active {
    color: #2d5a27;
    border-bottom-color: #2d5a27;
}

.feature-section {
    padding: 5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-section:nth-child(even) {
    background-color: #f8faf8;
}

.feature-section .feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.feature-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d5a27;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-section .feature-desc {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.feature-section ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-section ul li {
    padding: 0.4rem 0 0.4rem 1.75rem;
    position: relative;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

.feature-section ul li::before {
    content: '\F272';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: #2d5a27;
    font-size: 1rem;
}

.feature-screenshot {
    background: #f1f3f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #dee2e6;
}

.feature-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-img-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-img-clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.feature-modal-dialog {
    max-width: 95vw;
}

.feature-modal-content {
    background: transparent;
    border: none;
    position: relative;
}

.feature-modal-content .btn-close {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: background-color 0.2s ease;
}

.feature-modal-content .btn-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.feature-modal-img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.feature-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.85) !important;
}

.feature-screenshot .screenshot-placeholder {
    padding: 3rem 2rem;
    text-align: center;
    color: #868e96;
}

.feature-screenshot .screenshot-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #adb5bd;
}

.feature-screenshot .screenshot-placeholder p {
    font-size: 0.9rem;
    margin: 0;
}

.feature-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #2d5a27;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.feature-blog-link:hover {
    background: #2d5a27;
    color: white;
    border-color: #2d5a27;
}

.feature-blog-link i {
    font-size: 1rem;
}

.func-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.func-overview-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.func-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: #2d5a27;
    color: inherit;
}

.func-overview-card .overview-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.func-overview-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.func-overview-card p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.cta-funcionalidades {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-funcionalidades h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-funcionalidades .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-funcionalidades .btn-light {
    padding: 1rem 3rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-funcionalidades .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .hero-funcionalidades {
        padding: 80px 0 60px;
    }

    .hero-funcionalidades h1 {
        font-size: 2rem;
    }

    .hero-funcionalidades .lead {
        font-size: 1.1rem;
    }

    .feature-section {
        padding: 3.5rem 0;
    }

    .feature-section h2 {
        font-size: 1.6rem;
    }

    .feature-screenshot {
        margin-top: 2rem;
    }

    .func-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }
}

@media (max-width: 575px) {
    .hero-funcionalidades {
        padding: 60px 0 40px;
    }

    .hero-funcionalidades h1 {
        font-size: 1.6rem;
    }

    .hero-funcionalidades .lead {
        font-size: 1rem;
    }

    .feature-section {
        padding: 2.5rem 0;
    }

    .feature-section h2 {
        font-size: 1.35rem;
    }

    .func-overview-grid {
        grid-template-columns: 1fr;
    }

    .cta-funcionalidades h2 {
        font-size: 1.6rem;
    }
}
