@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

header {
    position: relative;
    background-color: #827b7d;
    color: #fff;
    overflow: hidden;
}

.my-nav {
    background-color: rgba(0, 0, 0, 0.35);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

.navbar-brand img {
    display: block;
    max-width: 100px;
    height: auto;
}

.nav-link {
    color: #fff;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #c0c0c0;
}

.navbar-toggler {
    background-color: #fff;
    border: 1px solid #ccc;
}

.my-carousel {
    overflow: hidden;
    line-height: 0;
}

.my-carousel .carousel-inner {
    overflow: hidden;
}

/* Removido: height, min-height, max-height fixos */
.my-carousel .carousel-item {
    width: 100%;
    background-color: #000;
}

.my-carousel .carousel-item picture {
    display: block;
    width: 100%;
}

/* Removido: height, object-fit e object-position */
.my-carousel .carousel-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Títulos */
.section-title {
    font-size: 2.4rem;
    color: #333;
    font-weight: 700;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.75rem;
}

/* Seções */
#servicos {
    background-color: #f8f9fa;
}

.section-spacing {
    padding: 60px 0;
}

.section-text {
    max-width: 760px;
    margin: 0 auto 1.75rem;
    color: #555;
    line-height: 1.7;
}

/* Cards */
.card {
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-10px);
}

.card-body {
    display: flex;
    align-items: center;
}

.card-body i {
    color: #9e1b32;
}

.card-body h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.card-body p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

/* Clientes */
.clients-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.clients-track {
    display: flex;
    align-items: center;
    width: calc((100% / 3) * 8);
    animation: clientScroll 18s linear infinite;
}

.client-slide {
    flex: 0 0 calc(100% / 8);
    width: calc(100% / 8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.client-image {
    width: 180px;
    height: 180px;
    border: 1px solid #ccc;
    padding: 5px;
    object-fit: cover;
    background-color: #fff;
    display: block;
    margin: 0 auto;
}

.btn-primary {
    background-color: #9e1b32;
    border-color: #9e1b32;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #d23754;
    border-color: #d23754;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

@keyframes clientScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Localização */
.map-wrapper {
    margin-top: 0.5rem;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    border-radius: 10px;
}

/* Contato */
.contact-form {
    max-width: 720px;
    margin: 0 auto;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* WhatsApp flutuante */
.whatsapp-float {
    position: fixed;
    right: 20px;
    top: 70%;
    transform: translateY(-50%);
    z-index: 1000;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: translateY(-50%) scale(1.1);
    color: #fff;
}

/* Tablet */
@media (max-width: 991px) {
    .my-nav {
        position: relative;
        background-color: rgba(0, 0, 0, 0.35);
    }

    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.35);
        border-radius: 8px;
        margin-top: 0.75rem;
        padding: 1rem;
    }

    .navbar-collapse.show .navbar-nav {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    /* Removido: height, min-height e max-height do tablet */

    .section-spacing {
        padding: 52px 0;
    }

    .clients-track {
        width: calc((100% / 2) * 8);
    }

    .client-slide {
        flex: 0 0 calc(100% / 8);
        width: calc(100% / 8);
    }

    .client-image {
        width: 160px;
        height: 160px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.4rem;
    }

    .section-spacing {
        padding: 44px 0;
    }

    .section-text {
        margin-bottom: 1.4rem;
        line-height: 1.6;
    }

    .card-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-body i {
        margin-bottom: 15px;
    }

    .clients-track {
        width: calc(100% * 8);
    }

    .client-slide {
        flex: 0 0 calc(100% / 8);
        width: calc(100% / 8);
        padding: 0;
    }

    .client-image {
        width: 150px;
        height: 150px;
    }

    .map-wrapper iframe {
        height: 320px;
    }

    .whatsapp-float {
        right: 14px;
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
}

/* Removido: media query de 480px que controlava altura do carrossel */