{"product_id":"xiaomi-redmi-15c","title":"XIAOMI REDMI 15C","description":"\u003c!-- ╔══════════════════════════════════════════════════════════════════════╗ --\u003e\n\u003c!-- ║   BLOCCO CONFIGURAZIONE TIMELINE PRODOTTO – MODIFICA SOLO QUESTO     ║ --\u003e\n\u003c!-- ╚══════════════════════════════════════════════════════════════════════╝ --\u003e\n\u003cscript\u003e\n\/\/ 🔧 Specifiche del prodotto (modifica liberamente)\nconst specs = [\n  { titolo: \"Display\", descrizione: \"6,9″ IPS LCD · Risoluzione 1600 × 720 px · Refresh rate fino a 120 Hz · Touch sampling fino a 240 Hz\" },\n  { titolo: \"Processore\", descrizione: \"MediaTek Helio G81-Ultra (2×Cortex-A75 a 2,0 GHz + 6×Cortex-A55) · GPU Mali-G52 MC2\" },\n  { titolo: \"RAM \/ Archiviazione\", descrizione: \"Varianti: 4 GB \/ 6 GB \/ 8 GB RAM · Storage: 128 GB \/ 256 GB · Slot microSD fino a 1 TB\" },\n  { titolo: \"Fotocamere posteriori\", descrizione: \"50 MP principale ƒ\/1.8 · Video fino a 1080p@30fps\" },\n  { titolo: \"Fotocamera anteriore\", descrizione: \"8 MP ƒ\/2.0 · Video 1080p@30fps\" },\n  { titolo: \"Batteria \/ Ricarica\", descrizione: \"≈ 6000 mAh (typ) · Ricarica rapida 33 W via USB-C\" },\n  { titolo: \"Sistema operativo \/ Aggiornamenti\", descrizione: \"Android 15 con HyperOS · Supporto software ottimizzato\" },\n  { titolo: \"Connettività \/ Reti\", descrizione: \"4G LTE · Wi-Fi dual-band · Bluetooth 5.x · USB-C · NFC (dipende mercato) · Dual SIM\" },\n  { titolo: \"Sicurezza \/ Materiali\", descrizione: \"Lettore impronta laterale · Scocca ~205 g · Spessore ~8,0 mm · Certificazione IP64 (resistenza acqua\/polvere)\" },\n  { titolo: \"Dimensioni \/ Peso\", descrizione: \"≈ 171,56 × 79,47 × 7,99 mm · Peso ≈ 205 g\" },\n  { titolo: \"Colori disponibili\", descrizione: \"Moonlight Blue, Midnight Black, Mint Green, Twilight Orange\" },\n  { titolo: \"Contenuto confezione\", descrizione: \"Smartphone Redmi 15C · Cavo USB-C · Documentazione · Spilla SIM\" },\n  { titolo: \"Sintesi\", descrizione: \"Redmi 15C offre un display ampio 6,9″ con refresh 120Hz, batteria capiente da 6000 mAh, fotocamera 50MP e storage abbondante in un pacchetto economico e moderno.\" }\n];\n\u003c\/script\u003e\n\n\u003c!-- ╔══════════════════════════════════════════════════════════════════════╗ --\u003e\n\u003c!-- ║   FINE BLOCCO CONFIGURAZIONE                                         ║ --\u003e\n\u003c!-- ╚══════════════════════════════════════════════════════════════════════╝ --\u003e\n\n\u003cstyle\u003e\n:root {\n  --accent: #4285f4;\n  --text: #111;\n}\n\n\/* ═══ STILI BASE ═════════════════════════════════════════════════════════ *\/\nbody {\n  margin: 0;\n  font-family: \"Segoe UI\", Roboto, system-ui, sans-serif;\n}\n\n\/* ═══ CONTENITORE TIMELINE ════════════════════════════════════════════════ *\/\n.product-timeline {\n  position: relative;\n  max-width: 700px;\n  margin: 80px auto;\n  padding: 30px;\n  color: var(--text);\n}\n\n\/* ═══ LINEA VERTICALE ═════════════════════════════════════════════════════ *\/\n.product-timeline::before {\n  content: \"\";\n  position: absolute;\n  left: 30px;\n  top: 0;\n  width: 3px;\n  height: 100%;\n  background: linear-gradient(to bottom, rgba(66,133,244,0.5), rgba(66,133,244,0.1));\n  box-shadow: 0 0 12px rgba(66,133,244,0.4);\n}\n\n\/* ═══ TITOLO PRINCIPALE ═══════════════════════════════════════════════════ *\/\n.product-timeline h1 {\n  text-align: center;\n  font-size: 2.8rem;\n  font-weight: 800;\n  color: var(--accent);\n  margin-bottom: 60px;\n}\n\n\/* ═══ ELEMENTI TIMELINE ═══════════════════════════════════════════════════ *\/\n.timeline-item {\n  position: relative;\n  padding-left: 70px;\n  margin-bottom: 45px;\n  opacity: 0;\n  transform: translateY(40px);\n  transition: all 0.8s ease;\n}\n.timeline-item.visible {\n  opacity: 1;\n  transform: translateY(0);\n}\n.timeline-item::before {\n  content: \"\";\n  position: absolute;\n  left: 22px;\n  top: 28px;\n  width: 16px;\n  height: 16px;\n  background: var(--accent);\n  border-radius: 50%;\n  box-shadow: 0 0 14px rgba(66,133,244,0.6);\n}\n\n\/* ═══ CARD INTERNA ════════════════════════════════════════════════════════ *\/\n.timeline-card {\n  padding: 20px 26px;\n  border-left: 3px solid rgba(66,133,244,0.2);\n  border-radius: 10px;\n  transition: transform 0.3s ease, box-shadow 0.3s ease;\n}\n.timeline-card:hover {\n  transform: translateY(-5px);\n  box-shadow: 0 8px 20px rgba(66,133,244,0.1);\n}\n.timeline-card h3 {\n  color: var(--accent);\n  margin: 0 0 8px 0;\n  font-size: 1.6rem;\n  font-weight: 700;\n}\n.timeline-card p {\n  margin: 0;\n  font-size: 1.2rem;\n  color: #222;\n  line-height: 1.6;\n}\n\n\/* ═══ TASTO ACQUISTA ══════════════════════════════════════════════════════ *\/\n.buy-button {\n  display: inline-block;\n  margin-top: 30px;\n  padding: 16px 32px;\n  background: var(--accent);\n  color: #fff;\n  font-weight: 700;\n  font-size: 1.3rem;\n  border: none;\n  border-radius: 8px;\n  cursor: pointer;\n  text-decoration: none;\n  transition: background 0.3s ease, transform 0.2s ease;\n}\n.buy-button:hover {\n  background: #2b6ce5;\n  transform: scale(1.04);\n}\n.buy-button.disabled {\n  background: #aaa;\n  cursor: not-allowed;\n  transform: none;\n}\n\n\/* ═══ RESPONSIVE ══════════════════════════════════════════════════════════ *\/\n@media (max-width: 600px) {\n  .product-timeline::before { left: 20px; }\n  .timeline-item { padding-left: 60px; }\n  .timeline-item::before { left: 14px; }\n  .timeline-card h3 { font-size: 1.4rem; }\n  .timeline-card p { font-size: 1.05rem; }\n  .product-timeline h1 { font-size: 2rem; }\n  .buy-button { font-size: 1.1rem; padding: 14px 26px; }\n}\n\u003c\/style\u003e\n\n\u003csection class=\"product-timeline\"\u003e\n  \u003ch1 id=\"product-title\"\u003e\u003c\/h1\u003e\n  \u003cdiv id=\"timeline\"\u003e\u003c\/div\u003e\n  \u003c!-- Bottone finale sempre visibile --\u003e\n  \u003cdiv style=\"text-align:center\"\u003e\n    \u003cbutton class=\"buy-button\" id=\"checkoutButton\"\u003eVerifica disponibilità...\u003c\/button\u003e\n  \u003c\/div\u003e\n\u003c\/section\u003e\n\n\u003cscript\u003e\n\/* ═══ LOGICA JAVASCRIPT ═══════════════════════════════════════════════════ *\/\n\n\/* — Titolo automatico del prodotto — *\/\nconst productTitle =\n  document.querySelector('h1.product__title, h1.product-title, h1')?.textContent?.trim() ||\n  \"Prodotto Shopify\";\ndocument.getElementById(\"product-title\").textContent = productTitle;\n\n\/* — Genera la timeline dinamica — *\/\nconst container = document.getElementById(\"timeline\");\nspecs.forEach((item) =\u003e {\n  const el = document.createElement(\"div\");\n  el.className = \"timeline-item\";\n  el.innerHTML = `\n    \u003cdiv class=\"timeline-card\"\u003e\n      \u003ch3\u003e${item.titolo}\u003c\/h3\u003e\n      \u003cp\u003e${item.descrizione}\u003c\/p\u003e\n    \u003c\/div\u003e`;\n  container.appendChild(el);\n});\n\n\/* — Effetto di comparsa su scroll — *\/\nconst items = document.querySelectorAll(\".timeline-item\");\nconst observer = new IntersectionObserver((entries) =\u003e {\n  entries.forEach((entry) =\u003e {\n    if (entry.isIntersecting) entry.target.classList.add(\"visible\");\n  });\n});\nitems.forEach((el) =\u003e observer.observe(el));\n\n\/* — Pulsante checkout con disponibilità — *\/\ndocument.addEventListener(\"DOMContentLoaded\", () =\u003e {\n  const btn = document.getElementById(\"checkoutButton\");\n  const shopDomain = window.Shopify?.shop || window.location.hostname;\n  const variant = window.meta?.product?.variants?.[0];\n\n  if (!variant) {\n    btn.textContent = \"Prodotto non disponibile\";\n    btn.classList.add(\"disabled\");\n    return;\n  }\n\n  if (variant.available) {\n    btn.textContent = \"Acquista ora 🛒\";\n    btn.addEventListener(\"click\", () =\u003e {\n      const checkoutUrl = `https:\/\/${shopDomain}\/cart\/${variant.id}:1`;\n      window.location.href = checkoutUrl;\n    });\n  } else {\n    btn.textContent = \"Non disponibile\";\n    btn.classList.add(\"disabled\");\n  }\n});\n\u003c\/script\u003e\n","brand":"Centroriparo srl","offers":[{"title":"NERO \/ 4GB \/ 128GB","offer_id":51903792152904,"sku":null,"price":149.9,"currency_code":"EUR","in_stock":false},{"title":"NERO \/ 4GB \/ 256GB","offer_id":51903792185672,"sku":null,"price":169.9,"currency_code":"EUR","in_stock":false},{"title":"NERO \/ 8GB \/ 256GB","offer_id":51903792251208,"sku":null,"price":179.0,"currency_code":"EUR","in_stock":true},{"title":"BLU \/ 4GB \/ 128GB","offer_id":51903792283976,"sku":null,"price":149.9,"currency_code":"EUR","in_stock":false},{"title":"BLU \/ 8GB \/ 128GB","offer_id":51903792349512,"sku":null,"price":169.9,"currency_code":"EUR","in_stock":false},{"title":"BLU \/ 8GB \/ 256GB","offer_id":51903792382280,"sku":null,"price":179.0,"currency_code":"EUR","in_stock":true},{"title":"ARANCIONE \/ 4GB \/ 128GB","offer_id":51903792415048,"sku":null,"price":149.9,"currency_code":"EUR","in_stock":false},{"title":"ARANCIONE \/ 8GB \/ 128GB","offer_id":51903792480584,"sku":null,"price":169.9,"currency_code":"EUR","in_stock":false},{"title":"ARANCIONE \/ 8GB \/ 256GB","offer_id":51903792513352,"sku":null,"price":179.0,"currency_code":"EUR","in_stock":false},{"title":"MENTA \/ 4GB \/ 128GB","offer_id":51903792546120,"sku":null,"price":149.9,"currency_code":"EUR","in_stock":false},{"title":"MENTA \/ 8GB \/ 128GB","offer_id":51903792611656,"sku":null,"price":169.9,"currency_code":"EUR","in_stock":false},{"title":"MENTA \/ 8GB \/ 256GB","offer_id":51903792644424,"sku":null,"price":179.0,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0799\/6663\/4312\/files\/42444549_35.png?v=1761933415","url":"https:\/\/www.centroriparo.it\/products\/xiaomi-redmi-15c","provider":"Centroriparo srl","version":"1.0","type":"link"}