/*
Theme Name: ClubMorena One Page
Theme URI: https://example.com/
Author: OpenAI
Description: Tema WordPress one page, senza menu, responsive, con logo, testo e pulsante animato configurabile dal pannello admin.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: clubmorena-onepage
*/

:root {
  --cm-bg: #050005;
  --cm-pink: #ff0a88;
  --cm-pink-light: #ff4cac;
  --cm-purple: #6a087f;
  --cm-white: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(circle at 50% 20%, rgba(151, 0, 116, .28), transparent 34%),
    radial-gradient(circle at 20% 85%, rgba(255, 10, 136, .14), transparent 30%),
    var(--cm-bg);
  color: var(--cm-white);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.cm-page {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px) 20px;
  isolation: isolate;
}

.cm-page::before,
.cm-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .28;
  pointer-events: none;
}
.cm-page::before { background: var(--cm-pink); top: -150px; right: -120px; }
.cm-page::after { background: var(--cm-purple); bottom: -170px; left: -120px; }

.cm-card {
  width: min(940px, 100%);
  text-align: center;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 58px);
}

.cm-logo {
  display: block;
  width: min(760px, 100%);
  max-height: 260px;
  object-fit: contain;
  margin: 0 auto clamp(28px, 5vw, 54px);
  border-radius: 18px;
  mix-blend-mode: screen;
}

.cm-title {
  margin: 0 auto clamp(28px, 4vw, 46px);
  max-width: 880px;
  font-size: clamp(30px, 5.2vw, 66px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 0 24px rgba(255, 10, 136, .24);
}

.cm-button-wrap {
  display: flex;
  justify-content: center;
}

.cm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(330px, 90vw);
  min-height: 66px;
  padding: 18px 34px;
  border: 2px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cm-pink), #b500ce 58%, var(--cm-purple));
  color: #fff;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .035em;
  box-shadow:
    0 14px 40px rgba(255, 10, 136, .34),
    0 0 0 0 rgba(255, 10, 136, .50);
  animation: cm-float 1.8s ease-in-out infinite, cm-pulse 2.2s ease-out infinite;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  will-change: transform;
}

.cm-button::after {
  content: "→";
  margin-left: 12px;
  font-size: 1.15em;
  transition: transform .2s ease;
}

.cm-button:hover,
.cm-button:focus-visible {
  transform: translateY(-4px) scale(1.035);
  filter: brightness(1.12);
  box-shadow: 0 20px 55px rgba(255, 10, 136, .48);
  outline: none;
}
.cm-button:hover::after,
.cm-button:focus-visible::after { transform: translateX(5px); }

@keyframes cm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes cm-pulse {
  0% { box-shadow: 0 14px 40px rgba(255,10,136,.34), 0 0 0 0 rgba(255,10,136,.50); }
  70% { box-shadow: 0 14px 40px rgba(255,10,136,.34), 0 0 0 18px rgba(255,10,136,0); }
  100% { box-shadow: 0 14px 40px rgba(255,10,136,.34), 0 0 0 0 rgba(255,10,136,0); }
}

@media (max-width: 600px) {
  .cm-page { padding: 20px 14px; }
  .cm-card { padding: 24px 8px 34px; }
  .cm-logo { margin-bottom: 30px; border-radius: 12px; }
  .cm-title { margin-bottom: 34px; }
  .cm-button { min-height: 60px; padding: 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .cm-button { animation: none; }
  .cm-button, .cm-button::after { transition: none; }
}

.cm-custom-logo { margin: 0 auto clamp(28px, 5vw, 54px); }
.cm-custom-logo .custom-logo-link { display: inline-block; }
.cm-custom-logo .custom-logo {
  display: block;
  width: min(760px, 100%);
  height: auto;
  max-height: 260px;
  object-fit: contain;
}
