@import url(../css/global.css);

/* HISTÓRIA */

.back{
    background-color: #344151;
    min-height: fit-content;
    border: 1px solid transparent;
}

.navegacao{
    padding: 1rem 2rem;
}

/* SECAO HISTÓRIA */

.secao-historia > div:nth-child(even){
    flex-direction: row-reverse;
}

.timeline-alt {
    position: relative;
    width: fit-content;
    padding: 0 2rem;
    margin: 0 0 4rem 0;
    max-width: 100%;
}

.timeline-container::before {
    content: attr(data-year);
    position: absolute;
    top: 95px; /* MESMO valor do top da bolinha */
    font-size: 2rem;
    font-weight: bold;
    white-space: nowrap;
    color: #fff;
}

/* Se o card está na esquerda → ano fica à direita da bolinha */
.timeline-container.left::before {
    left: calc(100% + 30px);
    /* border: 1px solid; */
    padding: 1rem;
    background: var(--background-banner);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* Se o card está na direita → ano fica à esquerda da bolinha */
.timeline-container.right::before {
    right: calc(100% + 30px);
    padding: 1rem;
    background: var(--background-banner);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.timeline-alt::after {
    content: "";
    position: absolute;
    width: 5px;
    background: var(--background-banner);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 10;
}

.timeline-container {
    grid-template-columns: repeat(2, 1fr);
    display: flex;
    padding: 2rem;
    position: relative;
    width: 50%;
    background:#111827;
    border-radius: 8px;
    align-items: center;
    box-shadow: var(--box-shadow);
    border: 1px solid;
}

.timeline-container .ano{
    position: absolute;
    right: 0;
    top: 0;
    font-size: 2.5rem;
    font-weight: bold;
}

.timeline-container.left { left: 0; border: 1px solid}
.timeline-container.right { left: 50%; border: 1px solid;}

.timeline-container::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    right: -15px;
    background: var(--background-banner);
    border-radius: 50%;
    top: 120px;
    z-index: 2001;
}

.timeline-container img{
    border-radius: 8px;
}

.timeline-container p{
    justify-content: center;
    padding: 1rem;
    font-size: 1.5rem;
}

.right::after { left: -13px; }

.content {
    padding: 20px;
    background-color: #111827;
    color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* PAGINA DE SOBRE */

@media (max-width: 1024px) {
    .back{
        background-color: #344151;
        min-height: 100dvh;
    }
    .historia{
        width: fit-content;
    }

    .timeline-alt{
        left: 30px;
        max-width: fit-content;
        margin: 0 2rem 4rem 4rem;
        padding-left: 2rem;
    }

    .timeline-alt::after {
        left: 30px; /* linha central mais à esquerda */
    }

    .timeline-container {
        width: 90%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 2rem;
        /* margin: 2rem 0; */
        padding-left: 1rem; /* espaço pro ano à esquerda */
    }

    .timeline-container::after {
        top: 48%;
        left: -15px; /* bolinha acompanha a linha */
        right: 2px;
    }

    .timeline-container.left::before {
        left: -120px;
        padding: 1rem;
        background: var(--background-banner);
        border-radius: 8px;
        box-shadow: var(--box-shadow);
    }


    /* Esconde os estilos específicos de posição (esquerda/direita) */
    .timeline-container.left,
    .timeline-container.right {
        left: 0;
    }

    /* Faz o ano aparecer à esquerda do card */
    .timeline-container::before {
        left: -120px;
        right: auto;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        box-shadow: none;
        font-size: 1.5rem;
        color: var(--text-color, #fff);
        padding: 0;
    }

    .timeline-container p{
        justify-content: center;
        padding: 1rem;
        font-size: 1.35rem;
    }
}

/* MISSÃO VISÃO E VALORES */
.secao-mvv{
    background-color: #1f2937;
}

.missao-visao-valores{
    display: block;
    justify-items: center;
    padding: 2rem 0;
}

.cabecalho-missao-visao-valores{
    margin: auto;
    max-width: 100%;
    text-align: center;
    font-size: 3rem;
    padding-bottom: 2rem;
}

.cards-missao-visao-valores{
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 1rem;
    padding: 2rem 2rem 2rem 1rem; /* padding responsivo lateral */
    text-align: left;
    max-width: 100%;
    justify-content: center;
}

.cards-missao-visao-valores h4{
    font-size: 2.5rem;
    font-weight: 600;
}

.cards-missao-visao-valores h4{
    font-size: 1.5rem;
    font-weight: 600;
}

.missao-visao-valores:hover{
    transition: all 5s ease;
}

.cardsmvv{
    background-color: #111827;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1),
                0 4px 6px -4px rgba(0,0,0,0.1);
    border: 1px solid #344151;
    transition: all 0.3s ease;

    display: flex; /* permite alinhar o conteúdo */
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    font-size: 20px;
    max-width: 100%;
}

.cardsmvv-valores{
    max-width: 97.5%;
    background-color: #111827;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1),
                0 4px 6px -4px rgba(0,0,0,0.1);
    border: 1px solid #344151;
    transition: all 0.3s ease;
    width: 100%;
}

.cardsmvv h4, .cardsmvv-valores h4{
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    border-bottom: none;
    margin: 1rem 2rem 2rem 1rem;
}

.cardsmvv p, .cardsmvv-valores p{
    padding: 1rem 2rem;
    font-size: 1.5rem;
}

.cardsmvv-valores ul{
    padding: 1rem;
    margin-left: 2.5rem;
    list-style-type: square;
    text-align: left;
    font-size: 1.5rem;
}

.cardsmvv ul li{
    padding: 0.2rem;
}

.cardsmvv:hover, .cardsmvv-valores:hover{
    border-color: #00bfff;
}

/* RESPONSIVIDADE MVV */
@media (max-width: 1000px) {

    .cards-missao-visao-valores{
        grid-template-columns: repeat(1, 1fr);
        display: grid;
        padding: 1rem;
        gap: 1rem;
        justify-items: center;
    }

    .cardsmvv-valores{
        width: 95%;
        padding-right: 2rem;
    }

    .cardsmvv h4{
        font-size: 2rem;
    }

    .cardsmvv p{
        font-size: 1.35rem;
    }

    .cardsmvv-valores h4{
        font-size: 2rem;
    }

    .cardsmvv-valores p{
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    
    .cardsmvv-valores{
        width: 92%;
    }
}

/* CERTIFICACOES CLIENTES */
.cabecalho-certificacoes-clientes{
    max-width: 100%;
    margin: auto;
    /* padding: 1.25rem; */
    padding: 2rem;
    align-items: flex-start;
    background: var(--background-banner);
    min-height: fit-content;
}

.cabecalho-certificacoes-clientes h3{
    font-size: 3rem;
    font-weight: bold;
    color:#f5f5f5;
    margin: 2rem 0;
    text-align: center;
}

.certificacoes{
    display: flex;
    justify-content: center;
}

.cabecalho-certificacoes ul li{
    font-size: 1.5rem;
}

.titulo-card{
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

@media (min-width:768px) {
    .certificacoes{
        grid-template-columns: repeat(1, 1fr);
    }   

    .certificacoes h3{
        font-size: 2.5rem;
    }

    .cabecalho-certificacoes ul li{
        font-size: 1.45rem;
    }
}

.cabecalho-certificacoes{
    background-color: #111827;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1),
                0 4px 6px -4px rgba(0,0,0,0.1); /* shadow-lg */
    text-align: left;
    border: 1px solid #374151;
    margin: 1rem;
}

.cabecalho-certificacoes h4{
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.cabecalho-certificacoes ul{
    margin: 0.5rem 1rem;
    list-style: square;
}

.cabecalho-certificacoes li{
    padding: 0.2rem;
    font-size: 1.2rem;
}