/* Estilo de alinhamento*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

html {
    background: #FF1015;
}

body {
    background-color: #FF1015;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.conteudo-principal {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 20px;
    max-height: 12vh;
    background-color: whitesmoke;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.imagem {
    width: 110px;
    height: auto;
    display: flex;
    align-items: center;
}

#logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Navegação e Ícones (Tamanhos Originais) */
.itens {
    display: flex;
    justify-content: space-between;
    font-size: 2vw;
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    max-width: 56vw;
}

.itens div {
    margin-right: 30px;
}

.itens div:last-child {
    margin-right: 0;
}

.itemTexto {
    text-decoration: none;
    display: inline-block;
    position: relative;
    color: #FF1015;
}

.itemTexto::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FF1015;
    transform-origin: center;
    transition: transform 0.25s ease-out;
}

.itemTexto:hover::after {
    transform: scaleX(1);
}

.social {
    display: flex;
    gap: 30px;
    max-width: 22vw;
}

.social i {
    color: black;
    font-size: 3vw;
    transition: transform 0.3s ease;
}

#facebook:hover {
    color: blue;
}

#instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

#compras {
    font-size: 4vw;
}

#compras a {
    color: #FF1015;
    text-decoration: none;
}

/* Mensagem Institucional */
#quemSomos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 40px 0;
}

#titulo {
    text-align: center;
    padding: 20px 0;
    font-size: 36px;
    font-weight: bold;
    color: white;
}

#textoEmpresa {
    text-align: center;
    padding: 10px 0;
    font-size: 18px;
    color: #ffffff;
    max-width: 80vw;
    line-height: 1.6;
}

#mensagem {
    display: flex;
    background-color: whitesmoke;
    flex-direction: row;
    justify-content: space-around;
    padding: 50px 20px;
}

#visao, #missao, #valores {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 30vw;
}

.titulos {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #6f0002;
    margin-bottom: 15px;
}

.texto {
    text-align: center;
    font-size: 16px;
    color: #333333;
    line-height: 1.5;
}

/* História */
#historia {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #FF1015;
}

#nossaHistoria {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: white;
    margin-bottom: 30px;
}

#textoHistoria {
    font-size: 18px;
    line-height: 1.8;
    color: #ffffff;
    text-align: justify;
    max-width: 800px;
    margin-bottom: 40px;
}

.imagensEmpresa {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.imagensEmpresa img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.imagensEmpresa img:hover {
    transform: scale(1.05);
}

/* Footer Padrão */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    background-color: whitesmoke;
    margin-top: auto;
}

footer .imagem {
    width: 90px;
    height: auto;
}

footer .imagem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

footer .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

footer .info p {
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #333;
    font-family: 'Roboto', sans-serif;
    white-space: normal;
    text-align: center;
}

footer #direitos p {
    font-size: 13px;
    color: #333;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

/* Botão Voltar ao Topo */
#btnVoltar {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #FF1015;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#btnVoltar.mostrar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#btnVoltar:hover {
    background-color: #cc0d12;
    transform: scale(1.1);
}

/*Deixar itens ativos na página atual*/

.itemTexto.ativo {
    cursor: default;
    pointer-events: none;
}

.itemTexto.ativo::after {
    transform: scaleX(1) !important;
}

@media (max-width: 1024px) {
    header {
        padding: 8px 18px;
        gap: 12px;
    }
    header .imagem {
        width: 90px;
    }
    .itens {
        font-size: 1.5vw;
        gap: 16px;
    }
    .social {
        gap: 20px;
    }
    .social i {
        font-size: 2vw;
    }
    #compras {
        font-size: 3vw;
    }
    #titulo {
        font-size: 32px;
        padding: 25px 0;
    }
    #textoEmpresa {
        font-size: 16px;
    }
    #nossaHistoria {
        font-size: 32px;
        margin-bottom: 25px;
    }
    #textoHistoria {
        font-size: 16px;
    }
    .imagensEmpresa img {
        width: 280px;
        height: 180px;
    }
    .titulos {
        font-size: 24px;
    }
    .texto {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
        padding: 8px 12px;
        gap: 8px;
        align-items: center;
    }
    header .imagem {
        width: 60px;
        flex-shrink: 0;
    }
    .itens {
        order: 4;
        max-width: 100%;
        width: 100%;
        font-size: 10px;
        justify-content: center;
        gap: 8px;
    }
    .itens div {
        margin-right: 0;
    }
    .social {
        order: 2;
        margin-left: auto;
        gap: 12px;
    }
    .social i {
        font-size: 18px;
    }
    #compras {
        order: 3;
        font-size: 18px;
    }
    #titulo {
        font-size: 28px;
        padding: 20px 15px;
    }
    #textoEmpresa {
        font-size: 14px;
        max-width: 95vw;
        padding: 8px;
    }
    #mensagem {
        flex-direction: column;
        padding: 30px 15px;
        gap: 30px;
    }
    #visao, #missao, #valores {
        max-width: 100%;
    }
    .titulos {
        font-size: 22px;
        margin-bottom: 12px;
    }
    .texto {
        font-size: 13px;
    }
    #nossaHistoria {
        font-size: 28px;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    #textoHistoria {
        font-size: 14px;
        max-width: 95vw;
        padding: 0 10px;
    }
    #historia {
        padding: 40px 15px;
    }
    .imagensEmpresa {
        gap: 15px;
    }
    .imagensEmpresa img {
        width: 100%;
        max-width: 350px;
        height: 200px;
    }
    footer {
        flex-direction: column;
        padding: 12px;
        gap: 6px;
    }
    footer .imagem {
        width: 60px;
    }
    footer .info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    footer .info p, footer #direitos p {
        font-size: 10px;
        white-space: normal;
        text-align: center;
    }
    #btnVoltar {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    header {
        padding: 6px 10px;
        gap: 6px;
    }
    header .imagem {
        width: 50px;
    }
    .itens {
        font-size: 9px;
        gap: 6px;
    }
    .social {
        gap: 10px;
    }
    .social i {
        font-size: 16px;
    }
    #compras {
        font-size: 16px;
    }
    #titulo {
        font-size: 24px;
        padding: 15px 10px;
    }
    #textoEmpresa {
        font-size: 13px;
        padding: 6px;
    }
    #nossaHistoria {
        font-size: 24px;
        margin-bottom: 15px;
    }
    #textoHistoria {
        font-size: 12px;
    }
    #historia {
        padding: 30px 10px;
    }
    #mensagem {
        padding: 20px 10px;
        gap: 20px;
    }
    .titulos {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .texto {
        font-size: 12px;
    }
    .imagensEmpresa {
        gap: 12px;
    }
    .imagensEmpresa img {
        max-width: 300px;
        height: 180px;
    }
    footer {
        padding: 10px;
        gap: 4px;
    }
    footer .imagem {
        width: 50px;
    }
    footer .info p, footer #direitos p {
        font-size: 9px;
    }
    #btnVoltar {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 5px 8px;
    }
    header .imagem {
        width: 45px;
    }
    .itens {
        font-size: 8px;
        gap: 4px;
    }
    .social {
        gap: 8px;
    }
    .social i {
        font-size: 14px;
    }
    #compras {
        font-size: 14px;
    }
    #titulo {
        font-size: 20px;
        padding: 12px 8px;
    }
    #textoEmpresa {
        font-size: 12px;
    }
    #nossaHistoria {
        font-size: 20px;
        margin-bottom: 12px;
    }
    #textoHistoria {
        font-size: 11px;
        max-width: 100%;
    }
    #historia {
        padding: 20px 8px;
    }
    #mensagem {
        padding: 15px 8px;
        gap: 15px;
    }
    .titulos {
        font-size: 16px;
        margin-bottom: 8px;
    }
    .texto {
        font-size: 11px;
    }
    .imagensEmpresa {
        gap: 10px;
    }
    .imagensEmpresa img {
        max-width: 100%;
        height: 150px;
    }
    footer {
        padding: 8px;
        gap: 2px;
    }
    footer .imagem {
        width: 45px;
    }
    footer .info p, footer #direitos p {
        font-size: 8px;
    }
    #btnVoltar {
        bottom: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    header {
        padding: 4px 6px;
    }
    header .imagem {
        width: 40px;
    }
    .itens {
        font-size: 7px;
    }
    .social i {
        font-size: 12px;
    }
    #compras {
        font-size: 12px;
    }
    #titulo {
        font-size: 18px;
        padding: 10px 6px;
    }
    #textoEmpresa {
        font-size: 11px;
    }
    #nossaHistoria {
        font-size: 18px;
    }
    #textoHistoria {
        font-size: 10px;
    }
    .titulos {
        font-size: 14px;
    }
    .texto {
        font-size: 10px;
    }
    .imagensEmpresa img {
        height: 120px;
    }
    footer .imagem {
        width: 40px;
    }
    footer .info p, footer #direitos p {
        font-size: 7px;
    }
}

/* Ajuste do Footer para padronização com as outras páginas */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    background-color: whitesmoke;
    margin-top: auto;
}

footer .imagem {
    width: 90px;
    height: auto;
}

footer .imagem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

footer .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

footer .info p {
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #333;
    font-family: 'Roboto', sans-serif;
    white-space: normal;
    text-align: center;
    font-weight: normal; /* Remove negritos indesejados */
}

footer #direitos p {
    font-size: 13px;
    color: #333;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    font-weight: normal; /* Remove negritos indesejados */
}

/* ===== ESTILOS DO CARROSSEL ===== */
.carrossel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
}

.carrossel-slides {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Proporção 4:3 */
    overflow: hidden;
}

.carrossel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carrossel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carrossel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carrossel-titulo {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    max-width: 80%;
}

.carrossel-prev,
.carrossel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 12px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 4px;
    transition: background 0.3s;
    z-index: 10;
}

.carrossel-prev:hover,
.carrossel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carrossel-prev {
    left: 10px;
}

.carrossel-next {
    right: 10px;
}

.carrossel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
}

.dot.active {
    background: white;
}

/* Responsividade do carrossel */
@media (max-width: 768px) {
    .carrossel-container {
        max-width: 95%;
        margin: 30px auto;
    }
    
    .carrossel-prev,
    .carrossel-next {
        padding: 12px 10px;
        font-size: 18px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carrossel-container {
        max-width: 100%;
        margin: 20px auto;
        border-radius: 0;
    }
    
    .carrossel-titulo {
        font-size: 14px;
        padding: 8px 12px;
        bottom: 15px;
        left: 15px;
    }
    
    .carrossel-prev,
    .carrossel-next {
        padding: 10px 8px;
        font-size: 16px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        gap: 5px;
    }
}
