{"id":8,"date":"2026-08-12T23:33:51","date_gmt":"2026-08-12T23:33:51","guid":{"rendered":"https:\/\/basketball-signup.popupvillage.it\/?page_id=8"},"modified":"2026-08-12T23:33:51","modified_gmt":"2026-08-12T23:33:51","slug":"home-page","status":"publish","type":"page","link":"https:\/\/basketball-signup.popupvillage.it\/","title":{"rendered":"Home page"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"54\" src=\"https:\/\/basketball-signup.popupvillage.it\/wp-content\/uploads\/2026\/08\/LOGO-POP-UP-VILLAGE-300x54-1.png\" alt=\"\" class=\"wp-image-10\"\/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading has-text-align-center\">Modulo di iscrizione all&#8217;evento American Street Basket &#8220;3vs3&#8221;<\/h2>\n\n\n<form action=\"\" method=\"POST\" class=\"popupvillage-form\">\n  <div class=\"container\">\n    <input type=\"hidden\" id=\"popupvillage_nonce\" name=\"popupvillage_nonce\" value=\"6bce210566\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F8\" \/>    <div class=\"panel team-panel\">\n      <div class=\"panel-title\">Dati squadra<\/div>\n      <div class=\"panel-body\">\n        <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Nome squadra*<\/p>\n  <input\n    type=\"text\"\n    name=\"squadra_nome\"\n    class=\"text-input\"\n    required>\n<\/label>        <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Nome contatto*<\/p>\n  <input\n    type=\"text\"\n    name=\"squadra_nome_contatto\"\n    class=\"text-input\"\n    required>\n<\/label>        <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Indirizzo e-mail contatto*<\/p>\n  <input\n    type=\"email\"\n    name=\"squadra_email_contatto\"\n    class=\"text-input\"\n    required>\n<\/label>      <\/div>\n    <\/div>\n  <\/div>\n  <div class=\"container\">\n    <div class=\"panel players-panel\">\n      <div class=\"panel-title\">Dati giocatori<\/div>\n      <div class=\"panel-body\">\n        <div class=\"form-players-section\">\n          <div class=\"form-player\">\n            <div class=\"card\">\n              <div class=\"card-title\">Giocatore 1<\/div>\n              <div class=\"card-body\">\n                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Nome*<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[0][nome]\"\n    class=\"text-input\"\n    required>\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Cognome*<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[0][cognome]\"\n    class=\"text-input\"\n    required>\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Indirizzo e-mail<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[0][email]\"\n    class=\"text-input\"\n    >\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Numero di telefono<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[0][telefono]\"\n    class=\"text-input\"\n    >\n<\/label>              <\/div>\n            <\/div>\n          <\/div>\n          <div class=\"form-player\">\n            <div class=\"card\">\n              <div class=\"card-title\">Giocatore 2<\/div>\n              <div class=\"card-body\">\n                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Nome*<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[1][nome]\"\n    class=\"text-input\"\n    required>\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Cognome*<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[1][cognome]\"\n    class=\"text-input\"\n    required>\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Indirizzo e-mail<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[1][email]\"\n    class=\"text-input\"\n    >\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Numero di telefono<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[1][telefono]\"\n    class=\"text-input\"\n    >\n<\/label>              <\/div>\n            <\/div>\n          <\/div>\n          <div class=\"form-player\">\n            <div class=\"card\">\n              <div class=\"card-title\">Giocatore 3<\/div>\n              <div class=\"card-body\">\n                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Nome*<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[2][nome]\"\n    class=\"text-input\"\n    required>\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Cognome*<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[2][cognome]\"\n    class=\"text-input\"\n    required>\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Indirizzo e-mail<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[2][email]\"\n    class=\"text-input\"\n    >\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Numero di telefono<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[2][telefono]\"\n    class=\"text-input\"\n    >\n<\/label>              <\/div>\n            <\/div>\n          <\/div>\n          <div class=\"form-player\">\n            <div class=\"card\">\n              <div class=\"card-title\">Giocatore 4<\/div>\n              <div class=\"card-body\">\n                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Nome*<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[3][nome]\"\n    class=\"text-input\"\n    required>\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Cognome*<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[3][cognome]\"\n    class=\"text-input\"\n    required>\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Indirizzo e-mail<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[3][email]\"\n    class=\"text-input\"\n    >\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Numero di telefono<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[3][telefono]\"\n    class=\"text-input\"\n    >\n<\/label>              <\/div>\n            <\/div>\n          <\/div>\n          <div class=\"form-player\">\n            <div class=\"card\">\n              <div class=\"card-title\">Giocatore 5 <span class=\"card-small-title\">(Facoltativo)<\/span><\/div>\n              <div class=\"card-body\">\n                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Nome<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[4][nome]\"\n    class=\"text-input\"\n    >\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Cognome<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[4][cognome]\"\n    class=\"text-input\"\n    >\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Indirizzo e-mail<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[4][email]\"\n    class=\"text-input\"\n    >\n<\/label>                <label class=\"popupvillage-input-field\">\n  <p class=\"label\">Numero di telefono<\/p>\n  <input\n    type=\"text\"\n    name=\"giocatore[4][telefono]\"\n    class=\"text-input\"\n    >\n<\/label>              <\/div>\n            <\/div>\n          <\/div>\n        <\/div>\n      <\/div>\n    <\/div>\n    <div>\n      <label class=\"popupvillage-checkbox-field\">\n  <input\n    type=\"checkbox\"\n    name=\"privacy_policy\"\n    required>\n  <p class=\"label\">Accetto la privacy policy (obbligatorio)<\/p>\n<\/label>      <label class=\"popupvillage-checkbox-field\">\n  <input\n    type=\"checkbox\"\n    name=\"dichiarazione_certificato\"\n    required>\n  <p class=\"label\">Dichiaro che tutti i membri della squadra sono in possesso del certificato di idoneit\u00e0 per le attivit\u00e0 sportive (obbligatorio)<\/p>\n<\/label>    <\/div>\n    <p>I campi contrassegnati con l'asterisco (*) sono obbligatori.<\/p>\n    <div class=\"form-buttons\">\n      <button type=\"submit\" class=\"popupvillage-form-button\">Iscriviti<\/button>\n    <\/div>\n  <\/div>\n<\/form>\n\n<script>\n  (function () {\n    const form = document.querySelector(\".popupvillage-form\");\n    if (!form) return;\n\n    form.addEventListener(\"submit\", async (e) => {\n      e.preventDefault();\n\n      const submitBtn = form.querySelector('button[type=\"submit\"]');\n      if (submitBtn) submitBtn.disabled = true;\n\n      try {\n        const action = \"popupvillage_submit_form\"; \/\/ WP AJAX action name (hook this on server).\n        const endpoint = \"https:\/\/basketball-signup.popupvillage.it\/wp-admin\/admin-ajax.php\";\n\n        \/\/ Send form data as request body (application\/x-www-form-urlencoded).\n        const fd = new FormData(form);\n        const params = new URLSearchParams();\n        params.set(\"action\", action);\n\n        for (const [key, value] of fd.entries()) {\n          params.append(key, value);\n        }\n\n        const res = await fetch(endpoint, {\n          method: \"POST\",\n          headers: {\n            \"Content-Type\": \"application\/x-www-form-urlencoded; charset=UTF-8\"\n          },\n          body: params.toString()\n        });\n\n        const data = await res.json().catch(() => null);\n\n        if (!res.ok) {\n          console.error(\"Request failed:\", data);\n          alert(\"Si \u00e8 verificato un errore durante l'invio.\");\n          return;\n        }\n\n        if (data && data.success) {\n          alert(data.data?.message || \"Richiesta di iscrizione effettuata con successo!\");\n          form.reset();\n        } else {\n          alert(data?.data?.message || \"Invio non riuscito.\");\n        }\n      } catch (err) {\n        console.error(err);\n        alert(\"Si \u00e8 verificato un errore durante l'invio.\");\n      } finally {\n        const submitBtn = form.querySelector('button[type=\"submit\"]');\n        if (submitBtn) submitBtn.disabled = false;\n      }\n    });\n  })();\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Modulo di iscrizione all&#8217;evento American Street Basket &#8220;3vs3&#8221;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-8","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/basketball-signup.popupvillage.it\/index.php?rest_route=\/wp\/v2\/pages\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basketball-signup.popupvillage.it\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/basketball-signup.popupvillage.it\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/basketball-signup.popupvillage.it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basketball-signup.popupvillage.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8"}],"version-history":[{"count":1,"href":"https:\/\/basketball-signup.popupvillage.it\/index.php?rest_route=\/wp\/v2\/pages\/8\/revisions"}],"predecessor-version":[{"id":12,"href":"https:\/\/basketball-signup.popupvillage.it\/index.php?rest_route=\/wp\/v2\/pages\/8\/revisions\/12"}],"wp:attachment":[{"href":"https:\/\/basketball-signup.popupvillage.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}