/* =============================================================================
   Circolo dell'ImprenditorIA — Design System
   -----------------------------------------------------------------------------
   Identità visiva condivisa da landing, area personale e area admin.
   Palette navy/oro + gradienti tech blu->viola, tipografia self-host
   (Inter per il testo, Sora per i titoli). Nessuna dipendenza CDN.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Font self-host (@font-face)
   I file woff2 risiedono in ../fonts/. font-display:swap evita il blocco render.
   --------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-600.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sora-700.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/sora-800.woff2") format("woff2");
}

/* -----------------------------------------------------------------------------
   2. Design tokens (CSS custom properties)
   --------------------------------------------------------------------------- */
:root {
  /* Brand — navy */
  --c-navy-900: #061a33;
  --c-navy-800: #0a2540;
  --c-navy-700: #0d2b57;
  --c-navy-600: #123a73;
  --c-navy-500: #1c4f96;

  /* Brand — oro/accento */
  --c-gold-600: #d99700;
  --c-gold-500: #f5b301;
  --c-gold-400: #ffc63a;

  /* Accenti tech */
  --c-blue: #2f6bff;
  --c-violet: #7b5cff;
  --c-cyan: #25d0e6;

  /* Neutri / superfici */
  --c-white: #ffffff;
  --c-ink: #0b1b2e;
  --c-paper: #f5f7fb;
  --c-paper-2: #eef2f9;
  --c-mute: #5b6b82;
  --c-line: rgba(10, 37, 64, 0.10);

  /* Testo su sfondo scuro */
  --c-on-dark: #eaf1fb;
  --c-on-dark-mute: #9fb3d1;

  /* Gradienti */
  --grad-tech: linear-gradient(120deg, var(--c-blue) 0%, var(--c-violet) 100%);
  --grad-gold: linear-gradient(120deg, var(--c-gold-400) 0%, var(--c-gold-600) 100%);
  --grad-navy: linear-gradient(160deg, var(--c-navy-700) 0%, var(--c-navy-900) 100%);
  --grad-hero: radial-gradient(120% 120% at 80% 0%, var(--c-navy-600) 0%, var(--c-navy-800) 45%, var(--c-navy-900) 100%);

  /* Tipografia */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Raggi / ombre / spaziatura */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.08);
  --shadow: 0 14px 40px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 30px 70px rgba(6, 26, 51, 0.30);
  --shadow-gold: 0 16px 40px rgba(217, 151, 0, 0.35);

  --container: 1160px;
  --gap: clamp(1rem, 2.5vw, 2rem);

  /* Glassmorphism (su scuro) */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bd: rgba(255, 255, 255, 0.14);
  --glass-blur: 14px;

  --t-fast: 0.18s ease;
  --t: 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* -----------------------------------------------------------------------------
   3. Reset / base
   --------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--c-navy-600); text-decoration: none; }
a:hover { color: var(--c-blue); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--c-navy-800);
}
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--c-gold-500); color: var(--c-navy-900); }

/* -----------------------------------------------------------------------------
   4. Layout helpers
   --------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.4rem, var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: 820px; }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.section--dark { background: var(--grad-navy); color: var(--c-on-dark); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--c-white); }
.section--paper-2 { background: var(--c-paper-2); }

.stack > * + * { margin-top: var(--gap); }
.text-center { text-align: center; }
.muted { color: var(--c-mute); }
.section--dark .muted { color: var(--c-on-dark-mute); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold-600);
}
.section--dark .eyebrow { color: var(--c-gold-400); }
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--c-mute);
  max-width: 60ch;
}
.section--dark .lead { color: var(--c-on-dark-mute); }

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

/* Gradient/highlight su testo */
.text-gradient {
  background: var(--grad-tech);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gold { color: var(--c-gold-500); }

/* -----------------------------------------------------------------------------
   5. Bottoni
   --------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-navy-800);
  --btn-fg: var(--c-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.7rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-fg: var(--c-navy-900);
  background: var(--grad-gold);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover { filter: brightness(1.05); box-shadow: 0 20px 48px rgba(217, 151, 0, 0.45); }

.btn--tech {
  background: var(--grad-tech);
  box-shadow: 0 16px 40px rgba(47, 107, 255, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--c-navy-800);
  box-shadow: inset 0 0 0 2px var(--c-line);
}
.section--dark .btn--ghost { color: var(--c-on-dark); box-shadow: inset 0 0 0 2px var(--glass-bd); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--c-blue); color: var(--c-blue); }

.btn--lg { padding: 1.15rem 2.3rem; font-size: 1.1rem; }
.btn--block { width: 100%; }

/* -----------------------------------------------------------------------------
   6. Card (glassmorphism + chiare)
   --------------------------------------------------------------------------- */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(47, 107, 255, 0.25); }

.card--glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  color: var(--c-on-dark);
  box-shadow: var(--shadow-lg);
}
.card--glass:hover { border-color: rgba(255, 255, 255, 0.3); }

/* striscia gradiente decorativa in alto */
.card--accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-tech);
  opacity: 0;
  transition: opacity var(--t);
}
.card--accent:hover::before { opacity: 1; }

/* -----------------------------------------------------------------------------
   7. Griglia benefit (icone)
   --------------------------------------------------------------------------- */
.benefit { text-align: left; }
.benefit__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--grad-navy);
  color: var(--c-gold-500);
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.benefit__icon svg { width: 32px; height: 32px; }
.benefit h3 { margin-bottom: 0.4rem; }
.benefit p { color: var(--c-mute); margin: 0; font-size: 0.98rem; }

/* -----------------------------------------------------------------------------
   8. Badge prezzo
   --------------------------------------------------------------------------- */
.price-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(150px, 22vw, 200px);
  height: clamp(150px, 22vw, 200px);
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--c-navy-900);
  text-align: center;
  box-shadow: var(--shadow-gold);
  font-family: var(--font-head);
  line-height: 1;
}
.price-badge__top { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.price-badge__amount { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; }
.price-badge__bottom { font-size: 0.85rem; font-weight: 700; }

.price-card {
  text-align: center;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow);
}
.price-card__amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 4.4rem);
  color: var(--c-navy-800);
  line-height: 1;
}
.price-card__amount sup { font-size: 0.4em; vertical-align: super; }
.price-card__period { color: var(--c-mute); font-weight: 600; }
.price-card__old { text-decoration: line-through; color: var(--c-mute); font-size: 1.2rem; }
.price-card ul { list-style: none; padding: 0; margin: 1.4rem 0; text-align: left; }
.price-card li { padding: 0.45rem 0 0.45rem 1.9rem; position: relative; }
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad-tech);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(47, 107, 255, 0.12);
  color: var(--c-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tag--gold { background: rgba(245, 179, 1, 0.18); color: var(--c-gold-600); }

/* -----------------------------------------------------------------------------
   9. Steps / percorso
   --------------------------------------------------------------------------- */
.step__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-tech);
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 1rem;
}

/* contatori "Perché conviene" */
.stat__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { color: var(--c-mute); font-weight: 600; }
.section--dark .stat__label { color: var(--c-on-dark-mute); }

/* -----------------------------------------------------------------------------
   10. Topbar pubblica
   --------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow var(--t);
}
.topbar.is-scrolled { box-shadow: var(--shadow-sm); }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.topbar__nav { display: flex; align-items: center; gap: 1.6rem; }
.topbar__nav a {
  font-weight: 600;
  color: var(--c-navy-800);
  font-size: 0.98rem;
}
.topbar__nav a:hover { color: var(--c-blue); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand svg, .brand img { height: 38px; width: auto; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px 0;
  background: var(--c-navy-800); border-radius: 2px; transition: var(--t-fast);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .topbar__nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    background: var(--c-white);
    padding: 1rem 1.2rem 1.4rem;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow);
    display: none;
  }
  .topbar__nav.is-open { display: flex; }
  .topbar__nav .btn { width: 100%; margin-top: 0.4rem; }
}

/* -----------------------------------------------------------------------------
   11. Footer
   --------------------------------------------------------------------------- */
.footer {
  background: var(--c-navy-900);
  color: var(--c-on-dark-mute);
  padding: 3.5rem 0 2rem;
}
.footer a { color: var(--c-on-dark); }
.footer a:hover { color: var(--c-gold-400); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.88rem;
}
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
   12. Hero
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: var(--c-on-dark);
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero h1 { color: var(--c-white); }
.hero__art { position: relative; }
.hero__art img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
}

/* -----------------------------------------------------------------------------
   13. Layout aree riservate (member/admin) — sidebar + dashboard
   --------------------------------------------------------------------------- */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px 1fr;
  background: var(--c-paper);
}
.sidebar {
  background: var(--grad-navy);
  color: var(--c-on-dark);
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .brand { margin: 0.2rem 0.6rem 1.4rem; }
.sidebar__section {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-on-dark-mute);
  padding: 1rem 0.8rem 0.4rem;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--c-on-dark);
  font-weight: 600;
  font-size: 0.96rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.sidebar a svg { width: 20px; height: 20px; flex: 0 0 auto; opacity: 0.85; }
.sidebar a:hover { background: rgba(255, 255, 255, 0.08); color: var(--c-white); }
.sidebar a.is-active {
  background: var(--grad-tech);
  color: var(--c-white);
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.35);
}
.sidebar a.is-active svg { opacity: 1; }
.sidebar__spacer { flex: 1; }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.2rem);
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.app-content { padding: clamp(1.2rem, 3vw, 2.2rem); }

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-tech);
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 700;
}

.page-head { margin-bottom: 1.6rem; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.3rem; }

.sidebar-toggle { display: none; background: none; border: 0; cursor: pointer; }
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    z-index: 60;
    width: 264px;
    transform: translateX(-100%);
    transition: transform var(--t);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-toggle { display: inline-flex; }
}

/* -----------------------------------------------------------------------------
   14. Form
   --------------------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--c-navy-800);
}
.section--dark .field label { color: var(--c-on-dark); }
.input,
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  font: inherit;
  color: var(--c-ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert--error { background: #fdecec; color: #98201b; border-color: #f3c2bf; }
.alert--success { background: #e8f7ee; color: #176c3a; border-color: #b9e6c9; }
.alert--info { background: #e9f0ff; color: #1b3f86; border-color: #c2d4f7; }

/* -----------------------------------------------------------------------------
   15. Tabelle (admin)
   --------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-white); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.data th,
table.data td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--c-line); }
table.data th {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-mute);
  background: var(--c-paper);
}
table.data tbody tr:hover { background: rgba(47, 107, 255, 0.04); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}
.badge--active { background: #e8f7ee; color: #176c3a; }
.badge--warn { background: #fff4e0; color: #9a6400; }
.badge--off { background: #f0f1f4; color: #6a7383; }

/* -----------------------------------------------------------------------------
   16. Animazioni (reveal / tilt) — guidate da app.js
   --------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--t), transform 0.7s var(--t);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: 0.08s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.16s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.24s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.32s; }

.tilt { transition: transform var(--t); transform-style: preserve-3d; will-change: transform; }

.float-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tilt { transform: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Utility */
.hidden { display: none !important; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 0.6rem; }
.gap { gap: 1rem; }
.full { width: 100%; }

/* -----------------------------------------------------------------------------
   17. Landing page — componenti specifici
   --------------------------------------------------------------------------- */
/* Hero */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}
.hero__quote {
  position: relative;
  margin: 2.2rem 0 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--c-gold-500);
  max-width: 56ch;
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--c-on-dark);
}
.hero__quote strong { color: var(--c-gold-400); }
.hero__quote-mark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--c-gold-500);
  margin-right: 0.2rem;
}
.hero__art-card { position: relative; display: inline-block; width: 100%; }
.hero__badge {
  position: absolute;
  right: clamp(-8px, -1vw, 8px);
  bottom: -14px;
  width: clamp(112px, 17vw, 148px);
  height: clamp(112px, 17vw, 148px);
}
.hero__badge .price-badge__amount { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }

/* Liste con spunta */
.check-list { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-direction: column; gap: 0.5rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.55rem; color: var(--c-mute); font-size: 0.97rem; }
.check-list__ic { color: var(--c-blue); flex: 0 0 auto; margin-top: 1px; }

/* "Perché conviene" — card motivo */
.reason {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius);
}
.reason__icon {
  width: 48px; height: 48px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad-tech);
  color: var(--c-white);
}
.reason h3 { font-size: 1.12rem; margin: 0 0 0.2rem; color: var(--c-white); }

/* Statistiche animate */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: clamp(2.4rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 760px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* "Il risultato" — banda navy */
.result-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--grad-navy);
  color: var(--c-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
}
.result-band h2 { color: var(--c-white); }
.result-band .eyebrow { color: var(--c-gold-400); }
.result-band__head { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.4rem; }
.result-band__icon {
  width: 64px; height: 64px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--grad-gold);
  color: var(--c-navy-900);
}
.result-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.result-list li {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--c-white);
}
.result-list .check-list__ic { color: var(--c-gold-400); }
@media (max-width: 760px) {
  .result-band { grid-template-columns: 1fr; }
  .result-list { grid-template-columns: 1fr; }
}

/* Box prezzo */
.price-card .tag { margin-bottom: 0.4rem; }

/* -----------------------------------------------------------------------------
   18. Area personale (member) — dashboard, cataloghi, contenuti
   --------------------------------------------------------------------------- */
.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* Griglia responsive auto-fit per i cataloghi di contenuti */
.content-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Card contenuto: colonna con azione ancorata in basso */
.content-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}
.content-card__head { display: flex; flex-direction: column; gap: 0.5rem; }
.content-card__title { font-size: 1.15rem; margin: 0; }
.content-card__excerpt { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.content-card__action { margin-top: auto; align-self: flex-start; }

.content-card .tag--gold { align-self: flex-start; }

/* Corpo articolo (HTML sanitizzato) */
.content-body {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--c-ink, #16243a);
}
.content-body > *:first-child { margin-top: 0; }
.content-body > *:last-child { margin-bottom: 0; }
.content-body a { color: var(--c-blue); }

/* Box prompt con azione copia */
.prompt-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--c-navy-900, #0a2540);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.prompt-box__text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.prompt-box__copy { align-self: flex-start; }
.prompt-box__copy.is-copied,
[data-copy].is-copied {
  color: var(--c-navy-900);
  background: var(--c-gold-500);
  border-color: var(--c-gold-500);
}

/* Riga tag */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Stato vuoto */
.empty-state {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.5rem);
  border: 1px dashed var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-paper);
  color: var(--c-mute);
}
.empty-state__icon {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--grad-tech);
  color: #fff;
  margin-bottom: 0.8rem;
}

/* Liste chiave/valore (account) */
.meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.meta-list li { display: flex; flex-direction: column; gap: 0.15rem; }
.meta-list dt, .meta-list .meta-list__k {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--c-mute);
}
.meta-list dd, .meta-list .meta-list__v { margin: 0; font-weight: 600; }

/* Card riepilogo dashboard con icona */
.summary-card { display: flex; gap: 1rem; align-items: flex-start; }
.summary-card__icon {
  width: 48px; height: 48px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 14px;
  background: var(--grad-tech); color: #fff;
}
.summary-card__count { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1; }
