.hero {
    position: relative;
    background-image: url('/assets/img/home/hero-bg.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    height: 90svh; 
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 60, 52, 0.9) 0%, rgba(46, 125, 50, 0.6) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start; 
}

.glass-content {
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-left: 4px solid var(--cor-primaria);
    
    padding: 50px;
    border-radius: 20px;
    max-width: 700px;
    color: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); 
    
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
    will-change: transform, box-shadow;
}

.badge-tech {
    display: inline-block;
    background-color: rgba(76, 175, 80, 0.2);
    color: #81c784;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.glass-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.glass-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 35px;
    font-weight: 300;
}

.btn-cta-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--cor-primaria);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
}

.btn-cta-modern:hover {
    background-color: white;
    color: var(--cor-secundaria);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === AJUSTE PARA CELULAR === */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        height: auto;
        padding: 100px 20px;
    }
    
    .glass-content {
        padding: 30px;
        text-align: center; 
        border-left: 1px solid rgba(255,255,255,0.2);
    }
    
    .glass-content h1 {
        font-size: 2rem;
    }
}

.btn-cta {
    display: inline-block;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-cta:hover {
    background-color: white;
    color: var(--cor-secundaria);
}

.intro-verde {
    background-color: var(--cor-secundaria); 
    color: white;
    padding: 50px 20px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.intro-verde p {
    max-width: 1000px;
    margin: 0 auto;
}

.titulo-secao {
    text-align: center;
    color: var(--cor-secundaria);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    
    /* A CURA DO PROBLEMA: */
    overflow: hidden; /* Corta o risco se ele tentar fugir da tela */
    max-width: 90%;   /* Garante que o título nunca seja maior que a tela do celular */
}

.titulo-secao::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--cor-primaria);
    border-radius: 2px;
}

.titulo-secao.branco { color: white; font-size: 50px; }
.titulo-secao.align-left { text-align: left; }
.titulo-secao.align-left::after { left: 0; transform: none; }


/* === 3. SEÇÃO SOLUÇÕES (CARDS) === */
.section-solucoes {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px; 
}

.card-item {
    width: 280px; 
    height: 350px; 

    background-size: cover !important; 
    background-position: center;
    background-repeat: no-repeat;
    
    border-radius: 15px; 
    position: relative;
    overflow: hidden; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    cursor: pointer;

    will-change: transform, box-shadow;
}

.card-item:hover {
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    will-change: transform, box-shadow;
}

.card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    width: 100%;
    height: 100%;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: center;
    padding: 25px;
    
    transition: all 0.4s ease;
    will-change: transform, box-shadow;
}
 
.card-item:hover .card-overlay {
    background-color: rgba(26, 60, 52, 0.7); 
    backdrop-filter: blur(0.5px); 
    -webkit-backdrop-filter: blur(6px); 
}

.card-item h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    
    transform: translateY(20px);
    transition: 0.4s ease;
}

.card-item:hover h3 {
    transform: translateY(-5px);
}

.btn-card {
    background-color: white;
    color: var(--cor-secundaria);
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    
    opacity: 0;
    transform: translateY(20px); 
    transition: all 0.4s ease;

    will-change: transform, opacity;
}

.card-item:hover .btn-card {
    opacity: 1;
    transform: translateY(0);
}

.btn-card:hover {
    background-color: var(--cor-primaria);
    color: white;
}

/* Ajuste Celular */
@media (max-width: 768px) {
    .card-item {
        width: 100%;
        max-width: 320px;
        height: 300px;
    }

    .btn-card {
        opacity: 1;
        transform: translateY(0);
        margin-top: 10px;
    }
    .card-item h3 {
        transform: translateY(0);
    }
}

/* === 4. SEÇÃO QUEM SOMOS === */
.section-quem-somos {
    padding: 60px 0;
    background-color: white;
}

.content-quem-somos {
    display: flex;
    align-items: flex-start; 
    gap: 50px;
    flex-wrap: wrap;
}

.texto-quem-somos {
    flex: 1; 
    min-width: 300px;
}

.texto-quem-somos h2 {
    font-size: 50px;
}

.texto-quem-somos p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

.img-quem-somos {
    flex: 0 0 300px;  
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-quem-somos img {
    max-width: 100%;
    /* transform:  translateY(160px); */
    height: auto;
}


/* === 5. SEÇÃO PLANO DE AÇÃO === */
.section-plano {
    background-color: #43a047;
    background-image: 
        linear-gradient(to bottom, rgba(67, 160, 71, 0.9), rgba(46, 125, 50, 0.95)),
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    padding: 80px 0;
    color: white;
}

.plano-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.plano-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background-color: #ffffff; 
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
    
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.plano-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    border-color: var(--cor-primaria); 
}
 
.icon-box {
    background-color: #e8f5e9;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}


.plano-item i {
    font-size: 22px;
    color: var(--cor-secundaria); 
}

.plano-item:hover .icon-box {
    background-color: var(--cor-primaria);
}
.plano-item:hover i {
    color: white; 
}

.plano-item p {
    margin: 0;
    font-size: 1rem; 
    line-height: 1.6;
    font-weight: 500; 
    color: #444;
}

.conteudo-sistemas { width: 100%; }

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-sistema {
    background-color: var(--cor-fundo-alt); 
    color: var(--cor-secundaria);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(76, 175, 80, 0.2);
    transition: 0.2s;
    cursor: default;
}

.tag-sistema:hover {
    background-color: var(--cor-primaria);
    color: white;
}

@media (max-width: 768px) {
    .section-plano { padding: 60px 0; }
    .plano-item { flex-direction: row; align-items: center; }
    .icon-box { flex-shrink: 0; }
    .conteudo-sistemas { margin-top: 0; }
}
 
.titulo-secao {
    text-align: center;
    color: var(--cor-secundaria);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.titulo-secao::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    height: 12px;
    background-color: rgba(76, 175, 80, 0.25);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    transform: rotate(-1deg);
    animation: riscoGrossoLoop 3s ease-in-out infinite;
    width: 0%; 

}

.titulo-secao::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    height: 3px;
    background-color: var(--cor-primaria);
    border-radius: 80% 20% 50% 50% / 50%;
    transform: rotate(1deg);
    animation: riscoFinoLoop 3s ease-in-out infinite;

    width: 0%;
}

@keyframes riscoGrossoLoop {
    0% { width: 0%; opacity: 0; }
    20% { width: 100%; opacity: 1; }
    80% { width: 100%; opacity: 1; } 
    100% { width: 0%; opacity: 0; left: 100%; } 
}

@keyframes riscoFinoLoop {
    0% { width: 0%; }
    15% { width: 0%; } 
    35% { width: 90%; } 
    80% { width: 90%; opacity: 1; }
    100% { width: 90%; opacity: 0; }  
}
 
.titulo-secao.branco { color: white; }
.titulo-secao.verde { font-size: 50px; }
.titulo-secao.branco::after { background-color: rgba(255,255,255, 0.2); }
.titulo-secao.branco::before { background-color: #ffffff; }
 
.titulo-secao.align-left { 
    text-align: left; 
    left: 0; 
    transform: none; 
}
 
 

@media (max-width: 768px) {
    .whatsapp-container { bottom: 20px; left: 20px; }
    .whatsapp-tooltip { display: none; }
    
    .content-quem-somos {
        flex-direction: column;
    }
    
    .img-quem-somos {
        order: -1; 
        margin: 0 auto;
    }
}
 