/* 3DArtiX 26/10/2026 - grafica orientata all'acquisto (mockup approvato dall'utente)
   - un solo colore d'accento (arancio del logo) SOLO per le azioni d'acquisto
   - titoli in Space Grotesk, testo con il font di Modesy (DM Sans)
   - parti nuove con prefisso .tdx- ; ritocchi alle classi di Modesy in fondo */
:root {
    --tdx-accent: #ff7a1a;
    --tdx-accent-hover: #ff8f3d;
    --tdx-ink: #0f1115;
    --tdx-text: #1f2937;
    --tdx-muted: #4b5563;
    --tdx-line: #e5e7eb;
    --tdx-surface: #f6f7f9;
    --tdx-dark: #0b0d12;
    --tdx-dark-muted: #c4c9d4;
    --tdx-green: #15803d;
}

/* barra fiducia */
.tdx-trust-bar { background: var(--tdx-ink); color: #e5e7eb; font-size: 13px; line-height: 1.4; }
.tdx-trust-bar-inner { max-width: 1280px; margin: 0 auto; padding: 8px 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 32px; }
.tdx-trust-bar-inner span { display: inline-flex; align-items: center; gap: 8px; }

/* pulsanti */
.tdx-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 10px; border: 2px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none !important; cursor: pointer; transition: background-color .15s, border-color .15s; }
.tdx-btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }
.tdx-btn-buy { background: var(--tdx-accent); color: var(--tdx-ink) !important; }
.tdx-btn-buy:hover, .tdx-btn-buy:focus { background: var(--tdx-accent-hover); color: var(--tdx-ink) !important; }
.tdx-btn-buy:disabled { opacity: .6; cursor: wait; }
.tdx-btn-ghost { border-color: #4b5563; color: #f9fafb !important; background: transparent; }
.tdx-btn-ghost:hover { border-color: #9ca3af; }
.tdx-btn:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }

/* hero */
.tdx-hero { background: var(--tdx-dark); color: #f9fafb; }
.tdx-hero-inner { max-width: 1280px; margin: 0 auto; padding: 56px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.tdx-hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tdx-pill { align-self: flex-start; background: var(--tdx-accent); color: var(--tdx-ink); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.tdx-hero-title { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 56px; line-height: 1.03; letter-spacing: -1.5px; font-weight: 700; color: #f9fafb; }
.tdx-hero-sub { margin: 0; font-size: 19px; line-height: 1.5; color: var(--tdx-dark-muted); max-width: 540px; }
.tdx-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.tdx-hero-checks { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--tdx-dark-muted); }
.tdx-hero-media { flex: 1 1 460px; min-width: 0; position: relative; height: 420px; }
.tdx-hero-card { position: absolute; display: block; border-radius: 16px; overflow: hidden; background: #1f2937; }
.tdx-hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tdx-hero-card-big { left: 0; top: 0; width: 78%; height: 320px; }
.tdx-hero-card-big img { object-position: 50% 52%; }
.tdx-hero-card-small { right: 0; bottom: 0; width: 46%; height: 240px; border: 6px solid var(--tdx-dark); }
.tdx-hero-label { position: absolute; left: 14px; bottom: 14px; background: #fff; color: var(--tdx-ink); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 8px; }

/* sezioni home */
.tdx-section { margin-bottom: 24px; }
.tdx-section-sub { margin: 4px 0 0; color: var(--tdx-muted); font-size: 14px; }
.tdx-eyebrow { font-size: 13px; font-weight: 700; color: var(--tdx-muted); text-transform: uppercase; letter-spacing: 1px; }
.tdx-set { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 24px; border-radius: 18px; background: var(--tdx-surface); border: 1px solid var(--tdx-line); }
.tdx-set-media { flex: 1 1 420px; min-width: 0; display: flex; align-items: center; gap: 12px; }
.tdx-set-media a { flex: 1; min-width: 0; }
.tdx-set-media img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; background: #fff; display: block; }
.tdx-set-plus { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; color: var(--tdx-ink); }
.tdx-set-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tdx-set-text p { margin: 0; color: var(--tdx-muted); }
.tdx-set-title { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; color: var(--tdx-ink); }
.tdx-set-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tdx-set-price .item-meta, .tdx-set-price .price { float: none; }
.tdx-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding: 32px 24px; border-radius: 18px; background: var(--tdx-surface); border: 1px solid var(--tdx-line); color: var(--tdx-ink); }
.tdx-why-item h3 { margin: 10px 0 4px; font-size: 17px; font-weight: 700; color: var(--tdx-ink); }
.tdx-why-item p { margin: 0; color: var(--tdx-muted); font-size: 14px; line-height: 1.5; }

/* schede prodotto */
.product-item > .row-custom:first-child { position: relative; }
.tdx-badge-instant { position: absolute; left: 10px; bottom: 10px; z-index: 9; background: #fff; color: var(--tdx-ink); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.15); pointer-events: none; }
.tdx-sold { font-size: 13px; font-weight: 700; color: var(--tdx-green); margin: 2px 0 4px; }
.badge-discount { width: auto !important; padding: 0 9px; border-radius: 999px !important; background-color: var(--tdx-ink) !important; color: var(--tdx-accent) !important; }

/* pagina prodotto */
.tdx-proof { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--tdx-muted); margin: 4px 0 6px; width: 100%; }
.tdx-proof strong { color: var(--tdx-green); }
.tdx-save { clear: both; padding-top: 8px; font-size: 15px; font-weight: 700; color: var(--tdx-green); }
.tdx-buy-trust { list-style: none; margin: 14px 0 6px; padding: 14px 16px; border: 1px solid var(--tdx-line); border-radius: 12px; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--tdx-text); }
.tdx-buy-trust li { display: flex; align-items: center; gap: 10px; }
.tdx-buy-trust svg { flex: 0 0 auto; color: var(--tdx-green); }
.tdx-no-reviews { padding: 18px 20px; border-radius: 12px; background: var(--tdx-surface); }
.tdx-no-reviews strong { display: block; font-size: 16px; color: var(--tdx-ink); margin-bottom: 4px; }
.tdx-no-reviews p { margin: 0; color: var(--tdx-muted); }
.tdx-sticky-buy { display: none; }

/* pulsanti d'acquisto di Modesy nel colore d'accento */
.btn-product-cart, .btn-continue-payment { background-color: var(--tdx-accent) !important; border-color: var(--tdx-accent) !important; color: var(--tdx-ink) !important; font-weight: 700 !important; border-radius: 10px !important; height: 52px !important; font-size: 16px !important; }
.btn-product-cart:hover, .btn-continue-payment:hover { background-color: var(--tdx-accent-hover) !important; }
.btn-product-cart .btn-cart-icon i { color: var(--tdx-ink) !important; }

/* titoli */
.section-header .title, .product-details-container .product-title, .tdx-set-title { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.3px; }

/* sotto 992px Modesy nasconde la top bar e mette l'intestazione fissa: la barra fiducia finirebbe sotto di essa.
   Le stesse 3 garanzie restano visibili nella hero (home) e nell'elenco sotto "Aggiungi al carrello" (prodotto). */
@media (max-width: 992px) {
    .tdx-trust-bar { display: none; }
}

/* telefono */
@media (max-width: 767px) {
    .tdx-hide-sm { display: none !important; }
    .tdx-pill { font-size: 13px; }
    .tdx-hero-inner { padding: 32px 16px 28px; gap: 24px; }
    .tdx-hero-title { font-size: 36px; letter-spacing: -1px; }
    .tdx-hero-sub { font-size: 16px; }
    .tdx-btn-lg { height: 52px; padding: 0 20px; font-size: 16px; width: 100%; }
    .tdx-hero-media { height: 250px; }
    .tdx-hero-card-big { height: 200px; width: 80%; }
    .tdx-hero-card-small { height: 140px; width: 46%; }
    .tdx-hero-label { left: 10px; bottom: 10px; font-size: 12px; padding: 4px 9px; }
    .tdx-set-media img { height: 120px; }
    .tdx-set .tdx-btn { width: 100%; }
    .tdx-sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--tdx-line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .2s; }
    .tdx-sticky-buy.tdx-show { transform: translateY(0); }
    /* il pulsante "torna su" di Modesy sale sopra la barra, altrimenti copre "Aggiungi al carrello" */
    .scrollup { transition: bottom .2s; }
    body.tdx-sticky-on .scrollup { bottom: calc(84px + env(safe-area-inset-bottom)); }
    .tdx-sticky-buy .tdx-btn { flex: 1; height: 50px; }
    .tdx-sticky-price .price, .tdx-sticky-price .item-meta { float: none; margin: 0; }
}
