/* ============================================================
   1. ISOLAMENTO E CONTAINER 
============================================================ */
.pg-func-wrapper {
    background-color: #F8FAFC; 
    padding-top: 81px; 
    font-family: 'Inter', sans-serif; 
}

.pg-func-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ============================================================
   2. HERO SECTION 
============================================================ */
.pg-func-hero {
    min-height: 75vh;
    width: 100%;
    padding: 140px 0 140px;
    background-image: url('/assets/funcionalidades/Background.png'); 
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pg-func-hero__inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pg-func-hero__icon {
    width: 84px;
    height: 84px;
    background: #c7dcf2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.pg-func-hero__icon img {
    width: 52px;
    height: auto;
    object-fit: contain;
}

.pg-func-hero__subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #0F7ADE;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif; 
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.pg-func-hero__title {
    font-family: 'Source Serif 4', serif !important;
    font-size: 48px;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.pg-func-hero__desc {
    font-size: 22px;
    font-family: 'DM Sans', sans-serif; 
    color: #64748B;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 56px;
}

.pg-func-hero__cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pg-func-hero__note {
    font-family: 'DM Sans', sans-serif; 
    font-size: 13px;
    color: #737f9b;

}
/* ============================================================
   ANIMAÇÃO ZIKA
============================================================ */

.pg-func-hero__icon,
.pg-func-hero__subtitle,
.pg-func-hero__title,
.pg-func-hero__desc,
.pg-func-hero__cta-group {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.pg-func-hero.is-visible .pg-func-hero__icon { 
    opacity: 1; transform: translateY(0); transition-delay: 0.1s; 
}
.pg-func-hero.is-visible .pg-func-hero__subtitle { 
    opacity: 1; transform: translateY(0); transition-delay: 0.2s; 
}
.pg-func-hero.is-visible .pg-func-hero__title { 
    opacity: 1; transform: translateY(0); transition-delay: 0.3s; 
}
.pg-func-hero.is-visible .pg-func-hero__desc { 
    opacity: 1; transform: translateY(0); transition-delay: 0.4s; 
}
.pg-func-hero.is-visible .pg-func-hero__cta-group { 
    opacity: 1; transform: translateY(0); transition-delay: 0.5s; 
}
/* ============================================================
   3. ESTRUTURA DOS CARDS BENTO
============================================================ */
.pg-func-blocks {
    padding: 50px 0 0;
    background-color: transparent; 
    position: relative;
    z-index: 30; 
    
    margin-bottom: -220px; 
}

.pg-func-card {
    display: flex;
    background: #FFFFFF;
    border-radius: 40px; 
    margin: 0 auto 24px auto; 
    overflow: hidden; 
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.15);
    height: 430px; 
    width: 100%;
    max-width: 1150px; 
    position: relative; 
    box-sizing: border-box;
}

.pg-func-card--reverse {
    flex-direction: row-reverse;
}

.pg-func-card__media {
    flex: 1.6;
    background-image: url('/assets/funcionalidades/sectiongradiant.png');
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; 
    border-radius: 40px;
}

.pg-func-card__media img {
    max-width: 85%; 
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
}

.pg-func-card__content {
    flex: 1; 
    padding: 80px 40px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.pg-func-card__kicker {
    font-family: 'DM Sans', sans-serif; 
    font-size: 12px;
    font-weight: 500;
    color: #99acc6;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.pg-func-card__title {
    font-family: 'Source Serif 4', serif !important;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #1E293B;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.pg-func-card__text {
    font-size: 16px;
    line-height: 1.6;
    color: #64748B;
    margin-bottom: 32px;
    font-family: 'DM Sans', sans-serif;
}

.pg-func-btn--primary {
    background: linear-gradient(90deg, #1C8DF4 0%, #32B3E8 100%);
    color: #FFFFFF;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(28, 141, 244, 0.2);
    display: inline-flex;
    transition: all 0.2s;
}

.pg-func-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(28, 141, 244, 0.3);
}

/* ============================================================
   4. CTA FINAL AZUL (SOBREPOSIÇÃO)
============================================================ */
.pg-func-cta {
    position: relative;
  
    z-index: 10; 
  
    padding: 350px 20px 200px; 
    background-image: url('/assets/funcionalidades/backgroundfinal.png') !important;
    background-size: cover;
    background-position: center top;
    background-color: #0F7ADE;
    text-align: center;
    color: #FFFFFF;
}

.pg-func-cta__inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pg-func-cta__icon {
    width: 38px;
    height: auto;
    margin-bottom: 24px;
    filter: brightness(0) invert(1); 
}

.pg-func-cta__kicker {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #f5f5f7;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.pg-func-cta__title {
    font-family: 'Source Serif 4', serif !important;
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: -8px;
    letter-spacing: -0.02em;
}

.pg-func-cta__text {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #f5f5f7;
    line-height: 1.6;
    margin-bottom: 40px;
}

.pg-func-btn--white {
    background-color: #FFFFFF;
     font-family: 'DM Sans', sans-serif;
    color: #0F7ADE;
    padding: 16px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    transition: transform 0.2s;
}

.pg-func-btn--white:hover {
    transform: translateY(-3px);
}
/* ============================================================
   ANIMAÇÕES DE ENTRADA (SCROLL REVEAL)
============================================================ */

.pg-func-wrapper {
    overflow-x: hidden;
}
.pg-func-card {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.pg-func-card:nth-child(1),
.pg-func-card:nth-child(3) {
    transform: translateX(100px);
}

.pg-func-card:nth-child(2) {
    transform: translateX(-100px);
}

.pg-func-card.is-visible {
    opacity: 1;
    transform: translateX(0);
}
/* ============================================================
   RESPONSIVIDADE
============================================================ */
@media (max-width: 992px) {
    .pg-func-hero {
        padding: 100px 0;
        min-height: auto;
    }
    .pg-func-hero__title { font-size: 40px; }
    .pg-func-hero__desc { font-size: 20px; margin-bottom: 40px; }

    .pg-func-card, 
    .pg-func-card--reverse {
        flex-direction: column;
        height: auto;
        max-width: 600px; 
     }

    .pg-func-card__media {
        border-radius: 40px 40px 0 0; 
        padding: 50px 20px;
    }

    .pg-func-card__media img { max-width: 70%; }

    .pg-func-card__content {
        padding: 50px 40px;
        align-items: center;
        text-align: center;
    }

    .pg-func-card__title { font-size: 28px; }

    .pg-func-blocks { margin-bottom: -120px; }
    .pg-func-cta { padding: 180px 20px 120px; }
    
    .pg-func-cta__title { font-size: 38px; }
    .pg-func-cta__text { font-size: 20px; }
}

/* ---------------------------------------------------
   DEGRAU 2: SMARTPHONES PADRÃO (Até 768px)
--------------------------------------------------- */
@media (max-width: 768px) {
    .pg-func-wrapper { padding-top: 60px; }

    /* Hero */
    .pg-func-hero { padding: 70px 0; }
    .pg-func-hero__title { font-size: 34px; }
    .pg-func-hero__desc { font-size: 18px; margin-bottom: 32px; }
    .pg-func-hero__icon { width: 64px; height: 64px; }
    .pg-func-hero__icon img { width: 36px; }

    /* Cards: Raio da borda fica mais gentil no celular */
    .pg-func-card { border-radius: 24px; }
    
    .pg-func-card__media { 
        border-radius: 24px 24px 0 0; 
        padding: 40px 20px; 
    }
    
    .pg-func-card__media img { max-width: 85%; }
    
    /* 🔴 AJUSTE: Menos padding embaixo para não sobrar aquele vácuo branco */
    .pg-func-card__content { 
        padding: 40px 24px 30px; 
        box-sizing: border-box;
    }
    
    .pg-func-card__title { font-size: 26px; }
    .pg-func-card__text { font-size: 15px; margin-bottom: 24px; }
    
    /* Animação ZIKA: Movimento mais contido no touch */
    .pg-func-card:nth-child(1),
    .pg-func-card:nth-child(3) { transform: translateX(40px); }
    .pg-func-card:nth-child(2) { transform: translateX(-40px); }

    /* Overlap Azul */
    .pg-func-blocks { margin-bottom: -80px; }
    .pg-func-cta { padding: 140px 20px 80px; box-sizing: border-box; }
    
    .pg-func-cta__title { font-size: 32px; margin-bottom: 12px; }
    .pg-func-cta__text { font-size: 18px; margin-bottom: 32px; }
    .pg-func-btn--white { font-size: 16px; padding: 14px 24px; }
}

/* ---------------------------------------------------
   DEGRAU 3: SMARTPHONES PEQUENOS ( 480px)
--------------------------------------------------- */
@media (max-width: 480px) {
    .pg-func-hero__title { font-size: 28px; }
    .pg-func-hero__desc { font-size: 16px; }
    
    .pg-func-card__title { font-size: 24px; }
    
    .pg-func-cta__title { font-size: 28px; }
    .pg-func-cta__text { font-size: 16px; }
}