:root {
    --light: #f4f4f4;
    --primary: #222c64;
    --accent: #a80506;
    --soft-blue: #959ebf;
    --rose: #bc7e7c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header {
    background-color: #f4f4f4;
    position: fixed;
    width: 100%;
    padding: 20px 0;
    transition: 0.3s;
    z-index: 1000;
}

header.scrolled {
    background: var(--light);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary);
}

.logo img {
    height: 40px;
    width: auto;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: black;
    margin-left: 25px;
    text-decoration: none;
    font-weight: 500;
}

.btn-nav {
    padding: 8px 18px;
    background: var(--accent);
    border-radius: 5px;
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(34,44,100,0.8), rgba(34,44,100,0.8)),
    url('img/maquinaLonge.jpeg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 50px;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 25px;
    margin-top: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--rose);
    transform: translateY(-3px);
}

.sobre {
    display: flex;
    gap: 50px;
    padding: 100px 0;
    align-items: center;
}

.sobre img {
    width: 100%;
    border-radius: 10px;
}

.produtos {
    background: var(--primary);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.slider-card {
    position: relative;
    overflow: hidden;
}

.card-images {
    width: 100%;
    height: 300px; 
}

.card-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-images img.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
}

.filtros button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    background: var(--soft-blue);
    color: white;
    cursor: pointer;
}

.cta {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.social-icons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;
    border-radius: 50%;

    background: var(--accent);
    color: white;
    font-size: 28px;

    transition: 0.3s ease;
}

.social-icons a:hover {
    background: var(--rose);
    transform: translateY(-5px);
}

.localizacao {
    margin-top: 20px;
}

.localizacao h3 {
    margin-bottom: 10px;
}

.localizacao p {
    margin-bottom: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: white;
}

@media (max-width: 768px) {

    .nav {
        flex-direction: column;
        gap: 10px;
    }

    .menu {
        gap: 15px;
        font-size: 14px;
    }

    .hero {
        height: 80vh;
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.3;
    }

    section {
        padding: 80px 0;
    }

    .btn-primary {
        padding: 14px 28px;
        font-size: 16px;
    }

    .sobre {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .social-icons a {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}