/* ==========================================================================
   Variáveis e Reset
   ========================================================================== */
:root {
    --primary-green: #2a6354; /* Ajuste para o tom exato de verde */
    --primary-green-hover: #1e4a3e;
    --primary-dark: #1a3b32; /* Verde escuro institucional */
    --text-dark: #333333;
    --text-gray: #555555;
    --text-white: #ffffff;
    --bg-light: #fdfdfd;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --border-color: #eaeaea;
    --accent-gold: #e2b13c;  /* Amarelo/Ouro dos detalhes */
    --kicker-yellow: #e2b13c;
    --transition-speed: 0.3s;
    --footer-bg: #faf9f6; /* Fundo creme muito claro */
    --footer-text: #4a4a4a;
    --footer-heading: #1a4338; /* Verde escuro */
    --footer-slogan: #387b6a; /* Verde médio/azulado */
    --footer-border: #dcdcdc; /* Cor das linhas divisórias */
    --diamond-burgundy: #7a1c22;
    --diamond-red: #c92a2a;
    --diamond-green: #1a4338;
    --diamond-yellow: #e2b13c;
    --accent-yellow: #e2b13c;
    --bg-light: #f9fbfa;
    --form-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e2e8e5;
    --input-bg: #ffffff;
    --icon-color: #9aa9a4;
    --trust-bg: #f2f6f4;
    --shadow-soft: 0 15px 35px rgba(26, 67, 56, 0.08);
    --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.02);
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition-fast: 0.2s ease-in-out;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    /* Se tiver a textura de fundo branco, adicione aqui: */
    /* background-image: url('background-texture.jpg'); */
    /* background-size: cover; */
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
    border: 2px solid var(--primary-green);
}

.btn-primary:hover {
    background-color: var(--primary-green-hover);
    border-color: var(--primary-green-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    border-color: var(--primary-green-hover);
    background-color: var(--primary-green-hover);
    color: var(--text-white);

}

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 12px;
}

/* ==========================================================================
   Cabeçalho (Navbar)
   ========================================================================== */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px; /* Ajuste conforme o tamanho da sua imagem */
    width: auto;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-green);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}


/* --- ESTILOS GERAIS DA NAVBAR --- */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Necessário para posicionar o menu dropdown */
    padding: 15px 20px;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* Esconder o botão hambúrguer em ecrãs grandes (Computador) */
.mobile-menu-btn {
    display: none; 
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* --- ESTILOS MOBILE OTIMIZADOS (Ecrãs menores que 768px) --- */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block; 
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        display: none; /* Mantém-se oculto até o jQuery ativar */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.08); /* Sombra mais difusa e moderna */
        padding: 0; /* Removido para os itens tocarem nas extremidades */
        z-index: 1000;
        border-top: 1px solid #f2f2f2; 
    }

    .nav-links ul {
        flex-direction: column;
        align-items: stretch; /* Obriga os itens (li) a ocuparem 100% da largura */
        gap: 0; 
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f5f5f5; /* Linha separadora muito suave */
    }

    .nav-links li:last-child {
        border-bottom: none; /* Mantém o final do menu limpo */
    }

    .nav-links a {
        display: block; /* Expande a área de clique para toda a linha */
        padding: 18px 24px; /* Aumenta a altura para facilitar o toque (Touch Target) */
        color: #555555;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        text-align: left; /* Alinhamento à esquerda para uma leitura mais natural */
        transition: all 0.2s ease-in-out;
    }

    /* Estilo do Link Ativo e Interação (Hover/Touch) */
    .nav-links a:hover, 
    .nav-links a.active {
        color: #0d6e56; /* Verde inspirado no logótipo */
        background-color: #f4fbf9; /* Fundo esverdeado quase impercetível */
        padding-left: 20px; /* Reduzido em 4px para compensar a borda abaixo */
    }
}

/* ==========================================================================
   Seção Principal (Hero)
   ========================================================================== */
.hero {
    position: relative;
    padding: 60px 0 100px 0;
    min-height: calc(90vh - 80px);
    display: flex;
    align-items: center;
}

.moz{

background-image: url(../img/capa.jpeg);
background-position: center;
  background-size: cover;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* Ilustração Esquerda */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    width: 500px; /* Ajuste conforme necessário */
}

/* Conteúdo Direito */
.hero-content {
    flex: 1;
    text-align: center;
}

.eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.eyebrow .line {
    height: 1px;
    width: 40px;
    background-color: var(--primary-green);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.1;
    color: var(--primary-green);
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: normal;
}

.hero-content h1 span {
    text-transform: none; /* Mantém "Mulher e Género" conforme o design */
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--primary-green);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Padrões de Canto (Decorativos) */
.decor {
    position: absolute;
    bottom: 0;
    z-index: 1;
    max-width: 350px;
    pointer-events: none;
}

.decor-left {
    left: 0;
}

.decor-right {
    right: 0;
}

/* ==========================================================================
   Responsividade (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-image img {
        width: 400px;
    }
}

@media (max-width: 850px) {
    /* Ajustes da Navbar */
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links, .nav-cta {
        display: none; /* Em um projeto real, você usaria JS para alternar a classe e mostrar um menu dropdown aqui */
    }

    /* Ajustes do Hero */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        order: -1; /* Mantém a imagem em cima no telemóvel */
        margin-bottom: 30px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .decor {
        max-width: 200px;
        opacity: 0.5; /* Reduz o impacto no mobile */
    }
}




/**************SOBRE************************/


/* ==========================================================================
   ESTRUTURA PRINCIPAL
   ========================================================================== */
.conference-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    background: #ffffff;
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border-radius: 12px;
}

.conf-section {
    display: flex;
    gap: 4rem;
    margin-bottom: 4rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 3rem 0;
}

/* ==========================================================================
   TIPOGRAFIA COMUM (Kickers, Títulos, Links)
   ========================================================================== */
.conf-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
}

.conf-kicker::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--accent-gold);
}

.conf-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-green);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.conf-link {
    display: inline-block;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: color var(--transition-speed);
}

.conf-link:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   SECÇÃO 1: SOBRE O EVENTO
   ========================================================================== */
.conf-about {
    flex-direction: column;
    gap: 3rem;
}

.conf-header-split {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.conf-header-split .conf-title-area {
    flex: 1;
}

.conf-header-split .conf-desc-area {
    flex: 1.5;
    font-size: 1.05rem;
}

.conf-features-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    transition: transform var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(26, 59, 50, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.feature-text p {
    font-size: 0.85rem;
}

.feature-divider {
    width: 1px;
    height: 60px;
    background-color: var(--border-color);
}

/* ==========================================================================
   LAYOUT COM BARRA LATERAL (Agenda e Oradoras)
   ========================================================================== */
.conf-agenda, .conf-speakers {
    align-items: flex-start;
}

.conf-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.conf-content {
    flex: 1;
    position: relative;
}

/* ==========================================================================
   SECÇÃO 2: AGENDA (Timeline)
   ========================================================================== */
/* ==========================================================================
   ESTRUTURA GERAL DOS CARROSSÉIS
   ========================================================================== */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* Evita que conteúdo transborde horizontalmente na página */
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Cria o efeito de "encaixe" ao deslizar */
    scrollbar-width: none; /* Oculta a barra de scroll no Firefox */
    padding-bottom: 1rem;
    padding-top: 1.5rem;
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Oculta a barra de scroll no Chrome/Safari */
}

/* Controlos (Botões) */
.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary-dark);
    color: #ffffff;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   SECÇÃO 2: CARTÕES DA AGENDA
   ========================================================================== */
.timeline-card {
    /* Exibe 3 cartões por vez no Desktop */
    flex: 0 0 calc(33.333% - 1rem); 
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Linha contínua simulada (conecta os pontos) */
.timeline-card::before {
    content: '';
    position: absolute;
    top: 5px; /* Alinhado ao centro do ponto */
    left: 50%;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    z-index: 1;
}

/* Remove a linha extra do último elemento */
.timeline-card:last-child::before {
    display: none; 
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary-dark);
    border-radius: 50%;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px #ffffff;
}

.card-inner {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all var(--transition-speed);
}

.card-inner:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

/* ==========================================================================
   SECÇÃO 3: CARTÕES DAS ORADORAS
   ========================================================================== */
.speaker-card {
    /* Exibe 4 cartões por vez no Desktop */
    flex: 0 0 calc(25% - 1.125rem);
    scroll-snap-align: start;
    text-align: center;
    transition: transform var(--transition-speed);
}

.speaker-card:hover {
    transform: translateY(-5px);
}

.speaker-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid transparent;
    transition: border-color var(--transition-speed);
}

.speaker-card:hover img {
    border-color: var(--accent-gold);
}



/* ==========================================================================
   LÓGICA DE ARRASTO (GRAB & DRAG)
   ========================================================================== */
.carousel-track {
    cursor: grab; /* Mostra o cursor de "agarrar" no desktop */
}

.carousel-track:active {
    cursor: grabbing; /* Muda o cursor quando está a ser pressionado */
}

/* Classe dinâmica injetada via jQuery durante o arrasto */
.carousel-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none; /* Desativa o encaixe magnético para o arrasto ser livre */
    scroll-behavior: auto; /* Remove o delay do smooth scroll nativo */
    user-select: none; /* Impede a seleção acidental de texto */
}

/* Impede que o utilizador clique acidentalmente em links/fotos enquanto arrasta */
.carousel-track.is-dragging .timeline-card,
.carousel-track.is-dragging .speaker-card {
    pointer-events: none; 
}
/* ==========================================================================
   MEDIA QUERIES (Responsividade Perfeita)
   ========================================================================== */
@media (max-width: 1024px) {
    .conf-section {
        flex-direction: column;
        gap: 2rem;
    }
    .conf-sidebar {
        width: 100%;
    }
    /* 2 cartões de agenda visíveis no Tablet */
    .timeline-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
    /* 3 cartões de oradoras visíveis no Tablet */
    .speaker-card {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media (max-width: 768px) {
    /* 2 cartões de oradoras visíveis em Tablet pequeno */
    .speaker-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 480px) {
    /* 1 cartão visível no Mobile */
    .timeline-card, .speaker-card {
        flex: 0 0 100%;
    }
    .timeline-card::before {
        display: none; /* Remove a linha horizontal no telemóvel pois os cartões ficam isolados */
    }
    /* Botões ficam no centro em ecrãs muito pequenos */
    .carousel-controls {
        justify-content: center;
    }
}

/* ==========================================================================
   MEDIA QUERIES (Responsividade)
   ========================================================================== */
@media (max-width: 1024px) {
    .conf-header-split, .conf-features-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .feature-divider {
        width: 100%;
        height: 1px;
    }

    .conf-section {
        flex-direction: column;
        gap: 2rem;
    }

    .conf-sidebar {
        width: 100%;
    }

    .timeline-container {
        flex-wrap: wrap;
    }
    
    .timeline-line {
        display: none; /* Remove a linha em ecrãs menores pois o layout empilha */
    }

    .timeline-card {
        min-width: calc(50% - 1rem);
    }
    
    .timeline-dot {
        display: none;
    }
}

@media (max-width: 600px) {
    .conference-wrapper {
        padding: 2rem;
    }

    .timeline-card {
        min-width: 100%;
    }

    .speakers-track {
        overflow-x: auto; /* Permite scroll manual em telemóveis */
        padding-bottom: 1rem;
    }
    
    .carousel-nav {
        display: none; /* Oculta botão de navegação no telemóvel, favorecendo o swipe nativo */
    }
}



/* ==========================================================================
   SECÇÃO CALL TO ACTION (BANNER)
   ========================================================================== */
.cta-section-wrapper {
    max-width: 1280px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.cta-banner {
    position: relative;
    background-image: url(../img/cta-banner.png);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 12rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(42, 111, 85, 0.15);
}

.cta-pattern {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    opacity: 0.8;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.pattern-left {
    left: 0;
    background: radial-gradient(circle at 10% 50%, rgba(255,255,255,0.1) 0%, transparent 50%), 
                linear-gradient(45deg, rgba(226, 177, 60, 0.2) 25%, transparent 25%);
    background-size: 50px 50px;
}

.pattern-right {
    right: 0;
    background: radial-gradient(circle at 90% 50%, rgba(255,255,255,0.1) 0%, transparent 50%), 
                linear-gradient(-45deg, rgba(226, 177, 60, 0.2) 25%, transparent 25%);
    background-size: 50px 50px;
}

.cta-content-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    max-width: 65%;
}

.cta-icon-container {
    width: 70px;
    height: 70px;
    background-color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-dark);
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cta-text-group {
    color: var(--text-white);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

.cta-action-area {
    position: relative;
    z-index: 2;
}

.btn-subscribe {
    background-color: var(--text-white);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.btn-subscribe:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
    background-color: #f8f8f8;
}

/* ==========================================================================
   SECÇÃO PARCEIROS (MARQUEE)
   ========================================================================== */
.partners-section-wrapper {
    max-width: 1280px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.partners-header {
    flex-shrink: 0;
    position: relative;
}

.conf-kicker {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
}

.conf-kicker::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--kicker-yellow);
}

.partners-marquee-viewport {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    cursor: grab;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.partners-marquee-viewport:active, 
.partners-marquee-viewport.is-dragging {
    cursor: grabbing;
}

.partners-marquee-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    padding: 1rem 0;
    user-select: none;
    -webkit-user-select: none;
}

.partner-logo {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    color: #555;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
    pointer-events: none; 
}

.partner-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.canada-logo {
    text-transform: capitalize;
    font-family: serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
}
.canada-logo i {
    color: #d80621;
}

/* ==========================================================================
   MEDIA QUERIES (Responsividade Perfeita)
   ========================================================================== */

/* TABLET (Até 1024px) */
@media (max-width: 1024px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
        gap: 2rem;
    }

    .cta-content-area {
        max-width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .cta-pattern {
        opacity: 0.3; /* Reduz a distração do padrão */
    }

    .partners-section-wrapper {
        flex-direction: column;
        align-items: flex-start; /* Alinha o título "Parceiros" à esquerda */
        gap: 1.5rem;
    }
    
    .partners-marquee-viewport {
        width: 100%; /* Garante que ocupe o espaço todo em coluna */
    }
}

/* MOBILE GRANDE / TABLET PEQUENO (Até 768px) */
@media (max-width: 768px) {
    .cta-section-wrapper,
    .partners-section-wrapper {
        padding: 0 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem; /* Título ligeiramente menor */
    }
    
    .cta-subtitle {
        font-size: 0.9rem;
    }

    .btn-subscribe {
        width: 100%; /* Botão ocupa a largura total para ser mais fácil de clicar */
        padding: 1rem;
    }

    .partner-logo {
        height: 40px; /* Logos menores */
        font-size: 1rem;
    }
    
    .partners-marquee-track {
        gap: 2.5rem; /* Reduz o espaço vazio entre parceiros */
    }
}

/* MOBILE PEQUENO (Até 480px) */
@media (max-width: 480px) {
    .cta-section-wrapper,
    .partners-section-wrapper {
        padding: 0 1rem; /* Margens mínimas nas bordas do ecrã */
    }

    .cta-banner {
        padding: 2rem 1.5rem; /* Menos preenchimento interno no banner */
    }

    .cta-icon-container {
        width: 55px;
        height: 55px;
        font-size: 1.4rem; /* Ícone mais pequeno */
    }

    .cta-title {
        font-size: 1.3rem;
    }

    .partner-logo {
        height: 35px;
        font-size: 0.9rem;
    }
    
    .partners-marquee-track {
        gap: 2rem;
    }
}


/* ==========================================================================
   ESTRUTURA PRINCIPAL
   ========================================================================== */
.site-footer {
    background-color: var(--footer-bg);
    font-family: 'Inter', sans-serif; /* Assumindo a fonte do seu projeto */
    color: var(--footer-text);
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--footer-border);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 2rem;
}

/* Colunas e Divisórias Verticais */
.footer-col {
    flex: 1;
    position: relative;
    padding-right: 2rem;
}

/* Cria a linha vertical à direita de todas as colunas, exceto a última */
.footer-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: var(--footer-border);
}

/* Ajustes de largura específicos para equilibrar o layout visualmente */
.brand-col { flex: 1.4; }
.contacts-col { flex: 1.2; }

/* ==========================================================================
   COLUNA 1: MARCA
   ========================================================================== */
.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 60px; /* Ajuste conforme o tamanho real da sua imagem */
    height: auto;
}

.footer-logo-text {
    font-family: 'Playfair Display', serif; /* Fonte serifada comum em logos institucionais */
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--footer-heading);
}

.footer-logo-text strong {
    font-size: 1.1rem;
}

.brand-slogan {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--footer-slogan);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

/* Diamantes Decorativos */
.brand-diamonds {
    display: flex;
    gap: 0.8rem;
    padding-left: 0.5rem; /* Ajuste visual para alinhar com o texto */
}

.diamond {
    display: inline-block;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
}

.d-burgundy { background-color: var(--diamond-burgundy); }
.d-red { background-color: var(--diamond-red); }
.d-green { background-color: var(--diamond-green); }
.d-yellow { background-color: var(--diamond-yellow); }

/* ==========================================================================
   TÍTULOS E LISTAS (Navegação e Contactos)
   ========================================================================== */
.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--footer-heading);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-links,
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact-list li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--footer-slogan);
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-contact-list i {
    color: var(--footer-text);
    font-size: 1rem;
    width: 16px; /* Mantém os ícones alinhados verticalmente */
    text-align: center;
}

/* ==========================================================================
   COLUNA 4: REDES SOCIAIS
   ========================================================================== */
.social-icons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--footer-text);
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--footer-heading);
    border-color: var(--footer-heading);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   BASE DO FOOTER (Copyright)
   ========================================================================== */
.footer-divider {
    border: none;
    border-top: 1px solid var(--footer-border);
    margin: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: #666;
}

.legal-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: var(--footer-heading);
}

.separator {
    margin: 0 0.5rem;
    color: #ccc;
}

/* ==========================================================================
   MEDIA QUERIES (Responsividade)
   ========================================================================== */

/* TABLET (Até 1024px) */
@media (max-width: 1024px) {
    .footer-top {
        flex-wrap: wrap; /* Permite que as colunas quebrem linha */
        gap: 3rem 1rem;
    }

    /* Transforma em um grid de 2x2 */
    .footer-col {
        flex: 0 0 calc(50% - 1rem); /* Ocupa 50% da largura */
        padding-right: 0;
    }

    /* Remove as linhas verticais que não fazem mais sentido no grid 2x2 */
    .footer-col::after {
        display: none;
    }
}

/* MOBILE (Até 768px) */
@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0 1.5rem 0;
    }
    
    .footer-col {
        flex: 0 0 100%; /* Ocupa 100% (Empilhamento total) */
        text-align: center; /* Centraliza tudo no mobile */
    }

    /* Re-alinhamentos para o texto centralizado */
    .footer-logo-wrapper {
        justify-content: center;
    }
    
    .brand-slogan {
        margin: 0 auto 1.5rem auto;
    }
    
    .brand-diamonds {
        justify-content: center;
        padding-left: 0;
    }
    
    .footer-contact-list li {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }

    /* Base do Footer no Mobile */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}


/* ==========================================================================
   CABEÇALHO DA SECÇÃO (HEADER DECORATIVO)
   ========================================================================== */
.registration-section {
    position: relative;
    overflow-x: hidden;
}

.registration-header-area {
    position: relative;
    text-align: center;
    padding: 4rem 0 6rem 0;
    background-image: url(../img/capa.jpeg);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
}

/* Simulação de Padrões Capulana usando CSS Gradients para manter independência de assets */
.decor-pattern {
    position: absolute;
    top: 0;
    height: 100px;
    width: 30%;
    min-width: 250px;
    opacity: 0.9;
    z-index: 1;
}

.pattern-left {
    left: -20px;
    border-bottom-right-radius: 50% 20%;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, #c92a2a 10px, #c92a2a 20px),
        linear-gradient(to right, #7a1c22, #e2b13c);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.pattern-right {
    right: -20px;
    border-bottom-left-radius: 50% 20%;
    background: 
        repeating-linear-gradient(-45deg, transparent, transparent 15px, #1a4338 15px, #1a4338 30px),
        linear-gradient(to left, #111, #1a4338);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.header-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-green);
    color: #ffffff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 10px 20px rgba(26, 67, 56, 0.2);
    border: 4px solid #ffffff;
}

.header-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.header-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   CARTÃO DO FORMULÁRIO (MAIN CONTAINER)
   ========================================================================== */
.registration-card-container {
    max-width: 1100px;
    margin: -3rem auto 0 auto; /* Sobrepõe ligeiramente o cabeçalho */
    background-color: var(--form-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.registration-form {
    padding: 3rem;
}

/* ==========================================================================
   FIELDSETS E SISTEMA DE GRELHA (GRIDS)
   ========================================================================== */
.form-fieldset {
    margin-bottom: 2.5rem;
    border: none;
}

.fieldset-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.3rem;
}

.fieldset-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--accent-yellow);
}

/* Grids Parametrizáveis */
.form-grid {
    display: grid;
    gap: 1.5rem 1.2rem;
}

.form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-grid-2-asym {
    grid-template-columns: 2fr 2fr;
}

.mt-4 { margin-top: 1.5rem; }

/* ==========================================================================
   ELEMENTOS DE INPUT (CAMPOS DO FORMULÁRIO)
   ========================================================================== */
.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.required {
    color: #d32f2f;
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--icon-color);
    font-size: 0.95rem;
    pointer-events: none; /* Impede que o ícone bloqueie o clique no input */
    transition: color var(--transition-fast);
}

.textarea-icon {
    top: 16px;
    transform: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem 0.75rem 2.5rem; /* Espaço à esquerda para o ícone */
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-inner);
    appearance: none; /* Remove estilos nativos do browser */
    -webkit-appearance: none;
}

textarea {
    resize: vertical;
    min-height: 45px;
}

/* Select customizado (Seta à direita) */
select {
    cursor: pointer;
    padding-right: 2.5rem;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--icon-color);
    font-size: 0.8rem;
    pointer-events: none;
}

/* Ajuste específico para o input de data no Webkit */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    color: transparent;
    cursor: pointer;
    height: auto;
    width: auto;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

input::placeholder,
textarea::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Estados de Focus e Interação */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(26, 67, 56, 0.1);
}

input:focus + .input-icon,
select:focus + .input-icon,
textarea:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary-green);
}

/* ==========================================================================
   CHECKBOX PERSONALIZADO (POLÍTICA DE PRIVACIDADE)
   ========================================================================== */
.form-actions-area {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.checkbox-wrapper {
    margin-bottom: 2rem;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--primary-green);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    color: var(--text-muted);
    line-height: 1.5;
}

.policy-link {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

.policy-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   BOTÃO DE SUBMISSÃO
   ========================================================================== */
.submit-wrapper {
    text-align: center;
}

.btn-submit {
    background-color: var(--primary-green);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 3rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all var(--transition-fast);
    box-shadow: 0 8px 15px rgba(26, 67, 56, 0.15);
}

.btn-submit:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(26, 67, 56, 0.2);
}

.submit-help-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ==========================================================================
   FOOTER DO CARTÃO (SINAIS DE CONFIANÇA)
   ========================================================================== */
.form-trust-footer {
    display: flex;
    background-color: var(--trust-bg);
    padding: 2rem 3rem;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.trust-icon {
    width: 45px;
    height: 45px;
    background-color: transparent;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.trust-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.2rem;
}

.trust-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.trust-divider {
    width: 1px;
    height: 50px;
    background-color: #dbe4e0;
    margin: 0 2rem;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDADE PERFEITA)
   ========================================================================== */

/* LAPTOPS E TABLETS GRANDES (Até 1024px) */
@media (max-width: 1024px) {
    .form-grid-3 {
        grid-template-columns: repeat(2, 1fr); /* Reduz de 3 para 2 colunas */
    }
    
    .form-grid-2-asym {
        grid-template-columns: 1fr 1fr; /* Colunas simétricas no tablet */
    }

    .form-trust-footer {
        padding: 2rem;
        gap: 1rem;
    }

    .trust-divider {
        margin: 0 1rem;
    }
}

/* TABLETS (Até 768px) */
@media (max-width: 768px) {
    .registration-card-container {
        margin: -2rem 1rem 0 1rem;
    }

    .registration-form {
        padding: 2rem;
    }

    .header-title {
        font-size: 2rem;
    }
    
    .header-subtitle {
        padding: 0 1rem;
        font-size: 0.95rem;
    }

    .form-trust-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .trust-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }
    
    .trust-item {
        width: 100%;
    }
}

/* SMARTPHONES (Até 576px) */
@media (max-width: 576px) {
    .form-grid-3, 
    .form-grid-2-asym {
        grid-template-columns: 1fr; /* Empilhamento total no mobile */
    }

    .registration-form {
        padding: 1.5rem;
    }

    .btn-submit {
        width: 100%; /* Botão ocupa toda a largura no telemóvel */
        justify-content: center;
    }
    
    .decor-pattern {
        opacity: 0.5; /* Reduz ruído visual em ecrãs pequenos */
    }
}


/* ==========================================================================
   CLASSES DE UX E VALIDAÇÃO (INJETADAS VIA JQUERY)
   ========================================================================== */
   
/* Cor base para selects não selecionados (placeholder) */
select.is-placeholder {
    color: #adb5bd !important;
}

/* Estado de Erro no Input Wrapper */
.input-wrapper.error-state input,
.input-wrapper.error-state select,
.input-wrapper.error-state textarea {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.input-wrapper.error-state .input-icon {
    color: #d32f2f;
}

/* Animação de Shake para campos inválidos */
@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.shake-animation {
    animation: shakeError 0.4s ease-in-out;
}

/* Checkbox em estado de erro */
.checkbox-wrapper.error-state .checkmark {
    border-color: #d32f2f;
    background-color: rgba(211, 47, 47, 0.05);
}
.checkbox-wrapper.error-state .checkbox-text {
    color: #d32f2f;
}

/* Mensagens de erro de validação (Injetadas via JS) */
.error-msg-text {
    color: #d32f2f;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   ALERTAS PERSONALIZADOS (TOAST NOTIFICATIONS)
   ========================================================================== */
.custom-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    width: 350px;
    max-width: calc(100vw - 40px);
    padding: 1.2rem;
    gap: 1rem;
    z-index: 9999;
    
    /* Estado inicial escondido fora do ecrã */
    transform: translateX(120%); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid transparent;
}

/* Classe que o jQuery adiciona para mostrar o alerta */
.custom-toast.show {
    transform: translateX(0);
}

/* Tipos de Alerta (Erro e Sucesso) */
.custom-toast.toast-error {
    border-left-color: #d32f2f;
}
.custom-toast.toast-error .toast-icon {
    color: #d32f2f;
}

.custom-toast.toast-success {
    border-left-color: #2e7d32;
}
.custom-toast.toast-success .toast-icon {
    color: #2e7d32;
}

.toast-icon {
    font-size: 1.5rem;
    margin-top: 2px;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    margin-top: 2px;
}

.toast-close:hover {
    color: #333;
}

/* Responsividade para Telemóvel */
@media (max-width: 576px) {
    .custom-toast {
        top: 20px;
        right: 20px;
        left: 20px;
        width: auto;
        /* No telemóvel, desliza de cima para baixo */
        transform: translateY(-150%);
    }
    .custom-toast.show {
        transform: translateY(0);
    }
}

