/* FILE A2W-ONLY — brand identity redesign */
/* Logo/immagini: gestiti in Media Library, non in Identità Brand */
html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section:has(#a2wBiAssetsGrid),
html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-preview-column,
html[data-shell="dark"].a2w-shell #brand-identity .fd-bi-landing-preview,
html[data-shell="dark"].a2w-shell #brand-identity #fdBiAside {
  display: none !important;
}

.a2w-bi-page.a2w-bi-legacy-shell .a2w-bi-section:nth-of-type(3) {
  display: none;
}

.a2w-bi-page.a2w-bi-legacy-shell .a2w-bi-layout {
  display: block;
}

.a2w-bi-page.a2w-bi-legacy-shell .a2w-bi-header__actions {
  margin-top: 12px;
}

.a2w-bi-page.a2w-bi-legacy-shell .a2w-bi-state-badge {
  display: none;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--a2w-text-secondary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-state-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--a2w-border-default);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--a2w-text-secondary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-state-badge.is-dirty {
  border-color: rgba(248, 250, 252, 0.35);
  color: #f8fafc;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-state-badge.is-saving {
  border-color: rgba(63, 224, 200, 0.45);
  color: var(--a2w-action-primary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-state-badge.is-clean {
  border-color: var(--a2w-border-default);
  color: var(--a2w-text-secondary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-state-badge.is-pending {
  border-color: var(--a2w-border-subtle);
  color: var(--a2w-text-tertiary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-save-btn:disabled:not(.is-saving) {
  background: var(--a2w-action-secondary);
  border-color: var(--a2w-border-default);
  color: var(--a2w-text-tertiary);
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-save-btn.is-dirty:not(:disabled) {
  background: var(--a2w-action-primary);
  border-color: var(--a2w-action-primary);
  color: #05211d;
  cursor: pointer;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-save-btn.is-dirty:not(:disabled):hover {
  background: var(--a2w-action-primary-hover);
  border-color: var(--a2w-action-primary-hover);
  color: #021512;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-save-btn.is-saving:disabled {
  background: var(--a2w-action-secondary);
  border-color: rgba(63, 224, 200, 0.35);
  color: var(--a2w-action-primary);
  cursor: wait;
  opacity: 1;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-layout {
  display: block;
  width: 100%;
  margin-top: 8px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-main > .a2w-bi-section,
html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-main > .a2w-bi-danger-zone {
  width: 100%;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section {
  margin: 0;
  padding: 26px 28px;
  border: 1px solid var(--a2w-border-default);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: start;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section .a2w-bi-section__head,
html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section .form-row,
html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section .a2w-bi-assets-grid,
html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section .a2w-bi-contact-grid,
html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section .a2w-bi-accordion-trigger,
html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section .a2w-bi-accordion-body {
  grid-column: 1 / -1;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section__head {
  margin-bottom: 18px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section__head > *:first-child {
  margin-bottom: 5px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section__head h2 {
  margin: 0;
  font-size: 16px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section__head p {
  margin: 0;
  color: var(--a2w-text-secondary);
  font-size: 12px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section__head--row > div p {
  margin-bottom: 0;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-field-help {
  margin-top: 6px;
  color: var(--a2w-text-tertiary);
  font-size: 11px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-field-error {
  min-height: 16px;
  margin-top: 5px;
  color: #fca5a5;
  font-size: 11px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-slug-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-slug-status {
  min-width: 26px;
  text-align: center;
  font-size: 12px;
  color: var(--a2w-text-secondary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-url-preview {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--a2w-text-secondary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--a2w-border-default);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  padding: 12px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-slot__preview {
  width: 64px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid var(--a2w-border-subtle);
  overflow: hidden;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-slot--square .a2w-bi-asset-slot__preview {
  width: 64px;
  height: 64px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-slot__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-slot__placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.04);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-slot__body {
  flex: 1;
  min-width: 0;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-slot__title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-slot__hint {
  margin: 0 0 8px;
  color: var(--a2w-text-tertiary);
  font-size: 11px;
  line-height: 1.35;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-slot__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-link-btn {
  border: 0;
  background: transparent;
  color: var(--a2w-action-primary);
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--a2w-text-primary);
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 0 10px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-danger-zone {
  margin-top: 8px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  border-radius: 14px;
  padding: 18px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-danger-zone h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-danger-zone p {
  margin: 0 0 12px;
  color: #fecaca;
  font-size: 13px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-delete-dialog {
  position: fixed;
  inset: 0;
  z-index: var(--a2w-z-modal);
  display: grid;
  place-items: center;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-delete-dialog[hidden] {
  display: none;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-delete-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-delete-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  border-radius: 14px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: #0f172a;
  padding: 18px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-delete-dialog__panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-delete-dialog__panel p {
  margin: 0 0 12px;
  color: var(--a2w-text-secondary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-delete-dialog__actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

html[data-shell="dark"].a2w-shell #brand-identity input:focus-visible,
html[data-shell="dark"].a2w-shell #brand-identity select:focus-visible,
html[data-shell="dark"].a2w-shell #brand-identity button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--a2w-action-primary);
}

@media (max-width: 1023px) {
  html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section {
    grid-template-columns: 1fr;
  }

  html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-page {
    padding: 18px 12px;
  }

  html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-header {
    flex-direction: column;
  }

  html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-header__actions {
    width: 100%;
    justify-content: space-between;
  }

  html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-assets-grid {
    grid-template-columns: 1fr;
  }
}
