{"id":139,"date":"2025-08-14T11:01:32","date_gmt":"2025-08-14T09:01:32","guid":{"rendered":"https:\/\/www.tu-mi.it\/tblog\/?p=139"},"modified":"2025-08-14T11:18:13","modified_gmt":"2025-08-14T09:18:13","slug":"salento","status":"publish","type":"post","link":"https:\/\/www.tu-mi.it\/tblog\/index.php\/2025\/08\/14\/salento\/","title":{"rendered":"Salento"},"content":{"rendered":"\n<!-- ***** INIZIO SCRIPT HTML\/JS ***** -->\n<div id=\"video-bg\" style=\"position:fixed; top:0; left:0; width:100%; height:100%; overflow:hidden; z-index:-1;\">\n  <iframe id=\"yt-frame\"\n    frameborder=\"0\" allow=\"autoplay; fullscreen\"\n    style=\"position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);\"\n    sandbox=\"allow-scripts allow-same-origin allow-presentation\">\n  <\/iframe>\n<\/div>\n\n<div id=\"bg-fallback\" style=\"\n  background:#ffffff no-repeat center\/cover;\n  position:fixed; top:0; left:0; width:100%; height:100%; z-index:-2;\">\n<\/div>\n\n<script>\n  const defaultLink = 'https:\/\/www.a-mi.it\/';\n  const links = [\n    'https:\/\/www.fiat.it\/',\n    'https:\/\/www.lancia.it\/',\n    'https:\/\/www.alfaromeo.it\/',\n    'https:\/\/www.fiat.it\/',\n    'https:\/\/www.fiat.it\/',\n    'https:\/\/www.fiat.it\/',\n    'https:\/\/www.maserati.com\/',\n    'https:\/\/www.ferrari.com\/',\n    'https:\/\/www.lamborghini.com\/',\n    'https:\/\/www.pagani.com\/',\n    'https:\/\/drautomobiles.com\/'\n  ];\n\n  const defaultVideo = 'https:\/\/www.youtube.com\/embed\/gTEYwKoK89A?autoplay=1&mute=1&loop=1&playlist=gTEYwKoK89A&controls=0&showinfo=0&modestbranding=1';\n  const linksVideo = [\n    'https:\/\/www.youtube.com\/embed\/C8mKNT5D1c4?autoplay=1&mute=1&loop=1&si=s9vm84H3B5eqWETt&controls=0&showinfo=0&modestbranding=1',\n    'https:\/\/www.youtube.com\/embed\/bG9hcjG4TrA?autoplay=1&mute=1&loop=1&si=JJTp70DoFzTxySnS&controls=0&showinfo=0&modestbranding=1',\n    'https:\/\/www.youtube.com\/embed\/rBYchRm6k5w?autoplay=1&mute=1&loop=1&si=SehdgkSVSGpQIipc&controls=0&showinfo=0&modestbranding=1',\n    'https:\/\/www.youtube.com\/embed\/1YENhqACdO0?autoplay=1&mute=1&loop=1&si=si=eHeelqpSzYV2sNO9&controls=0&showinfo=0&modestbranding=1',\n    'https:\/\/www.youtube.com\/embed\/Bohr9gD0I8c?autoplay=1&mute=1&loop=1&si=si=m4UHVJUe-qmbibCS&controls=0&showinfo=0&modestbranding=1',\n    'https:\/\/www.youtube.com\/embed\/Kqjz3BDNNss?autoplay=1&mute=1&loop=1&si=si=0AhfAdnzH2M8JqAF&controls=0&showinfo=0&modestbranding=1',\n    'https:\/\/www.youtube.com\/embed\/Nj6LOv5HmhY?autoplay=1&mute=1&loop=1&si=si=vGB20hDFCAQp_Lf6&controls=0&showinfo=0&modestbranding=1',\n    'https:\/\/www.youtube.com\/embed\/ZSDsL25mLXc?autoplay=1&mute=1&loop=1&si=si=JJ-Sp5ChKXeLs0CD&controls=0&showinfo=0&modestbranding=1',\n    'https:\/\/www.youtube.com\/embed\/l0TLgCZAwns?autoplay=1&mute=1&loop=1&si=si=qrxRoeD39JQVmQF9&controls=0&showinfo=0&modestbranding=1',\n    'https:\/\/www.youtube.com\/embed\/SJKMZMw6N1Y?autoplay=1&mute=1&loop=1&si=si=CehfQppxwEutYCaF&controls=0&showinfo=0&modestbranding=1',\n    'https:\/\/www.youtube.com\/embed\/C_NVv0xNs3Q?autoplay=1&mute=1&loop=1&si=si=I4Em2pQpQuWpA8SI&controls=0&showinfo=0&modestbranding=1'\n  ];\n\n  \/\/ Scelta casuale\n  const index = Math.floor(Math.random() * links.length);\n  const chosenLink = links[index] || defaultLink;\n  const chosenVideo = linksVideo[index] || defaultVideo;\n\n  \/\/ Set src video\n  document.getElementById('yt-frame').src = chosenVideo;\n  \/\/ Set immagine fallback\n  document.getElementById('bg-fallback').style.backgroundImage =\n    `url('https:\/\/www.tu-mi.com\/ADV_BODY1\/${index}.jpg')`;\n\n  \/\/ Adatta iframe 16:9\n  function resizeVideo() {\n    const iframe = document.getElementById('yt-frame');\n    const vw = window.innerWidth;\n    const vh = window.innerHeight;\n    const aspect = 16 \/ 9;\n    let width, height;\n    if (vw \/ vh < aspect) {\n      height = vh;\n      width = vh * aspect;\n    } else {\n      width = vw;\n      height = vw \/ aspect;\n    }\n    iframe.style.width = width + 'px';\n    iframe.style.height = height + 'px';\n  }\n  window.addEventListener('load', resizeVideo);\n  window.addEventListener('resize', resizeVideo);\n\n  \/\/ Fallback se video non carica\n  document.getElementById('yt-frame').addEventListener('error', function() {\n    document.getElementById('video-bg').style.display = 'none';\n    document.getElementById('bg-fallback').style.zIndex = -1;\n  });\n\n  \/\/ Click sfondo = apri link\n  document.body.addEventListener('click', function(e) {\n    if (e.target.closest('a, button, input, select, [role=\"button\"], iframe')) return;\n    if (e.defaultPrevented) return;\n    window.open(chosenLink, '_blank', 'noopener');\n  });\n<\/script>\n<!-- ***** FINE SCRIPT HTML\/JS ***** -->\n\n\n\n\n#salento\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/www.tu-mi.it\/tblog\/wp-content\/uploads\/2025\/08\/puglia2settimana-261-1024x768.jpg\" alt=\"\" class=\"wp-image-140\" srcset=\"https:\/\/www.tu-mi.it\/tblog\/wp-content\/uploads\/2025\/08\/puglia2settimana-261-1024x768.jpg 1024w, https:\/\/www.tu-mi.it\/tblog\/wp-content\/uploads\/2025\/08\/puglia2settimana-261-300x225.jpg 300w, https:\/\/www.tu-mi.it\/tblog\/wp-content\/uploads\/2025\/08\/puglia2settimana-261-768x576.jpg 768w, https:\/\/www.tu-mi.it\/tblog\/wp-content\/uploads\/2025\/08\/puglia2settimana-261-1536x1152.jpg 1536w, https:\/\/www.tu-mi.it\/tblog\/wp-content\/uploads\/2025\/08\/puglia2settimana-261.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>#salento<\/p>\n","protected":false},"author":1,"featured_media":140,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-139","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-senza-categoria"],"_links":{"self":[{"href":"https:\/\/www.tu-mi.it\/tblog\/index.php\/wp-json\/wp\/v2\/posts\/139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tu-mi.it\/tblog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tu-mi.it\/tblog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tu-mi.it\/tblog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tu-mi.it\/tblog\/index.php\/wp-json\/wp\/v2\/comments?post=139"}],"version-history":[{"count":0,"href":"https:\/\/www.tu-mi.it\/tblog\/index.php\/wp-json\/wp\/v2\/posts\/139\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tu-mi.it\/tblog\/index.php\/wp-json\/wp\/v2\/media\/140"}],"wp:attachment":[{"href":"https:\/\/www.tu-mi.it\/tblog\/index.php\/wp-json\/wp\/v2\/media?parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tu-mi.it\/tblog\/index.php\/wp-json\/wp\/v2\/categories?post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tu-mi.it\/tblog\/index.php\/wp-json\/wp\/v2\/tags?post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}