:root {
  --night: #07090c;
  --line: #eef2ea;
  --ink: #12141a;
  --paper: #f4f5f1;
  --mute: #5e646f;
  --gold: #f5c542;
  --gold-deep: #d4af37;
  --signal: #1f4bff;
  --danger: #d12c32;
  --font-display: 'Big Shoulders Display', 'Barlow Condensed', Impact, sans-serif;
  --font-ui: 'Titillium Web', 'Trebuchet MS', ui-sans-serif, sans-serif;
  font-family: var(--font-ui);
  color: var(--line);
  background: var(--night);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
input, select, textarea { font-size: 16px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed;
  top: -80px; left: 16px; z-index: 120;
  background: var(--gold); color: var(--ink);
  padding: 12px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Contenimento elegante su schermi Desktop larghi */
.hero > *:not(.hero-atmosphere),
.price > *,
.protocol > *,
.stage > *,
.demo > *,
footer > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(7, 9, 12, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(238, 242, 234, 0.08);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand span { color: var(--gold); }

.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}
.site-header nav a {
  text-decoration: none;
  color: rgba(238, 242, 234, 0.78);
  transition: color 0.15s;
}
.site-header nav a:hover { color: var(--gold); }

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(245, 197, 66, 0.55);
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--gold);
  transition: background 0.15s, color 0.15s;
}
.ghost:hover {
  background: var(--gold);
  color: var(--ink);
}
.ghost--light {
  border-color: var(--ink);
  color: var(--ink);
}
.ghost--light:hover {
  background: var(--ink);
  color: var(--paper);
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(245, 197, 66, 0.5);
}

.atelier-photo {
  margin-top: 24px;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--ink);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-content: center;
  padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 64px);
  overflow: hidden;
  border-bottom: 1px solid rgba(238, 242, 234, 0.1);
  background:
    linear-gradient(95deg, rgba(7, 9, 12, 0.94) 38%, rgba(7, 9, 12, 0.72) 100%),
    url('/assets/hero-salon.jpg') center/cover no-repeat;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.flood {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.2;
}
.flood-l { top: -25%; left: -12%; background: var(--gold); }
.flood-r { bottom: -30%; right: -10%; background: #8c6a12; }
.haze {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05), transparent 65%);
}

.hero-brand {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: rgba(238, 242, 234, 0.72);
}
.hero-brand .slash,
.hero-brand .dot { color: var(--gold); }

.umpire {
  position: absolute;
  top: clamp(20px, 4vw, 40px);
  right: clamp(18px, 5vw, 64px);
  text-align: right;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(238, 242, 234, 0.6);
}
.umpire time {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-top: 4px;
}

.hero-copy {
  position: relative;
  max-width: 820px;
  z-index: 2;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 8.5vw, 108px);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.hero-copy .support {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
  color: rgba(238, 242, 234, 0.84);
  max-width: 660px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--ink);
  padding: 15px 28px;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.15s, background 0.15s;
}
.cta:hover { transform: translateY(-2px); background: #ffd75e; }
.cta--alt {
  background: transparent;
  color: var(--line);
  border: 1px solid rgba(238, 242, 234, 0.35);
}
.cta--alt:hover {
  background: rgba(238, 242, 234, 0.1);
  color: var(--line);
}

/* Price & Savings Calculator (Paper section) */
.price {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 64px);
}
.price dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 0 0 28px;
  padding-bottom: 28px;
  border-bottom: 2px solid rgba(18, 20, 26, 0.12);
}
.price dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute);
  margin-bottom: 6px;
}
.price dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.05;
}
.price-note {
  max-width: 840px;
  font-size: 16px;
  line-height: 1.6;
  color: #2c313b;
  margin: 0 0 40px;
}

.savings-calc {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
}
.savings-calc h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.savings-calc > p {
  color: var(--mute);
  max-width: 760px;
  margin: 0 0 26px;
}

.calc-sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.calc-control label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}
.calc-control input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
  cursor: pointer;
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.calc-stat {
  background: var(--paper);
  padding: 18px 20px;
  border-radius: 6px;
}
.calc-stat span {
  display: block;
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 6px;
}
.calc-stat strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
}
.calc-stat.highlight {
  background: var(--ink);
  color: var(--gold);
}
.calc-stat.highlight span { color: rgba(238, 242, 234, 0.72); }

/* Protocol (3 Steps) */
.protocol {
  background: var(--night);
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(238, 242, 234, 0.08);
}
.protocol h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  text-transform: uppercase;
  line-height: 0.96;
  margin: 0 0 40px;
}
.protocol ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.protocol li {
  border-top: 2px solid rgba(245, 197, 66, 0.35);
  padding-top: 20px;
}
.protocol li span {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.protocol li p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(238, 242, 234, 0.85);
  margin: 0;
}

/* Stage */
.stage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 64px);
  background: #0d1016;
  border-bottom: 1px solid rgba(238, 242, 234, 0.08);
}
.stage-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  text-transform: uppercase;
  line-height: 0.98;
  margin: 0 0 16px;
}
.stage-copy p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(238, 242, 234, 0.8);
  margin: 0;
}

.board {
  background: var(--night);
  border: 1px solid rgba(245, 197, 66, 0.4);
  border-radius: 8px;
  padding: 24px;
}
.board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(238, 242, 234, 0.65);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(238, 242, 234, 0.12);
}
.board-top strong { color: var(--gold); font-size: 15px; }
.board-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0 16px;
}
.board-slots span {
  text-align: center;
  padding: 14px 8px;
  border: 1px solid rgba(238, 242, 234, 0.18);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}
.board-slots span.on {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.board-note {
  margin: 0;
  font-size: 13px;
  color: rgba(238, 242, 234, 0.6);
  text-align: right;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.split article {
  padding: clamp(44px, 6vw, 76px) clamp(20px, 5vw, 56px);
}
.for-club {
  background: var(--ink);
  color: var(--line);
}
.for-player {
  background: var(--gold);
  color: var(--ink);
}
.split h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.split p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.split a {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Demo / Activation Form */
.demo {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: start;
}
.demo-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  text-transform: uppercase;
  line-height: 0.96;
  margin: 0 0 16px;
}
.demo-intro p {
  font-size: 17px;
  line-height: 1.6;
  color: #2c313b;
  margin: 0 0 24px;
}
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#demo-form {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  display: grid;
  gap: 16px;
}
#demo-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
#demo-form input[type="text"],
#demo-form input[type="email"],
#demo-form input:not([type]) {
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
}
#demo-form label.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 13px;
  color: #334155;
}
#demo-form label.consent-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}
#demo-form label.consent-check a {
  color: #0f172a;
  font-weight: 700;
}
.form-error {
  margin: 0;
  color: var(--danger);
  font-weight: 700;
  font-size: 14px;
}
.form-ok {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  color: #166534;
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 700;
}
.fine {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mute);
}

/* Footer */
footer {
  background: var(--night);
  color: rgba(238, 242, 234, 0.78);
  padding: 48px clamp(18px, 5vw, 64px);
  font-size: 14px;
  line-height: 1.6;
}
footer .brand {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--line);
}
.footer-legal-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(238, 242, 234, 0.12);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.footer-legal-links a,
.footer-legal-links button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  font-size: 13px;
}
.footer-company-data {
  font-size: 12px;
  color: rgba(238, 242, 234, 0.58);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  z-index: 90;
  max-width: 780px;
  margin: 0 auto;
  background: #12141a;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
}
.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 240px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--line);
}
.cookie-banner a { color: var(--gold); }

/* Geo Autocomplete Dropdown */
.geo-autocomplete-dropdown {
  position: absolute;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.35), 0 6px 12px -2px rgba(0, 0, 0, 0.15) !important;
  max-height: 250px;
  overflow-y: auto;
  z-index: 999999 !important;
  padding: 6px !important;
  font-family: ui-sans-serif, system-ui, sans-serif;
  box-sizing: border-box;
}
.geo-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  color: #0f172a !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  user-select: none !important;
}
.geo-item:hover,
.geo-item.is-selected {
  background: #f1f5f9 !important;
}
.geo-name {
  font-weight: 700;
  color: #0f172a;
}
.geo-prov {
  background: #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.geo-region {
  margin-left: auto;
  font-size: 12px;
  color: #64748b;
}

/* Hero Search Bar (MioDottore / Tennis-Padel style) */
.hero-search {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 197, 66, 0.4);
  padding: 10px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}
.hero-search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(7, 9, 12, 0.88);
  border: 1px solid rgba(238, 242, 234, 0.2);
  border-radius: 4px;
  color: var(--line);
}
.hero-search input::placeholder {
  color: rgba(238, 242, 234, 0.52);
}
.hero-search button {
  min-height: 48px;
  white-space: nowrap;
}

.search-results {
  margin-top: 16px;
  background: #10141c;
  border: 1px solid rgba(245, 197, 66, 0.45);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 14px;
}
.search-result-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(238, 242, 234, 0.12);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.search-result-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
}
.search-result-meta {
  font-size: 13px;
  color: rgba(238, 242, 234, 0.72);
  margin: 0 0 10px;
}
.search-slots-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-slot-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(245, 197, 66, 0.14);
  border: 1px solid rgba(245, 197, 66, 0.5);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.search-slot-pill:hover {
  background: var(--gold);
  color: var(--ink);
}

@media (max-width: 780px) {
  .hero-search {
    grid-template-columns: 1fr;
  }
  .hero-search button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .site-header nav { display: none; }
  .umpire { position: static; text-align: left; margin-bottom: 16px; }
  .board-slots { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; padding-top: 36px; padding-bottom: 48px; }
  .hero-actions .cta,
  .hero-actions .cta--alt { width: 100%; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .cookie-banner .cta { width: 100%; }
}
