:root {
    --black: #000000;
    --orange: #FF6B00;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --medium-gray: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--orange);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease;
    will-change: transform;
}

header.hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo maior e mais vistoso */
.logo-container {
    display: flex;
    align-items: center;
    height: 80px;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Fallback para quando a imagem não carregar */
.logo-fallback {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--black);
}

.logo-highlight {
    color: var(--orange);
    text-shadow: 0 2px 4px rgba(255, 107, 0, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--black);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

/* Menu ativo */
.nav-links a.active {
    color: var(--orange);
    font-weight: 600;
}

.nav-links a.active:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--black);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Highlight para SUSTENTABILIDADE e FUTURO */
.highlight {
    color: var(--orange);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(255, 107, 0, 0.3);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-green {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* WhatsApp Button no contacto */
.whatsapp-btn {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
}

.whatsapp-btn:hover {
    background-color: transparent !important;
    color: #25D366 !important;
}

/* Hero Section Otimizada */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2069&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--orange);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.slogan {
    color: var(--orange);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
    font-style: italic;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--orange);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--orange);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--orange);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--black);
}

.btn-outline2{
    margin-left: 1rem;
    background-color: var(--white);
    color: var(--black);
}

/* News Slider */
.news-slider {
    max-width: 800px;
    margin: 2rem auto 3rem;
    position: relative;
}

.swiper {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.news-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--orange) !important;
}

.swiper-pagination-bullet {
    background: var(--white) !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--orange) !important;
    opacity: 1;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-bg {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
}

/* About */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.company-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #333 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 10px;
    overflow: hidden;
}

.image-placeholder {
    text-align: center;
    padding: 2rem;
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--orange);
    margin-bottom: 1rem;
}

.image-placeholder h3 {
    color: white;
}

/* CEO Message */
.ceo-message {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
}

.ceo-image {
    flex: 0 0 250px;
}

.ceo-placeholder {
    background: linear-gradient(135deg, var(--orange), #ff8c42);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}

.ceo-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.ceo-placeholder h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.ceo-placeholder p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.ceo-text {
    flex: 1;
}

.ceo-text blockquote {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--dark-gray);
    border-left: 4px solid var(--orange);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.ceo-signature {
    text-align: right;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.ceo-signature p {
    margin-bottom: 0.3rem;
}

/* Mission, Vision, Values */
.values-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--orange);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.15);
}

.value-card h3 {
    color: var(--orange);
    display: flex;
    align-items: center;
}

.value-card h3 i {
    margin-right: 10px;
}

/* Enhanced Value Cards */
.enhanced-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.enhanced-value-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.enhanced-value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.1);
}

.enhanced-value-card h3 {
    color: var(--orange);
}

/* Organogram - Mantendo estilo original com melhorias */
.organogram-container {
    overflow-x: auto;
    padding: 2rem 0;
}

.organogram {
    min-width: 800px;
    position: relative;
    padding: 2rem;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.org-level.ceo-level {
    margin-bottom: 2rem;
}

.org-level.directors-level .org-node {
    flex: 0 0 180px;
}

.org-level.departments-level .org-node {
    flex: 0 0 150px;
}

/* Estilos para imagens do organograma */
.org-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid var(--orange);
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.org-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CEO tem imagem maior */
.org-level.ceo-level .org-image {
    width: 100px;
    height: 100px;
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--orange);
}

/* Diretores têm borda especial */
.org-level.directors-level .org-image {
    border: 3px solid #2c3e50;
}

/* Técnicos têm borda mais clara */
.sub-node .org-image {
    width: 60px;
    height: 60px;
    border: 2px solid #bbdefb;
}

/* Secretaria tem estilo diferente */
.org-level.secretaria-level .org-image {
    border: 3px solid #6c757d;
    border-style: dashed;
}

/* Ajusta conteúdo para acomodar imagem */
.org-content {
    min-height: 180px; /* Aumentado para acomodar imagem */
}

.org-level.ceo-level .org-content {
    min-height: 200px;
}

.sub-node .org-content {
    min-height: 140px;
}

.org-connector {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: linear-gradient(to bottom, transparent, var(--orange));
}

.org-node {
    position: relative;
}

.org-content {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.org-content:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.15);
}

.org-content i {
    font-size: 2rem;
    color: var(--orange);
    margin-bottom: 1rem;
}

.org-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.org-content p {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.org-content .org-areas {
    font-size: 0.75rem;
    color: var(--orange);
    font-weight: 500;
    margin-top: 0.5rem;
    line-height: 1.3;
}

.org-content .org-areas span {
    display: block;
    margin-bottom: 0.2rem;
}

/* Connectors between nodes */
.org-node:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1rem;
    width: 1rem;
    height: 2px;
    background: var(--orange);
    opacity: 0.3;
}

.org-level.ceo-level .org-content {
    background: linear-gradient(135deg, var(--orange), #ff8c42);
    color: white;
    min-height: 120px;
}

.org-level.ceo-level .org-content i,
.org-level.ceo-level .org-content h4,
.org-level.ceo-level .org-content p {
    color: white;
}

.org-level.assessores-level .org-content {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    min-height: 130px;
}

.org-level.departments-level .org-content {
    background: linear-gradient(135deg, #f1f8ff, #e3f2fd);
    min-height: 140px;
}

.organogram-info {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 107, 0, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--orange);
}

.organogram-info i {
    color: var(--orange);
    margin-right: 0.5rem;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.category-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-3px);
}

.category-icon {
    font-size: 2rem;
    color: var(--orange);
    margin-bottom: 1rem;
}

/* Enhanced Services */
.enhanced-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.enhanced-service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border-left: 4px solid var(--orange);
}

.enhanced-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.15);
}

.service-icon {
    background-color: var(--orange);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.enhanced-service-card h3 {
    color: var(--black);
}

.service-list {
    list-style-position: inside;
    color: var(--medium-gray);
}

.service-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-list li:before {
    content: '▸';
    color: var(--orange);
    position: absolute;
    left: 0;
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    border: 1px solid #f0f0f0;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.15);
}

.event-date {
    background: linear-gradient(135deg, var(--orange), #ff8c42);
    color: white;
    padding: 1.5rem 1rem;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-month {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.event-content {
    padding: 1.5rem;
    flex: 1;
}

.event-content h3 {
    color: var(--black);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.event-location {
    color: var(--orange);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-location i {
    font-size: 0.8rem;
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--orange);
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s;
}

.event-link:hover {
    transform: translateX(5px);
}

.events-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05), rgba(255, 140, 66, 0.05));
    border-radius: 15px;
    border: 2px dashed var(--orange);
}

.events-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Sub-brands - OTIMIZADO */
.subbrands-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    will-change: transform;
    contain: content;
}

.subbrand-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    transform: translateZ(0);
    backface-visibility: hidden;
    min-height: 0;
    content-visibility: auto;
    contain-intrinsic-size: 400px;
}

.subbrand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.15);
}

.subbrand-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.subbrand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    background-color: #f0f0f0;
}

.subbrand-card:hover .subbrand-image img {
    transform: scale(1.05);
}

.subbrand-content {
    padding: 1.5rem;
}

.subbrand-icon {
    font-size: 1.5rem;
    color: var(--orange);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.subbrand-link {
    display: inline-block;
    color: var(--orange);
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.3s;
}

.subbrand-link:hover {
    transform: translateX(5px);
}

/* Botão "Ver Mais" para mobile */
.show-more-container {
    text-align: center;
    margin-top: 2rem;
    display: none;
}

#showMoreBrands {
    background: var(--orange);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

#showMoreBrands:hover {
    background: var(--black);
    transform: translateY(-2px);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--orange), #ff8c42);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--orange);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.2);
}

.timeline-content {
    width: calc(50% - 30px);
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

/* Contact */
.contact-info-full {
    width: 100%;
    text-align: center;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.contact-icon {
    background-color: var(--orange);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-logo span {
    color: var(--orange);
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: var(--white);
    margin-bottom: 0.8rem;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--orange);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--medium-gray);
    font-size: 0.9rem;
    color: #aaa;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--orange), #ff8c42);
    z-index: 1001;
    transition: width 0.1s;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.fab.visible {
    opacity: 1;
    transform: scale(1);
}

.fab:hover {
    background-color: var(--black);
    transform: scale(1.1);
}

/* Otimizações de Performance - Lazy Loading */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .ceo-message {
        flex-direction: column;
        gap: 2rem;
    }
    
    .ceo-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 70px);
        margin-left: 70px;
    }
    
    .hero {
        background-attachment: scroll;
        padding: 8rem 0 4rem;
    }
    
    .organogram {
        min-width: 600px;
        padding: 1rem;
    }
    
    .org-level {
        gap: 1rem;
    }
    
    .org-level.directors-level .org-node {
        flex: 0 0 150px;
    }
    
    .org-level.departments-level .org-node {
        flex: 0 0 130px;
    }
    
    .subbrands-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .logo-container {
        height: 70px;
    }
    
    .logo-img {
        max-width: 180px;
    }
    
    .hero {
        padding: 7rem 0 3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .news-slider {
        margin: 1.5rem auto 2.5rem;
    }
    
    .news-slide {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .swiper {
        height: 150px;
    }
    
    .enhanced-services,
    .category-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    /* Otimizações ESPECÍFICAS para Subbrands no Mobile */
    .subbrands-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .subbrand-card {
        min-height: 0;
    }
    
    .subbrand-image {
        height: 180px;
    }
    
    .subbrand-content {
        padding: 1.2rem;
    }
    
    /* Esconde algumas subbrands inicialmente no mobile */
    .subbrand-card:nth-child(n+5) {
        display: none;
    }
    
    /* Mostra o botão "Ver Mais" apenas no mobile */
    .show-more-container {
        display: block;
    }
    
    .org-level {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .org-node {
        flex: 0 0 calc(50% - 1rem) !important;
        margin-bottom: 1rem;
    }
    
    .org-node:not(:last-child)::after {
        display: none;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        min-width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .event-month,
    .event-day {
        font-size: 1.2rem;
    }
    
    .whatsapp-float {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 6rem 0 2.5rem;
    }
    
    .logo-container {
        height: 60px;
    }
    
    .logo-img {
        max-width: 150px;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
    
    .service-card, .value-card, .subbrand-card, .enhanced-service-card, .enhanced-value-card {
        padding: 1.5rem;
    }
    
    .subbrand-content {
        padding: 1.2rem;
    }
    
    .subbrand-image {
        height: 160px;
    }
    
    .subbrand-content h3 {
        font-size: 1.2rem;
    }
    
    .subbrand-content p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .fab {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .org-level {
        margin-bottom: 1.5rem;
    }
    
    .org-node {
        flex: 0 0 100% !important;
    }
    
    .org-content {
        min-height: 120px;
        padding: 1rem;
    }
    
    .org-content i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .org-content h4 {
        font-size: 0.9rem;
    }
    
    .org-content p {
        font-size: 0.8rem;
    }
    
    .ceo-placeholder {
        padding: 1.5rem;
    }
    
    .ceo-placeholder i {
        font-size: 3rem;
    }
    
    .events-cta .btn {
        display: block;
        margin: 0.5rem auto;
        width: 100%;
        max-width: 250px;
    }
    
    #showMoreBrands {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 5rem 0 2rem;
    }
    
    .service-card, .value-card {
        padding: 1rem;
    }
    
    .subbrand-content {
        padding: 1rem;
    }
}

/* Otimizações de Performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .subbrand-card,
    .subbrand-image img {
        transition: none !important;
    }
}

/* Lazy Loading para imagens */
img {
    max-width: 100%;
    height: auto;
}

/* Modal Portfolio Angola HSE Academy - SIMPLIFICADO */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.portfolio-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.portfolio-modal .modal-content {
    width: 95%;
    height: 95%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
}

.portfolio-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.portfolio-modal .close-modal:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: rotate(90deg) scale(1.1);
}

/* Container da imagem em tela cheia */
.modal-image-container {
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
    overflow: auto;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: white;
}

.image-loading i {
    font-size: 3rem;
    color: var(--orange);
}

/* Título minimalista */
.modal-title {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 10px 10px;
    margin-top: -4px;
}

.modal-title h3 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Efeito de zoom ao passar o mouse */
.modal-image-container img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.modal-image-container img.zoomed {
    cursor: zoom-out;
    transform: scale(1.5);
}

/* Scrollbar personalizada para a imagem */
.modal-image-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.modal-image-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-image-container::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 4px;
}

.modal-image-container::-webkit-scrollbar-thumb:hover {
    background: #ff8c42;
}

/* Responsividade */
@media (max-width: 768px) {
    .portfolio-modal .modal-content {
        width: 98%;
        height: 98%;
    }
    
    .portfolio-modal .close-modal {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .modal-title h3 {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .modal-image-container {
        height: calc(100% - 50px);
    }
}

@media (max-width: 576px) {
    .modal-image-container img.zoomed {
        transform: scale(1.2);
    }
    
    .portfolio-modal .close-modal {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Portfolio de Clientes */
.portfolio-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--medium-gray);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.portfolio-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.15);
    border-color: var(--orange);
}

.portfolio-image {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.portfolio-loading i {
    font-size: 2rem;
    color: var(--orange);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.portfolio-counter {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05), rgba(255, 140, 66, 0.05));
    border-radius: 10px;
    border: 2px dashed var(--orange);
}

.portfolio-counter p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin: 0;
}

.portfolio-counter i {
    color: var(--orange);
    margin-right: 0.5rem;
}

.portfolio-counter span {
    font-weight: 700;
    color: var(--orange);
    font-size: 1.3rem;
}

/* Modal para visualização de imagem */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.portfolio-modal.active {
    display: flex;
}

.portfolio-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.portfolio-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--orange);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    border: 2px solid white;
}

.portfolio-modal-close:hover {
    background: white;
    color: var(--orange);
    transform: rotate(90deg);
}

.portfolio-modal-title {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    max-width: 600px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 15px 20px;
    display: none; /* começa escondido, o JS decide se mostra */
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 9999;
    font-size: 14px;
}

.cookie-banner p {
    margin: 0;
    max-width: 600px;
    line-height: 1.4;
}

.cookie-banner a {
    color: #ff9a3c;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons button {
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

#btn-aceitar-cookies {
    background: #ff9a3c;
    color: #1a1a1a;
}

#btn-recusar-cookies {
    background: #444;
    color: #fff;
}

/* Responsividade do portfolio */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1.2rem;
    }
    
    .portfolio-item {
        padding: 1.2rem;
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .portfolio-item {
        padding: 1rem;
        min-height: 90px;
    }
    
    .portfolio-image {
        max-height: 60px;
    }
    
    .portfolio-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.8rem;
    }
    
    .portfolio-item {
        padding: 0.8rem;
        min-height: 80px;
    }
    
    .portfolio-image {
        max-height: 50px;
    }
    
    .portfolio-counter {
        padding: 1rem;
    }
    
    .portfolio-counter p {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.6rem;
    }
    
    .portfolio-item {
        padding: 0.6rem;
        min-height: 70px;
    }
}

/* Adiciona classe para prevenir animações durante o resize */
.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}