﻿:root {
    --brand: #111111;
    --brand-2: #262626;
    --accent: #d71920;
    --accent-dark: #ae1016;
    --light: #f6f6f6;
    --white: #ffffff;
    --text: #1b1b1b;
    --muted: #707070;
    --border: #e8e8e8;
    --success: #1c8b50;
    --container: 1280px;
    --radius: 18px;
    --shadow: 0 12px 40px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

/* =========================================================
           TOPBAR
        ========================================================= */

.topbar {
    background: var(--brand);
    color: rgba(255,255,255,.85);
    font-size: 13px;
}

.topbar-inner {
    min-height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar a:hover {
    color: var(--white);
}

/* =========================================================
           HEADER
        ========================================================= */

.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    width: 180px;
    flex: 0 0 auto;
}

    .logo img {
        width: 100%;
        height: auto;
    }

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

    .main-nav a {
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .02em;
        transition: .2s ease;
    }

        .main-nav a:hover {
            color: var(--accent);
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 14px;
    transition: .2s ease;
    cursor: pointer;
}

.btn-primary {
    color: var(--white);
    background: var(--accent);
}

    .btn-primary:hover {
        background: var(--accent-dark);
        transform: translateY(-1px);
    }

.btn-dark {
    background: var(--brand);
    color: var(--white);
}

    .btn-dark:hover {
        background: #000;
    }

.btn-outline {
    border-color: var(--border);
    background: var(--white);
}

    .btn-outline:hover {
        border-color: var(--brand);
    }

/* =========================================================
           HERO
        ========================================================= */

.hero {
    position: relative;
    min-height: 620px;
    background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.66) 42%, rgba(0,0,0,.18) 100%), url("/images/hero.jpg") center / cover no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    max-width: 680px;
    padding: 80px 0 160px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

    .eyebrow::before {
        content: "";
        width: 34px;
        height: 3px;
        background: var(--accent);
    }

.hero h1 {
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.02;
    letter-spacing: -.045em;
    margin-bottom: 24px;
    max-width: 720px;
}

.hero p {
    max-width: 600px;
    font-size: 19px;
    color: rgba(255,255,255,.86);
    margin-bottom: 34px;
}

.hero .btn-outline {
    color: var(--white);
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.55);
    backdrop-filter: blur(4px);
}

    .hero .btn-outline:hover {
        background: var(--white);
        color: var(--brand);
        border-color: var(--white);
    }

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================================
           SEARCH BOX
        ========================================================= */

.search-wrap {
    margin-top: -105px;
    position: relative;
    z-index: 10;
}

.search-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.14);
    padding: 28px;
}

.search-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

    .search-title h2 {
        font-size: 23px;
        letter-spacing: -.02em;
    }

    .search-title span {
        color: var(--muted);
        font-size: 14px;
    }

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 12px;
}

.field label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: #555;
    margin-bottom: 7px;
    letter-spacing: .06em;
}

.field select,
.field input {
    width: 100%;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
    padding: 0 14px;
    outline: none;
    transition: .2s ease;
}

    .field select:focus,
    .field input:focus {
        border-color: var(--accent);
        background: #fff;
    }

.search-button {
    align-self: end;
}

/* =========================================================
           SECTIONS
        ========================================================= */

.section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 36px;
}

    .section-header h2 {
        font-size: clamp(30px, 4vw, 46px);
        line-height: 1.08;
        letter-spacing: -.04em;
    }

    .section-header p {
        max-width: 520px;
        color: var(--muted);
        font-size: 16px;
    }

.section-header > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.cars .section-header .btn-outline {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

    .cars .section-header .btn-outline:hover {
        filter: brightness(1.1);
        color: var(--white);
    }

.section-label {
    color: var(--accent);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 10px;
}

/* =========================================================
           CAR GRID
        ========================================================= */

.cars {
    background: var(--light);
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.car-card {
    background: var(--white);
    color: var(--brand);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .25s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,.03);
}

    .car-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
    }

.car-image {
    height: 230px;
    position: relative;
    overflow: hidden;
    background: #e9e9e9;
}

    .car-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.car-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent);
    color: var(--white);
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.car-body {
    padding: 20px;
}

.car-brand {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.car-title {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}

.car-spec {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 11px;
    color: #555;
}

.car-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.price-label {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.price {
    display: block;
    font-size: 24px;
    font-weight: 800;
    margin-top: 2px;
}

.car-link {
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
}

/* =========================================================
           SERVICES
        ========================================================= */

.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    min-height: 250px;
    transition: .2s ease;
}

    .service-card:hover {
        border-color: #ccc;
        transform: translateY(-3px);
    }

.service-number {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 19px;
    line-height: 1.25;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--muted);
    font-size: 14px;
}

/* =========================================================
           NEOPATENTATI
        ========================================================= */

.newdrivers {
    background: var(--brand);
    color: var(--white);
    overflow: hidden;
}

    .newdrivers .section-header p {
        color: rgba(255,255,255,.62);
    }

    .newdrivers .section-label {
        color: #ff4e54;
    }

    .newdrivers .btn-outline {
        color: var(--white);
        background: var(--accent);
        border-color: var(--accent);
    }

        .newdrivers .btn-outline:hover {
            filter: brightness(1.1);
            border-color: var(--accent);
        }

    .newdrivers .car-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .newdrivers .car-card {
        border-color: rgba(255,255,255,.1);
    }

/* =========================================================
           CTA
        ========================================================= */

.cta {
    padding: 80px 0;
    background: linear-gradient(90deg, rgba(215,25,32,.97), rgba(174,16,22,.94));
    color: var(--white);
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -.04em;
    margin-bottom: 12px;
}

.cta p {
    max-width: 700px;
    color: rgba(255,255,255,.86);
}

.cta .btn {
    background: var(--white);
    color: var(--brand);
    white-space: nowrap;
}

/* =========================================================
           FOOTER
        ========================================================= */

.footer {
    background: #0a0a0a;
    color: var(--white);
    padding: 70px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer-logo {
    width: 190px;
    margin-bottom: 20px;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
}

.footer-description {
    color: rgba(255,255,255,.6);
    max-width: 360px;
    font-size: 14px;
}

.footer h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 18px;
}

.footer p,
.footer li,
.footer a {
    color: rgba(255,255,255,.65);
    font-size: 14px;
}

.footer ul {
    list-style: none;
}

.footer li + li {
    margin-top: 9px;
}

.footer a:hover {
    color: var(--white);
}

.footer-legal {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 0;
    color: rgba(255,255,255,.55);
    font-size: 12px;
    line-height: 1.7;
}

.footer-legal a,
.footer-bottom a {
    text-decoration: underline;
}

.footer-bottom a:hover,
.footer-legal a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255,255,255,.45);
    font-size: 12px;
}

/* =========================================================
           FLOATING CONTACT
        ========================================================= */

.floating-phone {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* Badge reCAPTCHA nascosto: l'informativa è mostrata nei form (.recaptcha-note) */
.grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

.recaptcha-note a {
    text-decoration: underline;
}

.share-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
}

.share-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 4px;
}

.share-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.share-btn:hover { background: #f1f1f1; }
.share-wa { border-color: #25D366; color: #128C7E; }
.share-fb { border-color: #1877F2; color: #1877F2; }

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* =========================================================
           RESPONSIVE
        ========================================================= */

@media (max-width: 1100px) {

    .main-nav {
        gap: 18px;
    }

    .car-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-button {
        align-self: stretch;
    }
}

@media (max-width: 850px) {

    .topbar-left {
        display: none;
    }

    .topbar-inner {
        justify-content: center;
    }

    .header-inner {
        min-height: 72px;
    }

    .main-nav {
        display: none;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding: 65px 0 145px;
    }

    .search-wrap {
        margin-top: -85px;
    }

    .section {
        padding: 75px 0;
    }

    .car-grid,
    .newdrivers .car-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .topbar {
        font-size: 11px;
    }

    .header-actions .btn-dark {
        display: none;
    }

    .logo {
        width: 145px;
    }

    .hero {
        min-height: 540px;
    }

    .hero-content {
        padding: 55px 0 135px;
    }

    .hero {
        background: linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.6) 100%), url("/images/hero.jpg") 65% center / cover no-repeat;
    }

    .hero h1 {
        font-size: 36px;
        overflow-wrap: break-word;
    }

    .hero p {
        font-size: 16px;
    }

    .search-box {
        padding: 20px;
    }

    .search-title {
        display: block;
    }

        .search-title span {
            display: block;
            margin-top: 4px;
        }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .section-header,
    .cta-box,
    .footer-bottom {
        display: block;
    }

        .section-header > a {
            display: inline-flex;
            margin-top: 18px;
        }

    .car-grid,
    .newdrivers .car-grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .car-image {
        height: 220px;
    }

    .footer-grid {
        gap: 35px;
    }

    .footer-bottom > * + * {
        margin-top: 10px;
    }
}

/* =========================================================
           LOGIN PAGE
         ========================================================= */

.login-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f6f6f6 0%, #ffffff 100%);
}

.login-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 420px;
    width: 100%;
    padding: 40px;
}

.login-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    text-align: center;
}

.login-card > p:first-of-type {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.login-card .form-group {
    margin-bottom: 20px;
}

.login-card .form-group label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: var(--text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-card .form-group input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}

.login-card .form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}

.login-card .form-check {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-card .form-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
    border-radius: 3px;
}

.login-card .form-check label {
    margin: 0;
    font-weight: 500;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.login-card .btn-login {
    width: 100%;
    padding: 12px 16px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.login-card .btn-login:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(215, 25, 32, 0.3);
}

.login-links {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

.login-links a {
    display: block;
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 8px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: var(--accent-dark);
}

.login-divider {
    text-align: center;
    margin: 20px 0;
    font-size: 12px;
    color: var(--muted);
    position: relative;
}

.login-divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    right: 0;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.login-divider span {
    position: relative;
    background: var(--white);
    padding: 0 8px;
    z-index: 1;
}

.login-card .alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    background: #fee;
    color: var(--accent);
    border: 1px solid #fcc;
}

.login-card .text-muted {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}




/* =========================================================
           PAGINE INTERNE
   ========================================================= */

.page-hero { background: var(--brand); color: var(--white); padding: 56px 0 52px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; line-height: 1.1; }
.page-hero p { margin-top: 12px; color: rgba(255,255,255,.7); max-width: 640px; }
.breadcrumb-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 13px; color: rgba(255,255,255,.55); }
.breadcrumb-nav a:hover { color: var(--white); }
.breadcrumb-nav span:last-child { color: rgba(255,255,255,.9); }

.btn-block { display: flex; width: 100%; }
.section-narrow { padding: 60px 0; }

/* Elenco veicoli */
.listing { background: var(--light); padding: 60px 0 90px; }
.listing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.filters { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 108px; }
.filters h2 { font-size: 18px; margin-bottom: 18px; }
.filters .field { margin-bottom: 16px; }
.filters .btn { margin-top: 8px; }
.results-bar { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.results-bar strong { color: var(--text); }
.listing-results .car-grid { grid-template-columns: repeat(3, 1fr); }
.empty-state { background: var(--white); border: 1px dashed #ccc; border-radius: var(--radius); padding: 60px 30px; text-align: center; }
.empty-state h3 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pagination a { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: var(--white); font-weight: 700; font-size: 14px; transition: .2s ease; }
.pagination a:hover { border-color: var(--brand); }
.pagination a.active { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* Dettaglio veicolo */
.detail { padding: 50px 0 90px; }
.detail-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.gallery-main { position: relative; background: #e9e9e9; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #e9e9e9; aspect-ratio: 4 / 3; transition: .2s ease; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb.active { border-color: var(--accent); }
@media (max-width: 768px) {
    .gallery-thumbs { display: flex; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
    .thumb { flex: 0 0 90px; scroll-snap-align: start; }
}
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; cursor: pointer; font-size: 28px; width: 48px; height: 48px; border-radius: 50%; }
.lb-close { top: 12px; right: 12px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }

.info-form-wrap { margin-top: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--light); }
.info-form-wrap[hidden] { display: none; }
.info-form-wrap .field { margin-bottom: 12px; }
.info-form-wrap textarea { width: 100%; border: 1px solid #ddd; border-radius: 10px; padding: 10px 14px; background: #fff; }
.info-form-ref { font-size: 14px; margin-bottom: 12px; }
.info-form-status { margin-top: 10px; font-size: 14px; }
.info-form-status.ok { color: var(--success); }
.info-form-status.err { color: var(--accent); }

.detail-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: sticky; top: 108px; }
.detail-price { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.detail-price .price { font-size: 38px; }
.spec-list { margin: 18px 0 24px; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { font-weight: 700; text-align: right; }
.detail-actions { display: grid; gap: 10px; }
.dealer-box { display: grid; gap: 4px; margin-top: 22px; padding: 16px; background: var(--light); border-radius: 12px; font-size: 13px; color: var(--muted); }
.dealer-box strong { color: var(--text); }
.dealer-box a { color: var(--accent); font-weight: 700; }

.detail-extra { margin-top: 50px; }
.detail-block { margin-bottom: 40px; }
.detail-block h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 16px; }
.description-text { white-space: pre-line; color: #444; max-width: 820px; line-height: 1.8; }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--light); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 13px; }
.chip-accent { background: #fdeced; border-color: #f6c4c6; color: var(--accent-dark); font-weight: 700; }

/* Contatti */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-card { background: var(--light); border-radius: var(--radius); padding: 26px; display: grid; gap: 4px; }
.info-card .section-label { margin-bottom: 4px; }
.info-main { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
a.info-main:hover { color: var(--accent); }
.info-card small { color: var(--muted); }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 24px; margin-bottom: 22px; }
.form-card .field { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field textarea { width: 100%; border: 1px solid #ddd; border-radius: 10px; background: #fafafa; padding: 12px 14px; font: inherit; outline: none; resize: vertical; transition: .2s ease; }
.field textarea:focus { border-color: var(--accent); background: #fff; }
.field-error { color: var(--accent); font-size: 12px; }
.notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; }
.notice-success { background: #e8f6ee; color: var(--success); border: 1px solid #bfe3cd; }

.prose { max-width: 820px; }
.prose p { margin-bottom: 16px; color: #444; line-height: 1.8; }
.prose a { color: var(--accent); font-weight: 700; }

@media (max-width: 1100px) {
    .listing-results .car-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .listing-layout, .detail-layout, .contact-layout { grid-template-columns: 1fr; }
    .filters, .detail-panel { position: static; }
}
@media (max-width: 600px) {
    .listing-results .car-grid, .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 22px; }
}

.finance-box { margin-top: 20px; padding: 20px; border-radius: 14px; color: #fff; background: linear-gradient(135deg,#1e3a6e,#3b4f8c); }
.finance-box h3 { font-size: 17px; margin-bottom: 8px; }
.finance-box p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.9); }
.finance-box strong { color: #5cd2ff; }

/* Decorazioni service-card */
.service-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #fff 55%, #f4f4f4 100%);
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent), #ff6b6b);
    transform: scaleX(.25);
    transform-origin: left;
    transition: transform .3s ease;
}
.service-card::after {
    content: "";
    position: absolute;
    right: -40px; bottom: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215,25,32,.12), transparent 70%);
}
.service-card:hover {
    border-color: rgba(215,25,32,.35);
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.service-card:hover::before { transform: scaleX(1); }
.service-number {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 8px 18px rgba(215,25,32,.3);
}
.service-card p strong { color: var(--text); }

/* Business card */
.bizcard { background: var(--white); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.bizcard-head { display: flex; align-items: center; gap: 16px; padding: 26px; background: linear-gradient(135deg, var(--accent), #a8121a); color: var(--white); }
.bizcard-head h2 { font-size: 22px; letter-spacing: -.02em; margin: 0; }
.bizcard-head span { font-size: 13px; opacity: .85; }
.bizcard-avatar { flex: none; width: 84px; height: 56px; border-radius: 12px; background: var(--white); display: grid; place-items: center; padding: 6px; }
.bizcard-avatar img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bizcard-list { list-style: none; margin: 0; padding: 12px 26px; }
.bizcard-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.bizcard-list li:last-child { border-bottom: 0; }
.bizcard-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(215,25,32,.1); display: grid; place-items: center; }
.bizcard-icon svg { width: 20px; height: 20px; fill: var(--accent); }
.bizcard-list a, .bizcard-text { font-weight: 700; font-size: 16px; word-break: break-word; }
.bizcard-list a:hover { color: var(--accent); }
.bizcard-list small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.bizcard-actions { display: flex; gap: 12px; padding: 8px 26px 26px; }
.bizcard-actions .btn { flex: 1; justify-content: center; text-align: center; }

.bizcard-map { height: 220px; background: var(--light); }
.bizcard-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.bizcard-head { border-top: 1px solid var(--border); }
