/* ==========================================================================
   1. VARIÁVEIS GLOBAIS
   ========================================================================== */
:root {
    --verde-escuro: #2A533B;
    --verde-claro: #5E9C55;
    --marrom-terra: #634232;
    --fundo-claro: #f4f6f5; 
    --fundo-admin: #f4f7f6; 
    --sidebar-bg: #1a3a28;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow-premium: 0 20px 40px rgba(42, 83, 59, 0.08);
    --shadow-3d: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.05);
}

/* ==========================================================================
   2. CONFIGURAÇÕES BASE E PRELOADER
   ========================================================================== */
   html, body { 
    max-width: 100%; 
    overflow-x: hidden; 
}

body { 
    font-family: 'Open Sans', sans-serif; 
    color: #4a4a4a; 
}
h1, h2, h3, h4, h5, h6, .brand-title, .navbar-brand { font-family: 'Montserrat', sans-serif; }

a.nav-link, a.btn, a.btn-premium, a.btn-back, a.btn-outline-light-custom, a.wpp-btn, a.nav-link-admin, a.back-to-site, a.forgot-password {
    text-decoration: none !important;
}

body.frontend-body { background-color: var(--fundo-claro); }
body.admin-body { background-color: var(--fundo-admin); display: flex; min-height: 100vh; }
body.login-body { height: 100vh; margin: 0; overflow: hidden; background-color: #000; }

#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(244, 246, 245, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-content { position: relative; display: flex; align-items: center; justify-content: center; }
.preloader-logo { width: 80px; height: auto; position: relative; z-index: 2; animation: premiumPulse 2s infinite ease-in-out; }
.preloader-spinner {
    position: absolute; width: 130px; height: 130px; border-radius: 50%;
    border: 3px solid transparent; border-top-color: var(--verde-claro); border-bottom-color: var(--verde-escuro);
    opacity: 0.7; animation: spinRing 2s linear infinite; z-index: 1;
}

@keyframes premiumPulse {
    0%, 100% { transform: scale(0.95); opacity: 0.8; filter: drop-shadow(0 0 10px rgba(94, 156, 85, 0.2)); }
    50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 25px rgba(94, 156, 85, 0.6)); }
}
@keyframes spinRing {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ==========================================================================
   3. BOTÕES GLOBAIS
   ========================================================================== */
.btn-premium {
    background: linear-gradient(135deg, #6ab05e 0%, var(--verde-escuro) 100%);
    color: white !important; border: none; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(94, 156, 85, 0.4), inset 0 2px 0 rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: inline-block; padding: 15px 40px; 
    border-radius: 50px; position: relative; overflow: hidden; white-space: nowrap;
}
.btn-premium::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: rgba(255,255,255,0.2); transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease; pointer-events: none;
}
.btn-premium:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(42, 83, 59, 0.5), inset 0 2px 0 rgba(255,255,255,0.3); color: white; }
.btn-premium:hover::after { transform: rotate(45deg) translateY(100%); }

.btn-outline-light-custom {
    border: 1px solid rgba(255,255,255,0.3); color: white; border-radius: 50px; padding: 8px 20px;
    font-size: 0.9rem; font-weight: 600; transition: all 0.3s; display: inline-block;
}
.btn-outline-light-custom:hover { background: white; color: var(--verde-escuro); }

.btn-back {
    display: inline-flex; align-items: center; color: var(--verde-escuro); font-weight: 600;
    padding: 10px 20px; background: white; border-radius: 50px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease; margin-bottom: 40px; border: 1px solid rgba(0,0,0,0.03);
}
.btn-back i { margin-right: 10px; transition: transform 0.3s ease; }
.btn-back:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(42, 83, 59, 0.15); color: var(--verde-claro); }
.btn-back:hover i { transform: translateX(-5px); }

.wpp-btn {
    position: fixed; bottom: 40px; right: 40px; background: linear-gradient(135deg, #25d366, #1ebe57); color: white; 
    width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 35px; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4), inset 0 2px 0 rgba(255,255,255,0.3); z-index: 1000; transition: all 0.3s; 
}
.wpp-btn:hover { transform: scale(1.1) rotate(-10deg); color: white !important; box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5); }

/* ==========================================================================
   4. FRONTEND - NAVBAR E HERO
   ========================================================================== */
.navbar { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 10px 0; background: transparent; }
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.3); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); padding: 10px 0;
}
.navbar-brand { font-weight: 800; color: var(--verde-escuro) !important; font-size: 1.6rem; text-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 10px;}
.navbar.scrolled .navbar-brand { text-shadow: none; }
.navbar-brand span { color: var(--marrom-terra); }
.navbar-toggler { background-color: rgba(255,255,255,0.8); }

.nav_logo { 
    max-height: 75px; 
    width: auto; 
    object-fit: contain; 
    transition: all 0.4s ease; 
    /* Força a logo a ficar totalmente branca no topo da página */
    filter: brightness(0) invert(1); 
}

.navbar.scrolled .nav_logo { 
    max-height: 50px; 
    /* Restaura as cores originais (Verde e Marrom) quando a navbar fica branca */
    filter: none; 
} 

.nav-link { color: rgba(255,255,255,0.9) !important; font-weight: 600; margin: 0 12px; position: relative; transition: color 0.3s; }
.navbar.scrolled .nav-link { color: var(--verde-escuro) !important; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--verde-claro); transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }

.nav-tabs { color: var(--verde-escuro) !important; }
.nav-tabs.active { color: rgba(255,255,255,0.9) !important; }

.hero-section { position: relative; height: 100vh; min-height: 700px; overflow: hidden; background-color: #000; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 10s linear; }
.hero-slide.active img { transform: scale(1.12); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(42, 83, 59, 0.85) 0%, rgba(10, 20, 15, 0.4) 100%); z-index: 3; }
.hero-content { position: relative; z-index: 4; height: 100%; display: flex; align-items: center; }
.hero-glass-panel { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); padding: 50px; border-radius: 20px; box-shadow: 0 25px 50px rgba(0,0,0,0.2); }
.hero-glass-panel h1, .hero-glass-panel p { color: white; }

/* ==========================================================================
   5. FRONTEND - SEÇÕES, SOBRE E SERVIÇOS
   ========================================================================== */
.section-padding { padding: 120px 0; }
.section-title { color: var(--verde-escuro); font-weight: 800; margin-bottom: 15px; font-size: 2.5rem; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: -10px; width: 60px; height: 4px; background: var(--verde-claro); border-radius: 2px; }
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }
.section-subtitle { color: var(--marrom-terra); font-weight: 600; margin-top: 25px; margin-bottom: 50px; font-size: 1.2rem; }

.about-image-wrapper { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-premium); transition: all 0.4s; }
.about-image-wrapper:hover { transform: scale(1.1); }
.about-image-wrapper::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-shadow: inset 0 0 50px rgba(0,0,0,0.1); z-index: 1; pointer-events: none; }

.feature-card { background: white; border-radius: 15px; padding: 20px; box-shadow: var(--shadow-3d); display: flex; align-items: flex-start; margin-top: 30px; transition: transform 0.3s; border: 1px solid rgba(0,0,0,0.02); }
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { background: linear-gradient(135deg, var(--verde-claro), var(--verde-escuro)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 2.5rem; margin-right: 20px; }
.feature-text h4 { font-size: 1.2rem; font-weight: 700; color: var(--verde-escuro); margin-bottom: 5px; }

.service-card { background: white; padding: 40px 30px; border-radius: 20px; text-align: center; box-shadow: 0 10px 30px rgba(42, 83, 59, 0.05); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); height: 100%; position: relative; overflow: hidden; z-index: 1; border: 1px solid rgba(0,0,0,0.03); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(180deg, rgba(94, 156, 85, 0.05) 0%, rgba(255,255,255,0) 100%); transition: height 0.4s ease; z-index: -1; }
.service-card:hover { transform: translateY(-15px) scale(1.02); box-shadow: var(--shadow-premium); }
.service-card:hover::before { height: 100%; }
.service-icon-wrapper { width: 80px; height: 80px; background: var(--fundo-claro); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; box-shadow: inset 0 5px 10px rgba(0,0,0,0.05), 0 5px 15px rgba(94, 156, 85, 0.2); transition: all 0.3s; }
.service-card:hover .service-icon-wrapper { background: var(--verde-claro); }
.service-icon { font-size: 2rem; color: var(--verde-claro); transition: color 0.3s; }
.service-card:hover .service-icon { color: white; }

/* ==========================================================================
   6. FRONTEND - PROJETOS (INDEX) E INTERNA (PROJETO.PHP)
   ========================================================================== */
#projetos { background: linear-gradient(135deg, var(--verde-escuro) 0%, #1a3a28 100%); color: white; position: relative; }
#projetos::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 30px 30px; opacity: 0.5; pointer-events: none; }
#projetos .section-title { color: white; }
#projetos .section-subtitle { color: var(--verde-claro); }

.project-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; overflow: hidden; transition: all 0.4s; height: 100%; }
.project-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.1); box-shadow: 0 20px 40px rgba(0,0,0,0.3); border: 1px solid rgba(255, 255, 255, 0.2); }
.project-img-container { width: 100%; height: 220px; overflow: hidden; position: relative; }
.project-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-img-container img { transform: scale(1.1); }
.project-info { padding: 25px; }
.project-tag { background: rgba(94, 156, 85, 0.3); color: var(--verde-claro); padding: 5px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; display: inline-block; }
.project-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 15px; color: white; }

/* Tela Interna do Projeto */
.project-hero { position: relative; height: 70vh !important; min-height: 500px; background-size: cover; background-position: center; background-attachment: fixed; display: flex; align-items: flex-end; padding-bottom: 50px; }
.project-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(10, 20, 15, 0.9) 0%, rgba(42, 83, 59, 0.4) 100%); z-index: 0; }
.project-glass-title { position: relative; z-index: 999 !important; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.2); padding: 40px; border-radius: 20px; color: white; display: inline-block; max-width: 800px; box-shadow: 0 25px 50px rgba(0,0,0,0.3);}
.project-tag-large { background: linear-gradient(135deg, var(--verde-claro), var(--verde-escuro)); color: white; padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(94, 156, 85, 0.4); }

.project-content-section { padding: 80px 0; }
.project-sidebar { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(20px); border-radius: 20px; padding: 40px 30px; box-shadow: var(--shadow-premium); position: sticky; top: 100px; border: 1px solid rgba(255, 255, 255, 1);}
.sidebar-item { margin-bottom: 25px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 25px; }
.sidebar-item:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.sidebar-title { font-size: 0.85rem; color: #888; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 8px; }
.sidebar-value { font-size: 1.1rem; color: var(--verde-escuro); font-weight: 600; }

.content-heading { color: var(--verde-escuro); font-weight: 800; margin-top: 40px; margin-bottom: 20px; position: relative; padding-left: 20px; }
.content-heading::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px; background: var(--verde-claro); border-radius: 2px; }
.content-paragraph { font-size: 1.1rem; line-height: 1.8; color: #555; margin-bottom: 25px; }

.project-gallery { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-premium); margin-top: 50px; margin-bottom: 30px; }
.project-gallery img { width: 100%; height: auto; object-fit: cover; transition: transform 0.5s; }
.project-gallery img:hover { transform: scale(1.05); }

/* Seção de CTA no final do Projeto */
.cta-section { background: linear-gradient(135deg, var(--verde-escuro) 0%, #1a3a28 100%); padding: 80px 0; text-align: center; color: white; position: relative; }
.cta-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 30px 30px; opacity: 0.5; pointer-events: none; }

/* ==========================================================================
   7. FRONTEND - CONTATO E FOOTER
   ========================================================================== */
.contact-info { background: white; padding: 50px; border-radius: 20px; box-shadow: var(--shadow-premium); height: 100%; border: 1px solid rgba(0,0,0,0.03); }
.contact-item { display: flex; align-items: center; margin-bottom: 30px; }
.contact-icon { width: 60px; height: 60px; background: linear-gradient(135deg, rgba(94, 156, 85, 0.1), rgba(42, 83, 59, 0.05)); color: var(--verde-escuro); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-right: 20px; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02); }
#map { height: 100%; min-height: 400px; border-radius: 20px; width: 100%; box-shadow: var(--shadow-premium); border: 5px solid white; }

footer { background-color: #12261a; color: rgba(255,255,255,0.7); padding: 50px 0; text-align: center}

/* ==========================================================================
   8. TELA DE LOGIN (CORREÇÃO DE BACKGROUND E INPUTS)
   ========================================================================== */
.login-wrapper {
    position: relative; height: 100vh; width: 100vw; display: flex; align-items: center; justify-content: center; 
    background-image: url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center;
}
.login-wrapper::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(135deg, rgba(10, 20, 15, 0.85) 0%, rgba(42, 83, 59, 0.7) 100%); z-index: 1;
}
.login-glass-card {
    position: relative; z-index: 2; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 20px; padding: 50px 40px; width: 100%; max-width: 450px; 
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.2); text-align: center;
}
.login-subtitle { color: #666; font-size: 0.95rem; margin-bottom: 40px; }

.form-floating { margin-bottom: 20px; }
.form-control { border-radius: 12px; border: 1px solid rgba(0, 0, 0, 0.1); background-color: #f9faf9; padding: 1rem 0.75rem; color: var(--verde-escuro); font-weight: 600; transition: all 0.3s ease; }
.form-control:focus { background-color: #fff; border-color: var(--verde-claro); box-shadow: 0 0 0 4px rgba(94, 156, 85, 0.15); }
.form-floating label { color: #888; padding-left: 15px; }

.input-icon-wrapper { position: relative; }
.input-icon-wrapper i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #aaa; z-index: 10; transition: color 0.3s; }
.form-control:focus + i { color: var(--verde-claro); }

.form-check-input:checked { background-color: var(--verde-claro); border-color: var(--verde-claro); }
.form-check-label { color: #555; font-size: 0.9rem; }
.forgot-password { color: var(--verde-escuro); font-size: 0.9rem; font-weight: 600; transition: color 0.3s; }
.forgot-password:hover { color: var(--verde-claro); }

.back-to-site { display: inline-block; margin-top: 30px; color: #666; font-weight: 600; font-size: 0.9rem; transition: all 0.3s; }
.back-to-site i { margin-right: 5px; transition: transform 0.3s; }
.back-to-site:hover { color: var(--verde-escuro); }
.back-to-site:hover i { transform: translateX(-5px); }

/* ==========================================================================
   9. PAINEL DE ADMINISTRAÇÃO (DASHBOARD, ADMIN, CONFIG, MÍDIA)
   ========================================================================== */
.sidebar { width: 260px; background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--verde-escuro) 100%); color: white; min-height: 100vh; position: fixed; top: 0; left: 0; box-shadow: 4px 0 15px rgba(0,0,0,0.1); z-index: 100; display: flex; flex-direction: column; }
.sidebar-header { padding: 30px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; }
.nav-menu { padding: 20px 0; flex-grow: 1; }
.nav-link-admin { color: rgba(255,255,255,0.7); padding: 15px 25px; display: flex; align-items: center; font-weight: 600; transition: all 0.3s; border-left: 4px solid transparent; }
.nav-link-admin i { margin-right: 15px; font-size: 1.2rem; width: 20px; text-align: center; }
.nav-link-admin:hover, .nav-link-admin.active { color: white; background: rgba(255,255,255,0.05); border-left: 4px solid var(--verde-claro); }
.sidebar-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); }

.main-content { flex-grow: 1; margin-left: 260px; padding: 0; min-height: 100vh; display: flex; flex-direction: column; width: calc(100% - 260px); }
.topbar { background: white; padding: 15px 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; }
.user-profile { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--verde-escuro); }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--verde-claro); color: white; display: flex; align-items: center; justify-content: center; }
.workspace { padding: 30px; }
.page-title { color: var(--verde-escuro); font-weight: 800; margin-bottom: 5px; }

.stat-card { background: white; border-radius: 15px; padding: 25px; box-shadow: 0 10px 20px rgba(0,0,0,0.03); display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(0,0,0,0.02); }
.stat-info h3 { font-weight: 800; color: var(--verde-escuro); margin: 0; font-size: 2rem; }
.stat-info p { margin: 0; color: #888; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
.stat-icon { width: 60px; height: 60px; border-radius: 15px; background: rgba(94, 156, 85, 0.1); color: var(--verde-claro); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }

.content-card, .config-card { background: white; border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.03); padding: 25px; margin-top: 30px; border: 1px solid rgba(0,0,0,0.02); }

/* Tabelas e Botões do Admin */
.table-responsive { border-radius: 10px; overflow: hidden; }
.table { margin-bottom: 0; vertical-align: middle; }
.table thead th { background: #f8f9fa; color: #666; font-weight: 600; border-bottom: none; text-transform: uppercase; font-size: 0.85rem; padding: 15px; }
.table tbody td { padding: 15px; border-bottom: 1px solid #eee; color: #555; }
.project-thumbnail { width: 60px; height: 40px; border-radius: 5px; object-fit: cover; }
.badge-status { padding: 6px 12px; border-radius: 50px; font-weight: 600; font-size: 0.75rem; }
.badge-status.active { background: rgba(94, 156, 85, 0.1); color: var(--verde-claro); }
.badge-status.draft { background: rgba(108, 117, 125, 0.1); color: #6c757d; }

.btn-action { width: 35px; height: 35px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: none; margin-right: 5px; transition: all 0.2s; }
.btn-edit { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.btn-edit:hover { background: #0d6efd; color: white; }
.btn-delete { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.btn-delete:hover { background: #dc3545; color: white; }

/* Dashboard Atividades */
.activity-item { display: flex; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 35px; height: 35px; border-radius: 50%; background: #f8f9fa; display: flex; align-items: center; justify-content: center; margin-right: 15px; color: var(--verde-escuro); font-size: 0.9rem; }
.activity-text p { margin: 0; font-size: 0.95rem; color: #444; }
.activity-text small { color: #999; font-size: 0.8rem; }

/* Upload e Mídia */
.upload-area { border: 2px dashed #ccc; border-radius: 15px; padding: 40px; text-align: center; background: white; transition: all 0.3s; cursor: pointer; margin-bottom: 30px; }
.upload-area:hover { border-color: var(--verde-claro); background: rgba(94, 156, 85, 0.02); }
.upload-area i { font-size: 3rem; color: #ccc; margin-bottom: 15px; transition: color 0.3s; }
.upload-area:hover i { color: var(--verde-claro); }
.media-card { background: white; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #eee; transition: all 0.3s; }
.media-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.media-img { width: 100%; height: 160px; object-fit: cover; }
.media-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 160px; background: rgba(42, 83, 59, 0.8); display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; transition: opacity 0.3s; }
.media-card:hover .media-overlay { opacity: 1; }
.media-btn { width: 40px; height: 40px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: white; transition: transform 0.2s; }
.media-btn:hover { transform: scale(1.1); }
.btn-copy { background: rgba(255,255,255,0.3); }
.btn-trash { background: rgba(220, 53, 69, 0.8); }
.media-info { padding: 12px; }
.media-info p { margin: 0; font-size: 0.85rem; font-weight: 600; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-info small { color: #999; font-size: 0.75rem; }

/* Modais e Configurações */
.config-header { display: flex; align-items: center; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.config-header i { font-size: 1.5rem; color: var(--verde-claro); margin-right: 15px; }
.config-header h4 { font-weight: 700; color: var(--verde-escuro); margin: 0; }
.form-select { border-radius: 8px; padding: 10px 15px; border: 1px solid #ddd; background-color: #fcfcfc;}
.form-select:focus { border-color: var(--verde-claro); box-shadow: 0 0 0 3px rgba(94, 156, 85, 0.1); background-color: white;}
.modal-header { background: #f8f9fa; border-radius: 15px 15px 0 0; border-bottom: 1px solid #eee; }
.modal-content { border-radius: 15px; border: none; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.modal-title { font-weight: 800; color: var(--verde-escuro); }
.section-divider { border-bottom: 2px dashed #eee; margin: 20px 0; padding-bottom: 10px; font-weight: 700; color: var(--verde-escuro); }
/* ==========================================================================
   CORREÇÃO: EFEITO PULSE DO BOTÃO WHATSAPP
   ========================================================================== */
.wpp-btn::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    border-radius: 50%; 
    border: 2px solid #25d366;
    animation: pulse-wpp 2s infinite; 
    z-index: -1;
}

@keyframes pulse-wpp {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
/* Correção do Header e Hero do Projeto */
.project-hero { 
    position: relative; 
    height: 60vh; 
    min-height: 500px; 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    display: flex; 
    align-items: flex-end; 
    padding-bottom: 50px; 
}

/* Garante que o texto dentro do glassmorphism seja sempre branco */
.project-glass-title h1, 
.project-glass-title p { 
    color: white !important; 
}

/* Respiro do Footer em todas as páginas */
footer { 
    background-color: #5f9c5581;; 
    color: var(--marrom-terra); 
    padding: 60px 0; 
    text-align: center; 
}

/* Garante que o botão WhatsApp não tenha linha embaixo */
.wpp-btn { text-decoration: none !important; }

/* Link de Acesso Restrito no Rodapé */
.admin-login-link {
    color: var(--marrom-terra);
    font-size: 0.75rem;
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.admin-login-link i {
    font-size: 0.85rem;
}

.admin-login-link:hover {
    color: var(--verde-escuro); /* Cor verde-claro do seu ecossistema visual */
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(155, 214, 140, 0.2);
    box-shadow: 0 0 12px rgba(155, 214, 140, 0.15);
}

.modal-title-dois { font-weight: 800; color: var(--verde-claro); }

/* =========================================
   DROPDOWN DE SERVIÇOS - HOVER ANIMADO
   ========================================= */

/* Ativa o hover apenas em telas grandes (Desktop) */
@media all and (min-width: 992px) {
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* Evita que o menu feche ao passar o mouse no gap */
        animation: fadeInDropdown 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
}

/* Animação suave de entrada de baixo para cima */
@keyframes fadeInDropdown {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Estilização Premium do container do menu */
.dropdown-menu {
    border-radius: 12px;
    padding: 12px 0;
    min-width: 320px; /* Garante que os títulos não quebrem linha feio */
    border-top: 4px solid #2A533B !important; /* Detalhe na cor da marca */
}

/* Estilização dos Links individuais */
.dropdown-item {
    padding: 10px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #444;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

/* Cor dos ícones para ficarem sutis no estado normal */
.icon-dropdown {
    color: #9bd68c;
    width: 25px;
    text-align: center;
    transition: 0.3s;
}

/* Efeito ao passar o mouse em cada link (Avanço leve para a direita) */
.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: #f0f7f2;
    color: #2A533B;
    padding-left: 30px; /* Faz o texto deslizar um pouquinho */
}

/* Escurece o ícone no hover do item */
.dropdown-item:hover .icon-dropdown {
    color: #2A533B;
}

/* Remove a setinha (caret) padrão do Bootstrap no menu Serviços */
.navbar .dropdown-toggle::after {
    display: none !important;
}

/* =========================================
   FOOTER COM TEXTURA SEAMLESS (OVERLAY)
   ========================================= */

footer {
    position: relative;
    /* Mantenha o background-color verde claro que você já colocou no seu HTML ou CSS */
    overflow: hidden; /* Garante que a textura não vaze para fora do footer */
}

/* Camada da textura */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Caminho para a sua imagem. Ajuste a pasta se necessário */
    background-image: url('img/bg.webp'); 
    background-repeat: repeat; /* Faz o efeito seamless lado a lado e para baixo */
    
    /* AQUI ESTÁ O SEGREDO: Opacidade da textura */
    /* 0.05 significa 5% de visibilidade. Aumente para 0.1 ou 0.15 se quiser mais forte */
    opacity: 0.10;
    mix-blend-mode: multiply;
    
    z-index: 0; /* Joga a textura para o fundo */
    pointer-events: none; /* Garante que a imagem não atrapalhe o clique nos links */
}

/* Garante que o conteúdo (textos, logo, links) fique POR CIMA da textura */
footer .container {
    position: relative;
    z-index: 1; 
}

/* =========================================
   CARDS DE DESTAQUE - EFEITO HOVER PREMIUM
   ========================================= */

/* Estilo base do card */
.card-destaque {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.06) !important; /* Borda bem suave */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Transição elástica e fluida */
    will-change: transform, box-shadow; /* Otimiza a performance da animação */
}

/* Efeito ao passar o mouse no Card */
.card-destaque:hover {
    transform: translateY(-8px); /* Levanta o card sutilmente */
    /* Cria uma sombra difusa usando a cor verde da sua marca (#2A533B) com 12% de opacidade */
    box-shadow: 0 15px 35px rgba(42, 83, 59, 0.12) !important; 
    border-color: rgba(42, 83, 59, 0.2) !important;
}

/* Estilo base do círculo do ícone */
.card-destaque .icon-wrapper {
    width: 60px; 
    height: 60px; 
    background: #f0f7f2; 
    border-radius: 50%;
    transition: all 0.4s ease;
}

/* Cor base do ícone */
.card-destaque .icon-destaque {
    color: #2A533B;
    transition: all 0.4s ease;
}

/* Efeito no círculo e no ícone quando passa o mouse no Card */
.card-destaque:hover .icon-wrapper {
    background-color: #2A533B; /* Fundo do círculo inverte para o verde escuro */
    transform: scale(1.1); /* Círculo dá uma leve "pulsada" crescendo 10% */
}

.card-destaque:hover .icon-destaque {
    color: #ffffff; /* Ícone fica branco para dar contraste */
}

/* Correção do menu mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: white; /* Fundo sólido para não ver o texto atrás */
        padding: 20px;
        margin-top: 15px;
        border-radius: 10px;
    }
    .navbar-nav .nav-link {
        color: var(--verde-escuro) !important; /* Texto branco no menu mobile */
    }
}

/* Centralização do conteúdo do Hero */
.hero-section {
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    min-height: 80vh; /* Garante altura mínima */
    position: relative;
}

.hero-content {
    width: 100%;
}

/* Garante que o painel fique centralizado e responsivo */
.hero-glass-panel {
    margin: 0 auto; /* Força a centralização */
    text-align: center;
}

@media (max-width: 768px) {
    .hero-glass-panel {
        padding: 20px; /* Mais respiro no mobile */
        width: 95%; /* Ocupa quase toda a largura mas mantém margem */
    }
}