.elementor-9549 .elementor-element.elementor-element-92ed59a > .elementor-element-populated{transition:background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;}.elementor-9549 .elementor-element.elementor-element-92ed59a > .elementor-element-populated > .elementor-background-overlay{transition:background 0.3s, border-radius 0.3s, opacity 0.3s;}.elementor-widget-theme-post-featured-image .widget-image-caption{color:var( --e-global-color-text );font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-widget-woocommerce-product-title .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.woocommerce .elementor-widget-woocommerce-product-price .price{color:var( --e-global-color-primary );font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-woocommerce-product-add-to-cart .added_to_cart{font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-9549 .elementor-element.elementor-element-449383f .cart button, .elementor-9549 .elementor-element.elementor-element-449383f .cart .button{transition:all 0.2s;}.elementor-9549 .elementor-element.elementor-element-449383f .quantity .qty{transition:all 0.2s;}.elementor-9549 .elementor-element.elementor-element-dba4a15{border-style:none;}.elementor-9549 .elementor-element.elementor-element-dba4a15, .elementor-9549 .elementor-element.elementor-element-dba4a15 > .elementor-background-overlay{border-radius:0px 0px 0px 0px;}.elementor-widget-divider{--divider-color:var( --e-global-color-secondary );}.elementor-widget-divider .elementor-divider__text{color:var( --e-global-color-secondary );font-family:var( --e-global-typography-secondary-font-family ), Sans-serif;font-weight:var( --e-global-typography-secondary-font-weight );}.elementor-widget-divider.elementor-view-stacked .elementor-icon{background-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon{color:var( --e-global-color-secondary );border-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon svg{fill:var( --e-global-color-secondary );}.elementor-9549 .elementor-element.elementor-element-0b50317{--divider-border-style:solid;--divider-color:#000;--divider-border-width:1px;}.elementor-9549 .elementor-element.elementor-element-0b50317 .elementor-divider-separator{width:100%;}.elementor-9549 .elementor-element.elementor-element-0b50317 .elementor-divider{padding-block-start:15px;padding-block-end:15px;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-widget-woocommerce-product-content{color:var( --e-global-color-text );font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-9549 .elementor-element.elementor-element-314be95{border-style:none;}.elementor-9549 .elementor-element.elementor-element-314be95, .elementor-9549 .elementor-element.elementor-element-314be95 > .elementor-background-overlay{border-radius:0px 0px 0px 0px;}.elementor-9549 .elementor-element.elementor-element-9631636{--divider-border-style:solid;--divider-color:#000;--divider-border-width:1px;}.elementor-9549 .elementor-element.elementor-element-9631636 .elementor-divider-separator{width:100%;}.elementor-9549 .elementor-element.elementor-element-9631636 .elementor-divider{padding-block-start:15px;padding-block-end:15px;}.elementor-widget-gallery .elementor-gallery-item__title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-gallery .elementor-gallery-item__description{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-widget-gallery{--galleries-title-color-normal:var( --e-global-color-primary );--galleries-title-color-hover:var( --e-global-color-secondary );--galleries-pointer-bg-color-hover:var( --e-global-color-accent );--gallery-title-color-active:var( --e-global-color-secondary );--galleries-pointer-bg-color-active:var( --e-global-color-accent );}.elementor-widget-gallery .elementor-gallery-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-9549 .elementor-element.elementor-element-f9b3bff .e-gallery-item:hover .elementor-gallery-item__overlay, .elementor-9549 .elementor-element.elementor-element-f9b3bff .e-gallery-item:focus .elementor-gallery-item__overlay{background-color:rgba(0,0,0,0.5);}.elementor-9549 .elementor-element.elementor-element-f9b3bff{--image-transition-duration:800ms;--overlay-transition-duration:800ms;--content-text-align:center;--content-padding:20px;--content-transition-duration:800ms;--content-transition-delay:800ms;}.elementor-9549 .elementor-element.elementor-element-7296f15{--divider-border-style:solid;--divider-color:#000;--divider-border-width:1px;}.elementor-9549 .elementor-element.elementor-element-7296f15 .elementor-divider-separator{width:100%;}.elementor-9549 .elementor-element.elementor-element-7296f15 .elementor-divider{padding-block-start:15px;padding-block-end:15px;}.elementor-widget-video-playlist .e-tabs-wrapper .e-tabs-header .e-tabs-title{color:var( --e-global-color-text );}.elementor-widget-video-playlist .e-tabs-wrapper .e-tabs-header .e-tabs-videos-count{color:var( --e-global-color-text );}.elementor-widget-video-playlist .e-tabs-wrapper .e-tabs-header .e-tabs-header-right-side i{color:var( --e-global-color-text );}.elementor-widget-video-playlist .e-tabs-wrapper .e-tabs-header .e-tabs-header-right-side svg{fill:var( --e-global-color-text );}.elementor-widget-video-playlist .e-tabs-items .e-tab-title .e-tab-title-text{color:var( --e-global-color-text );font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-widget-video-playlist .e-tabs-items .e-tab-title .e-tab-title-text a{color:var( --e-global-color-text );}.elementor-widget-video-playlist .e-tabs-items .e-tab-title .e-tab-duration{color:var( --e-global-color-text );}.elementor-widget-video-playlist .e-tabs-items-wrapper .e-tab-title:where( .e-active, :hover ) .e-tab-title-text{color:var( --e-global-color-text );font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-widget-video-playlist .e-tabs-items-wrapper .e-tab-title:where( .e-active, :hover ) .e-tab-title-text a{color:var( --e-global-color-text );}.elementor-widget-video-playlist .e-tabs-items-wrapper .e-tab-title:where( .e-active, :hover ) .e-tab-duration{color:var( --e-global-color-text );}.elementor-widget-video-playlist .e-tabs-items-wrapper .e-section-title{color:var( --e-global-color-text );}.elementor-widget-video-playlist .e-tabs-inner-tabs .e-inner-tabs-wrapper .e-inner-tab-title a{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-widget-video-playlist .e-tabs-inner-tabs .e-inner-tabs-content-wrapper .e-inner-tab-content .e-inner-tab-text{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-widget-video-playlist .e-tabs-inner-tabs .e-inner-tabs-content-wrapper .e-inner-tab-content button{color:var( --e-global-color-text );font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-widget-video-playlist .e-tabs-inner-tabs .e-inner-tabs-content-wrapper .e-inner-tab-content button:hover{color:var( --e-global-color-text );}.elementor-9549 .elementor-element.elementor-element-553a85f .e-tabs-items-wrapper .e-tab-title:where( .e-active, :hover ) .e-tab-title-text{color:#556068;}.elementor-9549 .elementor-element.elementor-element-553a85f .e-tabs-items-wrapper .e-tab-title:where( .e-active, :hover ) .e-tab-title-text a{color:#556068;}.elementor-9549 .elementor-element.elementor-element-553a85f .e-tabs-items-wrapper .e-section-title{border-style:solid;}.elementor-9549 .elementor-element.elementor-element-56eb4b7{--divider-border-style:solid;--divider-color:#000;--divider-border-width:1px;}.elementor-9549 .elementor-element.elementor-element-56eb4b7 .elementor-divider-separator{width:100%;}.elementor-9549 .elementor-element.elementor-element-56eb4b7 .elementor-divider{padding-block-start:15px;padding-block-end:15px;}.elementor-widget-woocommerce-product-upsell.elementor-wc-products ul.products li.product .woocommerce-loop-product__title{color:var( --e-global-color-primary );}.elementor-widget-woocommerce-product-upsell.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{color:var( --e-global-color-primary );}.elementor-widget-woocommerce-product-upsell.elementor-wc-products ul.products li.product .woocommerce-loop-product__title, .elementor-widget-woocommerce-product-upsell.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-woocommerce-product-upsell.elementor-wc-products .products > h2{color:var( --e-global-color-primary );font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-woocommerce-product-upsell.elementor-wc-products ul.products li.product .price{color:var( --e-global-color-primary );font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-woocommerce-product-upsell.elementor-wc-products ul.products li.product .price ins{color:var( --e-global-color-primary );}.elementor-widget-woocommerce-product-upsell.elementor-wc-products ul.products li.product .price ins .amount{color:var( --e-global-color-primary );}.elementor-widget-woocommerce-product-upsell.elementor-wc-products ul.products li.product .price del{color:var( --e-global-color-primary );}.elementor-widget-woocommerce-product-upsell.elementor-wc-products ul.products li.product .price del .amount{color:var( --e-global-color-primary );}.elementor-widget-woocommerce-product-upsell.elementor-wc-products ul.products li.product .price del {font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-woocommerce-product-upsell.elementor-wc-products ul.products li.product .button{font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-widget-woocommerce-product-upsell.elementor-wc-products .added_to_cart{font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-9549 .elementor-element.elementor-element-e8f8c13.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}.elementor-9549 .elementor-element.elementor-element-e8f8c13.elementor-wc-products ul.products li.product span.onsale{display:block;}.elementor-9549 .elementor-element.elementor-element-c0a0024{--divider-border-style:solid;--divider-color:#000;--divider-border-width:1px;}.elementor-9549 .elementor-element.elementor-element-c0a0024 .elementor-divider-separator{width:100%;}.elementor-9549 .elementor-element.elementor-element-c0a0024 .elementor-divider{padding-block-start:15px;padding-block-end:15px;}@media(max-width:1024px){.elementor-9549 .elementor-element.elementor-element-e8f8c13.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}}@media(max-width:767px){.elementor-9549 .elementor-element.elementor-element-e8f8c13.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}}/* Start custom CSS *//* =========================================================
   TESLA GAMES — PAGINA PRODOTTO
   Classi: tg-product (sezione prodotto), tg-section (sezioni sotto),
           tg-eyebrow, tg-lead (Editor di testo),
           tg-spec + tg-autori / tg-illustratori / tg-carte (Editor di testo)
   Rosso brand #C4161C
   ========================================================= */

/* ---------- Briciole ---------- */
.elementor-widget-woocommerce-breadcrumb .woocommerce-breadcrumb{
  font:400 13px/1.6 'Inter',sans-serif !important;
  color:#6B6B70 !important;
  margin:0 !important;
}
.elementor-widget-woocommerce-breadcrumb .woocommerce-breadcrumb a{
  color:#6B6B70 !important; text-decoration:none !important; transition:color .15s;
}
.elementor-widget-woocommerce-breadcrumb .woocommerce-breadcrumb a:hover{color:#C4161C !important}

/* ---------- Sezione prodotto ---------- */
.tg-product .elementor-column:first-child > .elementor-widget-wrap{padding-right:48px !important}
.tg-product .elementor-widget{margin-bottom:0 !important}

/* Immagine su riquadro beige (il bianco della foto si fonde col beige) */
.tg-product .elementor-widget-theme-post-featured-image{
  background:#F7F5F2; border-radius:12px; overflow:hidden;
}
.tg-product .elementor-widget-theme-post-featured-image img{
  display:block; box-sizing:border-box;
  width:100% !important; max-width:none !important; height:auto !important;
  aspect-ratio:1/1; object-fit:contain; padding:8%;
  mix-blend-mode:multiply; border-radius:0 !important;
}

/* Etichetta sopra il titolo */
.tg-product .tg-eyebrow{margin-bottom:8px !important}
.tg-eyebrow, .tg-eyebrow p, .tg-eyebrow a{
  font:600 12px/1.4 'Inter',sans-serif !important;
  text-transform:uppercase; letter-spacing:.12em;
  color:#C4161C !important; text-decoration:none !important; margin:0 !important;
}

/* Riga badge sotto la categoria: shortcode [tg_badges] (snippet "Tesla Games – Badge prodotto") */
.tg-product .elementor-widget:has(.tg-badges){margin-bottom:10px !important}
.tg-product .tg-badges{display:flex; flex-wrap:wrap; gap:8px}
.tg-product .tg-badge{
  display:inline-flex; align-items:center;
  padding:3px 9px; border-radius:6px; background:#fff;
  font:600 11px/1.4 'Inter',sans-serif; text-transform:uppercase; letter-spacing:.08em;
}
.tg-product .tg-badge--preorder{border:1px solid #C4161C; color:#C4161C}
.tg-product .tg-badge--release{border:1px solid #2563A6; background:#2563A6; color:#fff}

/* Titolo */
.tg-product .elementor-widget-woocommerce-product-title{margin-bottom:12px !important}
.tg-product .product_title{
  font:600 44px/1.1 'Oswald',sans-serif !important;
  letter-spacing:.01em; color:#1D1D1F !important; margin:0 !important;
}

/* Prezzo */
.tg-product .elementor-widget-woocommerce-product-price{margin-bottom:16px !important}
.tg-product .elementor-widget-woocommerce-product-price .price{
  font:600 32px/1.2 'Oswald',sans-serif !important;
  color:#1D1D1F !important; margin:0 !important;
}
.tg-product .price del{font-size:20px;font-weight:400;color:#6B6B70;margin-right:8px}
.tg-product .price ins{text-decoration:none;color:#C4161C}

/* Prezzo VIP (snippet "Tesla Games – Sconto VIP automatico"):
   prezzo pieno barrato, badge -15%, prezzo VIP e nota piccola sotto */
.tg-product .tg-vip-badge{
  display:inline-block; vertical-align:middle; position:relative; top:-3px;
  margin:0 4px; padding:4px 8px; border-radius:6px;
  background:#C4161C; color:#fff;
  font:600 13px/1 'Inter',sans-serif; letter-spacing:.02em;
}
.tg-product .tg-vip-note{
  display:block; margin-top:8px;
  font:500 12.5px/1.4 'Inter',sans-serif !important; color:#C4161C !important;
}
.tg-product .tg-vip-note::before{content:"★ "}
.tg-product .tg-vip-note.is-used{color:#6B6B70 !important}
.tg-product .tg-vip-note.is-used::before{content:""}

/* Prezzi rivenditore (snippet "Tesla Games – Prezzi rivenditore") */
.tg-b2b-vat{font:500 13px/1 'Inter',sans-serif !important; color:#6B6B70 !important; letter-spacing:0}
.tg-product .tg-b2b-note{color:#6B6B70 !important}
.tg-product .tg-b2b-note::before{content:""}
.tg-product .tg-b2b-note .woocommerce-Price-amount{font-weight:600; color:#1D1D1F}

/* Promo omaggio con il gioco (snippet "Tesla Games – Promo omaggio con il gioco"):
   riquadro ambra/oro sotto il prezzo, testo a sinistra e pulsante a destra */
.tg-product .tg-bundle-box{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin-top:14px; padding:10px 10px 10px 14px;
  background:#FFF6E3; border:1px solid #F1DDAE; border-radius:10px;
}
.tg-product .tg-bundle-text{
  display:flex; align-items:center; gap:8px;
  font:400 13.5px/1.4 'Inter',sans-serif !important; color:#5A3A0A !important;
}
.tg-product .tg-bundle-text::before{
  content:""; flex:none; width:18px; height:18px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A15C00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M5 12v9h14v-9'/%3E%3Cpath d='M12 8S10.5 3 8 3a2.5 2.5 0 0 0 0 5M12 8s1.5-5 4-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tg-product .tg-bundle-text strong{font-weight:600; color:#A15C00}
/* Pulsante ambra (aggiunge la promo senza ricaricare / porta al gioco) */
html body .tg-product.tg-product .tg-bundle-box a.tg-bundle-btn{
  flex:none; display:inline-flex !important; align-items:center; position:static !important;
  width:auto !important; height:34px !important; min-height:0 !important;
  padding:0 14px !important; margin:0 !important;
  background:#B8740A !important; border:0 !important; border-radius:8px !important; box-shadow:none !important;
  font:600 13px/1 'Inter',sans-serif !important; color:#fff !important;
  text-decoration:none !important; text-indent:0 !important; overflow:visible !important; white-space:nowrap;
  transition:background .15s;
}
html body .tg-product.tg-product .tg-bundle-box a.tg-bundle-btn:hover{background:#9A5F05 !important}
html body .tg-product.tg-product .tg-bundle-box a.tg-bundle-btn::before,
html body .tg-product.tg-product .tg-bundle-box a.tg-bundle-btn::after,
html body .tg-product.tg-product .tg-bundle-box a.tg-bundle-btn img{display:none !important}
html body .tg-product.tg-product .tg-bundle-box a.tg-bundle-btn.loading{opacity:.6 !important}
html body .tg-product.tg-product .tg-bundle-box a.tg-bundle-btn.added{font-size:0 !important; pointer-events:none; background:#9A5F05 !important}
html body .tg-product.tg-product .tg-bundle-box a.tg-bundle-btn.added::after{
  content:"Aggiunta ✓"; display:inline !important; font:600 13px/1 'Inter',sans-serif; color:#fff;
}
.tg-product .tg-bundle-box .added_to_cart{display:none !important}

/* Descrizione breve */
.tg-product .tg-lead{margin-bottom:20px !important}
.tg-lead, .tg-lead p{
  font:400 15px/1.6 'Inter',sans-serif !important; color:#6B6B70 !important;
}
.tg-lead p{margin:0 0 12px !important}
.tg-lead p:last-child{margin:0 !important}

/* Disponibilità */
.tg-product .elementor-widget-woocommerce-product-add-to-cart .stock{
  display:inline-flex !important; align-items:center; gap:7px;
  font:500 13px/1.4 'Inter',sans-serif !important;
  color:#2E7D32 !important; margin:0 0 14px !important;
}
.tg-product .elementor-widget-woocommerce-product-add-to-cart .stock::before{
  content:""; width:8px; height:8px; border-radius:50%; background:currentColor;
}
.tg-product .elementor-widget-woocommerce-product-add-to-cart .stock.out-of-stock{color:#C4161C !important}

/* Quantità + Aggiungi al carrello */
.tg-product form.cart,
.tg-product .e-atc-qty-button-holder{
  display:flex !important; gap:12px; align-items:stretch; width:100%; margin:0 !important;
}
.tg-product form.cart::before,
.tg-product form.cart::after{display:none !important}
/* Quantità: riquadro con − numero + (i pulsanti li aggiunge lo snippet PHP) */
.tg-product form.cart .quantity{
  display:flex !important; align-items:stretch;
  box-sizing:border-box; height:52px; margin:0 !important;
  border:1px solid #E7E4DF; border-radius:10px; overflow:hidden;
  background:#fff;
}
/* Prodotti venduti singolarmente: niente riquadro */
.tg-product form.cart .quantity:has(input[type="hidden"]){display:none !important}
.tg-product form.cart .qty{
  box-sizing:border-box;
  width:44px !important; height:100% !important;
  padding:0 !important; margin:0 !important;
  border:0 !important; border-radius:0 !important; box-shadow:none !important;
  background:transparent !important; color:#1D1D1F !important;
  font:600 15px 'Inter',sans-serif !important; text-align:center;
  -moz-appearance:textfield; appearance:textfield;
}
.tg-product form.cart .qty::-webkit-outer-spin-button,
.tg-product form.cart .qty::-webkit-inner-spin-button{-webkit-appearance:none; margin:0}
.tg-product form.cart .qty:focus{outline:none}
.tg-product form.cart .quantity:focus-within{border-color:#C4161C}
.tg-product .tg-qty-btn{
  width:42px; flex:none;
  padding:0 !important; margin:0 !important;
  border:0 !important; border-radius:0 !important; box-shadow:none !important;
  background:#fff !important; color:#1D1D1F !important;
  font:400 18px/1 'Inter',sans-serif !important;
  cursor:pointer; transition:background .15s;
}
.tg-product .tg-qty-btn:hover{background:#F7F5F2 !important}
.tg-product .single_add_to_cart_button{
  flex:1; display:inline-flex !important; align-items:center; justify-content:center; gap:10px;
  height:52px !important; padding:0 26px !important; margin:0 !important;
  border:0 !important; border-radius:10px !important;
  background:#C4161C !important; color:#fff !important;
  font:600 15px 'Inter',sans-serif !important; text-transform:none !important;
  transition:background .15s;
}
.tg-product .single_add_to_cart_button::before{
  content:""; width:20px; height:20px; flex:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11h11L21 7H6.2'/%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tg-product .single_add_to_cart_button:hover{background:#9E1015 !important}

/* Prodotto non acquistabile: pulsante grigio "Non disponibile"
   (snippet "Tesla Games – Pulsante non disponibile") */
.tg-product .tg-unavailable{display:flex; flex-direction:column; align-items:stretch}
.tg-product .tg-unavailable .stock{margin:0 0 14px !important}
.tg-product .tg-unavailable-btn{
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; height:52px; padding:0 26px;
  border:0; border-radius:10px;
  background:#E7E4DF; color:#6B6B70;
  font:600 15px 'Inter',sans-serif; cursor:not-allowed;
}
.tg-product .tg-unavailable-btn::before{
  content:""; width:18px; height:18px; flex:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B70' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M5.6 5.6l12.8 12.8'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Autori / Illustratori / Carte
   Ogni Editor contiene SOLO il valore (es. "Tomáš Holek"):
   l'etichetta a sinistra la scrive il CSS in base alla classe
   (tg-spec + tg-autori / tg-illustratori / tg-carte) */
.tg-product .elementor-widget:not(.tg-spec) + .tg-spec{margin-top:28px !important}
.tg-product .tg-spec .elementor-widget-container{
  display:flex; justify-content:space-between; align-items:baseline; gap:16px;
  padding:12px 0; border-bottom:1px solid #E7E4DF;
  font:500 14px/1.4 'Inter',sans-serif !important; color:#1D1D1F !important;
  text-align:right;
}
.tg-product .elementor-widget:not(.tg-spec) + .tg-spec .elementor-widget-container{border-top:1px solid #E7E4DF}
.tg-product .tg-spec .elementor-widget-container::before{
  flex:none; font-weight:400; color:#6B6B70; text-align:left;
}
.tg-product .tg-autori .elementor-widget-container::before{content:"Autori"}
.tg-product .tg-illustratori .elementor-widget-container::before{content:"Illustratori"}
.tg-product .tg-carte .elementor-widget-container::before{content:"Carte"}
.tg-product .tg-lingua .elementor-widget-container::before{content:"Lingua"}
.tg-product .tg-giocatori .elementor-widget-container::before{content:"Giocatori"}
.tg-product .tg-durata .elementor-widget-container::before{content:"Durata"}
.tg-product .tg-eta .elementor-widget-container::before{content:"Età"}
.tg-product .tg-editore .elementor-widget-container::before{content:"Editore"}


.tg-product .tg-spec p{margin:0 !important; font:inherit !important; color:inherit !important}

/* Box bustine (shortcode [tg_bustine]) — stessi prodotti della sezione sotto */
.tg-product .tg-bustine{
  margin-top:22px; padding:14px 16px;
  background:#FBEAEA; border:1px dashed #E3B5B7; border-radius:12px;
}
.tg-product .tg-bustine-label{
  display:block; margin:0 0 10px;
  font:600 11px/1.4 'Inter',sans-serif;
  text-transform:uppercase; letter-spacing:.08em; color:#C4161C;
}
.tg-product .tg-bustina{display:flex; align-items:center; gap:14px}
.tg-product .tg-bustina + .tg-bustina{margin-top:10px; padding-top:10px; border-top:1px solid #F0CFD1}
.tg-product .tg-bustina-img{flex:none; display:block; width:44px}
.tg-product .tg-bustina-img img{
  display:block; width:44px !important; height:auto !important;
  margin:0 !important; border-radius:4px !important;
  mix-blend-mode:multiply;
}
.tg-product .tg-bustina-name{
  flex:1; min-width:0;
  font:600 14px/1.35 'Inter',sans-serif !important;
  color:#1D1D1F !important; text-decoration:none !important;
  transition:color .15s;
}
.tg-product .tg-bustina-name:hover{color:#C4161C !important}
.tg-product .tg-bustina-price{
  flex:none;
  font:600 18px/1 'Oswald',sans-serif !important; color:#1D1D1F !important;
}
.tg-product .tg-bustina-price del{font-size:13px; font-weight:400; color:#6B6B70; margin-right:4px}
.tg-product .tg-bustina-price ins{text-decoration:none; color:#C4161C}
html body .tg-product.tg-product .tg-bustina a.tg-bustina-add{
  flex:none; display:block !important;
  width:38px !important; height:38px !important; min-height:0 !important;
  padding:0 !important; margin:0 !important;
  border:0 !important; border-radius:10px !important; box-shadow:none !important;
  background-color:#C4161C !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11h11L21 7H6.2'/%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3C/svg%3E") !important;
  background-position:center !important; background-size:18px 18px !important; background-repeat:no-repeat !important;
  font-size:0 !important; text-indent:-9999px !important; overflow:hidden !important;
  transition:background-color .15s, opacity .15s;
}
html body .tg-product.tg-product .tg-bustina a.tg-bustina-add:hover{background-color:#9E1015 !important}
html body .tg-product.tg-product .tg-bustina a.tg-bustina-add.loading{opacity:.6 !important}
html body .tg-product.tg-product .tg-bustina a.tg-bustina-add.added{
  background-color:#2E7D32 !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") !important;
}
html body .tg-product.tg-product .tg-bustina a.tg-bustina-add::before,
html body .tg-product.tg-product .tg-bustina a.tg-bustina-add::after{display:none !important}
.tg-product .tg-bustine .added_to_cart{display:none !important}

/* ---------- Sezioni sotto ---------- */
.tg-section{padding-top:48px !important}
.tg-section .elementor-widget{margin-bottom:0 !important}

/* Divisore = linea sottile tra le sezioni */
.tg-section .elementor-widget-divider{margin:0 0 48px !important}
.tg-section .elementor-divider{padding:0 !important}
.tg-section .elementor-divider-separator{
  width:100% !important;
  border:0 !important; border-top:1px solid #E7E4DF !important;
}

/* Titoli con barretta rossa */
.tg-section .elementor-widget-heading{margin-bottom:22px !important}
.tg-section .elementor-widget-heading .elementor-heading-title{
  display:flex; align-items:center; gap:12px;
  font:600 26px/1.2 'Oswald',sans-serif !important;
  text-transform:uppercase; letter-spacing:.01em;
  color:#1D1D1F !important; margin:0 !important;
}
.tg-section .elementor-widget-heading .elementor-heading-title::before{
  content:""; flex:none; width:6px; height:24px; border-radius:2px; background:#C4161C;
}

/* Descrizione lunga (widget "Contenuto articolo" o Editor di testo):
   - con 2 o più paragrafi → due colonne, paragrafi mai spezzati
   - con un paragrafo solo → una colonna, larga al massimo 760px */
.tg-section .elementor-widget-woocommerce-product-content,
.tg-section .elementor-widget-theme-post-content,
.tg-section .elementor-widget-text-editor{
  max-width:760px;
  font:400 15px/1.6 'Inter',sans-serif; color:#3B3B3F;
}
.tg-section .elementor-widget-woocommerce-product-content:has(p + p),
.tg-section .elementor-widget-theme-post-content:has(p + p),
.tg-section .elementor-widget-text-editor:has(p + p){
  max-width:none;
  columns:2; column-gap:48px;
}
.tg-section .elementor-widget-woocommerce-product-content p,
.tg-section .elementor-widget-theme-post-content p,
.tg-section .elementor-widget-text-editor p{margin:0 0 16px; break-inside:avoid}
.tg-section .elementor-widget-woocommerce-product-content p:last-child,
.tg-section .elementor-widget-theme-post-content p:last-child,
.tg-section .elementor-widget-text-editor p:last-child{margin-bottom:0}

/* Photo gallery */
.tg-section .e-gallery-item{border-radius:12px; overflow:hidden}
.tg-section .e-gallery-image{transition:transform .3s}
.tg-section .e-gallery-item:hover .e-gallery-image{transform:scale(1.04)}

/* ---------- Video: video a sinistra, playlist a destra ---------- */
.tg-section .e-tabs-main-area{
  display:flex !important; flex-direction:row !important;
  align-items:stretch; gap:18px; border:0 !important;
}
.tg-section .e-tabs-content-wrapper{
  order:1 !important; flex:2 1 0 !important;
  border-radius:12px; overflow:hidden; background:#000; border:0 !important;
}
.tg-section .e-tabs-wrapper{
  order:2 !important; flex:1 1 0 !important;
  display:flex; flex-direction:column;
  background:#F7F5F2 !important; border-radius:12px;
  padding:8px !important; border:0 !important;
}
.tg-section .e-tabs-items-wrapper,
.tg-section .e-tabs-items{background:transparent !important; border:0 !important; box-shadow:none !important}

/* Intestazione "Playlist · 4 video" sulla stessa riga */
.tg-section .e-tabs-header{
  display:flex !important; flex-direction:row !important;
  justify-content:space-between !important; align-items:center !important;
  padding:10px 12px !important; background:transparent !important; border:0 !important;
}
.tg-section .e-tabs-header > *{
  align-self:center !important;
  padding:0 !important; margin:0 !important; position:static !important;
  line-height:1.4 !important;
}
.tg-section .e-tabs-title{font:600 13px 'Inter',sans-serif !important; color:#1D1D1F !important}
.tg-section .e-tabs-videos-count{font:400 13px 'Inter',sans-serif !important; color:#6B6B70 !important}

/* Voci della playlist, numerate */
.tg-section .e-tabs-items{counter-reset:tgvid}
.tg-section .e-tab-title{
  counter-increment:tgvid;
  display:flex !important; align-items:center; gap:12px;
  height:auto !important; min-height:0 !important;
  padding:10px 12px !important; margin:0 0 2px !important;
  border:0 !important; border-radius:8px;
  background:transparent !important; cursor:pointer; transition:background .15s;
}
.tg-section .e-tab-title::before{
  content:counter(tgvid); flex:none;
  width:26px; height:26px; border-radius:50%;
  display:grid; place-items:center;
  background:#fff; border:1px solid #E7E4DF;
  font:600 12px 'Inter',sans-serif; color:#1D1D1F;
}
/* Nasconde le voci vuote (campi ACF non compilati) */
.tg-section .e-tab-title:has(.e-tab-title-text:empty),
.tg-section .e-tab-title:has(.e-tab-title-text > a:empty){display:none !important}
.tg-section .e-tab-title:hover{background:#fff !important}
.tg-section .e-tab-title.e-active{background:#fff !important; box-shadow:inset 3px 0 0 #C4161C}
.tg-section .e-tab-title.e-active::before{background:#C4161C; border-color:#C4161C; color:#fff}
.tg-section .e-tab-thumbnail,
.tg-section .e-tab-title img{display:none !important}
.tg-section .e-tab-title-text,
.tg-section .e-tab-title-text a{
  flex:1; min-width:0; margin:0 !important;
  font:400 13px/1.35 'Inter',sans-serif !important;
  color:#1D1D1F !important; text-decoration:none !important;
  white-space:normal !important;
  display:-webkit-box !important; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.tg-section .e-tab-duration{
  flex:none; margin:0 !important; position:static !important;
  font:400 13px 'Inter',sans-serif !important; color:#6B6B70 !important;
  font-variant-numeric:tabular-nums; background:transparent !important;
}

/* ---------- Card prodotto (Upsell + Shortcode bustine) ---------- */
.tg-section .up-sells > h2{display:none !important} /* il titolo c'è già nel widget Titolo */
.tg-section ul.products{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:20px !important; margin:0 !important; padding:0 !important;
}
.tg-section ul.products::before,
.tg-section ul.products::after{display:none !important}
.tg-section ul.products li.product{
  position:relative; display:flex !important; flex-direction:column;
  width:auto !important; float:none !important; margin:0 !important;
  padding:0 0 16px !important;
  background:#fff; border:1px solid #E7E4DF; border-radius:12px; overflow:hidden;
  text-align:left !important;
  transition:box-shadow .2s, transform .2s;
}
.tg-section ul.products li.product *{text-align:left !important}
.tg-section ul.products li.product::before{
  content:""; position:absolute; top:0; left:0;
  width:100%; aspect-ratio:1/1; background:#F7F5F2;
}
.tg-section ul.products li.product:hover{
  box-shadow:0 10px 30px rgba(0,0,0,.08); transform:translateY(-2px);
}
.tg-section li.product a.woocommerce-LoopProduct-link{
  position:relative; display:flex; flex-direction:column; flex:1;
  text-decoration:none; color:#1D1D1F;
}
.tg-section li.product a img{
  display:block; box-sizing:border-box;
  width:100% !important; height:auto !important; aspect-ratio:1/1;
  object-fit:contain; padding:9%; mix-blend-mode:multiply;
  margin:0 0 14px !important; border-radius:0 !important;
}
/* Categoria sopra il titolo (aggiunta dallo snippet PHP) */
.tg-section li.product .tg-tag{
  display:block; padding:0 16px; margin:0 0 4px;
  font:600 11px/1.4 'Inter',sans-serif;
  text-transform:uppercase; letter-spacing:.08em;
  color:#C4161C;
}
.tg-section li.product .woocommerce-loop-product__title{
  font:600 15px/1.4 'Inter',sans-serif !important; color:#1D1D1F !important;
  padding:0 16px !important; margin:0 0 10px !important; flex:1;
}
.tg-section li.product .price{
  display:flex !important; flex-direction:column; justify-content:center; align-items:flex-start; gap:2px;
  min-height:42px; margin:auto 0 0 !important; padding:0 66px 0 16px;
  font:600 20px/1.1 'Oswald',sans-serif !important; color:#1D1D1F !important;
}
/* Gli importi prendono il colore del contenitore (il tema li colora di azzurro) */
.tg-section li.product .price .woocommerce-Price-amount,
.tg-section li.product .price bdi{color:inherit !important}
/* Prezzo scontato: vecchio piccolo e barrato sopra, nuovo rosso sotto */
.tg-section li.product .price del{
  display:block; opacity:1;
  font:400 13px/1.2 'Inter',sans-serif !important; color:#9A9A9F !important;
}
.tg-section li.product .price ins{
  display:block; text-decoration:none;
  font:600 20px/1.1 'Oswald',sans-serif !important; color:#C4161C !important;
}
.tg-section li.product .price .tg-b2b-vat{
  font:500 12px/1 'Inter',sans-serif !important; color:#6B6B70 !important; margin-left:2px;
}

/* Tasto carrello: quadrato rosso con icona, in basso a destra.
   Selettore "rinforzato" per vincere sulla grafica del tema. */
html body .tg-section.tg-section ul.products li.product a.button{
  display:block !important; visibility:visible !important; opacity:1 !important;
  position:absolute !important; z-index:3 !important;
  top:auto !important; left:auto !important; right:16px !important; bottom:16px !important;
  transform:none !important;
  width:42px !important; height:42px !important; min-width:0 !important; min-height:0 !important;
  padding:0 !important; margin:0 !important;
  border:0 !important; border-radius:10px !important; box-shadow:none !important;
  background-color:#C4161C !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11h11L21 7H6.2'/%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3C/svg%3E") !important;
  background-position:center !important;
  background-size:20px 20px !important;
  background-repeat:no-repeat !important;
  font-size:0 !important; line-height:0 !important; text-indent:-9999px !important;
  color:transparent !important; overflow:hidden !important;
  transition:background-color .15s;
}
html body .tg-section.tg-section ul.products li.product a.button:hover{background-color:#9E1015 !important}
html body .tg-section.tg-section ul.products li.product a.button.loading{opacity:.6 !important}
html body .tg-section.tg-section ul.products li.product a.button img,
html body .tg-section.tg-section ul.products li.product a.button::before,
html body .tg-section.tg-section ul.products li.product a.button::after{display:none !important}
.tg-section li.product .added_to_cart{display:none !important}

/* Badge "In offerta" */
.tg-section li.product .onsale{
  position:absolute; top:12px; left:12px; right:auto; z-index:2;
  min-width:0; min-height:0; margin:0; padding:4px 10px;
  background:#C4161C; color:#fff; border-radius:6px;
  font:600 11px/1.4 'Inter',sans-serif; text-transform:uppercase; letter-spacing:.08em;
}

/* Prodotti esauriti (correlati e bustine): etichetta, foto sbiadita, tasto grigio con freccia */
.tg-section ul.products li.product.outofstock a img{opacity:.55}
.tg-section ul.products li.product.outofstock::after{
  content:"Esaurito";
  position:absolute; top:12px; left:12px; z-index:2;
  padding:4px 10px; border-radius:6px;
  background:#1D1D1F; color:#fff;
  font:600 11px/1.4 'Inter',sans-serif; text-transform:uppercase; letter-spacing:.08em;
}
html body .tg-section.tg-section ul.products li.product.outofstock a.button{
  background-color:#E7E4DF !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1D1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") !important;
  background-size:18px 18px !important;
}
html body .tg-section.tg-section ul.products li.product.outofstock a.button:hover{background-color:#D6D2CB !important}

/* ---------- Preordini (tag "preordine" + snippet "Tesla Games – Preordini") ---------- */
/* Etichetta accanto alla categoria, sopra il titolo */

/* Card (correlati e bustine) */
/* Se è esaurito vince il badge ESAURITO */
.tg-section ul.products li.product.product_tag-preordine:not(.outofstock)::after{
  content:"Preordine";
  position:absolute; top:12px; right:12px; z-index:2;
  padding:4px 10px; border-radius:6px;
  border:1px solid #C4161C; background:#fff; color:#C4161C;
  font:600 11px/1.4 'Inter',sans-serif; text-transform:uppercase; letter-spacing:.08em;
}

/* ---------- Informazioni mancanti: nascondi widget e sezioni vuote ----------
   Lo snippet "Tesla Games – Nascondi sezioni vuote" aggiunge .tg-empty ai widget vuoti */

/* Parte alta: righe Autori/Illustratori/Carte, descrizione breve, box bustine… */
.tg-product .elementor-widget:has(.tg-empty){display:none !important}

/* Sezioni sotto: si nasconde tutta la sezione (linea + titolo + contenuto) */
.tg-section:has(
  .elementor-widget-text-editor .tg-empty,
  .elementor-widget-woocommerce-product-content .tg-empty,
  .elementor-widget-theme-post-content .tg-empty,
  .elementor-widget-gallery .tg-empty,
  .elementor-widget-image-gallery .tg-empty,
  .elementor-widget-shortcode .tg-empty,
  .elementor-widget-woocommerce-product-upsell .tg-empty
){display:none !important}

/* Sezione rimasta con solo linea e titolo (Elementor non ha stampato il contenuto) */
.tg-section:not(:has(.elementor-widget:not(.elementor-widget-heading):not(.elementor-widget-divider))){display:none !important}

/* Anche senza snippet: correlati e bustine senza prodotti, galleria senza foto */
.tg-section:has(.elementor-widget-woocommerce-product-upsell):not(:has(li.product)),
.tg-section:has(.elementor-widget-shortcode):not(:has(li.product)),
.tg-section:has(.elementor-widget-gallery):not(:has(.e-gallery-item)){display:none !important}

/* Video: nessun video con un link (campi ACF youtube_1…4 vuoti) */
.tg-section:has(.elementor-widget-video-playlist):not(:has(.e-tab-content:not([data-video-url=""]))){display:none !important}

/* ---------- Tablet ---------- */
@media (max-width:1024px){
  .tg-section ul.products{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}

/* ---------- Telefono ---------- */
@media (max-width:767px){
  .tg-product .elementor-column:first-child > .elementor-widget-wrap{padding-right:10px !important}
  .tg-product .elementor-widget-theme-post-featured-image{margin-bottom:28px !important}
  .tg-product .product_title{font-size:34px !important}
  .tg-product .tg-bundle-box{flex-wrap:wrap}
  .tg-section .elementor-widget-woocommerce-product-content:has(p + p),
  .tg-section .elementor-widget-theme-post-content:has(p + p),
  .tg-section .elementor-widget-text-editor:has(p + p){columns:1}
  .tg-section .e-tabs-main-area{flex-direction:column !important}
  .tg-section .e-tabs-wrapper,
  .tg-section .e-tabs-content-wrapper{flex:none !important; width:100%}
}/* End custom CSS */