/* =========================================
   1. VARIÁVEIS E RESET GLOBAL
   ========================================= */
:root {
    --primary-color: #00796B; 
    --secondary-color: #FF7043; 
    --background-color: #fcfcfc;
    --text-color: #333;
    --accent-gold: #D4AF37; 
    --header-font: 'Poppins', system-ui, sans-serif;
    --body-font: 'Roboto', system-ui, sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    font-family: var(--header-font);
    margin: 0;
    line-height: 1.2;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* =========================================
   2. ANIMAÇÕES GLOBAIS E UTILITÁRIOS
   ========================================= */
/* Fundo Dinâmico */
body::before {
    content: '';
    position: fixed;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 121, 107, 0.1), rgba(255, 112, 67, 0.1));
    border-radius: 50%;
    z-index: -1;
    filter: blur(50px);
    animation: moveCircles 20s infinite alternate ease-in-out;
}

@keyframes moveCircles {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100vw, 100vh); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animação Suave de Entrada (Hardware Accelerated) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Títulos de Secção Globais */
.section-title {
    display: flex;
    align-items: center;
    color: var(--primary-color) !important;
    text-align: left;
}

.section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 34px;
    background-color: var(--secondary-color);
    border-radius: 50px;
    margin-right: 15px;
    flex-shrink: 0; 
}

/* Bloqueio de Seleção de Texto e Drag Fantasma */
.benefit-card,
.category-card, 
.team-card,
.agenda-card,
.fleet-card,
.info-card-premium,
.page-banner,
.privacy-hero {
    user-select: none;
    -webkit-user-select: none;
}

.categories-slider-track img, 
.team-card img,
.fleet-card img {
    pointer-events: none;
}

/* Animações do Modal de Contacto */
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUpBox {
    from { transform: translateY(-20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-fade-in {
    animation: fadeInOverlay 0.25s ease-out forwards;
}

.modal-scale-up {
    animation: scaleUpBox 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeOutOverlay {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes scaleDownBox {
    from { transform: translateY(0) scale(1); opacity: 1; }
    to { transform: translateY(-20px) scale(0.95); opacity: 0; }
}

.modal-fade-out {
    animation: fadeOutOverlay 0.2s ease-in forwards !important;
}

.modal-scale-down {
    animation: scaleDownBox 0.2s ease-in forwards !important;
}

/* =========================================
   3. BOTÕES
   ========================================= */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-sm {
    padding: 8px 18px !important;
    font-size: 13px !important;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-vibrant {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-vibrant:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 0 25px var(--secondary-color) !important;
}

.btn-outline {
    border: 2px solid var(--text-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: white;
}

/* Contentor Flutuante do Widget WhatsApp */
.whatsapp-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    display: flex;
    align-items: center;
}

/* Botão WhatsApp aumentado para 58px com ícone destacado */
.btn-whatsapp-float {
    width: 58px;
    height: 58px;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.btn-whatsapp-float:hover {
    color: #ffffff !important;
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.7);
    filter: brightness(1.05);
}

/* Balão de Fala em 2 Linhas Compactas */
.wa-speech-bubble {
    position: absolute;
    right: 74px; /* Afastamento ajustado para o novo botão de 58px */
    background-color: #ffffff;
    color: #333333;
    padding: 10px 30px 10px 14px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal; /* PERMITE A QUEBRA DE LINHA */
    width: max-content;
    max-width: 195px;    /* FORÇA A QUEBRA EM 2 LINHAS */
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: scale(0.9) translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Setinha a apontar para o botão verde */
.wa-speech-bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

.wa-speech-bubble.show-bubble {
    opacity: 1;
    transform: scale(1) translateX(0);
    pointer-events: auto;
}

/* Cruz de fecho do balão */
.wa-bubble-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #999999;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 50%;
    transition: color 0.2s ease;
}

.wa-bubble-close:hover {
    color: #222222;
}

/* Ajustes no Mobile */
@media (max-width: 768px) {
    .whatsapp-widget-container {
        bottom: 20px;
        right: 20px;
    }
    .wa-speech-bubble {
        right: 58px;
        font-size: 12px;
        padding: 8px 30px 8px 12px;
    }
}

/* Botão Voltar ao Topo (Com saída suave e fluida) */
#backToTopBtn {
    position: fixed;
    bottom: 100px;
    right: 33px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    /* visibility incluída na transição para garantir a animação suave de saída */
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, box-shadow 0.3s ease;
    border: none;
}

/* Reposiciona a seta no lugar do WhatsApp quando este está inativo */
#backToTopBtn.sem-whatsapp {
    bottom: 30px !important;
}

@media (max-width: 768px) {
    #backToTopBtn.sem-whatsapp {
        bottom: 20px !important;
    }
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--secondary-color);
}

/* =========================================
   4. CABEÇALHO, NAVBAR E BARRA DE AVISOS
   ========================================= */
.sticky-top-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: transform 0.4s ease-in-out; 
}

.sticky-top-wrapper.nav-hidden {
    transform: translateY(-100%);
}

header {
    width: 100%;
    background-color: rgba(252, 252, 252, 0.95);
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--header-font);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px; /* Ajustado de 25px para 18px para acomodar todos os 8 links no desktop */
    font-weight: 500;
}

.nav-links a {
    white-space: nowrap;
    font-size: 14.5px;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
    will-change: transform;
}

.nav-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px) scale(1.04); /* Ligeira elevação e aumento suave */
}

.top-alert-banner {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 45px 12px 15px; 
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 9999;
    position: relative; 
}

.top-alert-banner .banner-content {
    display: flex;
    align-items: flex-start; /* Fixa o ícone na primeira linha */
    justify-content: center;
    gap: 12px; /* Aumenta o respiro entre ícone e texto */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0; 
    text-align: left; /* Garante que o texto multilinhas fica com a margem reta a encostar ao ícone */
}

.top-alert-banner .banner-content i {
    font-size: 1.25rem;
    flex-shrink: 0; /* Impede o ícone de ser esmagado pelo texto */
    margin-top: -2px; /* Ajuste milimétrico para alinhar exatamente com a altura da fonte */
}

.close-banner-btn {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    font-weight: bold;
    color: inherit;
    opacity: 0.7;
    position: absolute;
    right: 15px; 
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 5px; 
}

.close-banner-btn:hover {
    opacity: 1;
}

.alert-info { background-color: #0d6efd; color: #ffffff; }
.alert-aviso { background-color: #ffc107; color: #000000; }
.alert-urgente { background-color: #dc3545; color: #ffffff; }

/* =========================================
   5. MÓDULOS DE CONTEÚDO (HOME PAGE)
   ========================================= */

/* Alternância Automática de Cores (Zebra Striping) */
.dynamic-sections-wrapper section:nth-of-type(odd) { background-color: #ffffff !important; }
.dynamic-sections-wrapper section:nth-of-type(even) { background-color: #f8f9fa !important; }

/* Melhoria de Contraste e Efeito Flutuante (Pop-up Effect) para todos os Cartões */
.benefit-card, .category-card, .team-card, .agenda-card, .fleet-card, .info-card-premium, .testimonial-card, .noticia-card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover, .category-card:hover, .team-card:hover, .agenda-card:hover, .fleet-card:hover, .info-card-premium:hover, .testimonial-card:hover, .noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}

/* Hero (Carrossel) */
.hero {
    position: relative;
    width: 100%;
}

/* Garante que o texto desce sempre abaixo da altura real da Navbar + Aviso */
.carousel-caption {
    padding-top: calc(var(--nav-offset, 80px) + 20px) !important;
    padding-bottom: 50px !important;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    animation: fadeInDown 1s;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff !important;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    opacity: 0.95;
    animation: fadeInUp 1s 0.2s;
}

/* Setas Circulares do Hero (Cor Secundária com Efeito Glow) */
.hero .carousel-control-prev,
.hero .carousel-control-next {
    width: 52px;
    height: 52px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.92;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 5;
    border: none;
}

.hero .carousel-control-prev { left: 30px; }
.hero .carousel-control-next { right: 30px; }

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
    background-color: var(--secondary-color);
    box-shadow: 0 0 25px var(--secondary-color);
}

.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1); /* Força a seta para branco */
}

@media (max-width: 768px) {
    .hero .carousel-control-prev { left: 12px; }
    .hero .carousel-control-next { right: 12px; }
    .hero .carousel-control-prev,
    .hero .carousel-control-next {
        width: 42px;
        height: 42px;
    }
    .hero .carousel-control-prev-icon,
    .hero .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
}

/* Secção Benefícios */
.benefits {
    padding: 60px 0;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
}

.benefit-card {
    background: #ffffff;
    padding: 35px 22px; 
    border-radius: 16px;
    border-bottom: 3px solid transparent !important;
    flex: 1 1 calc(25% - 23px);
    min-width: 230px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.benefit-card:hover {
    transform: translateY(-6px);
    border-bottom: 3px solid var(--secondary-color) !important;
}

.benefit-header {
    min-height: 52px;
}

.benefit-icon-wrapper {
    margin-bottom: 0;
    height: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.benefit-icon {
    font-size: 2rem;
    line-height: 1;
}

.benefit-tag-wrapper {
    margin-bottom: 0;
    height: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.bg-tag-destaque {
    background-color: rgba(255, 112, 67, 0.12);
    color: var(--secondary-color);
    border: 1px solid rgba(255, 112, 67, 0.3);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 14px;
}

.bg-tag-secundario {
    background-color: rgba(0, 121, 107, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(0, 121, 107, 0.2);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 14px;
}

.benefit-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

.benefit-desc {
    color: var(--text-color);
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.benefit-contact-box {
    background: #f8faf9;
    padding: 12px 16px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

/* Secção Categorias (Slider Horizontal) */
.categories-slider-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 15px 5px 30px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none; 
    scroll-behavior: smooth;
}

.categories-slider-track::-webkit-scrollbar {
    display: none; 
}

.categories-slider-track.is-dragging {
    scroll-behavior: auto;
    scroll-snap-type: none;
    cursor: grabbing !important;
}

.categories-slider-track.is-dragging .category-slide {
    pointer-events: none; 
}

.category-slide {
    flex: 0 0 calc(28% - 15px); 
    min-width: 250px;
    cursor: grab;
}

.category-card:hover {
    transform: translateY(-8px);
}

.category-icon-wrapper {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px auto;
    border-radius: 18px;
    background-color: rgba(0, 121, 107, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.category-card:hover .category-icon-wrapper {
    background-color: var(--secondary-color);
    color: #ffffff !important;
    transform: scale(1.08);
}

.category-icon-wrapper img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.category-icon-wrapper i {
    color: inherit;
}

.category-title {
    min-height: 55px; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Setas dos Carrosséis (Categorias e Frota) */
.slider-arrow {
    width: 45px; height: 45px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: var(--transition);
    cursor: pointer;
    filter: brightness(0.9);
}

.slider-arrow:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.25);
}

/* Secção Equipa */
.team-card:hover {
    transform: translateY(-8px);
}

.team-card img {
    transition: transform 0.3s ease;
}

.team-card:hover img {
    transform: scale(1.05);
}

/* Secção Agenda */
.agenda-card:hover {
    transform: translateY(-5px);
}

/* Secção Frota */
.fleet-card:hover {
    transform: translateY(-8px);
}

.fleet-card img {
    transition: transform 0.4s ease;
}

.fleet-card:hover img {
    transform: scale(1.05);
}

/* Secção Informações Úteis & Normas */
.info-card-premium { 
    background: #fff; 
    border-radius: 16px; 
    padding: 30px; 
}
.info-card-premium:hover { 
    transform: translateY(-5px); 
}
.info-icon-box { 
    width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; 
}

/* Auto-formatação do Editor Visual (TinyMCE) nas Informações */
.info-rich-text p { font-size: 0.95rem; opacity: 0.85; margin-bottom: 12px; line-height: 1.6; }
.info-rich-text p:last-child { margin-bottom: 0; }
.info-rich-text ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.info-rich-text ul li { position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 0.95rem; color: var(--text-color); opacity: 0.9; }
.info-rich-text ul li:last-child { margin-bottom: 0; }
.info-rich-text ul li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1px; color: var(--primary-color); font-size: 1.15rem; }

/* Acordeão Moderno */
.modern-accordion .accordion-item { 
    border: 1px solid #f0f0f0; 
    border-radius: 16px !important; 
    margin-bottom: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); 
    overflow: hidden; 
    /* Resposta imediata ao passar o rato */
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1); 
    will-change: transform, box-shadow;
}
.modern-accordion .accordion-item:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.06); 
    transition-delay: 0s !important; /* Reação a 0 milissegundos no rato */
}
.modern-accordion .accordion-button { font-weight: 700; padding: 20px 25px; background-color: #ffffff; color: var(--text-color); box-shadow: none !important; font-size: 1.05rem; transition: all 0.3s ease; }
.modern-accordion .accordion-button:hover { color: var(--primary-color); background-color: rgba(0, 121, 107, 0.015); }
.modern-accordion .accordion-button:not(.collapsed) { background-color: rgba(0, 121, 107, 0.03); color: var(--primary-color); }
.modern-accordion .accordion-body { padding: 5px 25px 25px 25px; font-size: 0.95rem; line-height: 1.6; color: var(--text-color); opacity: 0.85; }

/* =========================================
   SHOWCASE DE SERVIÇOS (SLIDER HORIZONTAL REAL)
   ========================================= */
.showcase-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 4px 18px 4px;
    /* scroll-behavior removido: permite arrastar fluidamente sem o rato prender */
}
.showcase-track::-webkit-scrollbar { display: none; }

/* Botões Seletores (Chips) */
.showcase-chip {
    border: 2px solid transparent;
    background: rgba(0, 0, 0, 0.04);
    color: #555;
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
}
.showcase-chip:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--primary-color);
    transform: translateY(-2px);
}
.showcase-chip.active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Setas Artísticas */
.showcase-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}
.showcase-arrow:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Motor do Slider Horizontal */
.slider-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    /* Mantém espaço vertical para as sombras do topo e fundo, mas zera a horizontal */
    padding: 25px 0;
    margin: -25px 0;
}
.slider-track-inner {
    display: flex;
    align-items: flex-start; 
    /* A transição agora é controlada dinamicamente pelo Javascript */
    will-change: transform;
}
.custom-slide-item {
    flex: 0 0 100%;
    width: 100%;
    /* O padding interior afasta os cartões durante a viagem e evita sombras cortadas */
    padding: 0 15px; 
    opacity: 1 !important; /* Estão sempre visíveis para podermos ver a viagem do carrossel! */
    pointer-events: auto !important;
}

.showcase-track.is-dragging { cursor: grabbing !important; }
.showcase-track.is-dragging .showcase-chip { pointer-events: none; }

/* Proteção de arrasto */
.user-select-none {
    user-select: none;
    -webkit-user-select: none;
}

/* =========================================
   6. FOOTER E CONTACTOS
   ========================================= */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 60px 0 20px 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.final-cta .btn {
    margin-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: left;
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.footer-col h3.footer-logo {
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-family: var(--header-font);
}

.footer-col p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    font-size: 0.9rem;
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start; /* Fixa todos os links no topo da sua linha, impedindo que flutuem ao abrir o menu */
}

/* Equilibra as alturas do rodapé em ecrãs de computador */
@media (min-width: 1024px) {
    .footer-grid {
        /* Dá um pouco mais de largura (1.8fr) à última coluna para os links caberem */
        grid-template-columns: 1.1fr 1.1fr 0.9fr 1.8fr; 
    }
    .footer-links {
        /* Divide os links de navegação em 2 colunas lado-a-lado */
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
    }
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
}

.footer-links .arrow {
    color: var(--secondary-color);
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-links a:hover .arrow {
    transform: translateX(4px); 
}

footer .copyright {
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.85rem;
    opacity: 0.5;
    text-align: center;
}

.legal-info-box {
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    font-size: 0.8rem;
    line-height: 1.6;
    margin-top: 20px;
    opacity: 0.9;
}

.legal-info-box span { display: block; }
.brand-desc { opacity: 0.8; line-height: 1.5; }

.contact-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-list .icon {
    font-size: 1.1rem;
    line-height: 1.3;
    filter: grayscale(0.2) opacity(0.8);
}

.contact-list .info {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.85;
}

.call-cost {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 3px;
}

/* Animação da seta no menu vertical do rodapé */
.toggle-servicos[aria-expanded="true"] .seta-acordiao {
    transform: rotate(180deg);
}

/* Nova Navegação Independente (Evita arrasto do acórdão) */
.footer-colunas-isoladas a {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}
.footer-colunas-isoladas .arrow {
    color: var(--accent-color);
    font-size: 1.3rem;
    line-height: 0.8;
    transition: transform 0.2s ease;
}
.footer-colunas-isoladas a:hover {
    opacity: 1;
    color: var(--accent-color);
}
.footer-colunas-isoladas a:hover .arrow {
    transform: translateX(4px);
}

/* =========================================
   7. PÁGINAS SECUNDÁRIAS (CONTACTOS, RGPD E PRIVACIDADE)
   ========================================= */

/* Contactos */
.contact-page-section {
    padding: 60px 0 80px 0;
    background-color: #fbfbfb;
}

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.contact-header h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 35px;
    margin-bottom: 50px;
}

.contact-info-card,
.contact-form-card,
.map-wrapper {
    background: #ffffff;
    border-radius: 14px;
    padding: 35px;
    border: 1px solid #eeeeee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.contact-info-card h2,
.contact-form-card h2,
.map-wrapper h2 {
    font-size: 1.35rem;
    color: var(--text-color);
    margin-bottom: 24px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 8px;
    display: inline-block;
}

.info-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-icon {
    font-size: 1.4rem;
    color: var(--primary-color);
    line-height: 1;
}

.info-group strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.info-group p,
.info-group a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

.info-group a:hover {
    color: var(--secondary-color);
}

.legal-badge-box {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Formulário de Contacto */
.form-standard .form-group { margin-bottom: 16px; }
.form-standard .form-row { display: flex; gap: 15px; }
.form-standard .form-row .form-group { flex: 1; }
.form-standard label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }

.form-standard input[type="text"],
.form-standard input[type="email"],
.form-standard input[type="tel"],
.form-standard select,
.form-standard textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-standard input:focus,
.form-standard select:focus,
.form-standard textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 24px 0;
}
.form-checkbox input { margin-top: 3px; }
.form-checkbox label { font-size: 0.78rem; line-height: 1.3; opacity: 0.85; }
.form-checkbox label a { color: var(--primary-color); text-decoration: underline; transition: color 0.3s ease; }
.form-checkbox label a:hover { color: var(--secondary-color); }
.btn-full { width: 100%; padding: 13px; font-size: 0.95rem; }

.map-container {
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    border: 1px solid #dee2e6;
}

/* RGPD Slider */
.rgpd-wrapper { position: relative; width: 100%; margin: 10px 0 15px 0; }
.rgpd-track {
    position: relative; width: 100%; height: 46px; background-color: #f1f5f9;
    border-radius: 23px; border: 1px solid #cbd5e1; overflow: hidden;
    user-select: none; touch-action: none;
}
.rgpd-fill {
    position: absolute; top: 0; left: 0; height: 100%; width: 0;
    background-color: #a9dfbf; border-radius: 23px 0 0 23px;
}
.rgpd-text {
    position: absolute; width: 100%; height: 100%; line-height: 44px;
    text-align: center; color: #475569; font-size: 12.5px; z-index: 1; pointer-events: none;
}
.rgpd-text a { color: var(--primary-color); text-decoration: underline; pointer-events: auto; position: relative; z-index: 10; }
.rgpd-knob {
    position: absolute; top: 2px; left: 2px; width: 40px; height: 40px;
    background: var(--primary-color); border-radius: 50%; cursor: grab;
    display: flex; justify-content: center; align-items: center; color: #ffffff; z-index: 2;
    font-size: 18px; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.rgpd-knob:active { cursor: grabbing; }
.rgpd-knob.success { background: #27ae60; }

/* Política de Privacidade */
.privacy-container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 40px 0 80px 0; }
.privacy-hero { 
    height: 55vh; /* Ocupa 55% da altura visível do ecrã */
    min-height: 500px; /* Impede que fique pequeno em portáteis */
    max-height: 650px; /* Trava para não ficar gigante em monitores 4K */
    padding-top: calc(var(--nav-offset, 90px) + 30px) !important;
    padding-bottom: 60px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center 40% !important; /* Ponto ideal testado */
}

.info-card {
    background-color: #ffffff; border-left: 4px solid var(--primary-color);
    padding: 30px; border-radius: 0 12px 12px 0; margin-bottom: 40px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.info-card h3 { margin-top: 0; margin-bottom: 12px; color: var(--primary-color); }
.info-card p { margin: 0; font-size: 0.95rem; color: var(--text-color); line-height: 1.6; }

.privacy-accordion details {
    background: #ffffff; border: 1px solid #f0f0f0; border-radius: 12px;
    margin-bottom: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.privacy-accordion details:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
.privacy-accordion details[open] { box-shadow: 0 8px 25px rgba(0,0,0,0.08); border-color: rgba(0, 121, 107, 0.2); }

.privacy-accordion summary {
    font-size: 1.05rem; font-weight: 700; padding: 20px 25px; cursor: pointer;
    background-color: #ffffff; list-style: none; display: flex; justify-content: space-between;
    align-items: center; color: var(--text-color); border-radius: 12px; font-family: var(--header-font); transition: all 0.3s ease;
}
.privacy-accordion summary:hover { color: var(--primary-color); background-color: rgba(0, 121, 107, 0.015); }
.privacy-accordion details[open] summary { background-color: rgba(0, 121, 107, 0.03); color: var(--primary-color); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.privacy-accordion summary::-webkit-details-marker { display: none; }
.privacy-accordion summary::after { content: '\25BC'; font-size: 0.8rem; color: var(--text-color); opacity: 0.4; transition: transform 0.3s ease; }
.privacy-accordion details[open] summary::after { transform: rotate(180deg); color: var(--primary-color); opacity: 1; }
.privacy-accordion details[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: none; }
.privacy-accordion .details-content {
    background-color: #ffffff; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px;
    padding: 25px; line-height: 1.7; color: var(--text-color); font-size: 0.95rem; opacity: 0.9; border-top: none;
}
.privacy-accordion .details-content h4 { color: var(--primary-color); margin-top: 20px; margin-bottom: 10px; }
.privacy-accordion .details-content ul { padding-left: 20px; margin-bottom: 15px; }
.privacy-accordion .details-content li { margin-bottom: 8px; }

/* =========================================
   8. MEDIA QUERIES GLOBAIS (RESPONSIVIDADE)
   ========================================= */
@media (max-width: 1200px) { 
    .category-slide { flex: 0 0 calc(33.333% - 16.66px); } 
    /* Redução proporcional de espaçamento na Navbar para ecrãs médios */
    .nav-links {
        gap: 10px;
    }
    .nav-links a {
        font-size: 13px;
        white-space: nowrap;
    }
    .logo-text {
        max-width: 160px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 17px;
    }
}

@media (max-width: 992px) {
    /* Oculta o texto longo em tablets (iPad/10"-12"), libertando >150px para menus e botão */
    .logo-text {
        display: none !important;
    }
    .nav-links {
        gap: 10px;
        font-size: 13px;
    }
}

@media (max-width: 900px) { 
    .category-slide { flex: 0 0 calc(50% - 12.5px); } 
    .contact-grid { grid-template-columns: 1fr; }
    .form-standard .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 768px) {
    .logo-text { display: none; } 
    .logo-img { height: 35px; }
    .nav-links { display: none; } 

    /* Margem de segurança adaptativa para mobile */
    .carousel-caption {
        padding-top: calc(var(--nav-offset, 110px) + 15px) !important;
        padding-bottom: 35px !important;
    }
    
    /* Tipografia proporcional a ecrãs pequenos */
    .hero-title { 
        font-size: 26px !important; 
        letter-spacing: -0.5px;
        margin-bottom: 10px;
    }
    .hero-subtitle { 
        font-size: 14px !important; 
        line-height: 1.4;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .agenda-card .col-md-3.bg-light {
        border-radius: 15px 15px 0 0 !important;
        border-right: none !important;
        border-bottom: 4px solid var(--primary-color) !important;
    }
    .border-start-md { border-left: none !important; border-top: 1px solid #eee; }

    /* Ajuste proporcional dos Botões Flutuantes no Mobile */
    .whatsapp-widget-container {
        bottom: 20px;
        right: 20px;
    }

    .btn-whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        font-size: 26px !important;
    }

    .wa-speech-bubble {
        right: 62px;
        font-size: 11.5px;
        max-width: 175px;
        padding: 8px 26px 8px 10px;
    }

    #backToTopBtn {
        bottom: 80px !important;
        right: 22px !important;
        width: 46px !important;
        height: 46px !important;
        font-size: 22px !important;
    }
}

@media (max-width: 600px) { 
    /* Efeito "Peek": o cartão ocupa 82% deixando 18% do próximo à vista */
    .category-slide { 
        flex: 0 0 82% !important; 
        min-width: unset !important;
        scroll-snap-align: center !important;
    }
    .categories-slider-track {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (min-width: 769px) {
    .border-start-md { border-left: 1px solid #eee; }
}

/* =========================================
   DROPDOWNS DA NAVBAR (DESKTOP)
   ========================================= */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.nav-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -18px; /* Compensa o padding interior para alinhar o texto perfeitamente com o menu principal */
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 8px 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1050;
    overflow: hidden;
}

/* Garante que o submenu desaparece instantaneamente se a Navbar principal se esconder no scroll */
.sticky-top-wrapper.nav-hidden .nav-dropdown-menu {
    display: none !important;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
}

.nav-dropdown-item {
    padding: 9px 18px;
    color: #333333;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background-color: rgba(0, 121, 107, 0.08);
    color: var(--primary-color) !important;
}

/* =========================================
   BANNER DE PÁGINAS INTERNAS (NOTÍCIAS)
   ========================================= */
.page-banner {
    width: 100%;
    margin-top: var(--nav-offset); 
    padding-top: 110px !important;
    padding-bottom: 110px !important;
    color: #ffffff;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.page-banner p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin: 0;
    color: #ffffff !important;
    animation: fadeInUp 1s 0.2s both ease-out;
}

.page-banner .page-banner-date {
    animation: fadeInDown 0.8s ease-out;
}

/* =========================================
   BOTÕES DE AÇÃO (COR SECUNDÁRIA)
   ========================================= */
.btn-action-secundario {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    text-decoration: none !important;
    cursor: pointer;
}

.btn-action-secundario:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    filter: brightness(1.08);
    color: #ffffff !important;
}