* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header e Navigation */
header {
    background-color: #f5a623;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.select-wrapper {
    width: 250px;
    position: relative;
}

.select-wrapper select {
    width: 100%;
    height: 35px;
    padding: 8px 16px;
    border-radius: 30px;
    border: 2px solid #d9d9d9;
    background-color: #f2f2f2;
    color: #999;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    cursor: pointer;
}

.select-wrapper input {
    width: 100%;
    height: 35px;
    padding: 5px;
    border-radius: 30px;
    border: 2px solid #d9d9d9;
    background-color: #f2f2f2;
    color: #555;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    cursor: pointer;
}

.select-wrapper::after select {
    content: "▾";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
    font-size: 14px;
}

.select-wrapper select:focus {
    border-color: #bfbfbf;
    background-color: #ededed;
}

.logo {
    width: 20%;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background-color: #289d8e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.logo-circle img {
    width: 35px;
    height: 35px;
    fill: white;
}

.nav-links {
    display: flex;
    gap: 94px;
    list-style: none;
    flex: 1;
    width: 80%;
}

.nav-links a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a:hover {
    transform: scale(1.1);
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    width: 20%;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3),
    -1px -1px 3px rgba(255, 255, 255, 0.2);
}

.search-box input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 200px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/images/bg-campers.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 800px;
}

.hero h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

h3 {
    font-family: 'Roboto Slab', serif;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

/* Search Form */
.search-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
}

.search-tab {
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}

.search-tab.active {
    background: white;
    border-bottom: 3px solid #f5a623;
}

.search-form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-item label {
    color: #555;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
}

.small-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.results-badge {
    background: #f5a623;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    display: inline-block;
    font-size: 16px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3),
    -1px -1px 3px rgba(255, 255, 255, 0.2);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Section Titles */
.section-title {
    font-family: 'Roboto Slab', serif;
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.section-camper-title {
    font-family: 'Roboto Slab', serif;
    font-size: 36px;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    position: relative;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 180px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.product-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-price {
    color: #1e8a8f;
    font-size: 22px;
    font-weight: 700;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.nav-arrow.new  { background: #f5a623; }
.nav-arrow.used { background: #f5a623; }
.nav-arrow.left  { left: -20px; }
.nav-arrow.right { right: -20px; }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e8a8f 0%, #166c70 100%);
    color: white;
    padding: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
}

.cta-icon {
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-icon svg {
    width: 80px;
    height: 80px;
    fill: white;
}

.cta-content h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #f5a623;
    color: white;
}

.btn-primary:hover {
    background: #e09515;
}

.btn-secondary {
    background: white;
    color: #1e8a8f;
}

.btn-secondary:hover {
    background: #f0f0f0;
}

/* Brands Section */
.brands-section {
    text-align: center;
    padding: 40px 0;
    box-shadow: 0 2px 10px #e09515;
    margin-top: 5%;
    border-radius: 12px;
}

.brands-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
    position: relative;
}

.brand-logo {
    height: 100px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.brand-logo:hover {
    opacity: 1;
}

/* Dealer Section 
.dealer-section {
    background: linear-gradient(rgba(30, 138, 143, 0.9), rgba(30, 138, 143, 0.9)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><rect fill="%23ccc" width="1200" height="300"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px;
    border-radius: 12px;
    margin: 60px 0;
}

.dealer-section h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 36px;
    margin-bottom: 15px;
}

.dealer-section p {
    font-size: 16px;
    margin-bottom: 25px;
    max-width: 600px;
} */

/* Blog Section */
.blog-section {
    box-shadow: 0 2px 10px #1e8a8f;
    margin-top: 5%;
    margin-bottom: 5%;
    border-radius: 12px;
    padding-top: 40px;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btnnews {
    color: #1e8a8f;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
}

.btnnews:hover {
    text-decoration: underline;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    position: relative;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.blog-image {
    width: 100%;
    height: 180px;
    background: #e0e0e0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.blog-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-link {
    color: #f5a623;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #f5a623;
    color: #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 60px 20px 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    width: 80px;
    height: 80px;
    background: #289d8e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo img {
    width: 55px;
    height: 55px;
    fill: white;
}

.footer-text {
    max-width: 300px;
    font-size: 14px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: #f5a623;
}

.footer-bottom {
    background: #289d8e;
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 14px;
}

/* Cards sezione servizi */
.services {
    padding: 80px 20px;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    width: 30%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    line-height: 25px;
}

.card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.bottonecard {
    display: inline-block;
    background-color: #f0a037;
    color: #fff;
    padding: 14px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bottonecard:hover {
    background-color: #d88c2e;
    transform: scale(1.05);
}

.logocards {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 25px;
}

.logo-younited { transform: scale(1.05); }
.logo-karrycar { transform: scale(0.95); }
.logo-pratiche { transform: scale(1); }

.containercards {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Filtro ricerca */
.filtro-ricerca-wrapper {
    width: 100%;
}

.filtro-ricerca-tabs {
    display: flex;
    justify-content: center;
}

.filtro-ricerca-tab {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    background: #eee;
    transition: all 0.3s ease;
}

.filtro-ricerca-tab-attivo {
    background: #fff;
    border-bottom: 3px solid orange;
    font-weight: bold;
}

.filtro-ricerca-contenuto-wrapper {
    position: relative;
    margin-top: 20px;
}

.filtro-ricerca-contenuto {
    position: absolute;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.filtro-ricerca-attivo {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.filtro-ricerca-fade-out {
    opacity: 0;
}

/* Radio style */
.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #555;
}

.radio-option input {
    display: none;
}

.custom-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.radio-option input:checked + .custom-radio {
    border-color: orange;
}

.radio-option input:checked + .custom-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    background: orange;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Ricerca categoria */
.pulsanti-ricerca-categoria-container {
    max-width: 900px;
    margin: 0 auto;
}

.pulsanti-ricerca-categoria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.pulsanti-ricerca-categoria-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-radius: 999px;
    background-color: #f2f2f2;
    font-size: 16px;
    color: #333;
    transition: all 0.2s ease;
}

.pulsanti-ricerca-categoria-item:hover {
    cursor: pointer;
}

.pulsanti-ricerca-categoria-item .badge {
    background-color: #f39c12;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pulsanti-ricerca-categoria-item.active {
    background-color: #f39c12;
    color: #fff;
}

.pulsanti-ricerca-categoria-item.active .badge {
    background-color: #fff;
    color: #f39c12;
}

.pulsanti-ricerca-categoria-cta {
    margin-top: 20px;
    padding: 12px 30px;
    border: none;
    border-radius: 26px;
    background-color: #ccc;
    color: #fff;
    cursor: not-allowed;
}

.pulsanti-ricerca-categoria-cta.active {
    background-color: #f39c12;
    cursor: pointer;
}

/* Custom select */
.cs-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
    font-family: inherit;
}

.cs-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 35px;
    padding: 8px 16px;
    border: 2px solid #d9d9d9;
    border-radius: 50px;
    background: #f0f0f0;
    cursor: pointer;
    user-select: none;
}

.cs-box:hover { border-color: #ccc; }

.cs-box.open {
    border-color: #2AACB8;
    box-shadow: 0 0 0 3px rgba(42,172,184,0.15);
}

.cs-placeholder {
    font-size: 14px;
    color: #999;
    flex: 1;
    flex-wrap: wrap;
    display: flex;
    gap: 4px;
}

.cs-arrow {
    font-size: 10px;
    color: #999;
    margin-left: 8px;
    transition: transform .2s;
}

.cs-box.open .cs-arrow { transform: rotate(180deg); }

.cs-tag {
    background: #F5A623;
    color: #fff;
    border-radius: 4px;
    padding: 2px 6px 2px 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.cs-tag-x {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: .8;
}

.cs-tag-x:hover { opacity: 1; }

.cs-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.12);
    z-index: 999;
    overflow: hidden;
}

.cs-dropdown.open { display: block; }

.cs-search {
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-bottom: 1px solid #eee;
    outline: none;
    font-size: 13px;
    box-sizing: border-box;
}

.cs-list {
    max-height: 220px;
    overflow-y: auto;
    color: black;
}

.cs-option {
    padding: 9px 14px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-option:hover    { background: #f9f4e8; }
.cs-option.selected { background: #fff8ee; color: #c47a00; }

.cs-check {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1.5px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
}

.cs-option.selected .cs-check {
    background: #F5A623;
    border-color: #F5A623;
    color: #fff;
}

.cs-empty {
    padding: 10px 14px;
    font-size: 13px;
    color: #999;
    text-align: center;
}

/* Slider */
.slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.slider-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.slider-track-wrap {
    position: relative;
    height: 22px;
    display: flex;
    align-items: center;
}

.slider-track-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 50px;
    background: #e0e0e0;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 22px;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    background: transparent;
}

.slider::-webkit-slider-runnable-track {
    height: 22px;
    border-radius: 50px;
    background: transparent;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #F5A623;
    cursor: pointer;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
    border: 3px solid #fff;
    margin-top: 0;
    transition: transform .15s;
}

.slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #F5A623;
    cursor: pointer;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
    border: 3px solid #fff;
}

.slider::-moz-range-track {
    height: 6px;
    border-radius: 50px;
    background: #e0e0e0;
}

.slider::-moz-range-progress {
    height: 6px;
    border-radius: 50px;
    background: #F5A623;
}

.slider-fill {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 50px;
    background: #F5A623;
    pointer-events: none;
    z-index: 1;
}

.slider-value {
    font-size: 14px;
    font-weight: 600;
    color: #F5A623;
}


/* ============================================================
   PRODUCT DETAIL PAGE  (prefisso pd-)
   ============================================================ */

/* ── Container & Layout ─────────────────────────────────── */
.pd-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pd-product-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
    margin-bottom: 60px;
}

.pd-product-gallery {
    min-width: 0;
}

/* ── Galleria ───────────────────────────────────────────── */
.pd-gallery {
    margin-bottom: 20px;
}

.pd-gallery-main {
    width: 100%;
    height: 420px;
    border-radius: 10px;
    overflow: hidden;
    background: #e0e0e0;
    margin-bottom: 12px;
}

.pd-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.pd-gallery-main img.pd-fading {
    opacity: 0;
}

.pd-gallery-thumbs {
    display: flex;
    gap: 10px;
}

.pd-thumb {
    flex: 1;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    background: #e0e0e0;
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-thumb:not(.active) {
    opacity: 0.6;
}

.pd-thumb:not(.active):hover {
    opacity: 0.85;
    border-color: #f5a623;
}

.pd-thumb.active {
    border-color: #f5a623;
    opacity: 1;
}

/* ── Header prodotto ────────────────────────────────────── */
.pd-product-header {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.pd-product-title-main {
    font-family: 'Roboto Slab', serif;
    font-size: 28px;
    margin-bottom: 8px;
    color: #222;
}

.pd-product-price-main {
    font-size: 34px;
    color: #1e8a8f;
    font-weight: 700;
    margin-bottom: 8px;
}

.pd-product-location {
    color: #888;
    font-size: 15px;
    margin-bottom: 14px;
}

.pd-product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.pd-spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.pd-spec-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Blocco comune sezioni ──────────────────────────────── */
.pd-detail-block {
    background: white;
    border-radius: 12px;
    padding: 28px;
    margin-top: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.pd-detail-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f5f5f5;
}

.pd-detail-block-header svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    stroke: #1e8a8f;
    fill: none;
    flex-shrink: 0;
}

.pd-detail-block-header h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 20px;
    color: #222;
    font-weight: 700;
    margin: 0;
}

/* ── Dati tecnici ───────────────────────────────────────── */
.pd-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ebebeb;
}

.pd-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid #ebebeb;
    transition: background 0.15s;
}

.pd-spec-row:nth-child(odd)  { background: #fafafa; }
.pd-spec-row:nth-child(even) { background: #fff; }
.pd-spec-row:hover           { background: #fff8ee; }
.pd-spec-row:nth-last-child(-n+2) { border-bottom: none; }

.pd-spec-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pd-spec-value {
    font-size: 14px;
    color: #222;
    font-weight: 600;
    text-align: right;
}

/* ── Optional ───────────────────────────────────────────── */
.pd-optional-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pd-optional-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    padding: 9px 12px;
    border-radius: 8px;
    background: #f9f9f9;
    border: 1px solid #efefef;
    transition: background 0.15s, border-color 0.15s;
}

.pd-optional-item:hover {
    background: #fff8ee;
    border-color: #f5a623;
}

.pd-optional-item svg {
    width: 15px;
    height: 15px;
    min-width: 15px;
    stroke: #1e8a8f;
    stroke-width: 3;
    fill: none;
    flex-shrink: 0;
}

/* ── Accordion ──────────────────────────────────────────── */
.pd-accordion-extra {
    display: none;
}

.pd-specs-grid.pd-open    .pd-accordion-extra,
.pd-optional-grid.pd-open .pd-accordion-extra {
    display: flex;
}

.pd-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 12px 20px;
    border: 2px solid #1e8a8f;
    border-radius: 30px;
    background: transparent;
    color: #1e8a8f;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: 'Roboto', sans-serif;
}

.pd-accordion-btn:hover {
    background: #1e8a8f;
    color: white;
}

.pd-accordion-btn:hover .pd-accordion-chevron {
    stroke: white;
}

.pd-accordion-btn-count {
    color: #f5a623;
    font-weight: 700;
}

.pd-accordion-btn:hover .pd-accordion-btn-count {
    color: #ffd280;
}

.pd-accordion-chevron {
    width: 18px;
    height: 18px;
    min-width: 18px;
    stroke: #1e8a8f;
    fill: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.pd-accordion-btn.pd-open .pd-accordion-chevron {
    transform: rotate(180deg);
}

/* ── Recensioni ─────────────────────────────────────────── */
.pd-review-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.pd-review-score {
    font-size: 52px;
    font-weight: 700;
    color: #1e8a8f;
    line-height: 1;
    font-family: 'Roboto Slab', serif;
}

.pd-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 4px;
}

.pd-star        { font-size: 22px; color: #ddd; }
.pd-star.filled { color: #f5a623; }

.pd-review-count {
    font-size: 13px;
    color: #888;
}

.pd-review-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.pd-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pd-bar-label {
    font-size: 13px;
    color: #555;
    width: 130px;
    flex-shrink: 0;
}

.pd-bar-track {
    flex: 1;
    height: 7px;
    background: #ebebeb;
    border-radius: 50px;
    overflow: hidden;
}

.pd-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e8a8f, #2aacb8);
    border-radius: 50px;
}

.pd-bar-val {
    font-size: 13px;
    font-weight: 700;
    color: #1e8a8f;
    width: 28px;
    text-align: right;
}

.pd-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pd-review-card {
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 16px 18px;
    transition: box-shadow 0.2s;
}

.pd-review-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.pd-review-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.pd-review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1e8a8f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.pd-review-author {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.pd-review-date {
    font-size: 12px;
    color: #aaa;
}

.pd-review-stars-inline {
    margin-left: auto;
    color: #f5a623;
    font-size: 16px;
    letter-spacing: 1px;
}

.pd-review-text {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

/* ── Rivenditore ────────────────────────────────────────── */
.pd-dealer-profile {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.pd-dealer-logo-wrap {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    border: 1px solid #ebebeb;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.pd-dealer-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-dealer-logo-fallback {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.pd-dealer-logo-fallback svg {
    width: 40px;
    height: 40px;
    stroke: #ccc;
    fill: none;
}

.pd-dealer-name {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.pd-dealer-info-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.pd-dealer-info-row svg {
    width: 15px;
    height: 15px;
    min-width: 15px;
    stroke: #1e8a8f;
    fill: none;
    flex-shrink: 0;
}

.pd-dealer-badge-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.pd-dealer-badge {
    background: #e8f7f7;
    color: #1e8a8f;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.pd-dealer-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #1e8a8f;
    margin-bottom: 20px;
}

.pd-dealer-desc p {
    margin: 0;
}

.pd-delivery-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.pd-delivery-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #ebebeb;
    background: #fafafa;
    transition: border-color 0.2s;
}

.pd-delivery-card:hover {
    border-color: #f5a623;
}

.pd-delivery-card > svg {
    width: 28px;
    height: 28px;
    min-width: 28px;
    stroke: #f5a623;
    fill: none;
    flex-shrink: 0;
    margin-top: 2px;
}

.pd-delivery-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.pd-delivery-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.pd-map-wrap {
    border-radius: 10px;
    overflow: hidden;
}

.pd-map-wrap iframe {
    width: 100%;
    height: 240px;
    border: none;
    display: block;
}

.pd-map-cta {
    display: block;
    text-align: center;
    padding: 11px;
    background: #f5a623;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.pd-map-cta:hover {
    background: #e09515;
}

/* ── Pannello acquisto ──────────────────────────────────── */
.pd-purchase-panel {
    position: sticky;
    top: 20px;
    align-self: start;
}

.pd-service-card {
    background: white;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.pd-service-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pd-service-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    flex-shrink: 0;
}

.pd-service-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.pd-service-price {
    font-size: 20px;
    font-weight: 700;
    color: #1e8a8f;
    margin-bottom: 8px;
}

.pd-service-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
}

.pd-btn {
    width: 100%;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3)
}

.pd-btn-primary {
    background: #f5a623;
    color: white;
    border-color: #f5a623;
}

.pd-btn-primary:hover {
    background: #e09515;
    border-color: #e09515;
}

.pd-btn-secondary {
    background: white;
    color: #f5a623;
    border-color: #f5a623;
}

.pd-btn-secondary:hover {
    background: #fff5e6;
}

.pd-total-section {
    background: #f5a623;
    border-radius: 12px;
    padding: 22px;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pd-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.pd-total-label  { font-size: 20px; font-weight: 700; }
.pd-total-amount { font-size: 28px; font-weight: 700; }

/* ── Prodotti correlati ─────────────────────────────────── */
.pd-related-section {
    margin-top: 60px;
}

.pd-section-title {
    font-family: 'Roboto Slab', serif;
    font-size: 28px;
    margin-bottom: 24px;
    color: #333;
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.pd-product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pd-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
}

.pd-product-image {
    width: 100%;
    height: 160px;
    background: #e0e0e0;
    overflow: hidden;
}

.pd-product-image img,
.pd-product-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-product-info     { padding: 14px; }
.pd-product-title    { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: #222; }
.pd-product-subtitle { color: #888; font-size: 13px; margin-bottom: 8px; }
.pd-product-price    { color: #1e8a8f; font-size: 20px; font-weight: 700; }

.pd-nav-arrow { display: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
    .pd-product-layout {
        grid-template-columns: 1fr;
    }
    .pd-purchase-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .pd-specs-grid     { grid-template-columns: 1fr; }
    .pd-optional-grid  { grid-template-columns: 1fr 1fr; }
    .pd-delivery-info  { grid-template-columns: 1fr; }
    .pd-dealer-profile { flex-direction: column; }
    .pd-related-grid   { grid-template-columns: repeat(2, 1fr); }
    .pd-gallery-main   { height: 280px; }
    .pd-thumb          { height: 60px; }
}

@media (max-width: 480px) {
    .pd-optional-grid { grid-template-columns: 1fr; }
    .pd-related-grid  { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE GLOBALE  (mobile / tablet / desktop)
   Breakpoint: 1200 / 992 / 768 / 480
   Aggiunto senza modificare gli stili desktop esistenti.
   ============================================================ */

/* Sicurezza: niente overflow orizzontale e immagini fluide */
img { max-width: 100%; }

/* Menu hamburger: nascosto su desktop */
.sc-nav-toggle {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.sc-nav-burger { display: none; }

/* ── Tablet largo ─────────────────────────────────────────── */
@media (max-width: 1200px) {
    .nav-links { gap: 40px; }
    .brands-slider { gap: 40px; }
    .pd-container { padding: 30px 16px; }
}

/* ── Tablet / sotto: attiva il menu hamburger ─────────────── */
@media (max-width: 992px) {
    nav {
        flex-wrap: wrap;
        position: relative;
        row-gap: 0;
    }
    .logo { order: 1; width: auto; }

    .sc-nav-burger {
        order: 2;
        margin-left: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        cursor: pointer;
    }
    .sc-nav-burger span {
        display: block;
        width: 26px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-links,
    .search-box {
        order: 3;
        flex-basis: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        padding-top: 10px;
    }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 13px 4px;
        font-size: 17px;
    }
    .search-box {
        display: none;
        margin-top: 6px;
        margin-bottom: 4px;
    }
    .search-box input { width: 100%; flex: 1; }

    .sc-nav-toggle:checked ~ .nav-links,
    .sc-nav-toggle:checked ~ .search-box { display: flex; }

    /* hamburger -> X */
    .sc-nav-toggle:checked ~ .sc-nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .sc-nav-toggle:checked ~ .sc-nav-burger span:nth-child(2) { opacity: 0; }
    .sc-nav-toggle:checked ~ .sc-nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Sezioni "in vetrina": altezza fissa 700px -> auto */
    section.container[style*="height: 700px"],
    section.container[style*="height:700px"] {
        height: auto !important;
        padding-top: 40px;
        padding-bottom: 50px;
    }
    /* Le frecce del carosello non servono quando la griglia va a capo */
    .nav-arrow { display: none !important; }

    /* CTA: impila in verticale */
    .cta-section {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 36px 28px;
    }
    .cta-buttons { justify-content: center; flex-wrap: wrap; }

    /* Card servizi: due per riga */
    .containercards .card { width: 46%; }
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Hero più compatto */
    .hero {
        min-height: 0;
        padding: 60px 16px;
    }
    .hero h1 { font-size: 34px; }
    .hero p  { font-size: 17px; margin-bottom: 28px; }

    /* Titoli sezione */
    .section-title,
    .section-camper-title { font-size: 28px; }

    /* Tab di ricerca */
    .filtro-ricerca-tabs { flex-wrap: wrap; }
    .filtro-ricerca-tab,
    .search-tab { padding: 10px 14px; font-size: 13px; }
    .search-form-container { padding: 20px; }

    /* Container: meno padding verticale */
    .container { padding: 40px 16px; }

    /* Card servizi a tutta larghezza */
    .containercards { gap: 24px; }
    .containercards .card { width: 100%; }

    /* Slider marchi: a capo + più piccoli (annulla il width:135% inline) */
    .brands-slider { flex-wrap: wrap; gap: 28px; }
    .brand-logo {
        width: auto !important;
        max-width: 38%;
        height: 60px;
    }

    /* CTA icona ridotta */
    .cta-icon { width: 110px; height: 110px; }
    .cta-icon img { width: 100% !important; }
    .cta-content h2 { font-size: 26px; }

    /* Blog header impilato */
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Pulsanti ricerca per categoria: 2 colonne */
    .pulsanti-ricerca-categoria-grid { grid-template-columns: repeat(2, 1fr); }

    /* Footer impilato e centrato */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
        padding: 40px 16px 24px;
    }
    .footer-brand { flex-direction: column; text-align: center; }
    .footer-text { max-width: 100%; }

    /* Pagina prodotto: header titolo/prezzo più piccoli */
    .pd-product-title-main { font-size: 23px; }
    .pd-product-price-main { font-size: 28px; }
    .pd-gallery-main { height: 240px; }
}

/* ── Mobile stretto ───────────────────────────────────────── */
@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .hero p  { font-size: 15px; }
    .section-title,
    .section-camper-title { font-size: 24px; }

    /* Tab di ricerca a tutta larghezza, una per riga */
    .filtro-ricerca-tabs { flex-direction: column; }
    .filtro-ricerca-tab {
        width: 100%;
        border-radius: 5px !important;
    }

    /* Pulsanti categoria: 1 colonna */
    .pulsanti-ricerca-categoria-grid { grid-template-columns: 1fr; }

    /* Bottoni CTA a tutta larghezza */
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; text-align: center; }

    .brand-logo { max-width: 44%; height: 52px; }

    .pd-gallery-main { height: 200px; }
    .pd-product-price-main { font-size: 25px; }
}
/* ===================================================================
 * VETRINA COME SLIDER ORIZZONTALE
 * Da INCOLLARE in fondo a public/style.css
 * (sostituisce di fatto l'uso di .product-grid nelle vetrine home)
 * =================================================================== */

.product-slider {
    position: relative;
    margin-bottom: 40px;
}

/* La "rotaia" che scorre in orizzontale */
.product-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 6px 4px;              /* spazio per l'ombra delle card */
    -ms-overflow-style: none;      /* IE/Edge: nasconde scrollbar */
    scrollbar-width: none;         /* Firefox: nasconde scrollbar */
}
.product-track::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* Card a larghezza fissa: niente "a capo", scorrono in fila */
.product-track > .product-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

/* La card ora e' un <a>: tolgo sottolineatura e colore-link */
a.product-card {
    text-decoration: none;
    color: inherit;
    display: block;
}
a.product-card .product-title    { color: #222; }
a.product-card .product-subtitle { color: #666; }
a.product-card .product-price    { color: #1e8a8f; }

/* Su mobile le card occupano quasi tutta la larghezza (swipe col dito) */
@media (max-width: 480px) {
    .product-track > .product-card { flex: 0 0 85%; }
}
