/* TRILHAS ESTRATÉGICAS - MBA GESTÃO DE VALOR */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
--header-height: 6rem; /* Variável para a altura do menu */

/* Paleta Dark Premium */
--bg-dark: #0f1219;
--bg-light: rgba(255, 255, 255, 0.082);
--bg-white: #f3f3f3;
--bg-card: var(--bg-dark); 
--border-subtle: rgba(255, 255, 255, 0.226); 

            
--gold-primary: #cca471;
--gold-hover: #b58f5e;


--text-white: #ffffff;
--text-soft: #e2e2e2;
--text-gray: #d1d5db;
--text-muted: #9ca3af;

--radius-lg: 40px; /* Curvatura acentuada como na referência */
--radius-sm: 8px;

/* para menu */
--nav-height: 80px;
--transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: "Figtree", sans-serif;
line-height: 1.6;
color: #333;
background-color: var(--bg-white);
position: relative;
}

/* --- CSS DA HERO SECTION --- */
    
    /* Container principal */
    .hero-frame-mid {
        height: 15%; 
       width: 100%;
        background-color: #fff;
        position: relative;
        overflow: hidden;
        color: #ffffff;
        box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 10% 0 5%;
    }
 
 
    @media (max-width: 568px) {

      .hero-frame-mid {padding: 40% 0 20%;}
    
}    

    /* Imagem de fundo com zoom suave */
    .hero-bg-mid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    filter: grayscale(100%) contrast(1.2);
    z-index: 0;        
    }

    .hero-title-mid {
        font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsivo: entre 2.5rem e 4.5rem */
        font-weight: 600;
        line-height: 1.1;
        margin-bottom: 40px;
        color: var(--text-soft);
    }

    .hero-subtitle-mid {
        font-size: clamp(0.8rem, 5vw, 1.2rem); 
        color: var(--text-soft);
        margin: 40px;
        line-height: 1.6;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    /* Camada escura para leitura do texto */
    .hero-overlay-mid {
        background-size: cover;
        background-position: top;
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: radial-gradient(circle, #0f1219bb 0%, var(--bg-dark, #0f1219) 100%);
        z-index: 1;  
    }




/* --- Container da Seção --- */
.trilhas-section {
    padding: 80px 20px;
    background-color: var(--bg-dark, #0f1219); /* Fallback se var não existir */
    font-family: 'Figtree', sans-serif;
    color: var(--text-gray, #d1d5db);
}

.trilhas-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- Cabeçalho da Seção (Stats) --- */
.trilhas-header-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.1));
}

.trilhas-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--text-white, #fff);
    margin-bottom: 20px;
    line-height: 1.1;
}

.trilhas-intro h2 span {
    color: var(--gold-primary, #cca471);
    font-style: italic;
}

.trilhas-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    color: var(--text-muted, #9ca3af);
}

/* Stats Row */
.trilhas-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-item {
    text-align: left;
}

.stat-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white, #fff);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-primary, #cca471);
    margin-top: 5px;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-subtle, rgba(255,255,255,0.1));
}

/* --- Accordion (Item da Trilha) --- */
.trilha-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trilha-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.trilha-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.04);
}

/* Estado Ativo (Aberto) */
.trilha-item.active {
    border-color: var(--gold-primary, #cca471);
    background-color: rgba(15, 18, 25, 1); /* --bg-dark sólido */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-family: 'Figtree', sans-serif;
}

/* --- Header do Accordion (Botão) --- */
.trilha-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.trilha-info {
    display: flex;
    align-items: flex-start; /* Alinha ao topo caso quebre linha */
    gap: 30px;
}

.trilha-number {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    transition: color 0.3s;
}

.trilha-item.active .trilha-number {
    color: var(--gold-primary, #cca471);
}

.trilha-texts h3 {
    font-size: 1.4rem;
    color: var(--text-white, #fff);
    margin-bottom: 8px;
    font-weight: 600;
    transition: color 0.3s;
    font-family: 'Figtree', sans-serif;
}

.trilha-item:hover .trilha-texts h3 {
    color: var(--gold-primary, #cca471);
}

.trilha-texts p {
    font-size: 0.95rem;
    color: var(--text-muted, #9ca3af);
    max-width: 500px;
    line-height: 1.5;
    font-family: 'Figtree', sans-serif;
    display: none; /* Esconde descrição no mobile por padrão */
}

/* Meta dados (Direita) */
.trilha-meta {
    display: flex;
    align-items: center;
    gap: 30px;
}

.meta-hours {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted, #9ca3af);
    font-family: 'Figtree', sans-serif;
}

.meta-hours span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white, #fff);
}

.trilha-item.active .meta-hours span {
    color: var(--gold-primary, #cca471);
}

.icon-chevron {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #9ca3af);
    transition: all 0.3s ease;
}

.trilha-item.active .icon-chevron {
    background-color: var(--gold-primary, #cca471);
    color: #0f1219; /* Dark contrast */
    transform: rotate(180deg);
}

/* --- Conteúdo Expandível --- */
.trilha-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.trilha-item.active .trilha-content {
    /* O JS calculará o height exato, mas deixamos opacity aqui */
    opacity: 1;
}

.trilha-content-inner {
    padding: 0 30px 30px 90px; /* Indentação para alinhar com o texto do título */
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    padding-top: 30px;
}

/* Grid de Módulos */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.module-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.3s;
    display: flex;
    gap: 15px;
}

.module-card:hover {
    border-color: rgba(204, 164, 113, 0.3); /* Gold sutil */
}

.module-icon i {
    color: var(--gold-primary, #cca471);
    margin-top: 4px;
    
}

.module-info h4 {
    color: var(--text-soft, #e2e2e2);
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.module-info p {
    color: var(--text-muted, #9ca3af);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.module-tags {
    display: flex;
    gap: 10px;
}

.tag {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-gray, #d1d5db);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 4px;    
}

.tag.aula {
    color: #fa6060;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag.pratica {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-gray, #d1d5db);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Botão ver cronograma */
.btn-cronograma {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--gold-primary, #cca471);
    font-weight: 600;
    font-size: 0.9rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: gap 0.3s;
}

.btn-cronograma:hover {
    gap: 12px;
    color: #fff;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .trilhas-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    
    .trilhas-intro h2 {
        font-size: 2.2rem;
    }

    .trilhas-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .stat-value { font-size: 1.8rem; }
    
    .trilha-btn {
        padding: 20px;
        align-items: flex-start;
    }

    .trilha-info {
        gap: 15px;
    }

    .trilha-number {
        font-size: 1.8rem;
        margin-top: 4px;
    }

    .trilha-texts p {
        display: none; /* Mantém escondido no mobile */
    }
    
    .trilha-texts h3 {
        font-size: 1.1rem;
    }

    .meta-hours {
        display: none; /* Esconde horas no cabeçalho mobile para limpar visual */
    }

    .trilha-content-inner {
        padding: 0 20px 20px 20px; /* Remove indentação esquerda */
        margin-top: 0;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .trilha-texts p {
        display: block; /* Mostra descrição no desktop */
    }
}