:root {
    --cp-navy: #10233f;
    --cp-red: #e63535;
    --cp-red-dark: #c92525;
    --cp-soft: #f5f7fa;
    --cp-border: #e4e8ee;
}

html { scroll-behavior: smooth; }
body { color: var(--cp-navy); background: #fff; }
a { color: inherit; }
.site-header { z-index: 1030; }
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cp-red);
    color: #fff;
    font-size: .9rem;
    letter-spacing: .03em;
}
.navbar-brand { color: var(--cp-navy); }
.nav-link { color: #44546a; font-weight: 600; }

.hero {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 4.5rem 0 3rem;
}
.hero h1 { letter-spacing: -.04em; }
.hero-copy { max-width: 760px; }

.search-panel {
    background: var(--cp-red);
    border-radius: 1.5rem;
    box-shadow: 0 20px 45px rgba(16,35,63,.13);
}
.search-panel .form-label { color: #fff; font-weight: 700; }
.search-panel .form-select {
    border: 0;
    min-height: 54px;
    border-radius: .9rem;
    box-shadow: none;
}
.search-panel .btn-search {
    min-height: 54px;
    border-radius: .9rem;
    background: var(--cp-navy);
    border-color: var(--cp-navy);
    font-weight: 800;
}
.search-panel .btn-search:hover {
    background: #071629;
    border-color: #071629;
}

.section-soft { background: var(--cp-soft); }
.size-link {
    border: 1px solid var(--cp-border);
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
    transition: .15s ease;
}
.size-link:hover {
    transform: translateY(-1px);
    border-color: #c9d1dc;
    box-shadow: 0 .4rem 1rem rgba(16,35,63,.06);
}

.product-card {
    border: 1px solid var(--cp-border);
    border-radius: 1.2rem;
    overflow: hidden;
    transition: .18s ease;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2rem rgba(16,35,63,.08);
}
.product-image-wrap {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 1.25rem;
}
.product-image {
    width: 100%;
    height: 210px;
    object-fit: contain;
}
.tire-placeholder {
    width: 150px;
    height: 150px;
    border: 22px solid #24364d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #617085;
    background: #eef1f5;
    font-weight: 800;
}
.product-title {
    min-height: 3rem;
    line-height: 1.25;
}
.price-main { color: var(--cp-navy); letter-spacing: -.03em; }
.badge-soft {
    background: #edf1f5;
    color: #33455e;
    font-weight: 700;
}
.badge-used { background: #fff0da; color: #865300; }
.badge-new { background: #e8f7ec; color: #236437; }

.result-heading { padding: 2.75rem 0 1.5rem; }
.filter-summary {
    border: 1px solid var(--cp-border);
    border-radius: 1rem;
    background: #fff;
}

.detail-image-panel {
    border: 1px solid var(--cp-border);
    border-radius: 1.25rem;
    background: #fff;
}
.detail-image { width: 100%; max-height: 460px; object-fit: contain; }
.spec-box {
    border: 1px solid var(--cp-border);
    border-radius: 1rem;
    background: #fff;
}
.offer-row {
    border: 1px solid var(--cp-border);
    border-radius: 1rem;
    background: #fff;
}
.offer-row + .offer-row { margin-top: .75rem; }
.offer-price { font-size: 1.45rem; font-weight: 800; }
.btn-offer {
    background: var(--cp-red);
    border-color: var(--cp-red);
    font-weight: 800;
}
.btn-offer:hover { background: var(--cp-red-dark); border-color: var(--cp-red-dark); }

@media (max-width: 767.98px) {
    .hero { padding-top: 2.5rem; }
    .search-panel { border-radius: 1.15rem; }
    .product-image-wrap { min-height: 180px; }
    .product-image { height: 170px; }
}


/* =========================================================
   FILTRI RISULTATI
   ========================================================= */

.sticky-filter {
    position: sticky;
    top: 92px;
}

.filter-panel {
    border: 1px solid var(--cp-border);
    border-radius: 1.15rem;
    background: #fff;
    padding: 1.1rem;
}

.facet-section {
    padding: 1rem 0;
    border-top: 1px solid var(--cp-border);
}

.facet-section:first-of-type {
    border-top: 0;
    padding-top: .25rem;
}

.facet-title {
    font-weight: 800;
    margin-bottom: .65rem;
    color: var(--cp-navy);
}

.facet-option {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    padding: .42rem 0;
    color: #46566b;
    text-decoration: none;
    font-size: .94rem;
}

.facet-option:hover {
    color: var(--cp-navy);
}

.facet-check {
    width: 19px;
    height: 19px;
    border: 1px solid #cbd3de;
    border-radius: .3rem;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
}

.facet-option.active {
    color: var(--cp-navy);
    font-weight: 700;
}

.facet-option.active .facet-check {
    background: var(--cp-navy);
    border-color: var(--cp-navy);
    color: #fff;
}

.facet-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.facet-count {
    color: #8793a3;
    font-size: .82rem;
}

.facet-count:empty {
    display: none;
}

.offcanvas .filter-panel {
    border: 0;
    padding: 0;
}

@media (max-width: 991.98px) {
    .result-heading {
        padding-top: 2rem;
    }
}


/* =========================================================
   SEO / GEO CONTENT
   ========================================================= */

.seo-copy {
    max-width: 920px;
    font-size: 1.02rem;
    line-height: 1.75;
    color: #42526a;
}

.seo-copy h2,
.seo-copy h3 {
    color: var(--cp-navy);
    font-weight: 800;
    margin-top: 1.75rem;
    margin-bottom: .75rem;
}

.seo-copy h2:first-child,
.seo-copy h3:first-child {
    margin-top: 0;
}

.seo-copy p:last-child {
    margin-bottom: 0;
}

.seo-copy ul,
.seo-copy ol {
    padding-left: 1.25rem;
}

.seo-facts {
    border: 1px solid var(--cp-border);
    border-radius: 1.15rem;
    box-shadow: 0 10px 28px rgba(17, 39, 68, .06);
}

.seo-section .accordion-item {
    border-color: var(--cp-border);
}

.seo-section .accordion-button {
    font-weight: 700;
    color: var(--cp-navy);
}

.seo-section .accordion-button:not(.collapsed) {
    background: #f7f9fc;
    color: var(--cp-navy);
    box-shadow: none;
}

.seo-section .accordion-button:focus {
    box-shadow: 0 0 0 .2rem rgba(17, 39, 68, .08);
}


/* =========================================================
   CMS / PAGINE INFORMATIVE
   ========================================================= */

.footer-link {
    color: #66758a;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--cp-navy);
    text-decoration: underline;
}

.cms-content {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: .75rem;
}

.cms-content table {
    width: 100%;
    margin-bottom: 1rem;
}

.cms-intro {
    max-width: 900px;
}

.contact-info-box {
    border: 1px solid var(--cp-border);
    border-radius: 1.15rem;
    background: var(--cp-soft);
}

.cms-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* =========================================================
   GOMMISTI
   ========================================================= */

.gommista-card {
    background: #fff;
    border: 1px solid var(--cp-border);
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(17,39,68,.06);
}

.gommista-card-media {
    height: 190px;
    background: var(--cp-soft);
    overflow: hidden;
}

.gommista-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gommista-card-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b97a8;
    font-weight: 800;
}

.gommista-logo,
.gommista-detail-logo,
.merchant-logo {
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--cp-border);
    border-radius: .75rem;
}

.gommista-logo { width: 58px; height: 58px; }
.gommista-detail-logo { width: 92px; height: 92px; }
.merchant-logo { width: 72px; height: 48px; padding: .25rem; }

.gommista-hero-image {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 1.15rem;
}

.service-chip {
    padding: .75rem 1rem;
    border-radius: .8rem;
    background: var(--cp-soft);
    border: 1px solid var(--cp-border);
    font-weight: 700;
}

.claim-box {
    border: 1px dashed #bcc7d5;
    border-radius: 1rem;
    background: #fff;
}

.map-embed-wrap {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--cp-border);
}

.map-embed {
    display: block;
    width: 100%;
    min-height: 300px;
    border: 0;
}

.gommista-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.gommista-services-admin {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
}

.gommista-services-admin li { margin-bottom: .65rem; }
.gommista-services-admin input { margin-right: .5rem; }

.admin-merchant-logo {
    width: 72px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: .2rem;
}

.min-vh-75 { min-height: 75vh; }

@media (max-width: 767.98px) {
    .gommista-services-admin { columns: 1; }
}
