
    :root {
      color-scheme: dark;

      --bg0: #000000;
      --bg1: #020617;
      --bg2: #0b1224;

      --text: #e5e7eb;
      --muted: #9ca3af;
      --muted2: #6b7280;

      --cyan: #22d3ee;
      --blue: #3b82f6;
      --green: #22c55e;

      --card: rgba(2, 6, 23, 0.96);
      --card2: rgba(15, 23, 42, 0.92);
      --border: rgba(30, 64, 175, 0.65);
      --border2: rgba(51, 65, 85, 0.85);

      --shadow: 0 22px 70px rgba(0, 0, 0, 0.9);
      --shadow2: 0 15px 40px rgba(0, 0, 0, 0.85);

      --radius-xl: 24px;
      --radius-lg: 18px;
      --radius-pill: 999px;
    }

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

    /* Rimuovi sottolineatura da tutti i link */
    a {
      text-decoration: none;
    }
    a:hover {
      text-decoration: none;
    }
    a:visited {
      text-decoration: none;
    }
    a:active {
      text-decoration: none;
    }

    body {
      min-height: 100vh;
      margin: 0;
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: radial-gradient(circle at top left, #0f172a 0, var(--bg1) 45%, var(--bg0) 100%);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
    }

    /* Background glow + texture */
    .glow {
      pointer-events: none;
      position: fixed;
      inset: 0;
      opacity: 0.65;
      z-index: -2;
    }
    .glow::before, .glow::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      filter: blur(80px);
      opacity: 0.7;
    }
    .glow::before {
      width: 340px; height: 340px;
      left: -120px; top: 10px;
      background: rgba(34, 211, 238, 0.32);
    }
    .glow::after {
      width: 420px; height: 420px;
      right: -140px; bottom: -120px;
      background: rgba(59, 130, 246, 0.28);
    }

    .noise {
      pointer-events: none;
      position: fixed;
      inset: 0;
      z-index: -1;
      opacity: 0.07;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
      background-size: 220px 220px;
    }

    .page {
      position: relative;
      min-height: 100vh;
      max-width: 1200px;
      margin: 0 auto;
      padding: 22px 16px 32px;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    /* Header */
    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 14px;
      border-radius: var(--radius-xl);
      background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92));
      border: 1px solid rgba(30, 64, 175, 0.45);
      box-shadow: 0 16px 55px rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(18px);
    }

    .brand { display: flex; align-items: center; gap: 14px; min-width: 0; }

    /* LOGO */
    .brand-logo {
      width: 46px;
      height: 46px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(59,130,246,0.18));
      border: 1px solid rgba(56, 189, 248, 0.35);
      overflow: hidden;
      box-shadow: 0 14px 30px rgba(56, 189, 248, 0.25);
      flex: 0 0 auto;
    }
    .brand-logo img {
      width: 100%;
      height: 100%;
      object-fit: cover; /* il tuo logo è quadrato: rende bene */
      transform: scale(1.02);
      filter: saturate(1.05) contrast(1.02);
    }

    .brand-text { min-width: 0; }
    .brand-text-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

    .brand-text-title h1 {
      font-size: 16px;
      font-weight: 650;
      letter-spacing: -0.02em;
      white-space: nowrap;
    }

    .brand-pill {
      font-size: 11px;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      background: rgba(15, 23, 42, 0.9);
      border: 1px solid rgba(56, 189, 248, 0.35);
      color: #67e8f9;
    }

    .brand-subtitle {
      font-size: 11px;
      color: var(--muted);
      margin-top: 2px;
      line-height: 1.35;
      max-width: 640px;
    }

    .brand-link {
      text-decoration: none;
      color: inherit;
      display: inline-flex;
    }
    
    .brand-link:hover {
      opacity: 0.95;
    }
    
    .brand-link:active {
      transform: translateY(1px);
    }
    

    .header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

    .btn {
      border-radius: var(--radius-pill);
      border: 1px solid transparent;
      padding: 8px 16px;
      font-size: 13px;
      font-weight: 520;
      cursor: pointer;
      transition: transform 0.16s ease-out, filter 0.16s ease-out, border-color 0.16s ease-out, background 0.16s ease-out;
      background: none;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: inherit;
      -webkit-tap-highlight-color: transparent;
    }

    .btn-outline {
      border-color: rgba(55, 65, 81, 0.8);
      background: rgba(15, 23, 42, 0.9);
      color: var(--text);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    }
    .btn-outline:hover { border-color: rgba(148, 163, 184, 0.9); background: rgba(15, 23, 42, 1); transform: translateY(-0.5px); }

    .btn-primary {
      background: linear-gradient(90deg, var(--cyan), var(--blue));
      color: #020617;
      box-shadow: 0 12px 25px rgba(56, 189, 248, 0.55);
    }
    .btn-primary:hover { filter: brightness(1.07); transform: translateY(-0.5px); }

    /* Focus "pulito" */
    .btn:focus, .btn:active { outline: none; }
    .btn:focus-visible { outline: 2px solid rgba(34, 211, 238, 0.7); outline-offset: 3px; }
    
    /* Bottoni statici (non cliccabili) */
    .btn-static { cursor: default; }

    /* Main layout */
    .main { display: flex; flex-direction: column; gap: 16px; flex: 1; }
    @media (min-width: 900px) {
      .main { flex-direction: row; align-items: stretch; }
    }
    .column-left, .column-right { display: flex; flex-direction: column; gap: 14px; }
    .column-left { flex: 1 1 0; }
    .column-right { flex: 0 0 360px; }

    /* Cards */
    .card {
      border-radius: var(--radius-xl);
      background: radial-gradient(circle at top left, var(--card2), var(--card));
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      padding: 22px 20px;
      backdrop-filter: blur(18px);
    }

    /* Left card content */
    .tagline {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      padding: 5px 12px;
      border-radius: var(--radius-pill);
      background: rgba(15, 23, 42, 0.95);
      border: 1px solid rgba(55, 65, 81, 0.9);
      color: #d1d5db;
      margin-bottom: 16px;
    }
    .tagline-dot {
      width: 7px; height: 7px;
      border-radius: 999px;
      background: var(--green);
      box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
    }
    .tagline span.dim { color: var(--muted); }

    .hero-title {
      font-size: 32px;
      line-height: 1.08;
      font-weight: 650;
      letter-spacing: -0.03em;
      margin-bottom: 10px;
    }
    .hero-subtitle {
      font-size: 18px;
      color: var(--text);
      margin-bottom: 18px;
    }
    .hero-subtitle span {
      font-weight: 420;
      font-size: 14px;
      display: block;
      color: var(--muted);
      margin-top: 6px;
      line-height: 1.55;
      max-width: 720px;
    }
    .hero-text {
      font-size: 13px;
      color: var(--muted);
      max-width: 720px;
      line-height: 1.7;
      margin-bottom: 22px;
    }

    /* Plan grid */
    .plan-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
    @media (min-width: 700px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

    .plan-card {
      font-size: 12px;
      line-height: 1.55;
      border-radius: var(--radius-lg);
      padding: 12px 12px 12px;
      border: 1px solid rgba(30, 64, 175, 0.75);
      background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.10), rgba(15, 23, 42, 0.96));
      box-shadow: 0 12px 35px rgba(8, 47, 73, 0.75);
      position: relative;
      overflow: hidden;
    }
    .plan-card::after {
      content: "";
      position: absolute;
      inset: -2px;
      background: radial-gradient(circle at top left, rgba(34,211,238,0.10), transparent 55%);
      opacity: 0.7;
      pointer-events: none;
    }
    .plan-card--muted {
      border-color: rgba(30, 64, 175, 0.55);
      background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.96));
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
    }

    .plan-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; position: relative; z-index: 1; }
    .plan-name {
      font-size: 11px;
      font-weight: 650;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .plan-pill {
      font-size: 10px;
      padding: 3px 8px;
      border-radius: var(--radius-pill);
      background: rgba(34, 211, 238, 0.18);
      color: #a5f3fc;
      border: 1px solid rgba(56, 189, 248, 0.6);
    }
    .plan-footnote { margin-top: 12px; font-size: 11px; color: var(--muted2); }

    /* Right side: modules */
    .side-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      gap: 10px;
    }
    .side-head h3 { font-size: 13px; font-weight: 650; }

    .side-pill {
      font-size: 11px;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      background: rgba(15, 23, 42, 0.95);
      border: 1px solid rgba(71, 85, 105, 0.8);
      color: var(--muted);
      white-space: nowrap;
    }

    .tool-card {
      border-radius: var(--radius-lg);
      border: 1px solid rgba(51, 65, 85, 0.8);
      background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
      padding: 12px 12px 11px;
      margin-bottom: 10px;
      text-decoration: none;
      color: inherit;
      box-shadow: var(--shadow2);
      transition: transform 0.16s ease-out, border-color 0.16s ease-out, background 0.16s ease-out;
      display: block;
      -webkit-tap-highlight-color: transparent;
    }
    .tool-card:hover {
      border-color: rgba(56, 189, 248, 0.65);
      background: radial-gradient(circle at top left, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.98));
      transform: translateY(-1px);
    }

    /* Fix refuso grafico focus */
    .tool-card:focus, .tool-card:active { outline: none; }
    .tool-card:focus-visible { outline: 2px solid rgba(34, 211, 238, 0.7); outline-offset: 3px; }

    .tool-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; gap: 10px; }
    .tool-name {
      font-size: 11px;
      font-weight: 650;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text);
    }
    .tool-badge {
      font-size: 10px;
      padding: 3px 8px;
      border-radius: var(--radius-pill);
      border: 1px solid rgba(52, 211, 153, 0.55);
      background: rgba(34, 197, 94, 0.12);
      color: #86efac;
      flex: 0 0 auto;
    }
    .tool-badge--dev {
      border-color: rgba(251, 191, 36, 0.65);
      background: rgba(251, 191, 36, 0.08);
      color: #fbbf24;
    }
    .tool-desc {
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 8px;
      line-height: 1.55;
    }
    .tool-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 11px;
      color: var(--cyan);
      gap: 10px;
    }
    .tool-footer span.secondary { color: var(--muted2); }

    /* Note card */
    .note-card {
      border-radius: var(--radius-xl);
      border: 1px solid rgba(51, 65, 85, 0.75);
      background: linear-gradient(
        135deg,
        rgba(34, 211, 238, 0.10),
        rgba(15, 23, 42, 1),
        rgba(59, 130, 246, 0.12)
      );
      padding: 14px 14px;
      font-size: 11px;
      color: #d1d5db;
      box-shadow: 0 18px 55px rgba(0, 0, 0, 0.85);
    }
    .note-title { font-weight: 650; margin-bottom: 6px; color: var(--text); }
    .note-body { color: var(--muted); margin-bottom: 8px; line-height: 1.7; }
    .note-meta { font-size: 10px; color: var(--muted2); }

    /* Info box (per moduli in sviluppo, avvisi, etc.) */
    .info-box {
      background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.1), rgba(15,23,42,0.9));
      border: 1px solid rgba(251, 191, 36, 0.3);
      border-radius: 12px;
      padding: 16px;
      margin-top: 20px;
    }
    .info-box-title {
      font-size: 0.9rem;
      font-weight: 600;
      color: #fbbf24;
      margin-bottom: 8px;
    }
    .info-box-text {
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.6;
    }
    .info-box-text ul {
      margin-top: 8px;
      padding-left: 20px;
      line-height: 1.8;
    }

    @media (max-width: 899px) {
      .header { padding: 12px 12px; }
      .card { padding: 18px 14px; }
      .column-right { flex-basis: auto; }
      .hero-title { font-size: 28px; }
      .brand-subtitle { display: none; }
    }
