<script>
document.addEventListener('DOMContentLoaded', () => {

  const cam    = document.querySelector('select[name="tipo-camera"]');
  const appart = document.querySelector('select[name="tipo-appartamento"]');

  /* Aggiorna l’attributo required in base allo stato corrente */
  const refreshRequired = () => {
    if (cam.value !== '' || appart.value !== '') {
      cam.removeAttribute('required');
      appart.removeAttribute('required');
    } else {
      cam.setAttribute('required', 'required');
      appart.setAttribute('required', 'required');
    }
  };

  /* — Se cambio la camera, azzero l’appartamento — */
  cam.addEventListener('change', () => {
    if (cam.value !== '') {
      appart.selectedIndex = 0;   // reset solo dell’altro campo
    }
    refreshRequired();
  });

  /* — Se cambio l’appartamento, azzero la camera — */
  appart.addEventListener('change', () => {
    if (appart.value !== '') {
      cam.selectedIndex = 0;      // reset solo dell’altro campo
    }
    refreshRequired();
  });

  refreshRequired(); // stato iniziale
});
</script>
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//www.hoteltorricella.com/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://www.hoteltorricella.com/post-sitemap.xml</loc>
		<lastmod>2026-02-11T15:26:47+01:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://www.hoteltorricella.com/page-sitemap.xml</loc>
		<lastmod>2025-06-18T13:34:34+02:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://www.hoteltorricella.com/category-sitemap.xml</loc>
		<lastmod>2026-02-11T15:26:47+01:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://www.hoteltorricella.com/post_tag-sitemap.xml</loc>
		<lastmod>2026-02-11T15:20:07+01:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->