/* Ghost template — branding base dello studio, nessun header/footer. */
:root {
  --bg: #004a4a;
  --bg-2: #003e3e;
  --bg-card: #005c5c;
  --bg-card-h: #007373;
  --gold: #C9A84C;
  --gold-2: #dfc46a;
  --gold-glow: rgba(201, 168, 76, 0.10);
  --gold-border: rgba(201, 168, 76, 0.22);
  --white: #f0eee8;
  --w60: rgba(240, 238, 232, 0.60);
  --w35: rgba(240, 238, 232, 0.35);
  --border: rgba(255, 255, 255, 0.07);
  --radius: 14px;
  --radius-lg: 22px;
}

html.light {
  --bg: #f7f4ef;
  --bg-2: #ede9df;
  --bg-card: #ffffff;
  --bg-card-h: #f5f2eb;
  --gold-glow: rgba(201, 168, 76, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.catt-ghost {
  background: var(--bg);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.ghost-main {
  width: 100%;
  max-width: 480px;
}

.ghost-main h1,
.ghost-main h2,
.ghost-main h3 {
  font-family: 'Lexend', sans-serif;
  color: var(--white);
}

.ghost-main h1 em,
.ghost-main h2 em { color: var(--gold); font-style: italic; }

.ghost-main a { color: var(--gold); text-decoration: none; }
.ghost-main a:hover { color: var(--gold-2); }

.ghost-main label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--w60);
  margin: 14px 0 6px;
}

.ghost-main input[type="text"],
.ghost-main input[type="email"],
.ghost-main input[type="password"],
.ghost-main textarea,
.ghost-main select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  padding: 12px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
}

.ghost-main input:focus,
.ghost-main textarea:focus,
.ghost-main select:focus {
  outline: none;
  border-color: var(--gold-border);
}

.ghost-main button,
.ghost-main input[type="submit"] {
  display: inline-block;
  margin-top: 18px;
  background: var(--gold);
  color: #00312f;
  border: 0;
  border-radius: 100px;
  padding: 12px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.ghost-main button:hover,
.ghost-main input[type="submit"]:hover { background: var(--gold-2); }

/* ── Theme My Login / moduli di accesso ── */
.ghost-main .tml { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; }
.ghost-main .tml-title { font-family: 'Lexend', sans-serif; font-size: 2rem; color: var(--white); margin-bottom: 18px; }
.ghost-main .tml-field-wrap { margin-bottom: 4px; }
.ghost-main .tml-error, .ghost-main .tml-errors { background: rgba(160, 40, 40, 0.25); border: 1px solid rgba(220, 90, 90, 0.4); border-radius: var(--radius); padding: 12px 16px; font-size: 0.82rem; margin-bottom: 16px; }
.ghost-main .tml-message, .ghost-main .tml-messages { background: var(--gold-glow); border: 1px solid var(--gold-border); border-radius: var(--radius); padding: 12px 16px; font-size: 0.82rem; margin-bottom: 16px; }
.ghost-main .tml-links { margin-top: 18px; font-size: 0.8rem; color: var(--w35); }
.ghost-main .tml-rememberme-wrap label { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 0.8rem; }
.catt-consent { margin: 12px 0 0; }
.catt-consent label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.78rem; line-height: 1.6; color: var(--w60); text-transform: none; letter-spacing: 0; }
.catt-consent input[type="checkbox"] { width: auto; margin-top: 3px; accent-color: var(--gold); }
.catt-consent a { color: var(--gold); }

    /* ── RESPONSIVE HARDENING: mai scroll orizzontale (iOS ignora overflow-x su body) ── */
    html { overflow-x: hidden; overflow-x: clip; }
