/* ==========================================================================
   1. VARIÁVEIS E CONFIGURAÇÕES GERAIS
   ========================================================================== */
:root {
    /* Cores Principais baseadas na Logo */
    --primary: #9FD4D5;       /* Azul escuro da bússola */
    --primary-dark: #9FD4D5;  /* Uma versão um pouco mais escura para hovers */
    --secondary: #da8456;     /* Dourado do anel da logo */
    --accent: #F3B177;        /* Laranja do quebra-cabeça para destaques */
    
    /* Cores do Quebra-cabeça (Para usar em cards, ícones, etc) */
    --logo-azul: #8EC1CD;
    --logo-laranja: #EFA773;
    --logo-verde: #94C397;
    --logo-amarelo: #F7D273;

    /* Cores de Fundo e Texto */
    --light: #f4f7f9;
    --white: #ffffff;
    --text: #333;
    --whatsapp: #25d366;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { color: var(--text); line-height: 1.6; overflow-x: hidden; scroll-behavior: smooth; }

.container { max-width: 1200px; margin: auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.bg-light { background: var(--light); }

.bg-azul { background-color: var(--primary-dark); color: var(--white); }
.bg-azul h2, .bg-azul p { color: var(--white); }
h2 { text-align: center; margin-bottom: 2rem; color: var(--primary); font-size: 2.5rem; }

/* ==========================================================================
   2. CABEÇALHO E NAVEGAÇÃO
   ========================================================================== */
header { 
    background: #fff; padding: 1rem 0; position: sticky; top: 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000;
    transition: padding 0.3s ease-in-out, box-shadow 0.3s ease-in-out; 
    will-change: padding;
}

nav { display: flex; align-items: center; gap: 2rem; width: 100%; }

.logo img { max-height: 55px; width: auto; transition: transform 0.3s ease-in-out; transform-origin: left center; will-change: transform; }
header.rolou { padding: 0.3rem 0; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
header.rolou .logo img { transform: scale(0.8); }

.hamburger { display: none; }
.nav-links { display: flex; list-style: none; align-items: center; flex: 1; margin: 0; padding: 0; }
.nav-links li { display: flex; align-items: center; }
.nav-links li a { text-decoration: none; color: var(--text); margin-left: 1.2rem; font-weight: 600; white-space: nowrap; transition: 0.3s; position: relative; }
.nav-links > li > a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: var(--secondary); transition: width 0.3s ease; }
.nav-links > li > a:hover { color: var(--primary); }
.nav-links > li > a:hover::after { width: 100%; }
.nav-links li:last-child { margin-left: auto; }
.btn-close { display: none !important; }

/* ==========================================================================
   3. PORTAL DO ALUNO
   ========================================================================== */
.dropdown-portal { position: relative !important; display: flex; align-items: center; height: 100%; }
.btn-portal { display: flex; align-items: center; gap: 8px; cursor: pointer; z-index: 1001; }
.btn-portal:hover { background: transparent !important; color: var(--primary) !important; }

.dropbtn { background: var(--primary); color: white; padding: 10px 22px; border-radius: 50px; border: 2px solid var(--primary); cursor: pointer; font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.dropbtn:hover { background: transparent; color: var(--primary); }
/* FORÇANDO A COR DO BOTÃO PORTAL DO ALUNO */
button.btn-portal.dropbtn {
    background-color: #da8456 !important;
    color: #ffffff !important;
    border: 2px solid #da8456 !important;
}

/* FORÇANDO O EFEITO AO PASSAR O MOUSE */
button.btn-portal.dropbtn:hover {
    background-color: transparent !important;
    color: #da8456 !important;
}

.dropdown-content { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background-color: var(--white); min-width: 220px; box-shadow: 0px 10px 25px rgba(0,0,0,0.15); border-radius: 8px; z-index: 9999; padding-top: 15px; border: 1px solid #eee; }
.dropdown-content::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid #ffffff; }
.dropdown-content a { color: #333 !important; padding: 12px 20px !important; text-decoration: none !important; display: block !important; font-size: 0.95rem; font-weight: 500; transition: 0.2s; margin: 0 !important; text-align: left; }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: #f8f9fa; color: var(--primary) !important; padding-left: 25px !important; }

@media (min-width: 993px) {
    .dropdown-portal:hover .dropdown-content { display: block !important; animation: fadeInDropdown 0.3s ease; }
}
@keyframes fadeInDropdown { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ==========================================================================
   4. HOME - SESSÕES PRINCIPAIS
   ========================================================================== */
.hero { height: 50vh; background-image: url('imagens/frenteescola.webp'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.hero h1 { font-size: 3.5rem; font-weight: 800; text-shadow: 2px 2px 15px rgba(0,0,0,0.5); }

.highlights-section { margin-top: -100px; position: relative; z-index: 10; }
.highlights-grid { display: flex; align-items: center; justify-content: center; }
.icon-box { font-size: 3rem; margin-bottom: 1rem; transition: transform 0.3s ease; }

.highlight-card { background: var(--accent); color: white; padding: 5rem 2rem; text-align: center; text-decoration: none; flex: 1; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, filter 0.4s ease; display: flex; flex-direction: column; justify-content: center; min-height: 300px; border-radius: 8px; }
.highlight-card.center-card { background: var(--secondary); padding: 4rem 2.5rem; flex: 1.25; min-height: 370px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); z-index: 5; border-radius: 12px; margin: 0 -15px; }
.highlight-card:hover { transform: translateY(-12px) scale(1.03); box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3); filter: brightness(1.1); z-index: 20; }
.highlight-card:hover .icon-box { transform: scale(1.2) rotate(5deg); }

.desc-text { font-weight: bold; font-size: large; }
.proposta-flex { display: flex; align-items: center; gap: 4rem; }
.proposta-text { flex: 1; }
.tagline { color: var(--primary); font-weight: bold; font-size: 0.9rem; }
.proposta-text h2 { text-align: left; font-size: 3rem; margin-bottom: 1rem; }
.proposta-image-parallax { flex: 1; height: 500px; border-radius: 20px; background-size: cover; background-position: center; background-attachment: fixed; }

/* ==========================================
   Tamanho para as novas imagens de ícones
   ========================================== */
.icon-box .icone-img,
.dif-icon .icone-img {
    width: 60px; /* Você pode aumentar ou diminuir esse valor */
    height: 60px;
    object-fit: contain; /* Evita que a imagem fique esticada ou achatada */
    display: block;
    margin: 0 auto; /* Garante que fique centralizado */
}

/* ==========================================
   Novas regras para a seção com imagens espalhadas (MISSÃO)
   ========================================== */

.proposta-grid-images {
    flex: 1.2;
    position: relative;
    min-height: 550px;
    display: block;
    width: 100%;
}

.grid-item-image {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    aspect-ratio: 1 / 1;
    border: none;
    background-color: #fff;
    transition: transform 0.3s ease, z-index 0.2s;
}

.grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item-image:hover {
    transform: scale(1.08);
    z-index: 10 !important;
}

/* --- Posicionamento dos containers --- */
.img-pos-1 { top: 0%; left: 5%; width: 28%; z-index: 2; }
.img-pos-2 { top: 32%; left: 0%; width: 32%; z-index: 3; }
.img-pos-3 { bottom: 0%; left: 8%; width: 28%; z-index: 2; }
.img-pos-4 { top: 18%; left: 34%; width: 36%; z-index: 4; }
.img-pos-5 { bottom: 5%; left: 36%; width: 33%; z-index: 3; }
.img-pos-6 { top: 35%; right: 0%; width: 34%; z-index: 5; }

#nova-secao .proposta-text {
    z-index: 1;
}

/* ==========================================
   Responsividade para a colagem de imagens
   ========================================== */
@media (max-width: 992px) {
    .proposta-grid-images {
        min-height: 480px;
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .proposta-grid-images {
        min-height: 380px;
    }
    .img-pos-1, .img-pos-2, .img-pos-3, .img-pos-4, .img-pos-5, .img-pos-6 {
        width: 38%;
    }
    .img-pos-6 { right: -5%; }
}


/* Infraestrutura */
.infra-flex { display: flex; align-items: center; gap: 4rem; }
.infra-text { flex: 1; }
.infra-text h2 { text-align: left; margin-bottom: 2rem; font-size: 2.8rem; }
.infra-text p { color: #333; font-size: 1.4rem; line-height: 1.8; margin-bottom: 2.5rem; }
.check-list li { color: #333; font-size: 1.15rem; margin-bottom: 1rem; }
.infra-slider { flex: 1.5; height: 500px; position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.slider-container { width: 100%; height: 100%; position: relative; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: 0.8s; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slide::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); z-index: 1; }
.slide-caption { position: absolute; bottom: 30px; left: 30px; color: white; font-size: 1.2rem; font-weight: 600; z-index: 2; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); background: none; padding: 0; }

.infra-slider button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px); color: white; border: 1px solid rgba(255, 255, 255, 0.4); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; border-radius: 50%; transition: all 0.3s ease; }
.infra-slider button:hover { background: var(--secondary); border-color: var(--secondary); transform: translateY(-50%) scale(1.1); }
.next { right: 20px; } 
.prev { left: 20px; }

.slider-dots { position: absolute; bottom: 15px; width: 100%; display: flex; justify-content: center; gap: 8px; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.4s ease; }
.dot.active { background: var(--secondary); width: 25px; border-radius: 5px; }

/* Segmentos de Ensino */
#segmentos h2 {
    color: #000000;
}
.segmentos-grid-modern { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; padding: 20px 0; }
.seg-card-modern { background: var(--white); padding: 2.5rem 2rem; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.05); position: relative; overflow: hidden; transition: all 0.4s ease; display: flex; flex-direction: column; }
.seg-card-modern::before { content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 5px; background: var(--secondary); transition: width 0.4s ease; }
.seg-icon-wrapper { width: 65px; height: 65px; background: rgba(0, 68, 136, 0.08); color: var(--primary); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1.5rem; transition: all 0.4s ease; }
.seg-card-modern h3 { color: var(#050000); font-size: 1.5rem; margin-bottom: 0.8rem; text-align: left; }
.seg-intro { color: #666; font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.5rem; }
.seg-features { list-style: none; margin-bottom: 2rem; flex-grow: 1; }
.seg-features li { font-size: 0.9rem; color: #444; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 8px; }
.seg-features li i { color: #25D366; font-size: 0.8rem; }
.seg-card-modern:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); border-color: transparent; }
.seg-card-modern:hover::before { width: 100%; }
.seg-card-modern:hover .seg-icon-wrapper { background: var(--primary); color: var(--white); transform: scale(1.1) rotate(5deg); }

/* Diferenciais Premium */
.diferenciais-premium { background: var(--primary-dark); color: white; }
.diferenciais-premium h2 { color: #000000; }
#diferenciais { padding-bottom: 0 !important; }
.dif-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.dif-card { background: #74c8c9; padding: 4rem 3.5rem; border-radius: 20px; border: 2px solid rgba(255,255,255,0.1); transition: 0.4s; text-align: center; }
.dif-card:hover { transform: translateY(-10px); border-color: var(--secondary); background: rgba(255,255,255,0.1); }
.dif-icon { font-size: 3rem; margin-bottom: 1rem; }
.dif-card h3 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.dif-card p { font-size: 1.15rem; line-height: 1.5; }

.dif-grid .dif-card:last-child, .dif-grid .card-matricula { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 550px; }
.card-matricula { background-color: var(--white); padding: 3.5rem 2.5rem; border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: flex; flex-direction: column; align-items: center; }
.card-matricula:hover { background-color: var(--white); border-color: transparent; transform: translateY(-5px); }
.kicker-matricula { display: block; color: #888; font-size: 0.85rem; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 0.5rem; font-weight: 600; }
.card-matricula h3 { color: #050000; font-size: 1.8rem; margin-bottom: 1.5rem; }
.card-matricula p { color: #333; font-size: 1.15rem; line-height: 1.5; margin-bottom: 2rem; max-width: 90%; }
.btn-outline-blue { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 24px; background: transparent; border: 2px solid var(--primary-dark); color: var(--primary-dark); cursor: pointer; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: 0.3s ease; }
.btn-outline-blue:hover { background-color: var(--primary-dark); color: var(--white); }

.contadores-container { grid-column: 1 / -1; display: flex; justify-content: space-around; align-items: center; padding: 2rem 0 3rem 0; text-align: center; color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 2rem; }
.contador-box .numero { font-size: 3rem; color: var(--secondary); margin-bottom: 0.5rem; font-weight: 800; }
.contador-box p {color: var(--secondary); font-size: 1.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* NOVA SEÇÃO DE PARCEIROS */
.parceiros-container { grid-column: 1 / -1; text-align: center; padding: 1rem 0 3rem 0; }
.parceiros-container h3 { color: #000000; font-size: 2rem; margin-bottom: 2rem; }
.parceiros-grid { display: flex; justify-content: center; align-items: center; gap: 8rem; flex-wrap: wrap; }
.parceiro-item { width: 165px; height: 165px; background-color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 1.5rem; box-shadow: 0 10px 25px rgba(0,0,0,0.15); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.parceiro-item:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.3); }
.parceiro-item img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Status do Formulário (Usado no Modal) */
.form-status { margin-top: 1.5rem; text-align: center; font-weight: 600; padding: 12px; border-radius: 8px; font-size: 0.95rem; display: none; animation: fadeInDropdown 0.3s ease; }
.form-status.sucesso { display: block; background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-status.erro { display: block; background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ==========================================================================
   5. MODAL DE INTERESSE DE MATRÍCULA
   ========================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); z-index: 10000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background-color: var(--white); padding: 3.5rem; border-radius: 20px; width: 90%; max-width: 550px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: slideDownIn 0.4s ease forwards; text-align: center; }
@keyframes slideDownIn { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.fechar-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #aaa; background: none; border: none; cursor: pointer; transition: 0.3s ease; }
.fechar-modal:hover { color: var(--primary); transform: rotate(90deg); }
.modal-content h2 { color: #050000; margin-bottom: 0.5rem; font-size: 2rem; }
.modal-content p { color: #555; margin-bottom: 2.5rem; font-size: 1rem; }
.form-group-modal { text-align: left; margin-bottom: 1.2rem; }
.form-group-modal label { display: block; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; font-size: 0.9rem; }
.form-group-modal input, .form-group-modal select { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 1rem; background-color: #fcfcfc; }
.form-group-modal input:focus, .form-group-modal select:focus { outline: none; border-color: var var(--secondary); box-shadow: 0 0 0 3px rgba(196, 110, 40, 0.1); }
.form-group-modal select { appearance: none; background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23004488%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'); background-repeat: no-repeat; background-position: right 15px top 50%; background-size: 12px auto; cursor: pointer; }
optgroup { font-weight: bold; color: #050000; background-color: var(--light); }
.btn-submit-modal { width: 100%; padding: 12px 20px; background-color: #da8456; color: white; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: 0.3s; margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-submit-modal:hover { background-color: #da8456; }
.btn-submit-modal:disabled { background-color: #999; cursor: not-allowed; }

/* ==========================================================================
   6. RODAPÉ (FOOTER)
   ========================================================================== */
.footer-wave-separator { width: 100%; overflow: hidden; line-height: 0; background-color: var(--primary-dark); }
.footer-wave-separator svg { position: relative; display: block; width: calc(100% + 60px); height: 120px; transform: translateX(-20px); }
.footer-wave-separator .shape-fill-base { fill: var(--white); }
.footer-wave-separator .shape-fill-mid { fill: #3379be; }
.footer-wave-separator .shape-fill-light { fill: var(--primary-dark); }

footer { background: var(--white); color: #050000; padding: 0 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; padding-top: 4rem; }
.footer-info { display: flex; flex-direction: column; gap: 8px; }
.footer-info h3 { color: #050000; margin-bottom: 10px; }
.footer-info p { color: #050000;}
.link-trabalhe { color: var(--secondary); text-decoration: none; font-weight: bold; margin-top: 5px; }
.link-trabalhe:hover { text-decoration: underline; }

.social-icons { margin-top: 1.5rem; display: flex; gap: 15px; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 50%; text-decoration: none; font-size: 1.2rem; transition: 0.3s ease; }
.social-icons a:hover { background: var(--secondary); transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.footer-map iframe { width: 100%; height: 100%; min-height: 250px; }
.footer-bottom { text-align: center; margin-top: 3rem; border-top: 1px solid #ddd; padding-top: 1rem; font-size: 0.9rem; }
.footer-bottom p { color: #050000;}

.whatsapp-float { position: fixed !important; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: var(--whatsapp); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 9999; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.3s; }
.whatsapp-float img { width: 35px !important; height: 35px !important; object-fit: contain; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.4); }

.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* PÁGINAS INTERNAS */
.eventos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.evento-card { background: var(--white); border-radius: 15px; overflow: hidden; text-decoration: none; color: var(--text); box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.3s; display: block; }
.evento-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.evento-img { height: 220px; overflow: hidden; }
.evento-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.evento-card:hover .evento-img img { transform: scale(1.1); }
.evento-info { padding: 1.5rem; text-align: center; }
.evento-info h3 { color: #050000; margin-bottom: 0.5rem; font-size: 1.5rem; }
.evento-desc { text-align: center; max-width: 800px; margin: 0 auto 3rem auto; font-size: 1.15rem; line-height: 1.8; }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.galeria-grid img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; transition: 0.3s; cursor: pointer; }
.galeria-grid img:hover { transform: scale(1.03); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.lightbox { display: none; position: fixed; z-index: 20000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); align-items: center; justify-content: center; }
.lightbox.ativo { display: flex; }
.lightbox-conteudo { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: zoomIn 0.3s ease; }
.fechar-lightbox { position: absolute; top: 20px; right: 40px; color: white; font-size: 50px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.fechar-lightbox:hover { color: var(--secondary); transform: scale(1.1); }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ==========================================================================
   PÁGINA: SOBRE NÓS
   ========================================================================== */

/* Hero da página Sobre Nós */
.img-hero-sobre {
    width: 80%; /* Reduz a largura da imagem */
    max-width: 800px; /* Define um tamanho máximo */
    height: 600px; /* Reduz a altura */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 3rem;
    margin-left: auto; /* Centraliza a imagem */
    margin-right: auto; /* Centraliza a imagem */
    display: block; /* Necessário para o margin-left/right funcionar */
}

.sobre-hero .sobre-text h2 {
    text-align: left;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(#333);
    font-weight: bold;
}

.sobre-hero .sobre-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    font-weight: bold;
}

/* Quadro de Cargos */
.cargos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.section.bg-azul .container.reveal h2,
.section.bg-azul .container.reveal > p {
    color: #000000 !important;
}

.cargo-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    color: var(--text);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-bottom: 5px solid var(--secondary);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
}

.cargo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.cargo-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cargo-card h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cargo-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Parceiros com Texto */
.parceiros-sobre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.parceiro-sobre-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.parceiro-sobre-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.parceiro-sobre-card img {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.parceiro-sobre-card h4 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.parceiro-sobre-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Responsividade adicional para a página Sobre Nós */
@media (max-width: 768px) {
    .img-hero-sobre {
        height: 250px;
    }
    .sobre-hero .sobre-text h2 {
        font-size: 2rem;
        text-align: center;
    }
}

/* ==========================================================================
   7. RESPONSIVIDADE (MOBILE / TABLET)
   ========================================================================== */
@media (max-width: 992px) {
    nav { justify-content: space-between; gap: 0; }
    .hamburger { display: block; background: none; border: none; cursor: pointer; }
    .hamburger span { display: block; width: 25px; height: 3px; background: var(--primary); margin: 5px 0; }
    .nav-links { position: fixed; right: -100%; top: 0; width: 70%; height: 100vh; background: white; flex-direction: column; transition: 0.4s; padding-top: 100px; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
    .nav-links.active { right: 0; }
    .nav-links li { margin-bottom: 1.5rem; }
    .nav-links li:last-child { margin-left: 0; margin-top: 1rem; width: 100%; }
    .nav-links li a { margin-left: 0; }
    .btn-close { display: block !important; position: absolute; top: 20px; right: 25px; background: none; border: none; font-size: 2rem; color: var(--primary); cursor: pointer; transition: 0.3s; }
    .btn-close:hover { color: var(--secondary); transform: scale(1.1); }

    .dropdown-portal { width: 100%; margin-top: 1rem; text-align: left; display: block !important; }
    .dropdown-content { position: static !important; transform: none !important; width: 100% !important; box-shadow: none !important; border: none !important; display: none; background: #f9f9f9 !important; padding-top: 0; margin-top: 10px; }
    .dropdown-content.show { display: block !important; }

    .segmentos-grid-modern { grid-template-columns: repeat(2, 1fr); }
    .highlights-grid, .proposta-flex, .infra-flex, .segmentos-grid, .dif-grid, .footer-grid { flex-direction: column; grid-template-columns: 1fr; }
    .highlight-card.center-card { margin: 15px 0; min-height: auto; }
    .proposta-image-parallax { background-attachment: scroll; height: 350px; width: 100%; flex: none; display: block; margin-top: 2rem; }
    .infra-slider { height: 300px; width: 100%; flex: none; display: block; margin-bottom: 2rem; }
    
    .contadores-container { flex-direction: column; gap: 2rem; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .modal-content { padding: 2rem 1.5rem; }
}

@media (max-width: 768px) {
    .segmentos-grid-modern { grid-template-columns: 1fr; }
    .seg-card-modern { padding: 2rem 1.5rem; }
    
    /* Regras atualizadas para a secção Hero no telemóvel */
    .hero {
        background-size: 100% auto; 
        background-repeat: no-repeat;
        background-position: top center; 
        height: 30vh; 
        background-color: #ffffff; /* Mudança para branco efetuada aqui */
    }
}