/* ==========================================================
   RESET E VARIÁVEIS (Identidade Essenza Premium)
   ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --primary-dark: #091321;      
    --primary-blue: #0f2545;      
    --accent-gold: #d4af37;       
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --text-light: #ffffff;
    --text-gray: #6b7c93;
    --bg-light: #f4f6f9;
}

body {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    line-height: 1.6;
	overflow-x: hidden;
	
}

a { text-decoration: none; }
.container { max-width: 1250px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; font-size: 2.2rem; color: var(--primary-dark); margin-bottom: 10px; font-weight: 800;}
.section-subtitle { text-align: center; color: var(--text-gray); margin-bottom: 50px; font-size: 1.1rem; }
.highlight { color: var(--accent-gold); }

/* ==========================================================
   HEADER
   ========================================================== */
.header {
    background-color: var(--primary-dark);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; }

.btn-primary {
    background-color: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}
.btn-primary:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
    position: relative;
    height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 50px; 
}
.hero-bg { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay {
    position: absolute; width: 100%; height: 100%;
    background: linear-gradient(110deg, rgba(9,19,33,0.95) 0%, rgba(15,37,69,0.6) 100%); z-index: 2;
}
.hero-content {
    position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 50px;
}
.hero-text { flex: 1; color: var(--text-light); }
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; font-weight: 800; }
.hero-text p { font-size: 1.15rem; color: #d0d7e0; max-width: 90%; margin-bottom: 30px; font-weight: 300; }
.hero-btn-scroll { color: var(--accent-gold); font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: 10px; transition: 0.3s;}
.hero-btn-scroll:hover { transform: translateY(5px); }

/* FORMULÁRIO HERO */
.hero-form-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px; border-radius: 16px; width: 400px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.hero-form-box h2 { color: #fff; font-size: 1.5rem; text-align: center; }
.hero-form-box p { color: #aaa; text-align: center; margin-bottom: 25px; font-size: 0.9rem; }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group select {
    width: 100%; padding: 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; font-size: 1rem; 
    background: rgba(255,255,255,0.9); color: var(--primary-dark);
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent-gold); outline: none; }
.btn-submit {
    width: 100%; background-color: var(--whatsapp-green); color: white; border: none; padding: 15px;
    font-size: 1.1rem; font-weight: 700; border-radius: 8px; cursor: pointer; transition: 0.3s; margin-top: 10px;
}
.btn-submit:hover { background-color: var(--whatsapp-dark); }

/* ==========================================================
   SERVIÇOS PRINCIPAIS (OVERLAP)
   ========================================================== */
.main-services {
    position: relative;
    z-index: 10;
    margin-top: -100px; /* Faz sobrepor o Hero */
    margin-bottom: 80px;
}
.main-services-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.main-card {
    background: #ffffff; padding: 30px 20px; border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); transition: 0.4s;
    text-align: center; border-bottom: 4px solid transparent;
}
.main-card:hover { transform: translateY(-10px); border-bottom-color: var(--accent-gold); }
.main-card .card-icon { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 20px; }
.main-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 15px; line-height: 1.3;}
.main-card p { font-size: 0.85rem; color: var(--text-gray); margin-bottom: 20px; }
.main-card-link { font-size: 0.9rem; font-weight: 700; color: var(--accent-gold); display: inline-flex; align-items: center; gap: 5px; }

/* ==========================================================
   SEO SERVICES COM HOVER BUTTON
   ========================================================== */
.seo-services-section { padding: 40px 0 80px 0; background-color: var(--bg-light); }
.seo-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px;
}
.seo-card {
    background-color: #ffffff; border-radius: 12px; padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
}
.seo-card-content h3 { font-size: 1.2rem; color: var(--primary-blue); margin-bottom: 15px; font-weight: 700; }
.seo-card-content p { font-size: 0.95rem; color: var(--text-gray); }

/* Lógica do Hover Button (Aparece ao passar o mouse) */
.seo-card-hover {
    margin-top: 20px; height: 0; opacity: 0; overflow: hidden;
    transform: translateY(20px); transition: all 0.4s ease;
}
.seo-card:hover .seo-card-hover { height: 45px; opacity: 1; transform: translateY(0); }
.btn-hover-whats {
    width: 100%; background: var(--whatsapp-green); color: #fff; border: none; padding: 12px;
    border-radius: 6px; font-weight: 700; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 0.9rem;
}
.btn-hover-whats:hover { background: var(--whatsapp-dark); }


/* ==========================================================
   GRADE DE PROJETOS FIXA EXCLUSIVA (3x2)
   ========================================================== */
.essenza-portfolio-grid-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.essenza-subsection-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 40px;
    font-weight: 800;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.essenza-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px; 
}

.essenza-grid-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    aspect-ratio: 1 / 1; 
    background-color: #fff;
}

.essenza-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.essenza-grid-item:hover img {
    transform: scale(1.06);
    cursor: pointer;
}

/* ==========================================================
   SLIDER PANORÂMICO ISOLADO (Efeito Ken Burns Contínuo)
   ========================================================== */
.essenza-panoramic-section { 
    padding: 80px 0 0 0; 
    background-color: #ffffff; 
    overflow: hidden; 
}

.essenza-panoramic-slider {
    position: relative;
    width: 100vw;
    height: 70vh;
    overflow: hidden;
    margin-top: 30px;
}

.essenza-panoramic-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    overflow: hidden;
}

.essenza-panoramic-slide.active {
    opacity: 1;
    z-index: 5;
}

.essenza-panoramic-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
}

.essenza-panoramic-slide.active img {
    animation: essenzaKenBurns 8s linear forwards;
}

@keyframes essenzaKenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-1%, -1%); }
}

/* ==========================================================
   GALERIA "KEN BURNS" (Fotos com Movimento)
   ========================================================== */
.gallery-section { padding: 80px 0 0 0; background-color: var(--bg-light); overflow: hidden; }

.gallery-slider {
    position: relative;
    width: 100vw;
    height: 70vh;
    overflow: hidden;
    margin-top: 30px;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    overflow: hidden;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
}

.gallery-slide.active img {
    animation: kenburnsSlide 8s linear forwards;
}

@keyframes kenburnsSlide {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-1%, -1%); }
}

/* ==========================================================
   FAQ SECTION (Duas Colunas)
   ========================================================== */
.faq-section { padding: 80px 0; background-color: var(--bg-light); }
.faq-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; /* Separa em duas colunas */
}
.faq-item { background: #fff; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); overflow: hidden; }
.faq-question {
    display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 20px 25px;
}
.faq-question h3 { font-size: 1rem; font-weight: 600; color: var(--primary-dark); }
.icon-show { transition: transform 0.3s; color: var(--accent-gold); font-size: 1.2rem; }
.faq-content { display: none; padding: 0 25px 20px 25px; color: var(--text-gray); font-size: 0.95rem; }
.faq-active .faq-content { display: block; }
.faq-active .icon-show { transform: rotate(45deg); color: var(--primary-blue); } /* Gira o + para virar X */

/* ==========================================================
   CONTATO (MAPA FULL + CARD FLUTUANTE)
   ========================================================== */
.contact-section {
    position: relative; height: 600px; display: flex; align-items: center;
}
.map-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}
.map-container iframe { width: 100%; height: 100%; filter: grayscale(50%); /* Deixa o mapa mais elegante */ }

.floating-contact-wrapper { position: relative; z-index: 2; width: 100%; }
.floating-contact-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 450px; padding: 40px; border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    border-top: 5px solid var(--primary-blue);
}
.floating-contact-card h3 { font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 10px; font-weight: 800;}
.floating-contact-card p { color: var(--text-gray); margin-bottom: 30px; font-size: 0.95rem;}
.contact-details { list-style: none; margin-bottom: 30px; }
.contact-details li { margin-bottom: 15px; color: var(--primary-dark); font-weight: 500; display: flex; gap: 15px; align-items: center; }
.contact-details i { color: var(--accent-gold); font-size: 1.2rem; }
.btn-primary-large {
    width: 100%; background: var(--primary-blue); color: #fff; border: none; padding: 16px;
    border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.3s;
}
.btn-primary-large:hover { background: var(--accent-gold); color: var(--primary-dark); }

/* ==========================================================
   FOOTER E WIDGETS
   ========================================================== */
.footer { background-color: var(--primary-dark); color: #7a8a9e; padding: 30px 0; text-align: center; font-size: 0.85rem; }

.whatsapp-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--whatsapp-green); color: white;
    text-align: center; padding: 15px 0; z-index: 9999; font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 10px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2); transition: 0.3s;
}
.whatsapp-bar:hover { background-color: var(--whatsapp-dark); }

.whatsapp-push {
    position: fixed; bottom: 80px; right: 20px; background: white; width: 300px; padding: 20px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 10000; border-left: 5px solid var(--whatsapp-green);
    opacity: 0; transform: translateY(50px); visibility: hidden; transition: all 0.5s ease;
}
.whatsapp-push.show { opacity: 1; transform: translateY(0); visibility: visible; }
.close-push { position: absolute; top: 10px; right: 15px; cursor: pointer; font-size: 1.2rem; color: #999; }
.push-header { display: flex; align-items: center; margin-bottom: 15px; }
.push-avatar { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--whatsapp-green); margin-right: 15px; }
.push-info h4 { color: var(--whatsapp-green); font-size: 0.9rem; }
.push-info p { font-size: 0.8rem; color: #666; margin-top: 2px;}
.btn-push-whats { display: block; background: var(--whatsapp-green); color: white; text-align: center; padding: 10px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; }
.btn-push-whats:hover { background: var(--whatsapp-dark); }

/* ==========================================================
   RESPONSIVIDADE (MOBILE)
   ========================================================== */
@media (max-width: 991px) {
    .hero { height: auto; padding: 120px 0 60px 0; }
    .hero-content { flex-direction: column; text-align: center; gap: 30px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { max-width: 100%; margin: 0 auto 30px auto; }
    .hero-btn-scroll { justify-content: center; }
    .hero-form-box { width: 100%; max-width: 400px; margin: 0 auto; }
    
    .main-services { margin-top: 40px; }
    .main-services-grid { grid-template-columns: 1fr; }
	
	.essenza-project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .essenza-panoramic-slider { height: 50vh; }
    
    .gallery-slider { height: 50vh; }
    .faq-grid { grid-template-columns: 1fr; }
    
    .contact-section { height: auto; flex-direction: column; }
    .map-container { position: relative; height: 400px; }
    .floating-contact-wrapper { padding: 20px; margin-top: -100px; }
    .floating-contact-card { width: 100%; margin: 0 auto; }
}

@media (max-width: 768px) {
    /* Oculta o texto do botão de atendimento no celular */
    .btn-atendimento-online span, 
    .btn-atendimento-online .texto-botao {
        display: none !important;
    }

    /* Ajusta o container do botão para ficar apenas com o ícone */
    .btn-atendimento-online {
        padding: 10px !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important; /* Torna o botão redondo no mobile */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}