/* =========================================
   1. GERAL
   ========================================= */
html {
    scrollbar-gutter: stable;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden !important;
}

:root {
    --primary-red: #ff3131;
    --dark-bg: #0a0a0a;
    --card-bg: #111111;
    --text-grey: #cccccc;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    max-width: 250px;
    height: auto;
    animation: pulseLoader 2s infinite ease-in-out;
}

@keyframes pulseLoader {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}
/* --- FIM PRELOADER --- */

/* =========================================
   2. HEADER & NAVEGAÇÃO
   ========================================= */
header {
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    height: 110px;
    border-bottom: 1px solid var(--primary-red);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 10px rgba(255, 49, 49, 0.3); 
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    height: 90px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    margin-left: 0;
    min-width: 250px;
}

.logo a {
    display: block;
    height: 100%;
    text-decoration: none;
    border: none;
}
.logo a::after { display: none; }

.logo img {
    height: 100%;
    width: auto;
    transform: scale(2.0);
    transform-origin: left center;
    margin-left: 10px;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
    transition: transform 0.4s ease;
}

header.scrolled .logo img { transform: scale(1.7); }

nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav > ul > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-red);
}

nav > ul > li > a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

nav > ul > li > a:hover::after { width: 100%; }

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn i {
    margin-left: 5px;
    font-size: 0.8em;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    min-width: 220px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.5);
    z-index: 1000;
    border: 1px solid #333;
    border-top: 2px solid var(--primary-red);
    border-radius: 0 0 5px 5px;
    top: 100%;
    left: 0;
    margin-top: 15px; 
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-content a {
    color: rgba(255, 255, 255, 0.8);
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    text-transform: capitalize;
    font-size: 0.9rem;
    border-bottom: 1px solid #222;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: transparent;
    color: white;
    padding-left: 20px;
}

.dropdown-content a span {
    position: relative;
    display: inline-block;
}

.dropdown-content a span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--primary-red);
}

.dropdown-content a:hover span::after {
    width: 100%;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.social-icons {
    display: flex;
    gap: 20px; 
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    height: 30px;
    align-items: center;
}

.social-link {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

.social-link i { margin: 0; padding: 0; }

.social-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-red);
}

.social-link:hover { color: white; transform: translateY(-2px); }
.social-link:hover::after { width: 100%; }

/* =========================================
   3. HERO SECTION & MARCAS
   ========================================= */
.hero {
    height: 85vh; 
    position: relative;
    background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.5)), url('../assets/fundo-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #050505);
    z-index: 1;
    pointer-events: none;
}

.hero-content p {
    font-size: 2.5rem; 
    color: white;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 120px;
    position: relative; z-index: 2;
}

.text-red { color: var(--primary-red); }

.hero-brands-wrapper {
    position: absolute;
    bottom: 40px; 
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center; 
    z-index: 10;
}

.brands-container-limit {
    max-width: 1200px;
    width: 95%;
    background: rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brands-track {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 25px; 
    flex-wrap: wrap; 
}

.brand-box {
    background-color: rgba(255, 255, 255, 0.9);
    width: 140px;
    height: 90px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
}

.brand-box:hover {
    transform: translateY(-5px);
    background-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--primary-red);
}

.brand-box img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: none; 
}

/* =========================================
   4. CARROSSEL & STOCK (CARDS)
   ========================================= */
.carousel-carros {
    display: flex; 
    overflow-x: auto; 
    gap: 30px; 
    padding: 20px 5px;
    scroll-behavior: smooth; 
    align-items: stretch; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
}
.carousel-carros::-webkit-scrollbar { display: none; }
.carousel-carros .car-card { min-width: 320px; max-width: 320px; flex-shrink: 0; }

.carousel-controles { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 25px; 
    position: relative; 
    z-index: 20; 
}

.btn-nav-carousel {
    background-color: transparent; border: 1px solid var(--primary-red); color: var(--primary-red);
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease;
}
.btn-nav-carousel:hover { background-color: var(--primary-red); color: white; transform: scale(1.1); box-shadow: 0 0 15px rgba(255, 49, 49, 0.4); }
.btn-nav-carousel:active { transform: scale(0.95); }

.filter-bar {
    background-color: rgba(255, 255, 255, 0.05); padding: 20px; border-radius: 8px;
    border: 1px solid #333; margin-bottom: 40px; display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center; gap: 20px;
}

.filter-group { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.filter-group label { color: #999; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }

.filter-group select {
    background-color: #000; color: white; border: 1px solid #444; padding: 12px 15px; padding-right: 40px;
    border-radius: 4px; font-size: 1rem; cursor: pointer; outline: none; min-width: 180px;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 15px center; background-size: 20px;
}
.filter-group select:focus { border-color: var(--primary-red); }
.filter-status { color: #666; font-size: 0.9rem; }

.grid-carros-completa { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 30px; 
    padding-bottom: 50px; 
}

.car-card {
    background-color: var(--card-bg); 
    border: 1px solid #222; 
    border-radius: 8px; 
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transform: translateZ(0); 
    will-change: transform;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    cursor: pointer;
    backface-visibility: hidden;
}
.car-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(255, 49, 49, 0.15); border-color: var(--primary-red); }

.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card-img-wrapper { position: relative; height: 220px; width: 100%; overflow: hidden; }

.card-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease; 
    image-rendering: -webkit-optimize-contrast;
}
.car-card:hover .card-img-wrapper img { transform: scale(1.1); }

.card-tag {
    position: absolute; top: 10px; right: 10px; background-color: var(--primary-red); color: white;
    padding: 4px 10px; font-size: 0.75rem; font-weight: bold; border-radius: 3px; text-transform: uppercase; z-index: 5;
}
.card-tag.sold { background-color: #222; border: 1px solid #444; }

.card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { font-size: 1.1rem; margin-bottom: 15px; color: white; text-transform: uppercase; font-weight: 700; line-height: 1.3; min-height: 2.6em; }

.card-specs-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px;
    border-top: 1px solid #333; border-bottom: 1px solid #333;
    padding: 12px 0; margin-bottom: 15px;
}
.card-spec-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 0.85rem; color: #ccc; text-align: center;
}
.card-spec-item i { color: var(--primary-red); font-size: 1rem; margin-bottom: 6px; }

.car-price { font-size: 1.5rem; color: var(--primary-red); font-weight: 900; margin-bottom: 0; text-align: right; }

.btn-ver-tudo-container { text-align: center; margin-top: 40px; }
.btn-ver-tudo {
    display: inline-block; background-color: transparent; border: 2px solid var(--primary-red); color: white;
    padding: 15px 50px; text-decoration: none; font-weight: 900; text-transform: uppercase;
    letter-spacing: 1px; transition: 0.3s; font-size: 1.1rem; border-radius: 4px;
}
.btn-ver-tudo:hover { background-color: var(--primary-red); box-shadow: 0 0 20px rgba(255, 49, 49, 0.4); }

.sold-card { cursor: default; opacity: 0.8; border-color: #333; }
.sold-card:hover { transform: none; box-shadow: none; border-color: #333; }
.sold-card:hover .card-img-wrapper img { transform: none; }
.card-link-static { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }

.sold-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 5;
}
.sold-overlay span {
    border: 3px solid var(--primary-red); color: var(--primary-red); font-size: 1.5rem; font-weight: 900;
    text-transform: uppercase; padding: 10px 20px; border-radius: 5px; letter-spacing: 2px;
    transform: rotate(-15deg); background: rgba(0,0,0,0.8); box-shadow: 0 0 15px rgba(255, 49, 49, 0.4);
}

/* =========================================
   5. PÁGINA STOCK & DETALHES (FUNDO)
   ========================================= */
.pagina-stock-bg {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.9)), url('../assets/fundo-hero.jpg');
    background-size: cover; 
    background-position: center;
    background-attachment: scroll; 
    padding-top: 50px;
}

/* =========================================
   6. PÁGINA INDIVIDUAL (DETALHES) - OTIMIZADA
   ========================================= */
.detalhes-section { 
    padding: 60px 0; 
    min-height: 80vh; 
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.9)), url('../assets/fundo-hero.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: scroll; 
}

.detalhes-wrapper { display: flex; gap: 50px; align-items: flex-start; }
.detalhes-galeria { flex: 1.3; display: flex; flex-direction: column; gap: 15px; min-width: 0; }

.main-image-box { 
    width: 100%; 
    height: 500px; 
    border-radius: 8px; 
    border: 1px solid #333; 
    background-color: #000; 
    overflow: hidden; 
    position: relative; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    -webkit-overflow-scrolling: touch; 
}
.slider-track::-webkit-scrollbar { display: none; }

.slide-item {
    flex: 0 0 100%; 
    width: 100%;
    height: 100%;
    scroll-snap-align: center; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    display: block;
    will-change: transform; 
    transform: translateZ(0);
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.slider-nav-btn:hover { background: var(--primary-red); border-color: var(--primary-red); }
.slider-nav-btn.prev { left: 15px; }
.slider-nav-btn.next { right: 15px; }

.thumbs-container { position: relative; z-index: 1; width: 100%; overflow: hidden; }
.thumbs-carousel { 
    display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; 
    padding: 5px 0; scrollbar-width: none; -ms-overflow-style: none; width: 100%; 
}
.thumbs-carousel::-webkit-scrollbar { display: none; }

.thumb-item { 
    width: 100px; height: 70px; border-radius: 5px; overflow: hidden; 
    border: 2px solid transparent; cursor: pointer; flex-shrink: 0; 
    opacity: 0.5; transition: 0.3s; position: relative;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item.active { opacity: 1; border-color: var(--primary-red); transform: scale(1.05); }

.detalhes-info { 
    flex: 1; background-color: rgba(10, 10, 10, 0.85); backdrop-filter: blur(10px); 
    padding: 40px; border-radius: 10px; border: 1px solid #333; box-shadow: 0 5px 20px rgba(0,0,0,0.3); position: relative; 
}

.btn-close-card {
    position: absolute; top: 20px; right: 20px; color: #888; font-size: 1.5rem;
    text-decoration: none; transition: 0.3s; background: none; border: none; cursor: pointer; z-index: 10;
}
.btn-close-card:hover { color: var(--primary-red); transform: rotate(90deg); }

.detalhe-titulo { font-size: 2.5rem; color: white; margin-bottom: 10px; line-height: 1.1; text-transform: uppercase; padding-right: 30px; }
.detalhe-preco { font-size: 2.5rem; color: var(--primary-red); font-weight: 900; margin-bottom: 20px; }
.separador { height: 1px; background-color: #333; margin: 25px 0; }
.lista-specs { margin-bottom: 30px; }
.spec-row { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #222; font-size: 1.1rem; color: #ddd; }
.spec-row:last-child { border-bottom: none; }
.spec-row i { color: var(--primary-red); width: 30px; font-size: 1.2rem; }
.spec-row strong { margin-right: 10px; color: #fff; width: 130px; }

.btn-pedido-vermelho { display: block; width: 100%; background-color: var(--primary-red); color: white; text-align: center; padding: 18px; border-radius: 5px; text-decoration: none; font-size: 1.1rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; border: 1px solid var(--primary-red); box-shadow: 0 5px 15px rgba(230, 0, 0, 0.2); cursor: pointer; }
.btn-pedido-vermelho:hover { background-color: #ff3131; border-color: #ff3131; transform: translateY(-2px); }

/* =========================================
   7. PÁGINA CONTACTOS
   ========================================= */
.contactos-section { padding: 80px 0; min-height: 80vh; background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.9)), url('../assets/fundo-hero.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.contactos-wrapper { display: flex; gap: 50px; justify-content: space-between; }
.contactos-info { flex: 1; padding: 20px; }
.contactos-info h2 { font-size: 2.5rem; margin-bottom: 10px; }
.subtitulo-contacto { color: #999; margin-bottom: 40px; font-size: 1.1rem; }
.info-item { display: flex; align-items: center; margin-bottom: 30px; }
.item-telefone { align-items: flex-start; }
.item-telefone > div:last-child { padding-top: 0px; }
.info-item p { color: white; line-height: 1.4; margin: 0; }
.icon-box { width: 50px; height: 50px; background-color: rgba(230, 0, 0, 0.1); border: 1px solid var(--primary-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-red); font-size: 1.2rem; margin-right: 20px; flex-shrink: 0; }
.info-item .destaque { font-size: 1.2rem; font-weight: bold; color: white; margin-bottom: 2px; }
.info-item small { color: #666; font-size: 0.85rem; }
.contactos-form-box { flex: 1; background-color: rgba(255, 255, 255, 0.05); padding: 40px; border-radius: 10px; border: 1px solid #222; }
.contactos-form-box h3 { margin-bottom: 25px; font-size: 1.5rem; text-transform: uppercase; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 0.9rem; color: #ccc; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 15px; background-color: #ffffff; border: 1px solid #ddd; color: #333; border-radius: 5px; font-size: 1rem; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary-red); outline: none; box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
.termos-box { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; font-size: 0.9rem; color: #999; }
.termos-box input { width: auto; cursor: pointer; }

/* =========================================
   8. SECÇÕES ESPECIAIS (VENDIDOS, MAPA, LEGALIZAÇÃO)
   ========================================= */

.bg-imagem-comum {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.9)), url('../assets/fundo-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; 
    padding: 60px 0;
    border-top: none;
    position: relative;
}

.bg-imagem-comum h2 {
    text-align: center; margin-bottom: 40px; font-size: 2.5rem; text-transform: uppercase; letter-spacing: 2px; color: white;
    border-bottom: 2px solid #222; display: inline-block; padding-bottom: 10px; position: relative; left: 50%; transform: translateX(-50%); z-index: 2;
}

#catalogo, 
#vendidos, 
#localizacao {
    background-image: none !important;
    background-color: #050505 !important;
    padding-top: 60px !important; 
    padding-bottom: 0 !important;
}

#catalogo::before, 
#vendidos::after {
    display: none !important;
}

.map-section {
    padding-top: 60px !important; 
    background-color: #050505 !important; 
    border-top: none;
}

.map-wrapper {
    max-width: 800px;
    width: 100%;
    margin: 0 auto; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    border: 1px solid #333;
}

.map-wrapper iframe {
    display: block; filter: grayscale(20%) contrast(1.1); transition: filter 0.3s;
}
.map-wrapper:hover iframe { filter: none; }

.legal-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.legal-option {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.legal-option:hover, .legal-option.active {
    background-color: rgba(255, 49, 49, 0.1);
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 49, 49, 0.2);
}

.legal-option i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.legal-option h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin: 0;
    font-weight: 700;
}

.legal-docs-box {
    background-color: rgba(20, 20, 20, 0.9);
    border-left: 4px solid var(--primary-red);
    padding: 25px;
    border-radius: 4px;
    margin-top: 20px;
    animation: fadeIn 0.4s ease;
}

.legal-docs-box h4 {
    color: var(--primary-red);
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.legal-docs-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-docs-box li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #ccc;
    display: flex;
    align-items: center;
}

.legal-docs-box li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-red);
    margin-right: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   9. RODAPÉ
   ========================================= */
footer {
    background-color: #000;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px !important; 
    border-top: 1px solid #222;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0;
}

.footer-links a::after { display: none; }

.footer-links a:hover {
    color: var(--primary-red);
}

.separator {
    color: #333;
}

@media (max-width: 900px) {
    .detalhes-wrapper, .contactos-wrapper { flex-direction: column; gap: 30px; }
    .detalhes-galeria, .detalhes-info, .contactos-info, .contactos-form-box { width: 100%; flex: 1; }
    .hero-content p { font-size: 1.5rem; }
    header { height: 100px; }
    .logo img { transform: scale(1.3); } 
    .filter-bar { flex-direction: column; align-items: stretch; }
    .main-image-box { height: 350px; }
    .slider-nav-btn { width: 35px; height: 35px; font-size: 1rem; }
    nav { gap: 20px; } 
    .social-icons { margin-left: 10px; padding-left: 10px; }
    .hero-brands-wrapper { position: relative; bottom: 0; padding: 20px 0; background: #000; }
    .brands-container-limit { max-width: 100%; width: 100%; border-radius: 0; border: none; background: transparent; }
    .brand-box { width: 100px; height: 70px; }
    
    .footer-links { flex-direction: column; gap: 10px; }
    .separator { display: none; }
}

/* =========================================
   10. MENU MOBILE
   ========================================= */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 900px) {
    
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(15px);
        border-bottom: 2px solid var(--primary-red);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        display: block;
    }

    nav.active {
        max-height: 500px;
        padding-bottom: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    nav a {
        display: block;
        padding: 20px;
        width: 100%;
    }
    
    nav a::after { display: none; }
    nav > ul > li > a::after { display: none; }

    .social-icons {
        justify-content: center;
        margin: 20px 0 10px 0;
        border: none;
        padding: 0;
        width: 100%;
    }

    
    .dropdown:hover .dropdown-content {
        display: none; 
    }

    .dropdown-content {
        position: relative;
        top: 0;
        width: 100%;
        box-shadow: none;
        background-color: rgba(20, 20, 20, 0.5);
        border: none;
        border-top: 1px solid #333;
        display: none;
    }

    .dropdown-content.show-mobile {
        display: block !important; 
        animation: fadeIn 0.3s;
    }

    .dropdown-content a {
        padding: 15px;
        font-size: 0.9rem;
        color: #999;
    }
    
    .dropdown-content a:hover {
        color: var(--primary-red);
        padding-left: 15px;
    }
    
    .dropdown-content a span::after { display: none; }
}

/* =========================================
   11. (TERMOS / PRIVACIDADE)
   ========================================= */
.text-page-box {
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.text-page-box h1 {
    color: white;
    font-size: 2.5rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 5px;
}

.subtitle-text {
    color: var(--primary-red);
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-content h3 {
    color: var(--primary-red);
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.text-content p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: justify;
}

.text-content ul {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 10px;
}

.text-content ul li {
    color: #ccc;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.text-content ul li::before {
    content: "•";
    color: var(--primary-red);
    font-weight: bold;
    display: inline-block; 
    width: 15px;
    margin-right: 5px;
}

.contact-list li {
    font-weight: bold;
    color: white;
}

.contact-list li::before {
    display: none;
}

@media (max-width: 900px) {
    .text-page-box { padding: 20px; }
    .text-page-box h1 { font-size: 1.8rem; }
}

/* =========================================
   12. AVISO DE COOKIES (GDPR)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--primary-red);
    padding: 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show { bottom: 0; }

.cookie-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: bold;
}
.cookie-text a:hover { text-decoration: underline; }

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-cookie-accept {
    background-color: var(--primary-red);
    color: white;
    border: 1px solid var(--primary-red);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
    white-space: nowrap;
}
.btn-cookie-accept:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 49, 49, 0.3);
}

.btn-cookie-refuse {
    background-color: transparent;
    color: #999;
    border: 1px solid #444;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
    white-space: nowrap;
}
.btn-cookie-refuse:hover {
    border-color: #fff;
    color: white;
    background-color: rgba(255,255,255,0.05);
}