*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    font-family: "montserrat", sans-serif;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background-color: #151515;
}

/* ===================== */
/* HEADER - VISUAL DA PÁGINA DO CRUZE */
/* ===================== */

header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 102px;
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 0 max(40px, calc((100vw - 1500px) / 2));
    background: rgba(18, 18, 18, 0.97);
    border-bottom: 1px solid rgba(255, 101, 0, 0.35);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.logo {
    min-width: 135px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transform: translateX(30px);
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
    width: 120px;
    max-height: 58px;
    object-fit: contain;
}

/* ===================== */
/* PESQUISA E MENU */
/* ===================== */

.pesquisa {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) auto auto auto;
    align-items: center;
    gap: 16px;
}

.form-pesquisa {
    width: 100%;
    min-width: 0;
}

.caixa-pesquisa {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.caixa-pesquisa i {
    flex: 0 0 auto;
    color: #8c8c8c;
    font-size: 14px;
}

.caixa-pesquisa input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #222222;
    background: transparent;
    font-size: 14px;
}

.caixa-pesquisa input::placeholder {
    color: #888888;
}

/* O header do Cruze não possui a linha dentro do campo de pesquisa. */
.divisoria {
    display:none;
}

.contato,
.categoria, .localização {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.contato a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contato a:hover {
    color: #ff6500;
}

.localização{

    border-left: 1px solid rgba(255, 255, 255, 0.35);
    padding-left: 15px;

}

.localização a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.localização a:hover {
    color: #ff6500;
}

.categoria {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-left: 15px;
    color: #f5f5f5;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: color 0.2s ease;
}

.categoria:hover,
.categoria:focus-within {
    color: #ff6500;
}

.categoria > i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.categoria.aberto > i,
.categoria[aria-expanded="true"] > i {
    transform: rotate(180deg);
}

.menu-categoria {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 1000;
    width: 170px;
    padding: 8px;
    display: none;
    overflow: visible;
    border: 1px solid rgba(255, 101, 0, 0.48);
    border-radius: 8px;
    background: #1a1a1a;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

/* Espaço visual entre o botão e o menu suspenso. */
.menu-categoria::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.categoria.aberto .menu-categoria {
    display: grid;
}

.menu-categoria a {
    display: block;
    padding: 10px 12px;
    border-radius: 5px;
    color: #dddddd;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.menu-categoria a:hover,
.menu-categoria a:focus-visible {
    color: #ffffff;
    background: rgba(255, 101, 0, 0.13);
    outline: none;
}


/* ===================== */
/* 🖼️ BANNER */
/* ===================== */

.carrossel-banner {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1500px;
    margin: 30px auto;
    overflow: hidden;
    border: 1px solid rgba(255, 97, 0, 0.5);
    background-color: #111;
}

.carrossel-faixa {
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.banner-slide {
    flex: 0 0 100%;
    display: block;
}

.banner-slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* SETAS */

.carrossel-seta {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 101, 0, 0.7);
    border-radius: 50%;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}

.carrossel-seta:hover {
    background-color: #ff6500;
}

.seta-anterior {
    left: 18px;
}

.seta-proxima {
    right: 18px;
}

/* BOLINHAS */

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

.indicador {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid #ff6500;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.2s ease;
}

.indicador.ativo {
    width: 25px;
    border-radius: 10px;
    background-color: #ff6500;
}

/* RESPONSIVO */

@media (max-width: 720px) {
    .carrossel-banner {
        width: calc(100% - 24px);
        margin: 18px auto;
    }

    .carrossel-seta {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .seta-anterior {
        left: 8px;
    }

    .seta-proxima {
        right: 8px;
    }

    .carrossel-indicadores {
        bottom: 8px;
    }
}

/* ===================== */
/* 🚗 LOGOS */
/* ===================== */

.logo-carro{
    width: 100px;
    border-radius: 100px;
    border: 1px solid rgba(255,97,0,0.5);
    padding: 10px;
    background: #111;
    transition: 0.3s;
}

.logo-carro:hover{
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,97,0,0.5);
}

.container-logo-carro{ 
    display:flex; 
    gap: 20px; 
    margin-top: 20px;
    margin-bottom: 20px; 
    justify-content: center; 
    align-items: center;
}

/* ===================== */
/* 🧱 FOOTER */
/* ===================== */

.interface{
    max-width: 1280px;
    margin: 0 auto;
}

footer{
    background-color: #151515;
    color: #ffffff;
    padding: 25px 0;
    border-top: 1px solid rgba(255,97,0,0.5);
}

footer .footer1{
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap:40px
}

footer .footer1 .parte1{
    flex: 1;
}

footer .parte1 img{
    max-width: 100px;
    margin-bottom: 10px;
} 

.footer1 .parte1 h3{
    color: #FF6100;
    margin-bottom: 20px;
}

.footer1 .parte1 a{
    color: #ffffff;
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    font-size: .9rem;
}

.footer1 .parte1 a:hover{
    color: #FF6100;
}

footer .footer2{
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
    border-top: 1px solid rgba(255,97,0,0.5);
}

.carros-pi h1{
    color:#fff;
    margin-top: 30px;
    margin-bottom: 10px;
    text-align: center;
    font-family: "montserrat", sans-serif;
    font-weight: 600;
    font-style: normal;

}

.banner2 {
 
    width: 100%;

}

.banner2 img{

    display: block;
    width: 100%;
    max-width: 1500px;
    margin: 30px auto;
    border: 1px solid rgba(255,97,0,0.4);

}

/* GRID */
.grid-carros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* CARD */
.card-carro {
    background: #1c1c1c;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255,97,0,0.4);;
    max-width: 300px;
}

.card-carro:hover {
    box-shadow: 0 0 15px rgba(255,97,0,0.4);
}

/* IMAGEM */
.card-carro img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* TEXTO */
.card-carro h3 {
    font-size: 16px;
    margin: 10px;
    color: #fff;
}

.card-carro .info {
    font-size: 14px;
    color: #aaa;
    margin: 0 10px 5px;
}

/* PREÇO */
.card-carro .preco {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #ff6600;
    margin: 10px;
}

.ultimos {
    padding: 40px 80px; 
}

/* Classe Carro*/

.classes-carros {
    padding: 40px 80px; 
}

/* CARD */
.card-carro-classe {
    background: #1c1c1c;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255,97,0,0.4);;
    max-width: 300px;
}

.card-carro-classe:hover {
    box-shadow: 0 0 15px rgba(255,97,0,0.4);
}

.card-carro-classe img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.link-carro {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* ===================== */
/* HEADER RESPONSIVO */
/* ===================== */

@media (max-width: 1250px) {
    header {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (max-width: 980px) {
    header {
        min-height: auto;
        grid-template-columns: 120px minmax(0, 1fr);
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .logo {
        min-width: 0;
    }

    .logo img {
        width: 110px;
    }

    .pesquisa {
        grid-template-columns: minmax(220px, 1fr) auto auto;
    }
}

@media (max-width: 720px) {
    header {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .logo img {
        width: 90px;
    }

    .pesquisa {
        gap: 10px;
    }

    .caixa-pesquisa {
        min-height: 40px;
        padding: 0 12px;
    }

    .caixa-pesquisa input {
        font-size: 12px;
    }

    .contato,
    .categoria {
        font-size: 12px;
    }
}

@media (max-width: 560px) {
    header {
        grid-template-columns: 1fr;
    }

    .logo {
        justify-content: center;
    }

    .pesquisa {
        grid-template-columns: 1fr auto auto;
    }

    .form-pesquisa {
        grid-column: 1 / -1;
    }

    .contato {
        justify-self: end;
    }

    .categoria {
        justify-self: start;
    }
}

/* ============================= */
/* RESPONSIVIDADE PARA CELULAR */
/* ============================= */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    /* HEADER */

    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    .logo img {
        width: 100px;
    }

    .pesquisa {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .form-pesquisa {
        width: 100%;
    }

    .caixa-pesquisa {
        width: 100%;
    }

    /* MENU */

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* BANNERS */

    .banner img,
    .banner2 img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* CARDS DOS VEÍCULOS */

    .container-carros,
    .carros-container,
    .lista-carros {
        display: grid;
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .card-carro,
    .carro {
        width: 100%;
        max-width: 100%;
    }

    .card-carro img,
    .carro img {
        width: 100%;
        height: auto;
    }

    /* BOTÕES */

    .botoes,
    .botoes-contato {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .botao {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* PÁGINA DO VEÍCULO */

    .detalhes-carro,
    .conteudo-carro {
        flex-direction: column;
        padding: 20px;
    }

    .galeria-carro,
    .informacoes-carro {
        width: 100%;
    }

    /* FOOTER */

    footer {
        padding: 30px 20px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}