@font-face {
  font-family: "Padel Park Display";
  src: url("../fonts/arial-bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gpb-v2-ink: #163b3e;
  --gpb-v2-muted: #6d8587;
  --gpb-v2-bg: #f5fbfb;
  --gpb-v2-card: #ffffff;
  --gpb-v2-line: #d4e9e9;
  --gpb-v2-deep: #155a61;
  --gpb-v2-soft: #e8f7f7;
  --gpb-v2-lime: #e5b39f;
  --gpb-v2-shadow: 0 18px 48px rgba(111, 53, 38, .10);
}

.gpb-v2-home,
.gpb-app.gpb-v2-booking {
  color: var(--gpb-v2-ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.gpb-v2-home *,
.gpb-app.gpb-v2-booking * {
  box-sizing: border-box;
}

.gpb-v2-home svg,
.gpb-screen-bar svg,
.gpb-match-filters svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.gpb-app-page.gpb-home-page.gpb-embed .gpb-v2-home.gpb-v2-home.gpb-v2-home header {
  display: flex !important;
}

body.gpb-home-page {
  background: var(--gpb-v2-bg) !important;
}

body.gpb-home-page .entry-title,
body.gpb-home-page .wp-block-post-title {
  display: none !important;
}

body.gpb-home-page main,
body.gpb-home-page .site-main,
body.gpb-home-page article,
body.gpb-home-page .entry-content,
body.gpb-home-page .wp-block-post-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gpb-v2-home {
  width: min(100%, 760px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% -4%, rgba(108, 201, 199, .16), transparent 24%),
    var(--gpb-v2-bg);
}

.gpb-home-topbar {
  min-height: 76px;
  padding: calc(15px + env(safe-area-inset-top, 0px)) 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(21, 90, 97, .08);
  background: rgba(244, 246, 242, .91);
  backdrop-filter: blur(18px);
}

.gpb-home-topbar > div {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.gpb-home-topbar img {
  display: block;
  width: 126px;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
}

.gpb-home-topbar > div > span {
  padding-left: 13px;
  border-left: 1px solid #cfe1df;
  color: #789091;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
  white-space: nowrap;
}

.gpb-home-avatar {
  position: relative;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gpb-primary, #2a8f98), var(--gpb-v2-deep));
  box-shadow: 0 8px 22px rgba(21, 90, 97, .22);
  color: #fff !important;
  display: grid;
  place-items: center;
  font: 12px "Padel Park Display", Arial, sans-serif;
  text-decoration: none !important;
}

.gpb-home-avatar i {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--gpb-v2-bg);
  border-radius: 999px;
  background: #dc775d;
  color: #fff;
  display: grid;
  place-items: center;
  font: 8px Arial, sans-serif;
}

.gpb-home-content {
  display: grid;
  gap: 25px;
  padding: 18px 18px calc(38px + env(safe-area-inset-bottom, 0px));
}

.gpb-home-welcome {
  position: relative;
  min-height: 176px;
  padding: 26px;
  overflow: hidden;
  border-radius: 27px;
  background:
    radial-gradient(circle at 93% 12%, rgba(216, 239, 88, .27), transparent 25%),
    linear-gradient(140deg, var(--gpb-v2-deep), var(--gpb-primary, #2a8f98));
  box-shadow: 0 20px 44px rgba(21, 90, 97, .20);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.gpb-home-welcome::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -132px;
  right: -92px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, .04), 0 0 0 84px rgba(255, 255, 255, .025);
}

.gpb-home-welcome > div {
  position: relative;
  z-index: 1;
}

.gpb-home-welcome span {
  display: block;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 700;
}

.gpb-home-welcome h1 {
  max-width: 470px;
  margin: 7px 0 9px;
  color: #fff !important;
  font: clamp(28px, 6vw, 39px)/.98 "Padel Park Display", Arial, sans-serif;
  letter-spacing: -.045em;
}

.gpb-home-welcome p {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.5;
}

.gpb-home-welcome > svg {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 11px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.gpb-home-login-prompt {
  padding: 22px;
  border: 1px solid #d9e8e5;
  border-radius: 23px;
  background: #fff;
  box-shadow: var(--gpb-v2-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gpb-home-login-prompt span,
.gpb-home-club-card > div > span {
  color: var(--gpb-primary, #2a8f98);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .15em;
}

.gpb-home-login-prompt h2 {
  margin: 6px 0 6px;
  color: var(--gpb-v2-ink) !important;
  font: 21px/1.08 "Padel Park Display", Arial, sans-serif;
  letter-spacing: -.03em;
}

.gpb-home-login-prompt p {
  margin: 0;
  color: var(--gpb-v2-muted);
  font-size: 10px;
  line-height: 1.5;
}

.gpb-home-login-prompt > a,
.gpb-home-empty-match > a,
.gpb-home-club-card a {
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 13px;
  background: var(--gpb-primary, #2a8f98);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: 10px "Padel Park Display", Arial, sans-serif;
  text-decoration: none !important;
  white-space: nowrap;
}

.gpb-home-login-prompt > a svg,
.gpb-home-empty-match > a svg,
.gpb-home-club-card a svg {
  width: 16px;
  height: 16px;
}

.gpb-home-section > header,
.gpb-home-updates > header {
  min-height: 31px;
  margin: 0 3px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.gpb-home-section > header > div,
.gpb-home-updates > header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.gpb-home-section > header svg,
.gpb-home-updates > header svg {
  color: var(--gpb-primary, #2a8f98);
}

.gpb-home-section > header h2,
.gpb-home-updates > header h2 {
  margin: 0;
  color: var(--gpb-v2-ink) !important;
  font: 17px "Padel Park Display", Arial, sans-serif;
  letter-spacing: -.02em;
}

.gpb-home-section > header > a {
  color: var(--gpb-v2-deep) !important;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none !important;
}

.gpb-home-match-card {
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #dbe8e5;
  border-radius: 25px;
  background: #fff;
  box-shadow: var(--gpb-v2-shadow);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
}

.gpb-home-match-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--gpb-primary, #2a8f98);
}

.gpb-home-match-card.is-pending::before { background: #e5ad38; }
.gpb-home-match-card.is-forming::before { background: #4f9db2; }

.gpb-home-match-date {
  min-height: 104px;
  padding: 11px 7px;
  border-radius: 18px;
  background: linear-gradient(155deg, #e7f4f2, #f7fbfa);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gpb-home-match-date small {
  color: var(--gpb-primary, #2a8f98);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.gpb-home-match-date strong {
  margin: 3px 0;
  color: var(--gpb-v2-ink);
  font: 31px/1 "Padel Park Display", Arial, sans-serif;
}

.gpb-home-match-date span {
  color: #789091;
  font-size: 9px;
  text-transform: uppercase;
}

.gpb-home-match-main { min-width: 0; }

.gpb-home-match-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gpb-home-match-title small {
  color: #829496;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}

.gpb-home-match-title h3 {
  margin: 4px 0 0;
  color: var(--gpb-v2-ink) !important;
  font: 21px "Padel Park Display", Arial, sans-serif;
  letter-spacing: -.025em;
}

.gpb-home-match-title em {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: #def1e8;
  color: #26715b;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.is-pending .gpb-home-match-title em { background: #fff0cb; color: #865e09; }
.is-forming .gpb-home-match-title em { background: #e0f0f5; color: #286979; }

.gpb-home-match-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
}

.gpb-home-match-meta span {
  color: #5f787a;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 750;
}

.gpb-home-match-meta svg {
  width: 16px;
  height: 16px;
  color: var(--gpb-primary, #2a8f98);
}

.gpb-home-match-main > p {
  margin: 10px 0 0;
  color: #6f8384;
  font-size: 9px;
  line-height: 1.45;
}

.gpb-home-player-bar {
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6efed;
}

.gpb-home-player-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gpb-primary, #2a8f98), var(--gpb-accent, #6cc9c7));
}

.gpb-home-match-main > a {
  width: 100%;
  min-height: 43px;
  margin-top: 13px;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--gpb-v2-deep);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: 10px "Padel Park Display", Arial, sans-serif;
  text-decoration: none !important;
}

.gpb-home-match-main > a svg { width: 16px; height: 16px; }

.gpb-home-empty-match {
  padding: 29px 22px;
  border: 1px dashed #b9d4cf;
  border-radius: 25px;
  background: rgba(255, 255, 255, .65);
  text-align: center;
}

.gpb-home-empty-match > div {
  width: 52px;
  height: 52px;
  margin: 0 auto 13px;
  border-radius: 17px;
  background: var(--gpb-v2-soft);
  color: var(--gpb-primary, #2a8f98);
  display: grid;
  place-items: center;
}

.gpb-home-empty-match h3 {
  margin: 0;
  color: var(--gpb-v2-ink) !important;
  font: 22px "Padel Park Display", Arial, sans-serif;
}

.gpb-home-empty-match p {
  max-width: 430px;
  margin: 8px auto 16px;
  color: var(--gpb-v2-muted);
  font-size: 10px;
  line-height: 1.55;
}

.gpb-home-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gpb-home-actions > a {
  min-width: 0;
  min-height: 137px;
  padding: 15px 10px;
  border: 1px solid #dce8e5;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 11px 28px rgba(18, 59, 62, .06);
  color: var(--gpb-v2-ink) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
}

.gpb-home-actions > a:hover,
.gpb-home-actions > a.is-pressed {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(18, 59, 62, .10);
}

.gpb-home-actions i {
  width: 43px;
  height: 43px;
  margin-bottom: 10px;
  border-radius: 15px;
  background: var(--gpb-v2-soft);
  color: var(--gpb-primary, #2a8f98);
  display: grid;
  place-items: center;
  font-style: normal;
}

.gpb-home-actions strong {
  color: var(--gpb-v2-ink);
  font: 12px/1.15 "Padel Park Display", Arial, sans-serif;
}

.gpb-home-actions small {
  margin-top: 5px;
  overflow: hidden;
  color: #819293;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gpb-home-updates {
  padding: 19px;
  border: 1px solid #dce8e5;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--gpb-v2-shadow);
}

.gpb-home-updates > header { margin: 0 1px 8px; }

.gpb-home-updates > header > span {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e56f59;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
}

.gpb-home-updates > a {
  padding: 13px 0;
  border-top: 1px solid #e7efed;
  color: var(--gpb-v2-ink) !important;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  text-decoration: none !important;
}

.gpb-home-updates > a > i {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #e4f2f5;
  color: #34778a;
  display: grid;
  place-items: center;
  font-style: normal;
}

.gpb-home-updates > a > i.is-pending { background: #fff2d3; color: #a27316; }
.gpb-home-updates > a > svg { width: 17px; height: 17px; color: #7c9293; }
.gpb-home-updates strong { display: block; font-size: 10px; }
.gpb-home-updates small { display: block; margin-top: 4px; color: #7a8e8f; font-size: 8px; line-height: 1.4; }

.gpb-home-club-card {
  position: relative;
  min-height: 250px;
  padding: 26px;
  overflow: hidden;
  border-radius: 27px;
  background-color: var(--gpb-v2-deep);
  background-position: center;
  background-size: cover;
  box-shadow: 0 20px 46px rgba(21, 90, 97, .18);
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.gpb-home-club-card > div:first-child {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
}

.gpb-home-club-card > div > span { color: var(--gpb-accent, #6cc9c7); }

.gpb-home-club-card h2 {
  max-width: 520px;
  margin: 8px 0 8px;
  color: #fff !important;
  font: clamp(23px, 5vw, 32px)/1.03 "Padel Park Display", Arial, sans-serif;
  letter-spacing: -.04em;
}

.gpb-home-club-card p {
  max-width: 430px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .71);
  font-size: 10px;
  line-height: 1.55;
}

.gpb-home-club-card a { background: #fff; color: var(--gpb-v2-deep) !important; }

.gpb-home-court-art {
  position: absolute;
  width: 240px;
  height: 300px;
  right: -43px;
  bottom: -82px;
  border: 2px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.gpb-home-court-art::before,
.gpb-home-court-art::after,
.gpb-home-court-art i,
.gpb-home-court-art b {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, .15);
}

.gpb-home-court-art::before { width: 2px; inset: 0 auto 0 50%; }
.gpb-home-court-art::after { height: 2px; inset: 50% 0 auto; }
.gpb-home-court-art i { width: 75%; height: 2px; left: 12%; top: 25%; }
.gpb-home-court-art b { width: 75%; height: 2px; left: 12%; bottom: 25%; }

.gpb-home-help {
  min-height: 70px;
  padding: 13px 16px;
  border: 1px solid #dae7e4;
  border-radius: 20px;
  background: #fff;
  color: var(--gpb-v2-ink) !important;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.gpb-home-help > i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--gpb-v2-soft);
  color: var(--gpb-primary, #2a8f98);
  display: grid;
  place-items: center;
  font-style: normal;
}

.gpb-home-help > svg { width: 18px; height: 18px; color: #789091; }
.gpb-home-help strong { display: block; font-size: 11px; }
.gpb-home-help small { display: block; margin-top: 4px; color: #798c8d; font-size: 9px; }

/* Nuova esperienza di prenotazione */
.gpb-app.gpb-v2-booking {
  max-width: 760px;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: var(--gpb-v2-bg);
  box-shadow: none;
}

.gpb-screen-bar {
  min-height: 72px;
  padding: calc(13px + env(safe-area-inset-top, 0px)) 19px 12px;
  background: rgba(244, 246, 242, .94);
  border-bottom: 1px solid rgba(21, 90, 97, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.gpb-screen-bar > div { display: flex; align-items: center; gap: 12px; }
.gpb-screen-bar img { width: 112px; height: auto; display: block; }
.gpb-screen-bar i { width: 8px; height: 8px; border-radius: 50%; background: #65c58d; box-shadow: 0 0 0 5px rgba(101, 197, 141, .13); }
.gpb-screen-bar span { color: #6e8586; font-size: 9px; font-weight: 800; }

.gpb-v2-booking .gpb-hero {
  min-height: 215px;
  padding: 35px 30px 50px;
  align-items: flex-end;
  background:
    radial-gradient(circle at 93% 5%, rgba(216, 239, 88, .20), transparent 28%),
    linear-gradient(145deg, var(--gpb-v2-deep), var(--gpb-primary, #2a8f98));
}

.gpb-v2-booking .gpb-hero-logo { display: none; }
.gpb-v2-booking .gpb-ball { width: 82px; height: 82px; opacity: .8; }
.gpb-v2-booking .gpb-hero h1 { margin: 8px 0 9px; font-size: clamp(31px, 7vw, 43px); }
.gpb-v2-booking .gpb-hero p { max-width: 430px; font-size: 12px; }
.gpb-v2-booking .gpb-eyebrow { font-size: 8px; }

.gpb-v2-booking .gpb-mode-switch {
  margin: -25px 18px 4px;
  padding: 7px;
  border-radius: 21px;
  box-shadow: 0 15px 34px rgba(18, 59, 62, .12);
}

.gpb-v2-booking .gpb-mode-switch button { min-height: 68px; border-radius: 16px; padding: 12px; }
.gpb-v2-booking .gpb-mode-switch button > span { width: 38px; height: 38px; }
.gpb-v2-booking .gpb-mode-switch strong { font-size: 12px; }
.gpb-v2-booking .gpb-mode-switch small { font-size: 8px; }

.gpb-v2-booking .gpb-progress {
  padding: 28px 18px 5px;
  align-items: flex-start;
}

.gpb-v2-booking .gpb-progress > span {
  width: 52px;
  height: auto;
  border-radius: 0;
  background: transparent !important;
  color: #839394;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 8px;
}

.gpb-v2-booking .gpb-progress b {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dfe8e6;
  color: #738687;
  display: grid;
  place-items: center;
  font: 11px "Padel Park Display", Arial, sans-serif;
}

.gpb-v2-booking .gpb-progress small { color: inherit; font-size: 8px; }
.gpb-v2-booking .gpb-progress span.is-active b { background: var(--gpb-primary, #2a8f98); color: #fff; }
.gpb-v2-booking .gpb-progress span.is-current { color: var(--gpb-v2-deep); }
.gpb-v2-booking .gpb-progress span.is-current b { box-shadow: 0 0 0 5px rgba(42, 143, 152, .12); }
.gpb-v2-booking .gpb-progress i { margin-top: 15px; }

.gpb-v2-booking .gpb-card {
  margin: 18px 18px 34px;
  padding: 28px;
  border-radius: 27px;
  box-shadow: var(--gpb-v2-shadow);
}

.gpb-v2-booking .gpb-section-heading { margin-bottom: 23px; }
.gpb-v2-booking .gpb-section-heading > span { width: 43px; height: 43px; border-radius: 14px; }
.gpb-v2-booking .gpb-section-heading h2 { font-size: 26px; }
.gpb-v2-booking .gpb-section-heading p { font-size: 11px; }
.gpb-v2-booking .gpb-date-pill { min-height: 76px; }
.gpb-v2-booking .gpb-date-pill.is-selected { box-shadow: 0 11px 24px rgba(42, 143, 152, .18); }
.gpb-v2-booking .gpb-primary-button { border-radius: 15px; box-shadow: 0 12px 27px rgba(21, 90, 97, .18); }
.gpb-v2-booking .gpb-summary { border-radius: 17px; }

.gpb-match-filters {
  margin: 14px 0 4px;
  padding-bottom: 3px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gpb-match-filters::-webkit-scrollbar { display: none; }

.gpb-match-filters button {
  min-height: 37px;
  padding: 9px 13px;
  border: 1px solid #d9e7e4;
  border-radius: 999px;
  background: #fff;
  color: #647d7e;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.gpb-match-filters button.is-active { border-color: var(--gpb-v2-deep); background: var(--gpb-v2-deep); color: #fff; }
.gpb-v2-booking .gpb-open-panel { margin: 22px 18px 38px; }
.gpb-v2-booking .gpb-open-heading { padding: 27px; border-radius: 25px; }
.gpb-v2-booking .gpb-open-heading h2 { font-size: 27px; }
.gpb-v2-booking .gpb-match-card { border-radius: 20px; }

@media (max-width: 700px) {
  body.gpb-home-page,
  body.gpb-home-page .wp-site-blocks,
  body.gpb-home-page .site,
  body.gpb-home-page .site-content,
  body.gpb-home-page main,
  body.gpb-home-page .site-main,
  body.gpb-home-page article,
  body.gpb-home-page .entry-content,
  body.gpb-home-page .wp-block-post-content {
    width: 100% !important;
    max-width: none !important;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  .gpb-v2-home { width: 100%; max-width: none; }
  .gpb-home-topbar > div > span { display: none; }
  .gpb-home-content { padding: 14px 14px calc(34px + env(safe-area-inset-bottom, 0px)); gap: 22px; }
  .gpb-home-welcome { min-height: 168px; padding: 23px; border-radius: 24px; }
  .gpb-home-welcome > svg { width: 38px; height: 38px; padding: 10px; }
  .gpb-home-login-prompt { align-items: stretch; flex-direction: column; }
  .gpb-home-login-prompt > a { width: 100%; }
  .gpb-home-actions { grid-template-columns: repeat(2, 1fr); }
  .gpb-home-actions > a { min-height: 128px; }
  .gpb-home-club-card { min-height: 275px; padding: 23px; }
  .gpb-app.gpb-v2-booking { width: 100vw !important; max-width: 100vw !important; margin: 0 calc(50% - 50vw) !important; }
  .gpb-v2-booking .gpb-card { margin: 16px 14px 32px; padding: 23px; }
  .gpb-v2-booking .gpb-open-panel { margin: 18px 14px 34px; }
}

@media (max-width: 430px) {
  .gpb-home-topbar { padding-left: 16px; padding-right: 16px; }
  .gpb-home-topbar img { width: 116px; }
  .gpb-home-welcome h1 { font-size: 29px; }
  .gpb-home-welcome p { max-width: 280px; }
  .gpb-home-match-card { grid-template-columns: 58px minmax(0, 1fr); gap: 11px; padding: 13px; }
  .gpb-home-match-date { min-height: 94px; }
  .gpb-home-match-date strong { font-size: 27px; }
  .gpb-home-match-title { display: block; }
  .gpb-home-match-title em { display: inline-block; margin-top: 7px; }
  .gpb-home-match-title h3 { font-size: 18px; }
  .gpb-home-match-meta { gap: 7px; }
  .gpb-home-match-main > a { min-height: 40px; }
  .gpb-home-actions strong { font-size: 11px; }
  .gpb-home-club-card h2 { font-size: 24px; }
  .gpb-v2-booking .gpb-hero { min-height: 202px; padding: 30px 23px 46px; }
  .gpb-v2-booking .gpb-hero h1 { font-size: 32px; }
  .gpb-v2-booking .gpb-ball { display: none; }
  .gpb-v2-booking .gpb-mode-switch { margin-left: 12px; margin-right: 12px; }
  .gpb-v2-booking .gpb-mode-switch button { grid-template-columns: 33px 1fr; padding: 10px 8px; }
  .gpb-v2-booking .gpb-mode-switch button > span { width: 33px; height: 33px; }
}

@media (prefers-reduced-motion: no-preference) {
  .gpb-v2-home [data-gpb-reveal] { opacity: 0; transform: translateY(9px); transition: opacity .35s ease, transform .35s ease; }
  .gpb-v2-home [data-gpb-reveal].is-visible { opacity: 1; transform: none; }
}

/* Accesso più chiaro e coerente con una vera schermata applicativa. */
.gpb-login-shell.gpb-login-v2 {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 18px calc(28px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 96% 0, rgba(108, 201, 199, .22), transparent 28%),
    var(--gpb-v2-bg);
}

.gpb-login-v2 .gpb-login-card {
  width: min(100%, 490px);
  padding: 0 34px 30px;
  overflow: hidden;
  border: 1px solid #d9e7e4;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(18, 59, 62, .14);
  color: var(--gpb-v2-ink);
  text-align: left;
}

.gpb-login-v2 .gpb-login-head {
  position: relative;
  margin: 0 -34px 26px;
  padding: 32px 34px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 0, rgba(216, 239, 88, .22), transparent 30%),
    linear-gradient(145deg, #edf7f4, #f9fbf8);
  border-bottom: 1px solid #dfeae7;
}

.gpb-login-v2 .gpb-login-head::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  top: -115px;
  right: -75px;
  border: 1px solid rgba(42, 143, 152, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(42, 143, 152, .035);
}

.gpb-login-v2 .gpb-login-logo {
  width: min(220px, 72%);
  margin: 0 0 28px;
}

.gpb-login-v2 .gpb-eyebrow { color: var(--gpb-primary, #2a8f98); }

.gpb-login-v2 .gpb-login-card h1 {
  margin: 8px 0 10px;
  color: var(--gpb-v2-ink) !important;
  font: 39px/.98 "Padel Park Display", Arial, sans-serif;
  letter-spacing: -.045em;
}

.gpb-login-v2 .gpb-login-card p {
  margin: 0;
  color: var(--gpb-v2-muted);
  font-size: 11px;
  line-height: 1.55;
}

.gpb-login-v2 .gpb-app-login-form { margin-top: 0; }
.gpb-login-v2 .gpb-login-card label { color: #526d6f; }
.gpb-login-v2 .gpb-login-card input[type=text],
.gpb-login-v2 .gpb-login-card input[type=password] {
  border-color: #d6e5e2 !important;
  background: #f8fbfa !important;
  color: var(--gpb-v2-ink) !important;
}

.gpb-login-v2 .gpb-app-login-form .gpb-remember span { color: #6f8384; }
.gpb-login-v2 .gpb-primary-button { background: var(--gpb-v2-deep); }
.gpb-login-v2 .gpb-secondary-button { border: 1px solid #d7e5e2; background: #eff7f5; color: var(--gpb-v2-deep) !important; }
.gpb-login-v2 .gpb-text-link { color: var(--gpb-primary, #2a8f98) !important; }

.gpb-login-benefits {
  margin: 18px 0 4px;
  padding: 13px;
  border-radius: 14px;
  background: #f0f7f5;
  color: #557172;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 12px;
  font-size: 8px;
  font-weight: 800;
}

.gpb-login-v2 .gpb-login-error {
  border-color: #f2c7c1;
  background: #fff0ed;
  color: #8e3c32;
}

/* Area personale: la prossima azione viene prima delle tabelle. */
body.gpb-account-page .gpb-account-hero {
  position: relative;
  min-height: 225px;
  padding: 34px 38px;
  background:
    radial-gradient(circle at 90% 0, rgba(216, 239, 88, .20), transparent 35%),
    linear-gradient(140deg, var(--gpb-v2-deep), var(--gpb-primary, #2a8f98));
}

body.gpb-account-page .gpb-account-hero img { width: min(190px, 66%); margin-bottom: 25px; }
body.gpb-account-page .gpb-account-hero h1 { font-size: 36px !important; }

.gpb-account-logout {
  position: absolute;
  z-index: 3;
  top: 23px;
  right: 24px;
  min-height: 39px;
  padding: 9px 12px 9px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  color: #fff !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 10px "Padel Park Display", Arial, sans-serif;
  text-decoration: none !important;
}

.gpb-account-logout b {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  display: grid;
  place-items: center;
  font-size: 11px;
}

/* L'account resta il contenitore di scorrimento dentro iframe e WKWebView. */
html:has(body.gpb-account-page.gpb-embed),
body.gpb-account-page.gpb-embed {
  width: 100% !important;
  min-height: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}

body.gpb-account-page.gpb-embed .wp-site-blocks,
body.gpb-account-page.gpb-embed .site,
body.gpb-account-page.gpb-embed .site-content,
body.gpb-account-page.gpb-embed main,
body.gpb-account-page.gpb-embed .site-main,
body.gpb-account-page.gpb-embed .content-area,
body.gpb-account-page.gpb-embed article,
body.gpb-account-page.gpb-embed .entry-content,
body.gpb-account-page.gpb-embed .wp-block-post-content,
body.gpb-account-page.gpb-embed .woocommerce,
body.gpb-account-page.gpb-embed .woocommerce-MyAccount-content {
  height: auto !important;
  min-height: 0;
  max-height: none !important;
  overflow: visible !important;
  touch-action: pan-y;
}

.gpb-account-spotlight {
  position: relative;
  margin-bottom: 16px;
  padding: 21px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 98% 0, rgba(216, 239, 88, .20), transparent 28%),
    linear-gradient(140deg, var(--gpb-v2-deep), var(--gpb-primary, #2a8f98));
  box-shadow: 0 17px 38px rgba(21, 90, 97, .18);
  color: #fff;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.gpb-account-spotlight-date {
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 19px;
  background: rgba(255, 255, 255, .10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gpb-account-spotlight-date small,
.gpb-account-spotlight-main > div > span { color: rgba(255, 255, 255, .65); font-size: 7px; font-weight: 900; letter-spacing: .13em; }
.gpb-account-spotlight-date strong { margin: 7px 0 5px; color: #fff; font: 28px "Padel Park Display", Arial, sans-serif; }
.gpb-account-spotlight-date span { color: var(--gpb-accent, #6cc9c7); font-size: 9px; font-weight: 800; }
.gpb-account-spotlight-main > div { position: relative; padding-right: 90px; }
.gpb-account-page .gpb-account-spotlight-main h3 { margin: 5px 0 0 !important; color: #fff !important; font-size: 25px !important; }
.gpb-account-spotlight-main em { position: absolute; top: 0; right: 0; padding: 7px 9px; border-radius: 999px; background: rgba(255, 255, 255, .15); color: #fff; font-size: 8px; font-style: normal; font-weight: 850; }
.gpb-account-spotlight-main p { margin: 12px 0 14px; color: rgba(255, 255, 255, .72); font-size: 10px; line-height: 1.5; }
.gpb-account-spotlight-main > a { width: fit-content; min-height: 40px; padding: 10px 13px; border-radius: 12px; background: #fff; color: var(--gpb-v2-deep) !important; display: inline-flex; align-items: center; gap: 8px; font: 9px "Padel Park Display", Arial, sans-serif; text-decoration: none !important; }
.gpb-account-spotlight-main > a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.gpb-account-quick-actions {
  margin: 0 0 19px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.gpb-account-quick-actions > a {
  min-height: 74px;
  padding: 13px;
  border: 1px solid #d9e7e4;
  border-radius: 17px;
  background: #f9fbfa;
  color: var(--gpb-v2-ink) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.gpb-account-quick-actions > a > svg { width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: var(--gpb-v2-soft); color: var(--gpb-primary, #2a8f98); fill: none; stroke: currentColor; stroke-width: 1.8; }
.gpb-account-quick-actions strong { display: block; color: var(--gpb-v2-ink); font-size: 9px; }
.gpb-account-quick-actions small { display: block; margin-top: 3px; color: #819293; font-size: 8px; }

@media (max-width: 700px) {
  .gpb-login-shell.gpb-login-v2 { padding: 0; place-items: start center; }
  .gpb-login-v2 .gpb-login-card { width: 100%; min-height: 100vh; min-height: 100dvh; padding: 0 24px calc(32px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: 0; box-shadow: none; justify-content: flex-start; }
  .gpb-login-v2 .gpb-login-head { width: calc(100% + 48px); margin: 0 -24px 24px; padding: calc(34px + env(safe-area-inset-top, 0px)) 24px 27px; text-align: center; }
  .gpb-login-v2 .gpb-login-logo { margin: 0 auto 25px; }
  .gpb-login-v2 .gpb-login-card h1 { font-size: 36px; }
  body.gpb-account-page .gpb-account-hero { min-height: 215px; padding: 32px 22px; }
  body.gpb-account-page .gpb-account-hero img { max-width: calc(100% - 92px); margin: 0 0 22px; }
  .gpb-account-logout { top: 19px; right: 17px; }
  .gpb-account-spotlight { grid-template-columns: 1fr; gap: 13px; padding: 17px; text-align: center; }
  .gpb-account-spotlight-date { min-height: 85px; }
  .gpb-account-spotlight-main > div { padding-right: 0; }
  .gpb-account-spotlight-main em { position: static; display: inline-block; margin-top: 8px; }
  .gpb-account-spotlight-main > a { width: 100%; justify-content: center; }
  .gpb-account-quick-actions { grid-template-columns: 1fr; }
  .gpb-account-quick-actions > a { min-height: 62px; }
}
