/* ==========================================================================
   RVirtual v2 — Header + Hero
   Carregado APENAS em rvirtual_home-v2.php. Todas as classes têm prefixo
   .rv2- para não interferir com o CSS da v1 (rvirtual.css / theme.css).
   ========================================================================== */

.rv2 {
    --rv2-blue: #2f8bff;
    --rv2-blue-soft: #5aa9ff;
    --rv2-blue-pale: #8cc2ff;
    --rv2-navy: #0f3367;
    --rv2-ink: #040a18;
    --rv2-glass: rgba(6, 14, 36, 0.48);
    --rv2-line: rgba(255, 255, 255, 0.12);
    --rv2-font-display: 'Space Grotesk', 'Rubik', sans-serif;
    --rv2-font-body: 'Inter', 'Rubik', system-ui, sans-serif;
}

/* Restantes páginas (sem hero): o menu v2 é fixo, por isso o conteúdo
   desce para não ficar por baixo dele, e a barra fica opaca. */
body:not(.rv2-page) #container { padding-top: 112px !important; }
body:not(.rv2-page) .rv2-bar { background: rgba(6, 14, 36, 0.94); }
@media (max-width: 767px) {
    body:not(.rv2-page) #container { padding-top: 84px !important; }
}

/* Home v2: o menu flutua por cima do hero. */
.rv2-page #container { padding-top: 0 !important; }

.rv2-page #rv2-marcas { scroll-margin-top: 110px; }
html:has(.rv2-page) { scroll-behavior: smooth; }

.rv2-header *,
.rv2-hero * { box-sizing: border-box; }

/* --------------------------------------------------------------------------
   HEADER (menu flutuante em vidro)
   -------------------------------------------------------------------------- */
.rv2-header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 32px;
    font-family: var(--rv2-font-body);
    transition: top .35s ease;
}
.rv2-header.is-scrolled { top: 10px; }

.rv2-bar {
    max-width: 1376px;
    margin: 0 auto;
    height: 72px;
    padding: 0 12px 0 28px;
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--rv2-glass);
    border: 1px solid var(--rv2-line);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition: background .35s ease, box-shadow .35s ease;
}
.rv2-header.is-scrolled .rv2-bar {
    background: rgba(6, 14, 36, 0.86);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.rv2-logo { display: flex; align-items: center; flex: none; }
.rv2-logo img { height: 26px; width: auto; display: block; }

.rv2-links {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}
.rv2-links > li { position: relative; }
.rv2 .rv2-links a,
.rv2 .rv2-links button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 2px;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.86);
    font: 500 14px/1 var(--rv2-font-body);
    text-transform: none;
    cursor: pointer;
    white-space: nowrap;
}
.rv2 .rv2-links a:hover,
.rv2 .rv2-links button:hover,
.rv2 .rv2-links button[aria-expanded="true"] { color: #fff; }
.rv2 .rv2-links a::after,
.rv2 .rv2-links button::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 2px;
    background: var(--rv2-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.rv2 .rv2-links a:hover::after,
.rv2 .rv2-links button:hover::after,
.rv2 .rv2-links button[aria-expanded="true"]::after { transform: scaleX(1); }
.rv2-links button svg { transition: transform .25s ease; }
.rv2-links button[aria-expanded="true"] svg { transform: rotate(180deg); }

/* dropdown simples (RVirtual) */
.rv2-drop {
    position: absolute;
    top: calc(100% + 18px);
    left: -18px;
    min-width: 220px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: rgba(6, 14, 36, 0.92);
    border: 1px solid var(--rv2-line);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.rv2-drop.is-open { opacity: 1; visibility: visible; transform: none; }
.rv2 .rv2-drop a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.86);
    font: 500 14px/1.2 var(--rv2-font-body);
}
.rv2 .rv2-drop a::after { display: none; }
.rv2 .rv2-drop a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }

/* ações à direita */
.rv2-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.rv2 .rv2-icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}
.rv2 .rv2-icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.rv2 .rv2-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 20px;
    margin-left: 6px;
    border-radius: 12px;
    background: var(--rv2-blue);
    color: #fff;
    font: 600 14px/1 var(--rv2-font-body);
    transition: background .2s ease, transform .2s ease;
}
.rv2 .rv2-cta:hover { background: #1f78e8; color: #fff; transform: translateY(-1px); }
.rv2 .rv2-burger {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--rv2-blue);
    border: 0;
    color: #fff;
    cursor: pointer;
}
.rv2-burger .rv2-ico-close { display: none; }
.rv2-burger[aria-expanded="true"] .rv2-ico-close { display: block; }
.rv2-burger[aria-expanded="true"] .rv2-ico-open { display: none; }

/* mega menu de marcas */
.rv2-mega {
    max-width: 1376px;
    margin: 10px auto 0;
    padding: 24px 28px 28px;
    background: rgba(6, 14, 36, 0.9);
    border: 1px solid var(--rv2-line);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    display: none;
}
.rv2-mega.is-open { display: block; animation: rv2-fadeDown .35s cubic-bezier(.2,.7,.2,1) both; }
.rv2-kicker {
    font: 600 12px/1 var(--rv2-font-body);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rv2-blue-pale);
    margin: 0 0 16px;
}
.rv2-brand-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.rv2-brand-card {
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background .2s ease, border-color .2s ease;
}
.rv2-brand-card:hover { background: rgba(47, 139, 255, 0.12); border-color: rgba(140, 194, 255, 0.35); }
.rv2 .rv2-brand-card > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    color: #fff;
    font: 600 15px/1 var(--rv2-font-display);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* menu mobile */
.rv2-mobile {
    display: none;
    margin-top: 8px;
    padding: 18px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: rgba(6, 14, 36, 0.95);
    border: 1px solid var(--rv2-line);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.rv2-mobile.is-open { display: block; animation: rv2-fadeDown .35s cubic-bezier(.2,.7,.2,1) both; }
.rv2-mobile .rv2-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rv2-mobile .rv2-brand-card { padding: 12px 14px; }
.rv2-mobile-links { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.1); }
.rv2 .rv2-mobile-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: #fff;
    font: 500 15px/1 var(--rv2-font-body);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rv2 .rv2-mobile .rv2-cta { justify-content: center; height: 52px; margin: 14px 0 0; }
.rv2-social { display: flex; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.rv2-social img { height: 22px; width: auto; }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.rv2-hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    max-height: 940px;
    overflow: hidden;
    background: var(--rv2-ink);
    color: #fff;
    font-family: var(--rv2-font-body);
}

.rv2-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.2s ease;
    will-change: opacity, transform;
}
.rv2-slide-bg.is-active { opacity: 1; animation: rv2-kenburns 14s ease-out forwards; }

/* overlay azul (mantém o azul da v1, #0f3367, em degradé) */
.rv2-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(4,10,24,.70) 0%, rgba(4,10,24,0) 22%, rgba(4,10,24,0) 60%, rgba(4,10,24,.92) 100%),
        linear-gradient(90deg, rgba(15,51,103,.94) 0%, rgba(15,51,103,.80) 38%, rgba(20,70,170,.45) 72%, rgba(20,80,200,.30) 100%);
}
.rv2-glow {
    position: absolute;
    right: -180px;
    top: -120px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(47,139,255,.35) 0%, rgba(47,139,255,0) 65%);
}

.rv2-hero-inner {
    position: absolute;
    left: 0; right: 0; top: 0;
    bottom: 88px;
    z-index: 2;
    padding: 0 64px;
    display: flex;
    align-items: flex-end;
}
.rv2-hero-row {
    width: 100%;
    max-width: 1376px;
    margin: 0 auto;
    padding-bottom: 64px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}
.rv2-copy { max-width: 780px; position: relative; }

.rv2-slide-text { display: none; }
.rv2-slide-text.is-active { display: block; }
.rv2-slide-text.is-active > * { animation: rv2-fadeUp .9s cubic-bezier(.2,.7,.2,1) both; }
.rv2-slide-text.is-active > *:nth-child(2) { animation-delay: .12s; }
.rv2-slide-text.is-active > *:nth-child(3) { animation-delay: .24s; }

.rv2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(47, 139, 255, 0.16);
    border: 1px solid rgba(140, 194, 255, 0.35);
    font: 600 13px/1 var(--rv2-font-body);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #cfe4ff;
}
.rv2-eyebrow::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--rv2-blue);
    animation: rv2-pulse 2s ease-in-out infinite;
}

.rv2 .rv2-title {
    margin: 22px 0 0;
    font: 700 88px/0.98 var(--rv2-font-display);
    letter-spacing: -0.03em;
    color: #fff;
    text-transform: none;
}
/* palavras a <b> no título (vindas do backoffice) ficam em azul preenchido */
.rv2 .rv2-title b,
.rv2 .rv2-title strong { color: var(--rv2-blue-soft); font-weight: 700; }

.rv2 .rv2-lead {
    margin: 22px 0 0;
    max-width: 540px;
    font: 400 18px/1.55 var(--rv2-font-body);
    color: rgba(255, 255, 255, 0.82);
}

.rv2-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.rv2 .rv2-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 26px;
    border-radius: 14px;
    font: 600 16px/1 var(--rv2-font-body);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.rv2 .rv2-btn-primary {
    background: var(--rv2-blue);
    color: #fff;
    box-shadow: 0 12px 40px rgba(47, 139, 255, 0.45);
}
.rv2 .rv2-btn-primary:hover { color: #fff; background: #1f78e8; transform: translateY(-2px); }
.rv2 .rv2-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.rv2 .rv2-btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }
.rv2-btn svg { transition: transform .2s ease; }
.rv2-btn:hover svg { transform: translateX(3px); }

/* controlos do slider */
.rv2-ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; min-width: 300px; }
.rv2-counter { font: 600 15px/1 var(--rv2-font-display); color: rgba(255, 255, 255, 0.7); }
.rv2-counter strong { font-size: 40px; color: #fff; font-weight: 600; }
.rv2-progress { display: flex; gap: 8px; width: 300px; }
.rv2 .rv2-progress button {
    flex: 1;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.rv2-progress span {
    position: relative;
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
}
.rv2-progress span::after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: var(--rv2-blue);
}
.rv2-progress button.is-done span::after { width: 100%; }
.rv2-progress button.is-active span::after { animation: rv2-fill var(--rv2-interval, 6s) linear forwards; }
.rv2-hero.is-paused .rv2-progress button.is-active span::after { animation-play-state: paused; }
.rv2-arrows { display: flex; gap: 8px; }
.rv2 .rv2-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    transition: background .2s ease, color .2s ease;
}
.rv2 .rv2-arrow:hover,
.rv2 .rv2-arrow.rv2-arrow-next { background: #fff; color: #061232; border-color: #fff; }

/* faixa de marcas em movimento */
.rv2-strip {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 88px;
    z-index: 3;
    display: flex;
    align-items: center;
    background: rgba(4, 10, 24, 0.78);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.rv2-strip-label {
    flex: none;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 28px 0 64px;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
    font: 600 12px/1 var(--rv2-font-body);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rv2-blue-pale);
}
.rv2-scroll-cue {
    position: relative;
    width: 2px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}
.rv2-scroll-cue::after {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 2px; height: 10px;
    background: var(--rv2-blue);
    animation: rv2-cue 1.8s ease-in-out infinite;
}
.rv2-marquee { flex: 1; min-width: 0; overflow: hidden; }
.rv2-marquee-track {
    display: flex;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: rv2-marquee 32s linear infinite;
}
.rv2-marquee:hover .rv2-marquee-track { animation-play-state: paused; }
.rv2-marquee-track li { display: flex; align-items: center; gap: 48px; padding-right: 48px; }
.rv2-marquee-track li::after {
    content: "";
    width: 6px; height: 6px;
    background: var(--rv2-blue);
    transform: rotate(45deg);
}
.rv2 .rv2-marquee-track a {
    font: 700 22px/1 var(--rv2-font-display);
    letter-spacing: .08em;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    text-transform: uppercase;
    transition: color .2s ease;
}
.rv2 .rv2-marquee-track a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   ANIMAÇÕES
   -------------------------------------------------------------------------- */
@keyframes rv2-kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate3d(-1.5%, 1%, 0); } }
@keyframes rv2-fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes rv2-fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes rv2-fill { from { width: 0; } to { width: 100%; } }
@keyframes rv2-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rv2-cue { from { transform: translateY(-100%); } to { transform: translateY(280%); } }
@keyframes rv2-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .rv2-slide-bg.is-active,
    .rv2-marquee-track,
    .rv2-scroll-cue::after,
    .rv2-eyebrow::before { animation: none; }
    .rv2-slide-text.is-active > * { animation: none; }
}

/* --------------------------------------------------------------------------
   RESPONSIVO
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .rv2-links { gap: 18px; }
    .rv2 .rv2-title { font-size: 72px; }
}
@media (max-width: 1080px) {
    .rv2-links, .rv2-actions .rv2-cta, .rv2-mega { display: none !important; }
    .rv2 .rv2-burger { display: flex; }
}
@media (max-width: 991px) {
    .rv2-ctrl { display: none; }
    .rv2-hero-inner { padding: 0 32px; }
    .rv2-strip-label { padding-left: 32px; }
}
@media (max-width: 767px) {
    .rv2-header { top: 12px; padding: 0 12px; }
    .rv2-header.is-scrolled { top: 8px; }
    .rv2-bar { height: 60px; padding: 0 6px 0 18px; border-radius: 16px; }
    .rv2-logo img { height: 20px; }
    .rv2-hero { height: 100svh; min-height: 640px; max-height: none; }
    .rv2-hero-inner { padding: 0 22px; bottom: 64px; }
    .rv2-hero-row { padding-bottom: 36px; }
    .rv2 .rv2-title { font-size: 48px; }
    .rv2 .rv2-lead { font-size: 16px; }
    .rv2-buttons { flex-direction: column; }
    .rv2 .rv2-btn { justify-content: center; height: 54px; }
    .rv2-strip { height: 64px; }
    .rv2-strip-label { display: none; }
    .rv2 .rv2-marquee-track a { font-size: 17px; }
    .rv2-marquee-track li { gap: 32px; padding-right: 32px; }
}

/* --------------------------------------------------------------------------
   HOME v2 — grelha de logos das marcas (2 linhas no desktop)
   -------------------------------------------------------------------------- */
.rv2-brands {
    display: grid;
    grid-template-columns: repeat(var(--rv2-cols, 6), minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    clear: both;
}
.rv2-brands li { display: flex; }
.rv2-brands a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid rgba(15, 51, 103, 0.08);
    border-radius: 14px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.rv2-brands a:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 139, 255, 0.35);
    box-shadow: 0 16px 34px rgba(15, 51, 103, 0.14);
}
.rv2-brands img {
    display: block;
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}
@media (max-width: 991px) {
    .rv2-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .rv2-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .rv2-brands a { height: 90px; padding: 12px; border-radius: 12px; }
    .rv2-brands img { max-height: 56px; }
}
@media (max-width: 479px) {
    .rv2-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   HOME v2 — "Os nossos Destaques": botões no estilo do header
   -------------------------------------------------------------------------- */
.rv2-page .links-destaque .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background-image: none;
    background-color: #2f8bff;
    color: #fff;
    font-family: 'Inter', 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 8px 22px rgba(47, 139, 255, 0.30);
    filter: none;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.rv2-page .links-destaque .btn-primary::after {
    content: "\2192";
    transition: transform .2s ease;
}
.rv2-page .links-destaque .btn-primary:hover,
.rv2-page .links-destaque .btn-primary:focus {
    background-color: #1f78e8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(47, 139, 255, 0.40);
}
.rv2-page .links-destaque .btn-primary:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   TODO O SITE — botões Bootstrap (.btn) com cantos arredondados como o header.
   Este CSS é carregado em todas as páginas através de rvirtual_menu-v2.php.
   Mantém as cores de cada botão; só tira o degradé/sombra antigos do
   bootstrap-theme e arredonda os cantos. Ficam de fora: links (.btn-link),
   botões de fechar, o botão do menu mobile v1 e os botões circulares.
   -------------------------------------------------------------------------- */
.btn:where(:not(.btn-link, .close, .navbar-toggle, .btn-circle)) {
    border-radius: 12px !important;
    background-image: none !important;
    text-shadow: none !important;
    -webkit-box-shadow: none;
    box-shadow: none;
    filter: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary:not(.dropdown-toggle):hover,
.btn-default:not(.dropdown-toggle):hover { transform: translateY(-1px); }

/* botões colados a um campo (input-group): só arredonda o lado de fora */
.input-group-btn:last-child > .btn:not(.btn-link) { border-radius: 0 12px 12px 0 !important; }
.input-group-btn:first-child > .btn:not(.btn-link) { border-radius: 12px 0 0 12px !important; }
.input-group .form-control:first-child { border-radius: 12px 0 0 12px; }
.input-group .form-control:last-child { border-radius: 0 12px 12px 0; }

/* --------------------------------------------------------------------------
   TODO O SITE — títulos de secção com a tipografia do header (Space Grotesk)
   Barra azul de destaque + texto em navy; o que vier a <b> fica azul.
   -------------------------------------------------------------------------- */
#container h1,
#container h2,
#container h3,
.main-footer .title-line {
    font-family: 'Space Grotesk', 'Rubik', sans-serif;
}

/* Títulos de página (ex.: "Visite-nos ou deixe-nos uma mensagem") */
.jumbotron h1 {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: #0f3367;
    max-width: 900px;
}
.jumbotron h1::before {
    content: "";
    display: block;
    width: 56px;
    height: 5px;
    margin-bottom: 22px;
    border-radius: 5px;
    background: #2f8bff;
}
.jumbotron h1 b,
.jumbotron h1 strong { color: #2f8bff; font-weight: 700; }

/* Topo das páginas interiores: respiro abaixo do menu fixo, margens
   equilibradas em cima/baixo e o título com largura para não partir mal. */
body:not(.rv2-page) .jumbotron#container {
    padding-top: 172px !important;
    padding-bottom: 72px;
    background: linear-gradient(180deg, #e9eef6 0%, #f4f6fa 100%);
    border-bottom: 1px solid rgba(15, 51, 103, 0.08);
}
.jumbotron#container h1 {
    margin: 0;
    max-width: 1100px;
}
@media (max-width: 991px) {
    body:not(.rv2-page) .jumbotron#container { padding-top: 140px !important; padding-bottom: 56px; }
}
@media (max-width: 767px) {
    body:not(.rv2-page) .jumbotron#container { padding-top: 108px !important; padding-bottom: 40px; }
}

/* Títulos de secção da home (ex.: "Os nossos Destaques", "Marcas que comercializamos") */
.article-list-header {
    font-family: 'Space Grotesk', 'Rubik', sans-serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0f3367;
    margin-bottom: 36px !important;
}
.article-list-header::before {
    content: "";
    display: block;
    width: 48px;
    height: 5px;
    margin-bottom: 18px;
    border-radius: 5px;
    background: #2f8bff;
}
.article-list-header b,
.article-list-header strong { color: #2f8bff; font-weight: 700; }
.article-list-header > div:last-child.text-right { padding-top: 12px; }
.article-list-header a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    color: #2f8bff;
}
.article-list-header a::after { content: "\2192"; transition: transform .2s ease; }
.article-list-header a:hover { color: #1f78e8; }
.article-list-header a:hover::after { transform: translateX(3px); }

/* Títulos de blocos (ex.: "Fale connosco", "Marque Test-Drive") */
.post-header h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f3367;
}
.post-header h2::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: 16px;
    border-radius: 4px;
    background: #2f8bff;
}

/* Formulário de contactos (fundo azul): título branco */
.rv-contact .rv-contact-form h2 { font-weight: 700; letter-spacing: -0.02em; }

/* Rodapé */
.main-footer .title-line {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.main-footer .title-line::after {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    margin-top: 10px;
    border-radius: 3px;
    background: #2f8bff;
}

@media (max-width: 991px) {
    .jumbotron h1 { font-size: 46px; }
    .article-list-header { font-size: 34px; }
}
@media (max-width: 767px) {
    .jumbotron h1 { font-size: 36px; }
    .jumbotron h1::before { width: 44px; height: 4px; margin-bottom: 16px; }
    .article-list-header { font-size: 28px; margin-bottom: 24px !important; }
    .article-list-header::before { width: 40px; height: 4px; margin-bottom: 14px; }
    .post-header h2 { font-size: 28px; }
}

/* --------------------------------------------------------------------------
   HOME v2 — "Novidades" (notícias): imagens em cover + cards com a mesma altura
   -------------------------------------------------------------------------- */
.rv2-page .news .row { display: flex; flex-wrap: wrap; }
.rv2-page .news .row::before,
.rv2-page .news .row::after { display: none; }   /* clearfix do Bootstrap não pode ser item flex */
.rv2-page .news .row > [class*="col-"] { display: flex; float: none; }

.rv2-page .news .article-list-item {
    display: flex;
    flex-direction: column;
    float: none;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 51, 103, 0.08);
    box-shadow: 0 10px 30px rgba(15, 51, 103, 0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.rv2-page .news .article-list-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(15, 51, 103, 0.18);
}

/* imagem: mesma proporção em todos os cards, a preencher (cover) */
.rv2-page .news .item-image {
    float: none;
    padding: 0;
    overflow: hidden;
    background: #0f3367;
}
.rv2-page .news .item-image a { display: block; }
.rv2-page .news .noticias-imagem {
    height: auto;
    aspect-ratio: 4 / 5;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.rv2-page .news .article-list-item:hover .noticias-imagem { transform: scale(1.05); }

/* texto: máximo 3 linhas para os cards ficarem iguais */
.rv2-page .news .item-content {
    float: none;
    flex: 1;
    padding: 22px 22px 8px;
}
.rv2-page .news .item-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-family: 'Space Grotesk', 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: #0f3367;
    text-transform: none;
}

/* botão sempre no fundo do card */
.rv2-page .news .article-list-item footer {
    float: none;
    height: auto;          /* a v1 fixa 40px (rvirtual.css), o que cortava o botão */
    min-height: 0;
    flex: none;
    margin: auto 0 0;
    padding: 8px 22px 22px;
    text-align: left !important;
}
.rv2-page .news .article-list-item footer .btn-primary {
    float: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #2f8bff;
    background-color: #fff;
    color: #2f8bff;
    font-family: 'Inter', 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
}
.rv2-page .news .article-list-item footer .btn-primary::after { content: "\2192"; transition: transform .2s ease; }
.rv2-page .news .article-list-item:hover footer .btn-primary {
    background-color: #2f8bff;
    border-color: #2f8bff;
    color: #fff;
    box-shadow: 0 8px 22px rgba(47, 139, 255, 0.30);
}
.rv2-page .news .article-list-item:hover footer .btn-primary::after { transform: translateX(3px); }

@media (max-width: 767px) {
    .rv2-page .news .noticias-imagem { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   SUBMENU "Marcas" — modelos em chips, grelha de 3 colunas
   -------------------------------------------------------------------------- */
.rv2-brand-sub {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0 0;
}
.rv2 .rv2-brand-sub a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font: 500 12.5px/1 var(--rv2-font-body);
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.rv2 .rv2-brand-sub a:hover {
    background: rgba(47, 139, 255, 0.2);
    border-color: rgba(140, 194, 255, 0.45);
    color: #fff;
}

/* ==========================================================================
   HOME v2 — blocos novos (só existem em rvirtual_home-v2.php)
   ========================================================================== */
/* Os blocos novos usam o .container do Bootstrap (mesma largura que as outras
   secções). O clearfix ::before/::after do .container não pode virar item de grid/flex. */
.rv2-wrap::before,
.rv2-wrap::after { display: none !important; }
.rv2 h2 { font-family: var(--rv2-font-display); }

/* ---------- Atalhos (logo abaixo do hero) ---------- */
.rv2-shortcuts { background: var(--rv2-ink); padding: 36px 0 52px; }
.rv2-shortcuts .rv2-wrap {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.rv2 .rv2-shortcut {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px;
    border-radius: 18px;
    background: #0b1d42;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.rv2 .rv2-shortcut svg { color: var(--rv2-blue-soft); }
.rv2 .rv2-shortcut strong { display: block; font: 700 19px/1.2 var(--rv2-font-display); }
.rv2 .rv2-shortcut small { display: block; margin-top: 4px; font: 400 14px/1.4 var(--rv2-font-body); color: rgba(255, 255, 255, 0.65); }
.rv2 .rv2-shortcut:hover { background: #13306a; border-color: rgba(140, 194, 255, 0.5); transform: translateY(-4px); color: #fff; }
.rv2 .rv2-shortcut.is-accent { background: var(--rv2-blue); border-color: var(--rv2-blue); }
.rv2 .rv2-shortcut.is-accent svg { color: #fff; }
.rv2 .rv2-shortcut.is-accent small { color: rgba(255, 255, 255, 0.88); }
.rv2 .rv2-shortcut.is-accent:hover { background: #1f78e8; }

/* ---------- Destaques: cartão inteiro clicável ---------- */
.rv2-page .links-destaque { background: #fff; margin-bottom: 0; }
.rv2-page .links-destaque .row { display: flex; flex-wrap: wrap; row-gap: 24px; }
.rv2-page .links-destaque .row::before,
.rv2-page .links-destaque .row::after { display: none; }
.rv2-page .links-destaque .row > [class*="col-"] { display: flex; float: none; }
.rv2-feature {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #f4f6fa;
    border: 1px solid rgba(15, 51, 103, 0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.rv2-feature:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(15, 51, 103, 0.16); }
.rv2-feature-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.rv2-feature-img > span {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.rv2-feature:hover .rv2-feature-img > span { transform: scale(1.05); }
.rv2-feature-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.rv2-feature-body strong { font: 700 21px/1.25 'Space Grotesk', 'Rubik', sans-serif; color: #0f3367; }
.rv2-feature-body > span { font: 400 15px/1.5 'Inter', 'Rubik', sans-serif; color: #4a5568; }
.rv2-feature-body em {
    margin-top: auto;
    padding-top: 10px;
    font: 600 15px/1 'Inter', 'Rubik', sans-serif;
    font-style: normal;
    color: #1f6fd6;
}
.rv2-feature-body em::after { content: " \2192"; display: inline-block; transition: transform .2s ease; }
.rv2-feature:hover .rv2-feature-body em::after { transform: translateX(3px); }

/* ---------- Usados em destaque ---------- */
.rv2-page .rv2-cars .row { display: flex; flex-wrap: wrap; }
.rv2-page .rv2-cars .row::before,
.rv2-page .rv2-cars .row::after { display: none; }
.rv2-page .rv2-cars .row > [class*="col-"] { display: flex; float: none; }
.rv2-page .rv2-cars .article-list-item {
    display: flex;
    flex-direction: column;
    float: none;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(15, 51, 103, 0.08);
    box-shadow: 0 10px 30px rgba(15, 51, 103, 0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.rv2-page .rv2-cars .article-list-item:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(15, 51, 103, 0.18); }
.rv2-page .rv2-cars .item-image { float: none; padding: 0; overflow: hidden; }
.rv2-page .rv2-cars .product-image {
    height: auto;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.rv2-page .rv2-cars .article-list-item:hover .product-image { transform: scale(1.05); }
.rv2-page .rv2-cars .item-content { float: none; flex: 1; padding: 20px 22px 6px; }
.rv2-page .rv2-cars .contVeiculos { min-height: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rv2-page .rv2-cars .item-title { margin: 0; font: 700 20px/1.2 'Space Grotesk', 'Rubik', sans-serif; color: #0f3367; }
.rv2-page .rv2-cars .item-description { flex-basis: 100%; height: auto; font-size: 15px; color: #4a5568; }
.rv2-page .rv2-cars .item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-bottom: 0;
    border: 0;
}
.rv2-page .rv2-cars .item-details > span {
    margin: 0;
    height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    background: #f4f6fa;
    font-size: 13px;
    color: #3b4558;
}
.rv2-page .rv2-cars .item-details > span::before { display: none; }
.rv2-page .rv2-cars .article-list-item > footer {
    float: none;
    width: auto;
    height: auto;
    margin: auto 22px 0;
    padding: 16px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(15, 51, 103, 0.08);
}
.rv2-page .rv2-cars .article-list-item > footer > div { float: none; width: auto; }
.rv2-page .rv2-cars .item-cost { font: 700 22px/1 'Space Grotesk', 'Rubik', sans-serif; color: #0f3367; }
.rv2-page .rv2-cars .article-list-item footer .btn-primary {
    float: none;
    height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #2f8bff;
    background: #fff;
    color: #2f8bff;
    font: 600 14px/1 'Inter', 'Rubik', sans-serif;
    text-transform: none;
}
.rv2-page .rv2-cars .article-list-item:hover footer .btn-primary { background: #2f8bff; color: #fff; }

/* ---------- Serviços ---------- */
/* espaçamento vertical igual entre secções: 30px em cima (o bloco de viaturas
   já deixa ~35px por baixo dos cards) e 80px em baixo antes da secção seguinte */
.rv2-services { padding: 30px 0 80px; }
.rv2-services-box {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 48px;
    border-radius: 28px;
    background: var(--rv2-navy);
    color: #fff;
}
.rv2-services-intro { flex: 1 1 300px; }
.rv2-services-intro::before {
    content: "";
    display: block;
    width: 48px;
    height: 5px;
    margin-bottom: 18px;
    border-radius: 5px;
    background: var(--rv2-blue-soft);
}
.rv2 .rv2-services-intro h2 { margin: 0; font-size: 36px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: #fff; }
.rv2 .rv2-services-intro h2 b { color: var(--rv2-blue-soft); font-weight: 700; }
.rv2 .rv2-services-intro p { margin: 16px 0 0; max-width: 360px; font: 400 16px/1.6 var(--rv2-font-body); color: rgba(255, 255, 255, 0.75); }
.rv2-services-grid { flex: 2 1 560px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rv2 .rv2-service {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.rv2 .rv2-service svg { color: var(--rv2-blue-soft); }
.rv2 .rv2-service strong { font: 700 18px/1.2 var(--rv2-font-display); }
.rv2 .rv2-service small { font: 400 14px/1.4 var(--rv2-font-body); color: rgba(255, 255, 255, 0.7); }
.rv2 .rv2-service:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(140, 194, 255, 0.5); transform: translateY(-4px); color: #fff; }

/* ---------- Visite-nos ---------- */
.rv2-visit { padding: 10px 0 80px; }
.rv2-visit .rv2-wrap { display: flex; flex-wrap: wrap; gap: 20px; }
.rv2-visit-photo {
    position: relative;
    flex: 1 1 480px;
    min-height: 400px;
    border-radius: 24px;
    overflow: hidden;
    background: #040a18 center / cover no-repeat;
}
.rv2-visit-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 51, 103, 0.35) 0%, rgba(4, 10, 24, 0.92) 100%);
}
.rv2-visit-caption { position: absolute; left: 34px; right: 34px; bottom: 34px; color: #fff; }
.rv2-visit-caption > span { font: 600 12px/1 var(--rv2-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--rv2-blue-pale); }
.rv2 .rv2-visit-caption h2 { margin: 10px 0 0; font-size: 38px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; color: #fff; }
.rv2 .rv2-visit-caption p { margin: 12px 0 0; font: 400 16px/1.55 var(--rv2-font-body); color: rgba(255, 255, 255, 0.82); }
.rv2-visit-cards { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; }
.rv2 .rv2-visit-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 26px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(15, 51, 103, 0.08);
    color: #0f3367;
    transition: transform .25s ease, box-shadow .25s ease;
}
.rv2 .rv2-visit-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15, 51, 103, 0.14); color: #0f3367; }
.rv2-visit-ico {
    flex: none;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #e6f0ff;
    color: #1f6fd6;
}
.rv2 .rv2-visit-card small { display: block; font: 400 13px/1.5 var(--rv2-font-body); color: #5b6475; }
.rv2 .rv2-visit-card strong { display: block; font: 700 21px/1.25 var(--rv2-font-display); }
.rv2 .rv2-visit-card.is-accent { justify-content: space-between; background: var(--rv2-blue); border-color: var(--rv2-blue); color: #fff; }
.rv2 .rv2-visit-card.is-accent small { color: rgba(255, 255, 255, 0.85); }
.rv2 .rv2-visit-card.is-accent:hover { color: #fff; background: #1f78e8; }
.rv2-visit-arrow { font-size: 26px; transition: transform .2s ease; }
.rv2-visit-card.is-accent:hover .rv2-visit-arrow { transform: translateX(4px); }

/* ---------- Responsivo dos blocos novos ---------- */
@media (max-width: 991px) {
    .rv2-shortcuts .rv2-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rv2-services-box { padding: 36px 28px; gap: 28px; }
}
@media (max-width: 767px) {
    .rv2-shortcuts { padding: 24px 0 32px; }
    .rv2-shortcuts .rv2-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .rv2 .rv2-shortcut { padding: 18px; gap: 14px; }
    .rv2 .rv2-shortcut strong { font-size: 17px; }
    .rv2 .rv2-services-intro h2 { font-size: 28px; }
    .rv2-visit-photo { min-height: 320px; }
    .rv2 .rv2-visit-caption h2 { font-size: 30px; }
}
@media (max-width: 479px) {
    .rv2-services-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   TODO O SITE — rodapé (mesmo HTML e dados; só estilo)
   ========================================================================== */
.main-footer {
    background-color: #040a18 !important;
    padding: 64px 0 40px !important;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Inter', 'Rubik', sans-serif;
    font-size: 14px;
}
.main-footer a { color: rgba(255, 255, 255, 0.72); transition: color .2s ease; }
.main-footer a:hover { color: #fff; }
.main-footer ul { line-height: 1.6; font-weight: 400; }
.main-footer .info-list li { margin-bottom: 10px; }
.main-footer .info-list i { color: #5aa9ff; width: 18px; }
.main-footer .img-distincoes { border-radius: 10px; }
.sec-footer {
    background-color: #02060f !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    height: auto !important;
    padding: 18px 0 !important;
    font-family: 'Inter', 'Rubik', sans-serif;
    font-size: 13px;
}
.sec-footer .container,
.sec-footer a { color: rgba(255, 255, 255, 0.7); }
.sec-footer a:hover { color: #fff; }

/* menu mobile: cartões estreitos -> modelos em 2 colunas */
.rv2-mobile .rv2-brand-sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ==========================================================================
   TODO O SITE — bloco "Destaque" (texto + imagem): centrado na vertical,
   com o mesmo espaço em cima e em baixo. Usado na home e em rvirtual_textos_destaque.php
   ========================================================================== */
.sellnow .destaque { padding-top: 64px; padding-bottom: 64px; }
.sellnow .destaque > a { display: block; color: inherit; }
.destaque-texto {
    font-family: 'Space Grotesk', 'Rubik', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.destaque-imagem img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 51, 103, 0.15);
}
@media (min-width: 992px) {
    .sellnow .destaque > a {
        display: flex;
        align-items: center;
        margin: 0 -15px;
    }
    .sellnow .destaque > a::before,
    .sellnow .destaque > a::after { display: none; }
    .sellnow .destaque > a > [class*="col-"] { float: none; }
    .destaque-texto { padding-top: 0; padding-bottom: 0; padding-right: 48px; }
}
@media (max-width: 991px) {
    .sellnow .destaque { padding-top: 48px; padding-bottom: 48px; }
    .destaque-texto { padding-top: 0; padding-bottom: 32px; }
}

/* ==========================================================================
   TODO O SITE — fichas de produto: separador de 2px (cor da barra azul)
   entre os botões "Test drive" e "Fale connosco". Sombra interior: não mexe nas larguras.
   ========================================================================== */
.product-page .searchbar .filter-container .filter-label + .filter-label a { box-shadow: inset 2px 0 0 #1c75bc; }

/* ==========================================================================
   TODO O SITE — formulários modais das fichas ("Fale connosco", "Test Drive")
   Mesmo HTML; só espaçamentos, cantos e campos.
   ========================================================================== */
.form-steps-container:not(.search-form) {
    box-sizing: border-box;
    padding: 56px 40px 44px;
    border-radius: 20px;
    background-color: #0f3367 !important;
    box-shadow: 0 30px 80px rgba(4, 10, 24, 0.45);
}
/* largura à medida do formulário (antes: 70% do ecrã), centrada */
@media (min-width: 768px) {
    .form-steps-container:not(.search-form) {
        width: calc(100% - 48px);
        max-width: 560px;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        padding: 52px 40px 40px;
    }
}
.form-steps-container:not(.search-form) .form-step-close { top: 16px; right: 16px; z-index: 5; }
.form-steps-container:not(.search-form) .form-step-close a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: background .2s ease;
}
.form-steps-container:not(.search-form) .form-step-close a:hover { background: rgba(255, 255, 255, 0.18); }

.form-steps-container:not(.search-form) .form-step-container { max-width: 560px; }
.form-steps-container:not(.search-form) .form-step-container::after { content: ""; display: table; clear: both; }

/* cabeçalho: título e texto centrados, barra decorativa também centrada */
.form-steps-container:not(.search-form) .post-header {
    float: none;
    margin: 0 0 28px;
    padding: 0;
    text-align: center;
}
.form-steps-container:not(.search-form) .post-header > div { float: none; padding: 0; }
.form-steps-container:not(.search-form) .post-header h2 { margin: 0; font-size: 34px; color: #fff; }
.form-steps-container:not(.search-form) .post-header h2::before { margin: 0 auto 16px; background: #5aa9ff; }
.form-steps-container:not(.search-form) .form-step-container .post-meta {
    max-width: 460px;
    margin: 12px auto 0;
    font-family: 'Inter', 'Rubik', sans-serif;
    font-size: 17px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

/* campos */
.form-steps-container:not(.search-form) .form-step-container .form-horizontal { float: none; margin-bottom: 0; padding: 0; }
.form-steps-container:not(.search-form) .form-horizontal fieldset { margin: 0; padding: 0; border: 0; }
.form-steps-container:not(.search-form) .form-horizontal .form-group { margin: 0 0 12px; }
.form-steps-container:not(.search-form) .form-horizontal .form-group > [class*="col-"] { float: none; width: 100%; padding: 0; }
.form-steps-container:not(.search-form) .form-step-container .form-horizontal .form-control {
    height: 50px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    font-family: 'Inter', 'Rubik', sans-serif;
    font-size: 15px;
    color: #1d2433;
}
.form-steps-container:not(.search-form) .form-step-container .form-horizontal textarea.form-control { height: 120px; resize: vertical; }
.form-steps-container:not(.search-form) .form-horizontal .form-control:focus { box-shadow: 0 0 0 3px rgba(90, 169, 255, 0.55); }
.form-steps-container:not(.search-form) .g-recaptcha { float: none; margin: 4px 0 6px; }

/* botão */
.form-steps-container:not(.search-form) .form-step-container .form-horizontal .btn-primary {
    height: 54px;
    margin-top: 4px;
    background-color: #2f8bff;
    font-family: 'Inter', 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 600;
}
.form-steps-container:not(.search-form) .form-step-container .form-horizontal .btn-primary:hover { background-color: #1f78e8; }
.form-steps-container:not(.search-form) .form-horizontal .form-group:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
    .form-steps-container:not(.search-form) {
        width: calc(100% - 24px) !important;
        margin-left: 12px !important;
        padding: 52px 20px 28px;
        border-radius: 16px;
    }
    .form-steps-container:not(.search-form) .post-header h2 { font-size: 28px; }
    .form-steps-container:not(.search-form) .form-step-container .post-meta { font-size: 15px; }
    .form-steps-container:not(.search-form) .g-recaptcha { transform: scale(0.92); transform-origin: left top; }
}

/* ==========================================================================
   LISTAGEM DE MARCA (rvirtual_lista_catalogo.php) — botões de filtro por gama
   ========================================================================== */
.rv2-gama-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
}
.rv2-gama-filter button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(15, 51, 103, 0.15);
    background: #fff;
    color: #0f3367;
    font: 600 15px/1 'Inter', 'Rubik', sans-serif;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.rv2-gama-filter button span {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef3fb;
    color: #0f3367;
    font-size: 12px;
    font-weight: 700;
}
.rv2-gama-filter button:hover { border-color: #2f8bff; color: #2f8bff; transform: translateY(-1px); }
.rv2-gama-filter button.is-active {
    background: #2f8bff;
    border-color: #2f8bff;
    color: #fff;
    box-shadow: 0 8px 22px rgba(47, 139, 255, 0.30);
}
.rv2-gama-filter button.is-active span { background: rgba(255, 255, 255, 0.22); color: #fff; }
.rv2-gama-filter + .product-list { clear: both; }
@media (max-width: 767px) {
    .rv2-gama-filter { gap: 8px; margin-bottom: 20px; }
    .rv2-gama-filter button { height: 44px; padding: 0 14px; font-size: 14px; }
}

/* Listagem de marca: proporção 4:3 das fotos no CSS. O rvirtual.js calculava a altura a partir
   da 1.ª foto; com um filtro de gama ativo essa foto pode estar escondida (largura 0 -> altura 0). */
.novos-page .product-image { height: auto !important; aspect-ratio: 4 / 3; }

/* ==========================================================================
   LISTAGEM DE MARCA — cartão inteiro clicável (abre a página de detalhe).
   O link da foto estica-se por cima do cartão; o botão "Adicionar ao carrinho"
   fica por cima desse link e continua a adicionar ao carrinho.
   ========================================================================== */
.novos-page .article-list-item { position: relative; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.novos-page .article-list-item:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(15, 51, 103, 0.16); }
.novos-page .article-list-item .item-image { position: static; }
.novos-page .article-list-item .item-image a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.novos-page .article-list-item footer .btn { position: relative; z-index: 2; }
.novos-page .article-list-item:hover .item-title { color: #2f8bff; }

/* TODO O SITE — cartões: sem contorno de foco ao clicar com o rato na foto/link.
   Com teclado (Tab) o foco continua visível, desenhado à volta do cartão inteiro. */
.article-list-item a:focus,
.article-list-item a:focus-visible { outline: none; }
.article-list-item:has(a:focus-visible) { box-shadow: 0 0 0 3px #2f8bff, 0 18px 38px rgba(15, 51, 103, 0.16); }

/* ==========================================================================
   LISTAGENS DE USADOS (usados, motas, automóveis, viaturas) — .grid-container
   Filtros em painel + cartões inteiros clicáveis. Só CSS: o HTML e os filtros JS não mudam.
   ========================================================================== */

/* ---------- Painel de filtros ---------- */
@media (min-width: 992px) {
    .grid-container .sidebar {
        position: sticky;
        top: 110px;
        padding: 0 24px 0 0;
    }
}
.grid-container .sidebar > h2,
.grid-container .sidebar .sidebar-block {
    background: #fff;
}
.grid-container .sidebar > h2 {
    margin: 0;
    padding: 24px 24px 18px;
    border-radius: 18px 18px 0 0;
    border: 1px solid rgba(15, 51, 103, 0.08);
    border-bottom: 0;
    font-family: 'Space Grotesk', 'Rubik', sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #0f3367;
}
.grid-container .sidebar > h2::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    margin-bottom: 14px;
    border-radius: 4px;
    background: #2f8bff;
}
.grid-container .sidebar > h2 b { color: #0f3367; font-weight: 700; }
.grid-container .sidebar .sidebar-block {
    margin: 0;
    padding: 0 24px 18px;
    border-left: 1px solid rgba(15, 51, 103, 0.08);
    border-right: 1px solid rgba(15, 51, 103, 0.08);
}
.grid-container .sidebar .sidebar-block:last-child {
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(15, 51, 103, 0.08);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 14px 30px rgba(15, 51, 103, 0.06);
}
.grid-container .sidebar h3 {
    margin: 0 0 8px;
    font-family: 'Inter', 'Rubik', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #5b6475;
}
.grid-container .sidebar select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 48px;
    padding: 0 42px 0 14px;
    border: 1px solid rgba(15, 51, 103, 0.18);
    border-radius: 12px;
    background-color: #f4f6fa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f3367' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    box-shadow: none;
    font-family: 'Inter', 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #0f3367;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.grid-container .sidebar select.form-control:hover { border-color: #2f8bff; background-color: #fff; }
.grid-container .sidebar select.form-control:focus {
    outline: none;
    border-color: #2f8bff;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(47, 139, 255, 0.25);
}

/* ---------- Cartões: mesma altura, aspeto v2, inteiros clicáveis ---------- */
.grid-container .product-list { display: flex; flex-wrap: wrap; }
.grid-container .product-list::before,
.grid-container .product-list::after { display: none; }
.grid-container .product-list > .article-wrapper { display: flex; float: none; margin-bottom: 20px; }
.grid-container .product-list > .article-wrapper[style*="display: none"] { display: none !important; }
.grid-container .article-wrapper .article-list-item {
    position: relative;
    display: flex;
    flex-direction: column;
    float: none;
    width: 100%;
    min-height: 0;
    margin-bottom: 0;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(15, 51, 103, 0.08);
    box-shadow: 0 10px 30px rgba(15, 51, 103, 0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.grid-container .article-wrapper .article-list-item:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(15, 51, 103, 0.18); }
.grid-container .article-list-item .item-image { position: static; float: none; padding: 0; overflow: hidden; }
.grid-container .article-list-item .item-image a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.grid-container .article-list-item .product-image {
    height: auto !important;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.grid-container .article-list-item:hover .product-image { transform: scale(1.05); }
.grid-container .article-list-item .item-content { float: none; flex: 1; padding: 20px 22px 6px; }
.grid-container .article-list-item .contVeiculos { min-height: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.grid-container .article-list-item .item-logo { display: none; }
.grid-container .article-list-item .item-title { margin: 0; font: 700 20px/1.2 'Space Grotesk', 'Rubik', sans-serif; color: #0f3367; transition: color .2s ease; }
.grid-container .article-list-item:hover .item-title { color: #2f8bff; }
.grid-container .article-list-item .item-description { flex-basis: 100%; height: auto; font-size: 15px; color: #4a5568; }
.grid-container .article-list-item .item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-bottom: 0;
    border: 0;
}
.grid-container .article-list-item .item-details > span {
    margin: 0;
    height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    background: #f4f6fa;
    font-size: 13px;
    color: #3b4558;
}
.grid-container .article-list-item .item-details > span::before { display: none; }
.grid-container .article-list-item > footer {
    float: none;
    width: auto;
    height: auto;
    margin: auto 22px 0;
    padding: 16px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(15, 51, 103, 0.08);
}
.grid-container .article-list-item > footer > div { float: none; width: auto; }
.grid-container .article-list-item .item-cost { font: 700 22px/1 'Space Grotesk', 'Rubik', sans-serif; color: #0f3367; }
.grid-container .article-list-item footer .btn-primary {
    position: relative;
    z-index: 2;
    float: none;
    height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #2f8bff;
    background: #fff;
    color: #2f8bff;
    font: 600 14px/1 'Inter', 'Rubik', sans-serif;
    text-transform: none;
}
.grid-container .article-list-item:hover footer .btn-primary { background: #2f8bff; color: #fff; }

/* ==========================================================================
   LISTAGEM DE MARCA — telemóvel/tablet: os botões da barra azul flutuavam para fora dela,
   empurrando os filtros de gama e os cartões para a direita (a página ficava mais larga
   que o ecrã e o carrinho escondido aparecia).
   ========================================================================== */
.searchbar::after { content: ""; display: table; clear: both; }
.novos-page { clear: both; }
.rv2-gama-filter { clear: both; width: 100%; }
.novos-page .product-list { float: none; clear: both; }
/* "Filtrar resultados" não tem painel na listagem de marca (os botões de gama substituem-no) */
.searchbar:has(+ .novos-page) .filter-mobile:has(a[href*="open_filtros"]) { display: none !important; }
@media (max-width: 991px) {
    .searchbar:has(+ .novos-page) .filter-mobile { margin-top: 0; padding-bottom: 18px; }
    .searchbar:has(+ .novos-page) .filter-mobile .dropdown-toggle { border-radius: 12px !important; }
    .novos-page > section > .container { margin-top: 24px !important; }
}

/* Usados: com o filtro a deixar só 1 linha de cartões, essa linha esticava até à altura
   mínima da lista (vinda da v1) e o cartão ficava muito alto. As linhas ficam com a altura do conteúdo. */
.grid-container .product-list { align-content: flex-start; align-items: stretch; }

/* --------------------------------------------------------------------------
   VENDA JÁ — "Como funciona?" (3 passos, rvirtual_textos_3passos.php)
   Cartões arredondados com a mesma altura, número do passo, ícone mais
   leve e hover suave. Só .vendaja (a secção "valores" não muda).
   -------------------------------------------------------------------------- */
.vendaja { padding-top: 88px; padding-bottom: 96px; }
.vendaja .post-meta {
    font-family: 'Inter', 'Rubik', sans-serif;
    font-size: 19px;
    line-height: 1.5;
    color: #4a5a72;
    margin: 6px 0 48px;
}
.vendaja .post-meta span { color: #2f8bff; font-weight: 600; }

.vendaja > .container > .col-xs-12:has(.func-item-container) {
    display: flex;
    flex-wrap: wrap;
    counter-reset: rv2-passo;
}
.vendaja .func-item-container {
    display: flex;
    float: none;
    counter-increment: rv2-passo;
    margin-bottom: 24px;
}
.vendaja .func-item-container .func-item {
    position: relative;
    margin: 0;
    padding: 40px 28px 34px !important;
    background: #fff;
    border: 1px solid #e3e9f2;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 51, 103, 0.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.vendaja .func-item-container .func-item:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 139, 255, 0.35);
    box-shadow: 0 20px 44px rgba(15, 51, 103, 0.12);
}
/* número do passo */
.vendaja .func-item-container .func-item::before {
    content: counter(rv2-passo, decimal-leading-zero);
    position: absolute;
    top: 20px;
    left: 24px;
    font-family: 'Space Grotesk', 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #2f8bff;
    background: rgba(47, 139, 255, 0.10);
    border-radius: 999px;
    padding: 4px 12px;
}
.vendaja .func-item-container .func-item .image-container { margin-bottom: 22px; }
.vendaja .func-item-container .func-item .image-container img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: #f2f7ff;
    box-shadow: 0 0 0 10px #f2f7ff;
    transition: transform .25s ease;
}
.vendaja .func-item-container .func-item:hover .image-container img { transform: scale(1.04); }
.vendaja .func-item-container .func-item h4 {
    font-family: 'Space Grotesk', 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f3367;
    margin: 0 0 10px;
}
.vendaja .func-item-container .func-item .text-container p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #5a6b84;
}
@media (max-width: 991px) {
    .vendaja { padding-top: 56px; padding-bottom: 56px; }
    .vendaja .post-meta { margin-bottom: 32px; }
    .vendaja .func-item-container { width: 100%; }
}
@media (max-width: 767px) {
    .vendaja .post-meta { font-size: 17px; }
    .vendaja .func-item-container .func-item { padding: 36px 20px 28px !important; }
    .vendaja .func-item-container .func-item .image-container img { width: 104px; height: 104px; }
}

/* ==========================================================================
   /motas-novas — todas as marcas numa listagem (rvirtual_lista_motas_todas.php)
   Reutiliza os botões .rv2-gama-filter; aqui só os rótulos e a marca no cartão.
   ========================================================================== */
.rv2-motas-novas .rv2-filter-label {
    margin: 0 0 10px;
    color: #5b6b85;
    font: 600 12px/1 'Inter', 'Rubik', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.rv2-motas-novas .rv2-marca-filter { margin-bottom: 22px; }
.rv2-motas-novas .rv2-card-marca {
    margin-bottom: 4px;
    color: #2f8bff;
    font: 700 12px/1.2 'Inter', 'Rubik', sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.rv2-motas-novas .rv2-motas-vazio { clear: both; padding: 40px 0; color: #5b6b85; text-align: center; }
