/* Custom CSS to style sections */
body {
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
    background-color: #E30613; /* Cor alterada */
}
.navbar-nav .nav-link {
    color: #fff;
    margin-right: 20px;
}
.navbar-nav .nav-link:hover {
    color: #f45e58;
}

section {
    padding: 80px 0;
    text-align: center;
}
section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}
section p {
    font-size: 18px;
    line-height: 1.6;
}
/* Banner Section Styles */
#banner {
    background-image: url('https://www.afixgraf.com.br/wp-content/uploads/2024/09/banner.jpg'); /* Coloque o link da sua imagem aqui */
    background-size: cover;
    background-position: center;
    height: 400px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
/* Responsividade para o título do banner */
#banner h1 {
    font-size: 62px; /* Tamanho padrão para telas grandes */
    font-weight: bold;
}

/* Para telas médias (entre 992px e 1200px) */
@media (max-width: 1200px) {
    #banner h1 {
        font-size: 60px;
    }
}

/* Para telas pequenas (entre 768px e 992px) */
@media (max-width: 992px) {
    #banner h1 {
        font-size: 50px;
    }
}

/* Para telas muito pequenas (menores que 768px) */
@media (max-width: 768px) {
    #banner h1 {
        font-size: 40px;
    }
}

/* Para telas de smartphones pequenos (menores que 576px) */
@media (max-width: 576px) {
    #banner h1 {
        font-size: 30px; 
    }
}

@media screen and (max-width: 425px) {
    #banner h1{
        font-size: 48px !important;
        font-weight: bold;
    }
}
#banner p {
    font-size: 24px;
}
/* Background colors for sections */
#home {
    background-image: url('https://www.afixgraf.com.br/wp-content/uploads/2024/09/background_sobre.png'); /* Substitua pelo URL da sua imagem */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Deixe o texto branco para contrastar com o fundo */
    padding: 100px 0; /* Adiciona espaço em volta do texto */
    text-align: center; /* Centraliza o texto */
}

#home h2, #home p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adiciona sombra ao texto para melhor visibilidade */
}
#sobre {
    padding: 60px 0;
}

#sobre img {
    max-width: 100%; /* Garante que a imagem não ultrapasse o limite da coluna */
    height: auto; /* Mantém a proporção da imagem */
}
#empresa {
    padding-top: 20px; /* Reduzindo o padding superior */
    background-color: #f7f7f7;
}
.titulo-direita {
    text-align: right;
}

.hero-boxes {
    margin-top: 10px; /* Diminui o espaçamento entre o título e as caixas */
}

.hero-box {
    background-color: #E30613;
    text-align: center;
    position: relative;
    margin-top: 15px; /* Diminui o espaçamento entre as hero boxes */
    padding: 50px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.hero-box img {
    width: 80px;
    transition: all 0.3s ease-in-out;
    margin-bottom: 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #676467;
    color: #fff;
    border-radius: 10px;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, background-color 0.5s ease;
    padding: 20px;
    box-sizing: border-box;
}

.hero-overlay h2 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 24px;
}

.hero-overlay p {
    font-size: 16px;
}

.hero-box:hover .hero-overlay {
    opacity: 1;
}

.hero-box:hover {
    background-color: #313030;
}

#produtos {
    background-color: #fff;
}
/* Estilo base para as imagens */
.produto-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Remove a borda ao redor das imagens em alguns navegadores */
    display: block;
    margin: 0 auto 10px;
}

/* Efeito ao passar o mouse */
.produto-img:hover {
    transform: scale(1.1); /* Aumenta a escala em 10% */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Aplica uma sombra */
}
#contato {
    background-color: #E30613;
    color: #fff;
}
/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}