/*
 * vendite.css — Stile pagina Vendite per MobileBianco
 */

/* ---- Hero ---- */
.vendite-hero {
    width: 100%;
    background: url('../img/branding/mobilebianco-hero-workshop.jpg') center / cover no-repeat;
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0;
    padding-top: 92px;
}
.vendite-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.vendite-hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 1;
    padding: 20px;
}
.vendite-hero-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 52px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 0 12px;
    letter-spacing: 2px;
}
.vendite-hero-content h2 span { color: #ff9000; }
.vendite-hero-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.6;
}

/* ---- Sezione Prodotti ---- */
.prodotti-sec {
    padding: 80px 0 60px;
    background: #fff;
    overflow: hidden;
}
.prodotti-sec .Center {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}
.prodotti-sec h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 46px;
    color: #000;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
}
.catalog-mode-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff4e3;
    border: 1px solid #f0c98d;
    color: #8a5a16;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
}
.prodotti-sec > .Center > p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #979797;
    margin: 16px 0 0;
    padding: 0 0 28px;
}
.prodotti-sec .Line {
    border: solid 2px #ff9408;
    height: 2px;
    width: 252px;
    margin: 0 auto 60px;
}

/* ---- Slider Prodotti (infinite scroll) ---- */
.products-slider-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0 40px;
    cursor: grab;
    position: relative;
}
.products-slider-wrapper::before,
.products-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.products-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, transparent 100%);
}
.products-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.products-track {
    display: flex;
    gap: 24px;
    padding: 10px 40px;
    animation: scrollProducts 40s linear infinite;
    width: max-content;
}
.products-track:hover,
.products-track.paused {
    animation-play-state: paused;
}

@keyframes scrollProducts {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Card Prodotto ---- */
.product-card {
    flex: 0 0 280px;
    width: 280px;
    background: #fff;
    border: 1px solid #e8e0d5;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    height: 180px;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff9000;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-body {
    padding: 20px 20px 16px;
}
.product-body h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    color: #333;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.product-body p {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    margin: 0 0 16px;
    min-height: 40px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.product-price {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    color: #ff9000;
    font-weight: 700;
}
.product-price small {
    font-size: 11px;
    color: #aaa;
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
}
.btn-buy {
    display: inline-block;
    padding: 9px 16px;
    background: #ff9000;
    color: #fff !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    transition: background 0.3s ease;
    white-space: nowrap;
}
.btn-buy:hover {
    background: #cc7400;
    text-decoration: none;
    color: #fff !important;
}
.btn-buy .fa { margin-right: 6px; }
.btn-buy { border: none; cursor: pointer; }

.catalog-empty {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 40px 40px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #777;
    text-align: center;
}

/* ---- Sezione Personalizzazioni ---- */
.custom-sec {
    padding: 80px 0 60px;
    background: #f5f0eb;
    overflow: hidden;
}
body[data-catalog-category="falegnameria"] .custom-sec {
    padding-top: 86px;
}
.custom-sec-main {
    background: #fff;
}
.custom-sec .Center {
    max-width: 1100px;
    margin: auto;
}
.custom-header {
    text-align: center;
    margin-bottom: 60px;
}
.custom-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 40px;
    color: #333;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 0 16px;
    line-height: 1.2;
}
.custom-header h2 span { color: #ff9000; }
.custom-header h2 .fa { color: #ff9000; margin-right: 12px; }
.custom-header > p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #777;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.7;
}
.custom-header .Line {
    border: solid 2px #ff9408;
    height: 2px;
    width: 252px;
    margin: 30px auto 0;
}

/* ---- Custom Slider (manual, con frecce) ---- */
.custom-slider-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 60px;
}
.custom-track {
    display: flex;
    gap: 28px;
    transition: transform 0.5s ease;
}

.custom-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.custom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.15);
}

.custom-img-wrap {
    overflow: hidden;
    height: 200px;
}
.custom-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.custom-card:hover .custom-img-wrap img {
    transform: scale(1.06);
}

.custom-body {
    padding: 24px 24px 28px;
    text-align: center;
}
.custom-body h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    color: #333;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.custom-body > p {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    margin: 0 0 20px;
}
.custom-price {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
    background: #f5f0eb;
    border-radius: 2px;
    padding: 8px 12px;
    display: inline-block;
}
.custom-price strong {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    color: #ff9000;
    display: block;
    margin-top: 2px;
}
.btn-quote {
    display: inline-block;
    padding: 11px 24px;
    background: transparent;
    color: #ff9000 !important;
    border: 2px solid #ff9000;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.btn-quote:hover {
    background: #ff9000;
    color: #fff !important;
    text-decoration: none;
}
.btn-quote .fa { margin-right: 6px; }

/* Frecce custom slider */
.custom-prev,
.custom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ff9000;
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.custom-prev:hover,
.custom-next:hover { background: #cc7400; }
.custom-prev { left: 8px; }
.custom-next { right: 8px; }

/* ---- CTA contatti ---- */
.contact-cta {
    background: #333;
    padding: 22px 20px;
    text-align: center;
}
.contact-cta p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #ccc;
    margin: 0;
}
.contact-cta .fa { color: #ff9000; margin-right: 8px; }
.contact-cta a { color: #ff9000; text-decoration: none; }
.contact-cta a:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .vendite-hero { margin-top: 0; height: 300px; padding-top: 60px; }
    .vendite-hero-content h2 { font-size: 36px; }
    .custom-card { flex: 0 0 calc(50% - 14px); }
}
@media (max-width: 600px) {
    .vendite-hero-content h2 { font-size: 28px; }
    .product-card { flex: 0 0 240px; width: 240px; }
    .custom-card { flex: 0 0 calc(100% - 0px); }
    .custom-slider-wrapper { padding: 0 50px; }
    .custom-header h2 { font-size: 28px; }
}

