:root {
  --primary: #505050;
  --secondary: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;

    background-color: #fbf8ed;
    color: #f0f0f0;
    overflow-x: hidden;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 20px;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.social-sidebar {
    position: fixed;
    left: 0px;
    top: 42%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
    padding: 10px;
    border-radius: 20px;
}

.social-sidebar a {
    transition: opacity 0.3s;
    background-color: #e0ddd0;
    padding: 10px;
    border-radius: 10px;
}

.social-sidebar a:hover {
    opacity: 1;
}

.social-sidebar a img {
    width: 24px;
    height: 24px; 
    display: block;
}

.hero-banner {
    width: 100%;
    height: 400px;
    background-image: url('imgs/header.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 40px
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.header-text {
    flex-basis: 50%;
}

.logo-top {
    font-size: 1.2rem;
    font-weight: 600;
}

.header-text h1 {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    color: white;
}

.tedx-badge {
    display: inline-block;
    background: #e62b1e;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 10px;
}

.header-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.quote {
    color: var(--primary);
    text-align: center;
    margin-top: 40px;
}

.quote blockquote {
    font-size: 1.1rem;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
    opacity: 0.8;
}

.quote span {
    color: #949494;
    font-size: 0.3rem;
    display: block;
    margin-top: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0.9;
}

.pillars h2 {
    color: var(--primary);
    font-size: 1.7rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.pillars h2 b {
    font-weight: 800;
    color: #e65a58;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pillar-item {
    padding: 30px 20px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 30px;
    
    text-align: left;
    
    display: flex;             
    flex-direction: column;    
    justify-content: center;   
    
    align-items: flex-start;
    
    height: 100%;
}

.pillar-icon {
    width: 51px;
    height: 37px;
    object-fit: contain;
    margin-bottom: 10px;
}

.arrow-icon {
    margin-left: 230px;
    position: absolute;
}

.pillar-item.gestao {
    background-color: #1c7983;
}

.pillar-item.lideranca {
    background-color: #686292;
}

.pillar-item.vendas {
    background-color: #e65a58;
}

.pillar-item.comunicacao {
    background-color: #f68b3e;
}

.cta-button {
    position: fixed;
    bottom: 30px; 
    left: 50%;   
    transform: translateX(-50%); 
    z-index: 1000; 

    background-color: #5a5a5a;
    color: white;       

    display: flex;
    align-items: center;
    gap: 10px; 

    padding: 10px 20px 10px 10px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.pillars .cta-button {
    margin-top: 0; 
}

.cta-icon {
    width: 50px;
    height: 50px;
}

.neuroscience {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-image: url('imgs/bg-neuro.gif');
    background-color: #12102a;
    background-size: 110%;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 40px;
    text-align: center;
}

.neuroscience h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 700;
}

.neuroscience p {
    font-size: 1.8rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: white;
    opacity: 0.9;
    margin-bottom: 20px;
}

.problem {
    padding-left: 0;
    padding-right: 0;
}

.problem-grid {
    display: flex;
    flex-wrap: nowrap;
        overflow-x: auto;
    padding: 20px 0 20px 20px; 
    gap: 20px;
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none;
}
.problem-grid::-webkit-scrollbar {
    display: none;
}


.problem-box {
    flex-basis: 320px;
    flex-shrink: 0;

    background-color: #1a173d;
    padding: 25px;
    border-radius: 30px;
    text-align: left;
    border-left: none; 
}

.problem-box.diag {
    background-color: #fdda96;
    color: var(--primary);
}
.problem-box.design {
    background-color: #30baa2;
    color: white;
}
.problem-box.delivery {
    background-color: #686292;
    color: white;
}
.problem-box.cont { 
    background-color: #e65a58;
    color: white;
}

.solution {
    color: var(--primary)
}
.solution h2 {
    font-size: 2rem;
}

.video-section {
    padding: 60px 20px;
    text-align: center;
}

.video-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 20px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.trajectory-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
    color: var(--primary);
    
}

*/
.left-column {
    padding-left: 50px;
    font-size: 1.5rem;
}

.right-column img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.trajectory h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary);
    text-align: left;
    margin-left: 30px;
}

.trajectory-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 40px; 
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    width: 150%;
}

.carousel-arrow {
    height: 30px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    flex-shrink: 0; 
}

.carousel-arrow:hover {
    opacity: 1;
}

.carousel-arrow.prev {
    margin-right: 15px; 
}

.carousel-arrow.next {
    margin-left: 15px;
}

.logo-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 5px;
    flex-grow: 1;
    padding: 10px 0;
    scrollbar-width: none;
}
.logo-carousel::-webkit-scrollbar {
    display: none;
}

.left-column .carousel-wrapper {
    margin-bottom: 30px;
}

.logo-carousel::-webkit-scrollbar {
    display: none;
}

.logo-carousel img {
    width: 347px; 
    flex-shrink: 0;
    
    object-fit: contain; 
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box; 
}

.trajectory-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 40px; 
}

.book {
    color: #5a5a5a;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #e4e1d5; /* Cor de fundo da sessão */
    padding: 40px 0; /* Padding vertical */
    position: relative;
    z-index: 1; /* Garante que a sessão fique na ordem certa */
}

.book .container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex; /* Divide a tela ao meio */
    align-items: left; /* Centraliza verticalmente */
    justify-content: left;
    padding: 0 20px;
}

/* LADO ESQUERDO (IMAGEM) */
.book .lado-esquerdo {
    width: 45%;
    position: relative;
}

.book .livro-img {
    width: 100%;
    max-width: 400px; /* Tamanho máximo do livro */
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    margin-top: -20%; 
    margin-bottom: -40%;
    position: relative;
    z-index: 10; /* Garante que o livro fique por cima das sessões vizinhas */
}

/* LADO DIREITO (TEXTO) */
.book .lado-direito {
    width: 50%;
    padding-left: 40px;
}

.book .categoria {
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #888;
    font-weight: bold;
    display: block;
    text-align: left;
}

.book .titulo {
    font-size: 2.5rem;
    line-height: 1.1;
    text-align: left;
}

.book .descricao {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
    text-align: left;
}

.book .btn-comprar {
    background-color: #e65a58;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    transition: background 0.3s;
    display: inline-block;
    text-transform: uppercase;
    font-size: 14px;
    float: left;
}

.book .btn-comprar:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.customers {
    margin-bottom: 30px;
    text-align: left;
}

.customers h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary);
    text-align: left;
}

.customers .customers-grid {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.customers-slider img {
    object-fit: contain;
}

.customers-slider {
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    display: flex;
    align-items: center;
}

.customers-track {
    display: flex;
    gap: 60px; /* Espaço entre as logos */
    animation: scroll-left 40s linear infinite; /* 40s define a velocidade (mais alto = mais lento) */
    width: max-content;
}

.customers-track img {
    height: 60px; /* Altura fixa para manter o padrão */
    width: auto;
    flex-shrink: 0;
}

/* Animação que move as logos */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Move exatamente metade (o conjunto original) */
}

/* Opcional: Pausa ao passar o mouse para o cliente conseguir ver melhor um logo */
.customers-slider:hover .customers-track {
    animation-play-state: paused;
}

.passions {
    background-color: #505050;
    padding: 30px 50px;
    color: white;
    border-radius: 50px;
    text-align: left;
}

.passions h2 {
    font-weight: 900;
    color: #e4e1d5;
}

.passions-grid {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.passions-grid img {
    object-fit: contain;
}

.passions-grid img:hover {
    opacity: 0.6;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 40px 60px;
    gap: 20px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-icons {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
}

@media (max-width: 992px) {
    .neuroscience {
        background-size: 420%;
    }
    
    .trajectory-layout {
        grid-template-columns: 1fr;
    }
    
    .right-column {
        order: -1;
        margin-bottom: 30px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-text h1 {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .neuroscience {
        background-size: 420%;
    }
    .social-sidebar {
        right: 0;
        left: auto;
    }

    .quote, .solution, .trajectory{
        text-align: left;
        width: 80%;
    }

    .hero-banner {
        background-image: url('imgs/header-mobile.png');
        height: 300px;
    }

    .pillar-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pillar-item {
        min-height: 130px; 
    }
    
    .pillar-grid .arrow-icon {
        display: none;
    }

    .problem-grid {
        flex-direction: column;
    }
    
    footer {
        justify-content: center;
        margin-bottom: 100px;
    }

    .cta-button {
        white-space: nowrap; 
        
        left: 50%;
        transform: translateX(-50%);

        padding: 12px 20px;
    }

    .cta-button:hover {
        transform: translateX(-50%) scale(1.05); 
    }

    .arrow-icon {
        display: none;
    }

    .trajectory-layout {
        grid-template-columns: 1fr;
    }
    
    .right-column {
        order: 0; 
        margin-bottom: 30px; 
    }

    .logo-carousel img {
        width: 80%;
    }

    .book .container {
        flex-direction: column; /* Empilha um embaixo do outro */
    }
    
    .book .lado-direito {
    width: 100%;    }
    
    .book .lado-esquerdo, .lado-direito {
        width: 100%;
        text-align: center;
        padding-left: 0;
    }

    .book .livro-img {
        /* No celular, removemos o overlap exagerado para não quebrar a tela */
        margin-top: -40px; 
        margin-bottom: 40px;
        max-width: 250px;
    }

    .book .titulo { font-size: 2rem; }
}