/* ── StarShop Gift Card Portal ─────────────────────────────────────────────── */
/* Brand: starshopdistribuzione.com                                             */
/* Palette: nero #111 | bianco #fff | oro stella #F5C518 | grigio #888         */
/* Tono: dark editorial, fumetteria premium, minimal con personalità            */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700;800;900&display=swap');

:root {
  --black:      #111111;
  --black-mid:  #1a1a1a;
  --black-soft: #242424;
  --card-bg:    #1e1e1e;
  --line:       rgba(255,255,255,0.09);
  --gold:       #F5C518;
  --gold-dark:  #d4a80e;
  --white:      #ffffff;
  --off-white:  #f0ede8;
  --muted:      rgba(255,255,255,0.45);
  --muted-more: rgba(255,255,255,0.25);

  /* Form/light section */
  --form-bg:    #f7f6f3;
  --form-card:  #ffffff;
  --text:       #111111;
  --text-mid:   #444444;
  --text-muted: #888888;
  --border:     #e2e2e2;
  --red:        #c0392b;
  --green:      #1a7a3e;

  --radius:     5px;
  --radius-lg:  10px;
  --shadow:     0 2px 20px rgba(0,0,0,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
}

.container        { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 560px;  margin: 0 auto; padding: 0 28px; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--black);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.header-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}
.header-section {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--black);
  padding: 80px 0 90px;
  border-bottom: 1px solid var(--line);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 72px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-label-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 62px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}
.hero-title .accent { color: var(--gold); }

.hero-body {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.8;
  font-weight: 400;
  max-width: 430px;
}

/* ── Gift Card Visual ───────────────────────────────────────────────────────── */
.gift-card-visual {
  background: var(--black-soft);
  border: 1px solid rgba(245,197,24,0.18);
  border-radius: 16px;
  padding: 26px 28px 22px;
  aspect-ratio: 1.586;
  position: relative;
  overflow: hidden;
  transform: rotate(2deg);
  transition: transform 0.4s ease;
  box-shadow:
    0 32px 64px rgba(0,0,0,0.65),
    0 0 0 1px rgba(245,197,24,0.06),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.gift-card-visual:hover { transform: rotate(0deg) scale(1.02); }

/* Bagliore oro sottile in alto a sinistra */
.gift-card-visual::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245,197,24,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Striscia lucida diagonale effetto plastica */
.gift-card-visual::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.025) 50%, transparent 60%);
  pointer-events: none;
}

/* ── Header card: logo + label ── */
.gc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
}
.gc-logo {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.gc-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.25);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}

/* ── Chip NFC ── */
.gc-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #d4a80e 0%, #f5c518 50%, #c49008 100%);
  border-radius: 5px;
  margin-bottom: 14px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.gc-chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 16px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 3px;
}
.gc-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 16px;
  background: rgba(0,0,0,0.15);
  box-shadow: -5px 0 0 rgba(0,0,0,0.1), 5px 0 0 rgba(0,0,0,0.1);
}

/* ── Importo ── */
.gc-amount-wrap { margin-bottom: 0; }
.gc-amount-label {
  font-size: 9px;
  color: var(--muted-more);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 3px;
}
.gc-amount {
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1;
}

/* ── Numero carta + contactless ── */
.gc-footer {
  position: absolute;
  bottom: 20px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gc-number {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--muted-more);
  font-family: monospace;
}
.gc-contactless {
  width: 18px;
  height: 18px;
  opacity: 0.2;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245,197,24,0.3);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
.btn-lg   { padding: 16px 36px; font-size: 15px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ── How It Works ───────────────────────────────────────────────────────────── */
.how-it-works {
  padding: 88px 0;
  background: var(--black-mid);
  border-bottom: 1px solid var(--line);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 32px;
  background: rgba(245,197,24,0.35);
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  text-align: center;
  color: var(--white);
  margin-bottom: 56px;
  letter-spacing: -0.3px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
}
.step { padding: 0 40px; text-align: center; }
.step-divider {
  background: var(--line);
  margin: 20px 0;
}

.step-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.step-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}
.step h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.step p { font-size: 14px; color: var(--muted); line-height: 1.7; font-weight: 400; }

/* ── Security Strip ─────────────────────────────────────────────────────────── */
.security-strip {
  background: var(--black);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}
.security-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.sec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 7px;
}
.security-item strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: -0.1px;
}
.security-item p { color: var(--muted); font-size: 13px; margin: 0; font-weight: 400; line-height: 1.6; }

/* ── Form Section (light) ───────────────────────────────────────────────────── */
.form-section {
  flex: 1;
  background: var(--form-bg);
  padding: 56px 0 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

.form-header { margin-bottom: 28px; }
.form-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-dark);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.form-eyebrow-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-dark);
  flex-shrink: 0;
}
.form-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.form-subtitle { color: var(--text-muted); font-size: 15px; font-weight: 400; }

.form-card {
  background: var(--form-card);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group   { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 7px;
}
.label-hint {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 1px;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-weight: 600;
}
.form-input:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(212,168,14,0.12);
  background: #fff;
}
.form-input::placeholder { color: #ccc; font-weight: 400; }
.form-input-code {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 4px;
}

.field-error { display: block; color: var(--red); font-size: 12px; font-weight: 700; margin-top: 5px; }
.validation-summary {
  background: #fff0f2;
  border: 1px solid #f5c0c8;
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

.privacy-box {
  background: #f4f4f1;
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Result Cards ───────────────────────────────────────────────────────────── */
.result-card { border-radius: var(--radius-lg); padding: 40px; text-align: center; margin-bottom: 24px; }
.result-success { background: #f0fdf5; border: 1.5px solid #86efac; }
.result-error   { background: #fff0f2; border: 1.5px solid #fca5a5; }
.result-icon    { font-size: 42px; margin-bottom: 12px; }
.result-card h2 { font-size: 26px; color: var(--text); margin-bottom: 8px; }
.result-card p  { color: var(--text-muted); margin-bottom: 6px; font-size: 15px; }
.value-badge {
  display: inline-block;
  font-size: 38px;
  font-weight: 900;
  color: var(--green);
  background: rgba(26,122,62,0.08);
  padding: 6px 28px;
  border-radius: 50px;
  margin: 10px 0;
}
.result-hint { font-size: 13px; color: var(--text-muted); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-main { flex: 1; }
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer p { color: var(--muted-more); font-size: 12px; margin: 0; font-weight: 400; }
.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.45;
}


/* radio button richiesta invio otp*/
/* ── Radio group (canale PIN) ───────────────────────────────────────────────── */
.radio-group {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: var(--form-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 16px;
    flex: 1;
    transition: border-color 0.2s;
}

    .radio-option:hover {
        border-color: var(--gold);
    }

    .radio-option input[type="radio"] {
        accent-color: var(--gold);
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

.radio-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { display: flex; justify-content: center; }
  .gift-card-visual { width: 300px; transform: none; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 28px 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: none; }
  .step-divider { display: none; }
  .security-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .site-footer .container { flex-direction: column; text-align: center; }
}

/* ── Regolamento ─────────────────────────────────────────────────────────────── */
.reg-hero {
  background: var(--black);
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
}
.reg-hero-title {
  font-size: clamp(40px, 5.5vw, 62px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  margin-top: 16px;
}
.reg-hero-title .accent { color: var(--gold); }
.reg-hero-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 400;
  max-width: 520px;
}

/* Rule cards grid */
.reg-rules {
  background: var(--black-mid);
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
}
.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rule-card {
  background: var(--card-bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rule-card--highlight {
  background: var(--black-soft);
  border-bottom: 2px solid var(--gold);
}
.rule-icon {
  font-size: 30px;
  line-height: 1;
}
.rule-card h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.2px;
}
.rule-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 400;
  flex: 1;
}
.rule-card p strong { color: rgba(255,255,255,0.85); font-weight: 700; }

.rule-cta {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
  margin-top: 4px;
  transition: opacity 0.2s;
}
.rule-cta:hover { opacity: 0.7; }

/* Esempio uso parziale */
.rule-example {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.example-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.example-label { font-size: 12px; color: var(--muted); font-weight: 400; }
.example-value { font-size: 14px; font-weight: 800; color: var(--white); }
.example-spent { color: rgba(255,100,100,0.8); }
.example-new   { color: var(--gold); }
.example-arrow { font-size: 16px; color: var(--muted-more); text-align: center; }
.example-divider {
  height: 1px;
  background: var(--line);
  margin: 2px 0;
}

/* Summary section */
.reg-summary {
  background: var(--black);
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
}
.summary-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.6;
}
.summary-item:nth-child(odd) { border-right: 1px solid var(--line); }
.summary-item strong { color: rgba(255,255,255,0.8); font-weight: 700; }
.summary-check {
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}
.summary-x {
  color: rgba(255,100,100,0.7);
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

/* CTA strip */
.reg-cta {
  background: var(--black-mid);
  padding: 52px 0;
}
.reg-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.reg-cta-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.reg-cta-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.3px;
}

/* Footer nav link */
.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-nav a {
  color: var(--muted-more);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }

/* Regolamento responsive */
@media (max-width: 900px) {
  .rule-grid     { grid-template-columns: 1fr; }
  .summary-list  { grid-template-columns: 1fr; }
  .summary-item:nth-child(odd) { border-right: none; }
  .reg-cta-inner { flex-direction: column; text-align: center; }
}

.rule-card--required {
  border-top: 2px solid var(--gold);
  position: relative;
}
.rule-required-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245,197,24,0.12);
  border: 1px solid rgba(245,197,24,0.35);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 3px;
}
.rule-required-badge::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  background: var(--gold);
  color: var(--black);
  font-size: 9px;
  font-weight: 900;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Header nav ──────────────────────────────────────────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.header-nav-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  letter-spacing: 0.3px;
  transition: color 0.18s, background 0.18s;
}
.header-nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.header-nav-link.active {
  color: var(--gold);
}
