    /* Variabili CSS locali — palette brand (coerente con login.html) */
    :root {
      --color-bg: #FAFAF7;
      --color-dark: #2C1810;
      --color-gold: #C9A84C;
      --color-warm: #F5F0EB;
    }

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

    body {
      margin: 0;
      background: var(--color-bg);
      font-family: system-ui, -apple-system, sans-serif;
      color: var(--color-dark);
    }

    /* Top bar */
    .top-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--color-dark);
      padding: 16px 24px;
    }

    .top-bar .back-link {
      color: var(--color-gold);
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
    }

    .top-bar .page-title {
      color: #FFFFFF;
      font-size: 16px;
      font-weight: 600;
    }

    .top-bar .top-actions {
      display: flex;
      gap: 8px;
    }

    .btn-logout {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.3);
      color: #FFFFFF;
      font-size: 14px;
      font-weight: 600;
      min-height: 36px;
      padding: 8px 16px;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.15s;
    }

    .btn-logout:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    .btn-logout:focus {
      outline: 2px solid var(--color-gold);
      outline-offset: 2px;
    }

    /* Main content */
    main {
      max-width: 720px;
      margin: 0 auto;
      padding: 24px 16px;
    }

    h1 {
      font-size: 24px;
      font-weight: 600;
      line-height: 1.2;
      margin: 0 0 24px 0;
      color: var(--color-dark);
    }

    fieldset {
      border: none;
      border-top: 2px solid var(--color-gold);
      padding: 24px 0 0 0;
      margin: 0 0 24px 0;
    }

    fieldset h2 {
      font-size: 18px;
      font-weight: 600;
      line-height: 1.2;
      margin: 0 0 16px 0;
      color: var(--color-dark);
    }

    .field {
      margin-bottom: 16px;
    }

    label {
      display: block;
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 8px;
      color: var(--color-dark);
    }

    input[type="text"],
    input[type="date"],
    input[type="url"],
    select,
    textarea {
      width: 100%;
      padding: 12px 16px;
      font-size: 16px;
      font-family: inherit;
      border: 1.5px solid #D1C7BC;
      border-radius: 8px;
      background: #FFFFFF;
      outline: none;
      transition: border-color 0.15s, box-shadow 0.15s;
    }

    textarea {
      resize: vertical;
    }

    textarea.mono {
      font-family: monospace;
    }

    input[type="text"]:focus,
    input[type="date"]:focus,
    input[type="url"]:focus,
    select:focus,
    textarea:focus {
      border-color: var(--color-gold);
      box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
    }

    input[readonly] {
      background: var(--color-warm);
      cursor: not-allowed;
    }

    .hint {
      display: none;
      font-size: 12px;
      color: #6B7280;
      margin-top: 4px;
    }

    .hint--static {
      display: block;
    }

    .is-hidden {
      display: none;
    }

    /* Barra azioni */
    .actions-bar {
      padding-top: 24px;
      border-top: 1px solid #D1C7BC;
      display: flex;
      gap: 8px;
    }

    button.primary {
      min-height: 44px;
      padding: 12px 24px;
      background: var(--color-dark);
      color: #FFFFFF;
      font-size: 16px;
      font-weight: 600;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
    }

    button.primary:hover {
      background: var(--color-gold);
      color: var(--color-dark);
    }

    button.primary:focus {
      outline: 2px solid var(--color-gold);
      outline-offset: 2px;
    }

    button.primary:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    button.publish {
      background: var(--color-gold);
      color: var(--color-dark);
    }

    /* Banner feedback */
    .success-banner,
    .error-banner {
      display: none;
      border-radius: 8px;
      padding: 12px 16px;
      font-size: 14px;
      margin-top: 16px;
    }

    .success-banner p,
    .error-banner p {
      margin: 0;
    }

    .success-banner {
      background: #F0FDF4;
      border: 1px solid #BBF7D0;
      color: #166534;
    }

    .error-banner {
      background: #FEF2F2;
      border: 1px solid #FECACA;
      color: #991B1B;
    }

    /* Upload immagine hero (Phase 11) */
    .upload-field {
      border: 1.5px dashed #D1C7BC;
      border-radius: 8px;
      padding: 16px;
      background: #FFFFFF;
      text-align: center;
    }

    .upload-btn {
      position: relative;
      display: inline-block;
      background: var(--color-warm);
      color: var(--color-dark);
      min-height: 44px;
      line-height: 28px;
      padding: 8px 20px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 16px;
      font-weight: 600;
    }

    .upload-btn input[type="file"] {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: pointer;
    }

    .upload-btn:focus-within {
      box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
    }

    .upload-filename {
      display: inline-block;
      max-width: 240px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      vertical-align: middle;
      margin-left: 8px;
      font-size: 16px;
      color: var(--color-dark);
    }

    .upload-preview {
      display: none;
      max-width: 320px;
      max-height: 180px;
      object-fit: cover;
      border-radius: 8px;
      border: 1.5px solid #D1C7BC;
      margin: 16px auto 0 auto;
    }

    .upload-caption {
      display: none;
      font-size: 14px;
      color: #6B7280;
      margin-top: 4px;
    }

    .upload-error {
      display: none;
      font-size: 14px;
      color: #991B1B;
      margin-top: 4px;
    }
  