:root {
  --atip-bg:           #0a0a14;
  --atip-surface:      #141420;            /* Sfondi/Componenti      */
  --atip-text:         #ffffff;            /* Primari/Bianco         */
  --atip-muted:        #828a8e;            /* Primari/Grigio         */
  --atip-accent:       #a100ff;            /* Primari/Viola          */
  --atip-lilla:        #c2a3ff;            /* Primari/Lilla          */
  --atip-blue:         #224bff;            /* Primari/Blu            */
  --atip-blue-light:   #60a5fa;            /* Accento/Blu testo      */
  --atip-blue-bg:      rgba(29,27,153,.40);/* Accento/Blu sfondo     */
  --atip-green:        #34d399;            /* Accento/Verde testo    */
  --atip-green-bg:     rgba(6,95,70,.50);  /* Accento/Verde sfondo   */
  --atip-red:          #f87171;            /* Accento/Rosso          */
  --atip-yellow:       #fbbf24;            /* Accento/Giallo testo   */
  --atip-translucent:  rgba(255,255,255,.10); /* Sfondi/Transparent  */
  --atip-purple-bg:    rgba(117,0,192,.40);/* Accento/Viola sfondo   */
  --atip-red-bg:       rgba(153,27,27,.40);/* Accento/Rosso sfondo   */
  --atip-yellow-bg:    rgba(120,83,4,.40); /* Accento/Giallo sfondo  */
  --atip-muted-bg:     rgba(130,138,142,.40); /* Grigio sfondo (nodi muted) */
  --atip-border:       rgba(255,255,255,0.08);

  --atip-space-xs:  4px;
  --atip-space-md:  8px;
  --atip-space-lg: 12px;
  --atip-space-xl: 16px;
  --atip-space-3xl: 24px;

  --atip-radius-sm:   4px;
  --atip-radius:      8px;
  --atip-radius-tag: 16px;
  --atip-radius-card: 24px;
  --atip-radius-pill: 40px;

  --atip-control-h: 34px;

}

body.atip-page .atip-display1  { font-size: 32px; font-weight: 600; line-height: 1; }  /* nome entità, hero dettaglio */
body.atip-page .atip-h1        { font-size: 24px; font-weight: 600; line-height: 1; }
body.atip-page .atip-h2        { font-size: 20px; font-weight: 600; line-height: 1; }
body.atip-page .atip-title     { font-size: 16px; font-weight: 600; line-height: 1; }  /* Item Table title */
body.atip-page .atip-subtitle  { font-size: 14px; font-weight: 600; line-height: 1; }  /* Item Table subtitle */
body.atip-page .atip-body      { font-size: 14px; font-weight: 400; line-height: 1; }  /* Item Table body */
body.atip-page .atip-paragraph { font-size: 16px; font-weight: 400; line-height: 20px; }
body.atip-page .atip-textlink  { font-size: 16px; font-weight: 400; text-decoration: underline; color: var(--atip-text); }
body.atip-page .atip-tag-text  { font-size: 12px; font-weight: 400; line-height: 1; }

:root {
  --atip-sidebar-w:            240px;
  --atip-sidebar-w-collapsed:   88px;
  --atip-topbar-h:              68px;
}

body.atip-page {
  margin: 0;
  background-color: var(--atip-bg);
  background-image: radial-gradient(100% 100% at 50% 0%,
      rgba(161, 0, 255, 0.20) 0%,
      rgba(34, 75, 255, 0.02) 45%,
      rgba(0, 0, 0, 0.00) 100%
    ),
    linear-gradient(rgba(20, 20, 32, 0.20), rgba(20, 20, 32, 0.20));
  color: var(--atip-text);
  font-family: 'Graphik', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body.atip-page.atip-sidebar-collapsed {
  --atip-sidebar-w: var(--atip-sidebar-w-collapsed);
}

body.atip-page .atip-content {
  margin-left: var(--atip-sidebar-w);
  padding-top: var(--atip-topbar-h);
  min-height: 100vh;
  background: var(--atip-bg);
  transition: margin-left .2s ease;
}
body.atip-page .atip-container { padding: 16px; }

body.atip-page .atip-footer {
  margin-left: var(--atip-sidebar-w);
  transition: margin-left .2s ease;
  background: var(--atip-surface);
  color: var(--atip-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-top: 1px solid var(--atip-border);
  white-space: nowrap;
}
body.atip-page.atip-sidebar-collapsed .atip-footer {
  margin-left: var(--atip-sidebar-w-collapsed);
}
body:not(.atip-page) .atip-footer { display: none; }

.atip-topbar {
  position: fixed;
  top: 0;
  left: var(--atip-sidebar-w);
  right: 0;
  height: var(--atip-topbar-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  background: var(--atip-surface);
  z-index: 1030;
  transition: left .2s ease;
}
.atip-topbar__title {
  font-weight: 600;
  font-size: 16px;
  color: var(--atip-text);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atip-topbar__lead { display: flex; align-items: center; gap: var(--atip-space-3xl); }
.atip-topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.atip-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--atip-lilla);
  background: var(--atip-surface);
  color: var(--atip-text);
  padding: 0;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.atip-icon-btn__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--atip-lilla);
  color: var(--atip-bg);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}
.atip-icon-btn:hover,
.atip-icon-btn:focus {
  color: var(--atip-lilla);
  border-color: var(--atip-lilla);
  text-decoration: none;
}

.atip-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(138deg, var(--atip-lilla) 17%, var(--atip-accent) 95%);
}

.atip-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}
.atip-user:hover { text-decoration: none; }
.atip-user-toggle, .atip-user-toggle:hover, .atip-user-toggle:focus { text-decoration: none; }
.atip-user__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--atip-text);
  line-height: 1.2;
  margin: 0;
}
.atip-user__role {
  font-size: 12px;
  color: var(--atip-muted);
  line-height: 1.2;
  margin: 0;
}

body.atip-page .dropdown-menu-lg {
  max-width: 300px;
  min-width: 280px;
  padding: 0;
}
body.atip-page .atip-dropdown__empty {
  display: block;
  padding: var(--atip-space-xl) var(--atip-space-lg);
  color: var(--atip-muted);
  font-size: 14px;
  text-align: center;
}

.atip-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--atip-sidebar-w);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--atip-surface);
  z-index: 1040;
  transition: width .2s ease;
}

.atip-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.atip-brand__logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 7px;
  object-fit: cover;
}
.atip-brand__row { display: flex; align-items: center; gap: 8px; }
.atip-brand__name {
  font-weight: 600;
  font-size: 20px;
  color: var(--atip-text);
  margin: 0;
  white-space: nowrap;
}
.atip-brand__tagline {
  font-size: 12px;
  color: var(--atip-muted);
  margin: 0;
  white-space: nowrap;
}

.atip-sidebar__collapse {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  z-index: 1041;
}
.atip-sidebar__collapse i { transition: transform .2s ease; }
body.atip-sidebar-collapsed .atip-sidebar__collapse i { transform: rotate(180deg); }

.atip-sidebar__menu {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.atip-nav {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.atip-nav__section {
  font-size: 12px;
  color: var(--atip-muted);
  text-transform: uppercase;
  padding: 8px 16px;
  margin: 0;
  white-space: nowrap;
}
.atip-nav__item { margin: 0; }
.atip-nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  width: calc(100% - 16px);
  margin: 2px 8px;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 40px;
  background: none;
  color: var(--atip-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.atip-nav__link:hover {
  background: rgba(161, 0, 255, .15);
  color: var(--atip-text);
  text-decoration: none;
}
.atip-nav__link.is-active {
  background: radial-gradient(252.96% 323.87% at 46.37% -6.82%,
    rgba(161, 0, 255, 0.80) 0%,
    rgba(0, 73, 251, 0.08) 34.84%,
    rgba(0, 0, 0, 0.00) 98.08%),
    rgba(20, 20, 32, 0.20);
  border-color: var(--atip-accent);
  font-weight: 600;
  color: var(--atip-text);
}
.atip-nav__icon {
  width: 18px;
  flex-shrink: 0;
  text-align: center;
  color: var(--atip-text);
}
.atip-nav__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atip-nav__chevron {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--atip-muted);
  transition: transform .2s ease;
}
.atip-nav__item.is-open > .atip-nav__link .atip-nav__chevron { transform: rotate(-90deg); }

.atip-nav__submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.atip-nav__item.is-open > .atip-nav__submenu {
  max-height: 600px;
  border-left: 2px solid var(--atip-muted);
  margin-left: 28px;
  padding-left: 6px;
}
.atip-nav__item.is-open:has(.is-active) > .atip-nav__submenu {
  border-left-color: var(--atip-accent);
}
.atip-nav__submenu .atip-nav__link {
  font-size: 14px;
  padding: 8px 16px;
  margin: 2px 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 6px;
}
.atip-nav__submenu .atip-nav__link.is-active {
  color: var(--atip-lilla);
  background: none;
  border-color: transparent;
}

.atip-nav__tooltip {
  position: fixed;
  z-index: 1050;
  background: #121213;
  border-radius: 14px;
  padding: 8px 16px;
  min-width: 180px;
  display: none;
}
.atip-nav__tooltip ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.atip-nav__tooltip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
}
.atip-nav__tooltip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--atip-muted);
}
.atip-nav__tooltip-item.is-active .atip-nav__tooltip-dot {
  background: var(--atip-lilla);
}
.atip-nav__tooltip-item a {
  color: var(--atip-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1.2;
}
.atip-nav__tooltip-item.is-active a {
  color: var(--atip-lilla);
  font-weight: 600;
}
.atip-nav__tooltip-item:hover a { color: var(--atip-lilla); }

.atip-sidebar__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin: 8px;
  padding: 8px 8px 8px 16px;
  border-radius: 8px;
  color: var(--atip-text);
  font-size: 16px;
  text-decoration: none;
  overflow: hidden;
}
.atip-sidebar__footer:hover {
  background: rgba(255, 255, 255, .05);
  color: var(--atip-text);
  text-decoration: none;
}
.atip-sidebar__footer-label { flex: 1 1 auto; min-width: 0; white-space: nowrap; }

body.atip-sidebar-collapsed .atip-brand__row,
body.atip-sidebar-collapsed .atip-brand__tagline,
body.atip-sidebar-collapsed .atip-nav__label,
body.atip-sidebar-collapsed .atip-nav__chevron,
body.atip-sidebar-collapsed .atip-nav__section,
body.atip-sidebar-collapsed .atip-sidebar__footer-label,
body.atip-sidebar-collapsed .atip-sidebar__footer .atip-icon-btn { display: none; }

body.atip-sidebar-collapsed .atip-brand { justify-content: center; padding: 16px 8px 8px; }
body.atip-sidebar-collapsed .atip-nav__link { justify-content: center; padding: 12px 0; }
body.atip-sidebar-collapsed .atip-nav__submenu { max-height: 0; }
body.atip-sidebar-collapsed .atip-sidebar__footer { justify-content: center; padding: 8px; }

body.sidebar-collapse:not(.atip-page) {
  --atip-sidebar-w: var(--atip-sidebar-w-collapsed);
}
body:not(.atip-page) .content-wrapper,
body:not(.atip-page) .main-footer {
  margin-left: var(--atip-sidebar-w) !important;
  transition: margin-left .2s ease;
}
body:not(.atip-page) .content-wrapper {
  margin-top: 0 !important;
  padding-top: var(--atip-topbar-h);
}

.atip-sidebar__footer .atip-icon-btn { width: 32px; height: 32px; }
.atip-sidebar__footer .atip-icon-btn i { font-size: 12px; }

.atip-card {
  background: var(--atip-surface);
  border-radius: 24px;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.atip-card--stack { display: flex; flex-direction: column; }
.atip-card--auto { height: auto; }
.atip-card-scroll { display: flex; flex-direction: column; overflow-y: auto; }
body.atip-page .atip-overview--scroll {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: var(--atip-space-md);
}
.atip-chart-fill { position: relative; flex: 1; min-height: 200px; }
.atip-chart-fill > canvas { width: 100%; height: 100%; }
.atip-card-header--spaced { margin-bottom: var(--atip-space-3xl); }

.atip-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 55% at 50% 0%,
    rgba(161,0,255,.20) 0%,
    rgba(129,19,255,.155) 11.25%,
    rgba(98,38,255,.11) 22.5%,
    rgba(34,75,255,.02) 45%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.atip-card > * { position: relative; }

.atip-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.atip-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--atip-text);
  margin: 0;
  white-space: nowrap;
}
.atip-card-subtitle {
  font-size: 12px;
  color: var(--atip-muted);
  margin-left: auto;
  white-space: nowrap;
}

.atip-stat-card {
  background: var(--atip-surface);
  border-radius: 24px;
  height: 110px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  text-decoration: none;
  transition: border .15s;
  border: 1px solid transparent;
  overflow: hidden;
}
.atip-stat-card:hover {
  border-color: var(--atip-lilla);
  text-decoration: none;
}

.atip-stat-body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.atip-stat-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--atip-text);
  margin: 0;
  line-height: 1;
}
.atip-stat-value {
  font-size: 32px;
  font-weight: 600;
  color: var(--atip-text);
  margin: 0;
  line-height: 1;
}
.atip-glyph {
  display: inline-block;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: var(--atip-glyph) center / contain no-repeat;
  mask: var(--atip-glyph) center / contain no-repeat;
}

.atip-stat-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.10);
  border-radius: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--atip-lilla);
  font-size: 20px;
  padding: 12px;
  box-sizing: border-box;
}

.atip-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
}
.atip-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--atip-surface);
  text-decoration: none;
  gap: 8px;
}
.atip-list-item:last-child { border-bottom: none; }
.atip-list-item:hover { background: rgba(255,255,255,.03); }
.atip-list-text { flex: 1 0 0; min-width: 0; }
.atip-list-primary {
  font-size: 16px; font-weight: 600; color: var(--atip-text);
  margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.atip-list-secondary {
  font-size: 14px; color: var(--atip-muted); margin: 0;
}

.atip-vuln-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--atip-surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}
.atip-vuln-item:last-child { border-bottom: none; }
.atip-vuln-item:hover { opacity: .85; }
.atip-vuln-title {
  font-size: 16px; font-weight: 600; color: var(--atip-text);
  margin: 0; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.atip-cve-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.atip-cve-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.atip-cve-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.atip-cve-id {
  font-size: 14px; color: var(--atip-muted);
  flex-shrink: 0; width: 140px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.atip-cve-bar-wrap {
  flex: 1; height: 5px; background: rgba(255,255,255,.08);
  border-radius: 3px; overflow: hidden; min-width: 40px;
}
.atip-cve-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #c2a3ff 0%, #60a5fa 100%);
  box-shadow: 0 0 6px rgba(96,165,250,.5);
  transition: width .3s;
}
.atip-cve-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: 16px;
}
.atip-cve-count {
  font-size: 14px; font-weight: 600; color: var(--atip-text);
}

.atip-industry-list { display: flex; flex-direction: column; gap: 16px; }
.atip-industry-row { width: 100%; }
.atip-industry-label-row {
  display: flex; justify-content: space-between;
  font-size: 14px; margin-bottom: 6px; padding: 0 16px;
}
.atip-industry-name { color: var(--atip-muted); }
.atip-industry-pct  { color: var(--atip-text); font-weight: 600; }
.atip-industry-bars { display: flex; flex-direction: column; gap: 3px; }
.atip-industry-bar {
  height: 5px; border-radius: 2px; min-width: 4px;
  transition: width .3s;
}
.atip-industry-bar--targeted { background: var(--atip-lilla); }
.atip-industry-bar--reported  { background: var(--atip-blue); }

.atip-industry-legend {
  display: flex; gap: 16px; align-items: center; margin-bottom: 12px;
}
.atip-legend-swatch {
  width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
}
.atip-legend-swatch--targeted { background: var(--atip-lilla); }
.atip-legend-swatch--reported { background: var(--atip-blue); }
.atip-legend-label { font-size: 12px; color: var(--atip-muted); }
.atip-legend-label--end { margin-left: auto; }
.atip-industry-legend--inline { margin: 0 0 0 auto; }

.atip-map-card { padding: 24px 16px 0; }
.atip-map-inner { display: flex; gap: 16px; height: 460px; }

.atip-map-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background-color: #141420;
  background-image: radial-gradient(ellipse 65% 85% at 50% 40%,
    rgba(161,0,255,.30) 0%,
    rgba(129,19,255,.23) 12.5%,
    rgba(98,38,255,.165) 25%,
    rgba(34,75,255,.06) 50%,
    transparent 100%);
}
#world-map-atip { width: 100%; height: 100%; }
.jqvmap-zoomin, .jqvmap-zoomout { display: none !important; }

.jqvmap-label {
  background: #141420 !important;
  border: 1px solid #A100FF !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  font-weight: 500;
  letter-spacing: .02em;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

.atip-map-controls {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}
.atip-map-ctrl-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(20,20,32,0.82);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--atip-text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
  backdrop-filter: blur(4px);
  transition: background .15s, border-color .15s;
}
.atip-map-ctrl-btn:hover {
  background: rgba(161,0,255,0.25);
  border-color: var(--atip-accent);
}

.atip-map-tooltip {
  position: absolute;
  background: rgba(20,20,32,0.95);
  border: 1px solid rgba(161,0,255,0.45);
  border-radius: 8px;
  color: #fff;
  padding: 5px 12px;
  font-size: 13px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 50;
  transition: opacity .1s;
}

.atip-map-sidebar {
  width: 200px; flex-shrink: 0;
  display: flex; flex-direction: column; overflow-y: auto;
  gap: 4px;
}
.atip-map-sidebar-title {
  font-size: 11px; font-weight: 600; color: var(--atip-muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 0 0 8px; padding: 0 8px;
}
.atip-map-sidebar-title--spaced { margin-top: var(--atip-space-xl); }
.atip-map-canvas { width: 100%; height: 100%; }
.atip-country-row {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: 6px; font-size: 13px;
}
.atip-country-row:hover { background: rgba(255,255,255,.05); }
.atip-country-flag { font-size: 15px; flex-shrink: 0; line-height: 1; }
.atip-country-name { color: var(--atip-text); flex: 1; }
.atip-country-count { color: var(--atip-muted); font-weight: 600; margin-left: auto; }

.atip-source-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 6px; font-size: 13px;
}
.atip-source-row:hover { background: rgba(255,255,255,.05); }
.atip-source-flag { font-size: 16px; flex-shrink: 0; }
.atip-source-name { color: var(--atip-text); flex: 1; }
.atip-source-count { color: var(--atip-muted); font-weight: 600; font-size: 12px; }

.atip-map-legend-row {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 12px;
  flex-wrap: wrap;
  background: rgba(0,0,0,0.6);
}
.atip-map-legend-types {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.atip-legend-item {
  display: inline-flex; align-items: center; gap: 5px;
}
.atip-legend-dot {
  width: 16px; height: 2px; border-radius: 1px; flex-shrink: 0;
  display: inline-block; vertical-align: middle;
}
.atip-legend-dot--espionage   { background: var(--atip-blue-light); }
.atip-legend-dot--financial   { background: var(--atip-green); }
.atip-legend-dot--destruction { background: var(--atip-red); }
.atip-legend-dot--influence   { background: var(--atip-lilla); }
.atip-legend-dot--unknown     { background: var(--atip-accent); }

.atip-map-ticker {
  overflow: hidden;
  background: var(--atip-surface);
  border-radius: 0 0 16px 16px;
  padding: 8px 12px;
  margin: 0 -16px;
}
/* inline-block: larga quanto il testo (due copie identiche), cosi'
   translateX(-50%) scorre esattamente una copia e il loop non salta */
.atip-ticker-inner {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px; color: var(--atip-muted);
}

@keyframes arcDraw {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}
@keyframes arcFade {
  0%, 100% { stroke-opacity: 0.65; }
  50%       { stroke-opacity: 0.25; }
}
@keyframes dotAppear {
  from { fill-opacity: 0; }
  to   { fill-opacity: 0.85; }
}
@keyframes dotPulse {
  0%, 100% { r: 3.5; fill-opacity: 0.85; }
  50%       { r: 5.5; fill-opacity: 0.35; }
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.atip-mitre-grid {
  display: flex; gap: 8px; align-items: flex-start;
  overflow-x: auto; padding-bottom: 4px;
}
.atip-mitre-col {
  flex: 1 0 0; display: flex; flex-direction: column;
  gap: 8px; min-width: 120px;
}
.atip-mitre-col-title {
  font-size: 16px; font-weight: 600; color: var(--atip-text);
  margin: 0 0 0; white-space: normal; line-height: 1.25;
  min-height: 21px;
}
.atip-mitre-cell {
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px; border-radius: 8px; overflow: hidden;
  background: var(--atip-purple-bg);
  color: var(--atip-text); font-size: 14px;
  text-decoration: none; word-break: break-word;
  transition: opacity .15s;
}
.atip-mitre-cell:hover { opacity: .80; color: var(--atip-lilla); }
.atip-mitre-cell--blu  { background: rgba(29,27,153,.40); }
.atip-mitre-cell:hover.atip-mitre-cell--blu { color: var(--atip-blue-light); }

.atip-mitre-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #c2a3ff; flex-shrink: 0;
}
.atip-mitre-dot--blu { background: #60a5fa; }

body.atip-page ::-webkit-scrollbar { width: 4px; height: 4px; }
body.atip-page ::-webkit-scrollbar-track { background: transparent; }
body.atip-page ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

.atip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--atip-space-md);
  padding: var(--atip-space-lg) var(--atip-space-xl);
  border-radius: var(--atip-radius-pill);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--atip-text);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.atip-btn:hover, .atip-btn:focus { color: var(--atip-text); text-decoration: none; }
.atip-btn--outline {
  background: var(--atip-surface);
  border: 1px solid var(--atip-lilla);
}
.atip-btn--outline:hover { background: rgba(194,163,255,.08); }
.atip-btn--solid {
  border: 1px solid var(--atip-accent);
  background:
    radial-gradient(120% 320% at 46% 0%,
      rgba(161,0,255,1) 0%,
      rgba(121,18,254,.775) 8.7%,
      rgba(81,37,253,.55) 17.4%,
      rgba(40,55,252,.325) 26.1%,
      rgba(0,73,251,.10) 34.8%,
      rgba(0,0,0,0) 98%),
    rgba(161,0,255,.5);
}
.atip-btn--solid:hover { filter: brightness(1.1); }
.atip-btn:disabled,
.atip-btn[disabled] {
  opacity: .6;
  color: var(--atip-muted);
  cursor: not-allowed;
}
.atip-btn:disabled:hover,
.atip-btn[disabled]:hover { filter: none; background-color: initial; }
.atip-btn:disabled { opacity: .5; cursor: not-allowed; }
.atip-btn--solid:disabled {
  opacity: 1;
  border-color: var(--atip-accent);
  background:
    radial-gradient(120% 320% at 46% 0%,
      rgba(161,0,255,.60) 0%,
      rgba(121,18,254,.465) 8.7%,
      rgba(81,37,253,.33) 17.4%,
      rgba(40,55,252,.195) 26.1%,
      rgba(0,73,251,.06) 34.8%,
      rgba(0,0,0,0) 98%),
    rgba(161,0,255,.10);
  color: var(--atip-muted);
}
.atip-btn--sm { padding: var(--atip-space-md) var(--atip-space-lg); font-size: 14px; }
.atip-btn--danger { background: var(--atip-surface); border: 1px solid var(--atip-red); }
.atip-btn--danger:hover { background: var(--atip-red-bg); }
.atip-btn--danger i { color: var(--atip-red); }

.atip-tabs { display: flex; align-items: center; }
.atip-tab {
  padding: var(--atip-space-xs) var(--atip-space-xl);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--atip-text);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.atip-tab.active {
  color: var(--atip-accent);
  border-bottom-color: var(--atip-accent);
}
.atip-tab:focus-visible { outline: 2px solid var(--atip-lilla); outline-offset: 2px; }
a.atip-tab { display: inline-block; text-decoration: none; }
a.atip-tab:hover { color: var(--atip-lilla); text-decoration: none; }
a.atip-tab.active:hover { color: var(--atip-accent); }

.atip-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: calc(var(--atip-space-3xl) + var(--atip-space-md));
  width: 100%;
}
.atip-field { display: flex; flex-direction: column; gap: var(--atip-space-md); }
.atip-field--grow { flex: 1 0 0; min-width: 200px; }
.atip-field--w200 { width: 200px; }
.atip-field--w400 { width: 400px; max-width: 100%; }
.atip-field--full { width: 100%; }
.atip-modal__optional { display: none; flex-direction: column; gap: var(--atip-space-xl); }
.atip-modal__optional.is-open { display: flex; }
.atip-field__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--atip-text);
  text-transform: uppercase;
}
.atip-field__label--plain { text-transform: none; }

body.atip-page .atip-control,
body.atip-page input.atip-control,
body.atip-page select.atip-control {
  display: flex;
  align-items: center;
  gap: var(--atip-space-md);
  width: 100%;
  height: var(--atip-control-h);
  box-sizing: border-box;
  padding: 0 var(--atip-space-lg);
  background: var(--atip-surface);
  border: 1px solid var(--atip-translucent);
  border-radius: var(--atip-radius);
  color: var(--atip-text);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}
body.atip-page .atip-control:hover { border-color: var(--atip-muted); }
body.atip-page textarea.atip-control {
  display: block;
  height: auto;
  min-height: 161px;
  padding: 9.5px var(--atip-space-lg);
  line-height: 1.5;
  resize: vertical;
}
body.atip-page textarea.atip-control[spellcheck="false"] {
  font-family: "Graphik Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
body.atip-page .atip-control::placeholder { color: var(--atip-muted); }
body.atip-page .atip-control:focus {
  outline: none;
  border-color: var(--atip-lilla);
  box-shadow: none;
}
body.atip-page button.atip-control { justify-content: space-between; text-align: left; }
body.atip-page .atip-daterange-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body.atip-page button.atip-control .fa-chevron-down { flex: 0 0 auto; }

body.atip-page select.atip-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23828a8e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right var(--atip-space-lg) center;
}

.atip-searchbar { position: relative; display: flex; align-items: center; width: 100%; }
.atip-searchbar .atip-control { padding-right: 38px; }
.atip-searchbar__icon {
  position: absolute;
  right: var(--atip-space-lg);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atip-muted);
  font-size: 14px;
  pointer-events: none;
}
.atip-searchbar button.atip-searchbar__icon { pointer-events: auto; background: none; border: none; cursor: pointer; }

.atip-switch { display: inline-flex; align-items: center; gap: var(--atip-space-md); cursor: pointer; margin: 0; }
.atip-switch__input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.atip-switch__track {
  display: inline-flex;
  align-items: center;
  width: 56px;
  height: 20px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: var(--atip-space-xs);
  border-radius: 20px;
  background: var(--atip-red);
  transition: background .15s ease;
}
.atip-switch__knob {
  width: 24px;
  height: 12px;
  border-radius: var(--atip-radius-tag);
  background: var(--atip-surface);
  transition: transform .15s ease;
}
.atip-switch__input:checked + .atip-switch__track { background: var(--atip-green); }
.atip-switch__input:checked + .atip-switch__track .atip-switch__knob { transform: translateX(24px); }
.atip-switch__input:focus-visible + .atip-switch__track { outline: 2px solid var(--atip-lilla); outline-offset: 2px; }
.atip-switch__label { font-size: 16px; font-weight: 400; color: var(--atip-text); }

.atip-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--atip-space-xs) var(--atip-space-md);
  border-radius: var(--atip-radius-tag);
  border: .5px solid transparent;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
.atip-tag--blu   { background: var(--atip-blue-bg);  border-color: var(--atip-blue-light); color: var(--atip-blue-light); }
.atip-tag--verde { background: var(--atip-green-bg); border-color: var(--atip-green);      color: var(--atip-green); }
.atip-tag--viola { background: var(--atip-purple-bg); border-color: var(--atip-lilla);     color: var(--atip-lilla); }
.atip-tag--rosso { background: var(--atip-red-bg);    border-color: var(--atip-red);       color: var(--atip-red); }
.atip-tag--giallo{ background: var(--atip-yellow-bg); border-color: var(--atip-yellow);    color: var(--atip-yellow); }

.atip-tag-flat {
  display: inline-flex;
  align-items: center;
  gap: var(--atip-space-md);
  padding: var(--atip-space-xs) var(--atip-space-md);
  border-radius: var(--atip-radius-sm);
  background: var(--atip-translucent);
  color: var(--atip-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
.atip-tag-flat__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--atip-yellow); flex-shrink: 0; }

.atip-tag-count {
  display: inline-flex;
  align-items: center;
  gap: var(--atip-space-md);
  min-height: 23px;
  padding: var(--atip-space-xs) var(--atip-space-md);
  border-radius: var(--atip-radius-sm);
  background: var(--atip-translucent);
  color: var(--atip-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
.atip-tag-count__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
.atip-tag-count__num { color: var(--atip-text); }

.atip-stats {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--atip-space-xl);
  width: 100%;
  padding: var(--atip-space-3xl) var(--atip-space-md) 0;
  box-sizing: border-box;
  border-top: 1px solid var(--atip-translucent);
}
.atip-stats__item { display: flex; flex-direction: column; gap: var(--atip-space-md); }
.atip-stats__value { font-size: 24px; font-weight: 600; line-height: 1; color: var(--atip-text); }
.atip-stats__value--text { font-size: 16px; line-height: 1.3; }
.atip-stats__label { font-size: 14px; font-weight: 400; line-height: 1; color: var(--atip-text); white-space: nowrap; text-transform: uppercase; }
.atip-stats--inline { width: auto; flex: 0 1 auto; gap: var(--atip-space-3xl); padding: 0; border-top: 0; }
.atip-stats__suffix { font-size: 16px; font-weight: 400; }
.atip-stats__item--zero .atip-stats__value,
.atip-stats__item--zero .atip-stats__label { color: var(--atip-muted); }

@keyframes atip-stat-flash {
  from { text-shadow: 0 0 14px var(--atip-lilla); }
  to   { text-shadow: none; }
}
body.atip-page .atip-stats__value.is-updated { animation: atip-stat-flash .9s ease-out; }
@media (prefers-reduced-motion: reduce) {
  body.atip-page .atip-stats__value.is-updated { animation: none; }
}

body.atip-page .form-check-input { background-color: var(--atip-surface); border-color: var(--atip-muted); }
body.atip-page .form-check-input:checked { background-color: var(--atip-accent); border-color: var(--atip-accent); }
body.atip-page .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(161,0,255,.25); border-color: var(--atip-accent); }
body.atip-page .form-check-label { color: var(--atip-text); }

.atip-surface-panel { background: var(--atip-surface) !important; border: 1px solid var(--atip-border); }
.atip-surface-panel .modal-header, .atip-surface-panel .modal-footer { border-color: var(--atip-border); }

body.atip-page .select2-container { width: 100% !important; }
body.atip-page .select2-container--default .select2-selection--single {
  height: var(--atip-control-h);
  box-sizing: border-box;
  padding: 0 var(--atip-space-lg);
  background: var(--atip-surface) !important;
  border: 1px solid var(--atip-translucent) !important;
  border-radius: var(--atip-radius) !important;
}
body.atip-page .select2-container--default .select2-selection--multiple {
  min-height: var(--atip-control-h);
  height: auto;
  box-sizing: border-box;
  padding: var(--atip-space-xs) var(--atip-space-md);
  background: var(--atip-surface) !important;
  border: 1px solid var(--atip-translucent) !important;
  border-radius: var(--atip-radius) !important;
}
body.atip-page .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--atip-space-xs);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.atip-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--atip-text);
  font-size: 14px;
  line-height: 32px;
  padding: 0;
}
body.atip-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 32px;
  right: var(--atip-space-md);
}
body.atip-page .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--atip-muted) transparent transparent transparent;
}
body.atip-page .select2-dropdown {
  background: var(--atip-surface);
  border: 1px solid var(--atip-muted);
  border-radius: var(--atip-radius);
  font-size: 14px;
}
body.atip-page .select2-container--default .select2-results__option { color: var(--atip-text); background: var(--atip-surface); }
body.atip-page .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: rgba(161,0,255,.20) !important;
  color: var(--atip-lilla) !important;
}
body.atip-page .select2-dropdown .select2-search__field {
  background: var(--atip-surface) !important;
  color: var(--atip-text) !important;
  border: 1px solid var(--atip-muted) !important;
  border-radius: var(--atip-radius);
}
body.atip-page .select2-container--default .select2-selection--multiple .select2-search--inline {
  flex: 1 1 60px;
  min-width: 60px;
}
body.atip-page .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  width: 100% !important;
  max-width: 100%;
}
body.atip-page .select2-container--default .select2-selection--multiple.select2-selection--clearable {
  padding-right: 26px;
}
body.atip-page .select2-container--default .select2-selection--multiple .select2-selection__clear {
  color: var(--atip-muted);
  font-weight: 400;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
  right: var(--atip-space-md);
}
body.atip-page .select2-container--default .select2-selection--multiple .select2-selection__clear:hover {
  color: var(--atip-text);
}
body.atip-page .select2-container--default .select2-search--inline { margin: 0; }
body.atip-page .select2-container--default .select2-search--inline .select2-search__field {
  height: 24px;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  color: var(--atip-text) !important;
  font-size: 14px;
}
body.atip-page .select2-container--default .select2-search--inline .select2-search__field::placeholder {
  color: var(--atip-muted);
}
body.atip-page .select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin: 0;
  padding: 2px var(--atip-space-md);
  background: var(--atip-purple-bg);
  border: .5px solid var(--atip-lilla);
  border-radius: var(--atip-radius-tag);
  color: var(--atip-lilla);
  font-size: 12px;
  line-height: 18px;
}
body.atip-page .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  float: none;
  margin-right: var(--atip-space-xs);
  color: var(--atip-lilla);
}
body.atip-page .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: var(--atip-text);
}

body.atip-page .daterangepicker {
  background: var(--atip-surface);
  border: 1px solid var(--atip-border);
  border-radius: var(--atip-radius);
  color: var(--atip-text);
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
body.atip-page .daterangepicker::before, body.atip-page .daterangepicker::after { display: none; }
body.atip-page .daterangepicker .calendar-table { background: var(--atip-surface); border: none; }
body.atip-page .daterangepicker .calendar-table td,
body.atip-page .daterangepicker .calendar-table th { color: var(--atip-muted); border: none; }
body.atip-page .daterangepicker td.available:hover,
body.atip-page .daterangepicker th.available:hover { background: rgba(161,0,255,.20); color: var(--atip-lilla); border-radius: 50%; }
body.atip-page .daterangepicker td.in-range { background: rgba(161,0,255,.10); color: var(--atip-text); }
body.atip-page .daterangepicker td.start-date,
body.atip-page .daterangepicker td.end-date { background: var(--atip-accent) !important; color: #fff !important; border-radius: 50%; }
body.atip-page .daterangepicker td.off, body.atip-page .daterangepicker td.off:hover { background: transparent; color: var(--atip-muted); }
body.atip-page .daterangepicker .ranges ul { list-style: none; padding: 6px 0; margin: 0; }
body.atip-page .daterangepicker .ranges li a { display: block; padding: var(--atip-space-md) var(--atip-space-xl); color: var(--atip-muted); font-size: 12px; }
body.atip-page .daterangepicker .ranges li.active a,
body.atip-page .daterangepicker .ranges li:hover a { background: rgba(161,0,255,.20); color: var(--atip-lilla); }
body.atip-page .daterangepicker .drp-buttons { border-top: 1px solid var(--atip-border); background: var(--atip-surface); }
body.atip-page .daterangepicker .drp-selected { color: var(--atip-muted); font-size: 11.5px; }
body.atip-page .daterangepicker .btn-primary { background: var(--atip-accent) !important; border-color: var(--atip-accent) !important; }
body.atip-page .daterangepicker .btn-default { background: var(--atip-surface); border-color: var(--atip-muted); color: var(--atip-muted); }

body.atip-page .dataTables_wrapper > .row:first-child {
  display: flex;
  align-items: center;
  gap: var(--atip-space-3xl);
  margin: 0 0 var(--atip-space-3xl);
}
body.atip-page .dataTables_wrapper > .row:first-child > div {
  width: auto;
  max-width: none;
  padding: 0;
}
body.atip-page .dataTables_wrapper > .row:first-child > div:not(.atip-dt-toolbar):has(.dataTables_filter) {
  order: 1;
  flex: 1 1 200px;
  min-width: 0;
}
body.atip-page .dataTables_wrapper > .row:first-child > div:not(.atip-dt-toolbar):has(.dt-buttons) {
  order: 2;
  flex: 0 0 auto;
}

body.atip-page .atip-dt-toolbar-row { margin: 0 0 var(--atip-space-3xl); }
body.atip-page .atip-dt-toolbar {
  display: flex;
  align-items: center;
  gap: var(--atip-space-3xl);
  flex: 1 1 100%;
  min-width: 0;
  padding: 0;
}
body.atip-page .atip-dt-toolbar .dataTables_filter {
  flex: 1 1 auto;
  min-width: 0;
}
body.atip-page .atip-dt-toolbar .dt-buttons { flex: 0 0 auto; width: auto; }

body.atip-page div.dataTables_wrapper div.dataTables_filter { text-align: left; }
body.atip-page div.dataTables_wrapper div.dataTables_filter label {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 0;
}
body.atip-page div.dataTables_wrapper div.dataTables_filter input {
  width: 100%;
  display: block;
  height: var(--atip-control-h);
  box-sizing: border-box;
  margin: 0;
  padding: 0 38px 0 var(--atip-space-lg);
  background: var(--atip-surface)
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23828a8e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")
    no-repeat right var(--atip-space-lg) center / 18px 18px;
  border: 1px solid var(--atip-translucent);
  border-radius: var(--atip-radius);
  color: var(--atip-text);
  font-size: 14px;
  font-weight: 400;
}
body.atip-page div.dataTables_wrapper div.dataTables_filter input::placeholder { color: var(--atip-muted); }
body.atip-page div.dataTables_wrapper div.dataTables_filter input:focus { outline: none; border-color: var(--atip-lilla); }

body.atip-page .dt-buttons {
  display: flex;
  align-items: center;
  gap: var(--atip-space-md);
  margin: 0;
}
body.atip-page .dt-buttons .dt-button,
body.atip-page .dt-buttons .btn {
  margin: 0 !important;
  padding: var(--atip-space-lg) var(--atip-space-xl) !important;
  background: var(--atip-surface) !important;
  border: 1px solid var(--atip-lilla) !important;
  border-radius: var(--atip-radius-pill) !important;
  color: var(--atip-text) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}
body.atip-page .dt-buttons .dt-button:hover { background: rgba(194,163,255,.08) !important; }

body.atip-page .dt-buttons .buttons-colvis {
  margin-right: var(--atip-space-xl) !important;
  width: 200px;
  height: var(--atip-control-h);
  justify-content: flex-start;
  padding: var(--atip-space-md) var(--atip-space-lg) !important;
  background: var(--atip-surface)
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23828a8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right var(--atip-space-lg) center / 18px 18px !important;
  border: 1px solid var(--atip-translucent) !important;
  border-radius: var(--atip-radius) !important;
  color: var(--atip-muted) !important;
  font-size: 14px !important;
  text-align: left;
}
body.atip-page .dt-buttons .buttons-colvis::after { display: none !important; }
body.atip-page .dt-buttons .buttons-colvis:hover { border-color: var(--atip-lilla) !important; }

body.atip-page .dt-button-collection {
  background: var(--atip-surface);
  border: 1px solid var(--atip-muted);
  border-radius: var(--atip-radius);
  padding: var(--atip-space-md);
  z-index: 1050;
}
body.atip-page .dt-button-collection .dt-button {
  width: 100%;
  margin: 0 !important;
  padding: var(--atip-space-md) var(--atip-space-lg) !important;
  background: transparent !important;
  border-color: transparent !important;
  border-radius: var(--atip-radius) !important;
  color: var(--atip-text) !important;
  font-size: 14px !important;
  text-align: left;
}
body.atip-page .dt-button-collection .dt-button.active,
body.atip-page .dt-button-collection .dt-button:hover {
  background: rgba(161,0,255,.20) !important;
  color: var(--atip-lilla) !important;
}

body.atip-page table.atip-table,
body.atip-page table.atip-table.table-bordered,
body.atip-page table.atip-table.table-striped {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 var(--atip-space-md);
  border: none !important;
  margin: 0;
}
body.atip-page table.atip-table > :not(caption) > * > * { box-shadow: none !important; background: none; }
body.atip-page table.atip-table tbody tr:nth-of-type(odd) > * { background: none; }

body.atip-page table.atip-table thead th {
  background: var(--atip-blue-bg) !important;
  border: none !important;
  border-top: 1px solid var(--atip-blue) !important;
  border-bottom: 1px solid var(--atip-blue) !important;
  padding: var(--atip-space-xl) var(--atip-space-md) !important;
  color: var(--atip-text);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  vertical-align: bottom;
  white-space: normal;
}
body.atip-page table.atip-table thead th:first-child {
  border-left: 1px solid var(--atip-blue) !important;
  border-radius: var(--atip-radius) 0 0 var(--atip-radius);
}
body.atip-page table.atip-table thead th:last-child {
  border-right: 1px solid var(--atip-blue) !important;
  border-radius: 0 var(--atip-radius) var(--atip-radius) 0;
}
body.atip-page table.atip-table thead th hr {
  border: none;
  height: var(--atip-space-md);
  margin: 0;
  opacity: 0;
}
body.atip-page table.atip-table thead th input:not([type="checkbox"]),
body.atip-page table.atip-table thead th select {
  width: 100%;
  min-width: 88px;
  height: var(--atip-control-h);
  box-sizing: border-box;
  padding: 0 28px 0 var(--atip-space-md);
  background: var(--atip-surface);
  border: 1px solid var(--atip-translucent);
  border-radius: var(--atip-radius);
  color: var(--atip-text);
  font-size: 14px;
  font-weight: 400;
}
body.atip-page table.atip-table thead th input:not([type="checkbox"]):hover,
body.atip-page table.atip-table thead th input:not([type="checkbox"]):focus,
body.atip-page table.atip-table thead th select:hover,
body.atip-page table.atip-table thead th select:focus {
  border-color: var(--atip-muted);
  outline: none;
}
body.atip-page table.atip-table thead th input::placeholder { color: var(--atip-muted); }

body.atip-page table.atip-table thead th[class*="sorting"]::before,
body.atip-page table.atip-table thead th[class*="sorting"]::after {
  bottom: calc(var(--atip-space-xl) + (var(--atip-control-h) - 1em) / 2);
  font-size: 11px;
  line-height: 1;
  color: var(--atip-muted);
  opacity: .6;
}
body.atip-page table.atip-table thead th[class*="sorting"]::before { right: 25px; }
body.atip-page table.atip-table thead th[class*="sorting"]::after  { right: 14px; }
body.atip-page table.atip-table thead th.sorting_asc::before,
body.atip-page table.atip-table thead th.sorting_desc::after { opacity: 1; color: var(--atip-lilla); }
body.atip-page table.atip-table thead th.sorting_asc_disabled::before,
body.atip-page table.atip-table thead th.sorting_desc_disabled::after { opacity: 0; }

body.atip-page table.atip-table tbody td {
  background: var(--atip-surface) !important;
  border: none !important;
  border-top: .5px solid var(--atip-translucent) !important;
  border-bottom: .5px solid var(--atip-translucent) !important;
  padding: var(--atip-space-xl) var(--atip-space-md) !important;
  color: var(--atip-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  vertical-align: middle;
}
body.atip-page table.atip-table tbody td:first-child {
  border-left: .5px solid var(--atip-translucent) !important;
  border-radius: var(--atip-radius) 0 0 var(--atip-radius);
}
body.atip-page table.atip-table tbody td:last-child {
  border-right: .5px solid var(--atip-translucent) !important;
  border-radius: 0 var(--atip-radius) var(--atip-radius) 0;
}
body.atip-page table.atip-table tbody tr:hover td { background: #1a1a28 !important; }
body.atip-page table.atip-table tbody td a { color: var(--atip-text); text-decoration: underline; }
body.atip-page table.atip-table tbody td a:hover { color: var(--atip-lilla); }

/* DataTables Responsive: il "+" delle righe comprimibili. Il padding
   !important delle celle annullava lo spazio che il plugin gli riserva e il
   pulsante finiva sopra al testo; colori del tema al posto del blu Bootstrap. */
body.atip-page table.atip-table.dtr-inline.collapsed > tbody > tr > td.dtr-control {
  padding-left: 44px !important;
}
body.atip-page table.atip-table.dtr-inline.collapsed > tbody > tr > td.dtr-control::before {
  left: 14px;
  background-color: var(--atip-accent);
  border-color: var(--atip-lilla);
  box-shadow: none;
}
body.atip-page table.atip-table.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before {
  background-color: var(--atip-surface);
}

body.atip-page .dataTables_wrapper > .row:last-child,
body.atip-page .atip-dt-footer {
  align-items: center;
  margin: var(--atip-space-md) 0 0;
  gap: var(--atip-space-xl);
  padding: var(--atip-space-md);
  background: var(--atip-blue-bg);
  border: 1px solid var(--atip-blue);
  border-radius: var(--atip-radius);
}
body.atip-page .dataTables_wrapper > .row:last-child > div,
body.atip-page .atip-dt-footer > div { padding: 0; }

body.atip-page .dataTables_length label {
  display: flex;
  align-items: center;
  gap: var(--atip-space-xl);
  margin: 0;
  color: var(--atip-text);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}
body.atip-page .dataTables_length select {
  appearance: none;
  -webkit-appearance: none;
  height: var(--atip-control-h);
  box-sizing: border-box;
  padding: 0 36px 0 var(--atip-space-lg);
  background: var(--atip-surface)
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23828a8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right var(--atip-space-lg) center / 18px 18px;
  border: 1px solid var(--atip-translucent);
  border-radius: var(--atip-radius);
  color: var(--atip-text);
  font-size: 14px;
}
body.atip-page .dataTables_length select:focus { outline: none; border-color: var(--atip-lilla); }

body.atip-page div.dataTables_wrapper div.dataTables_info {
  color: var(--atip-text);
  font-size: 14px;
  padding: 0;
  text-align: center;
}
body.atip-page .dataTables_paginate { margin: 0 !important; }
body.atip-page div.dataTables_wrapper div.dataTables_paginate ul.pagination {
  gap: var(--atip-space-md);
  margin: 0;
  justify-content: flex-end;
}
body.atip-page .dataTables_paginate .page-link {
  min-width: 32px;
  padding: var(--atip-space-xs);
  background: var(--atip-surface);
  border: 1px solid var(--atip-muted);
  border-radius: var(--atip-radius-sm) !important;
  color: var(--atip-text);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
body.atip-page .dataTables_paginate .page-item.active .page-link {
  background: var(--atip-surface);
  border-color: var(--atip-accent);
  color: var(--atip-accent);
}
body.atip-page .dataTables_paginate .page-item.disabled .page-link { opacity: .4; }
body.atip-page .dataTables_paginate .page-link:hover { border-color: var(--atip-lilla); color: var(--atip-lilla); }

body.atip-page .atip-modal {
  background: var(--atip-surface);
  border: 1px solid var(--atip-lilla);
  border-radius: var(--atip-radius-tag);
  padding: var(--atip-space-3xl);
  gap: var(--atip-space-3xl);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
body.atip-page .atip-modal .modal-header,
body.atip-page .atip-modal .modal-body,
body.atip-page .atip-modal .modal-footer {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
}
body.atip-page .atip-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--atip-space-3xl);
}
body.atip-page .atip-modal .modal-footer { display: flex; justify-content: space-between; align-items: center; }
body.atip-page .atip-modal form { display: flex; flex-direction: column; gap: var(--atip-space-3xl); }
body.atip-page .atip-modal .modal-title { font-size: 20px; font-weight: 600; color: var(--atip-text); }
body.atip-page .atip-modal-dialog { max-width: 464px; }
.atip-divider { height: 1px; width: 100%; background: var(--atip-muted); opacity: .35; }

body.atip-page .atip-check {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
  background: transparent;
  border: 1.5px solid var(--atip-text);
  border-radius: 1.5px;
  cursor: pointer;
  transition: border-color .15s;
}
body.atip-page .atip-check:checked {
  background: var(--atip-surface)
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a100ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E")
    no-repeat center / 12px 12px;
  border-color: var(--atip-accent);
}
body.atip-page .atip-check:focus-visible {
  outline: 2px solid var(--atip-lilla);
  outline-offset: 2px;
}
body.atip-page .atip-check-row { display: inline-flex; align-items: center; gap: var(--atip-space-md); cursor: pointer; margin: 0; }
body.atip-page .atip-check-row__label { font-size: 16px; font-weight: 400; color: var(--atip-text); }

.atip-fav { display: flex; flex-direction: column; gap: var(--atip-space-xl); width: 100%; }
.atip-fav__head { display: flex; flex-direction: column; gap: var(--atip-space-md); }
.atip-fav__top { display: flex; align-items: center; justify-content: space-between; gap: var(--atip-space-md); }
body.atip-page .atip-fav__name { font-size: 16px; font-weight: 400; color: var(--atip-text); }
body.atip-page .atip-check:checked ~ .atip-fav__name { color: var(--atip-accent); }
.atip-fav__desc { font-size: 14px; font-weight: 400; color: var(--atip-text); margin: 0; }
.atip-fav__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--atip-space-md); }
.atip-fav__created { display: inline-flex; align-items: center; gap: var(--atip-space-md); font-size: 12px; color: var(--atip-muted); }
.atip-fav__created i { font-size: 14px; }
.atip-fav__fields { display: flex; flex-direction: column; gap: var(--atip-space-md); }
.atip-fav__field { display: flex; flex-wrap: wrap; align-items: center; gap: var(--atip-space-md); }
.atip-fav__field-label { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--atip-muted); }

.atip-hero { display: flex; align-items: center; gap: 44px; }
.atip-hero__icon { color: var(--atip-accent); }
.atip-hero__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--atip-space-xl); }
.atip-hero__eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
.atip-hero__type   { color: var(--atip-lilla); }
.atip-hero__source { color: var(--atip-muted); }
.atip-hero__name { margin: 0; display: flex; align-items: center; gap: var(--atip-space-md); }
.atip-hero__tags { display: flex; flex-wrap: wrap; gap: var(--atip-space-md); }
.atip-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  font-size: 12px;
  color: var(--atip-muted);
}
.atip-hero__meta span { display: inline-flex; align-items: center; gap: var(--atip-space-md); }
.atip-hero__actions { flex-shrink: 0; display: flex; align-items: center; gap: var(--atip-space-md); }
.atip-hero-wrap > .atip-stats { margin-top: var(--atip-space-3xl); }

body.atip-page .atip-paragraph table {
  width: 100%;
  margin: var(--atip-space-3xl) 0 0;
  border-collapse: collapse;
  background: transparent;
}
body.atip-page .atip-paragraph table th,
body.atip-page .atip-paragraph table td {
  padding: var(--atip-space-lg) var(--atip-space-xl);
  border: 0;
  border-bottom: 1px solid var(--atip-border);
  background: transparent;
  text-align: left;
  vertical-align: top;
}
body.atip-page .atip-paragraph table tr:last-child th,
body.atip-page .atip-paragraph table tr:last-child td { border-bottom: 0; }
body.atip-page .atip-paragraph table th,
body.atip-page .atip-paragraph table td:first-child {
  width: 200px;
  font-size: 16px;
  font-weight: 600;
  color: var(--atip-text);
  white-space: nowrap;
}
body.atip-page .atip-paragraph table td {
  font-size: 14px;
  font-weight: 400;
  color: var(--atip-muted);
}

.atip-kv-group { margin-top: 40px; }
.atip-kv { display: flex; align-items: baseline; gap: var(--atip-space-xl); }
.atip-kv + .atip-kv { margin-top: var(--atip-space-xl); }
.atip-kv__label {
  flex: 0 0 94px;
  font-size: 16px;
  font-weight: 600;
  color: var(--atip-text);
}
.atip-kv__values { display: flex; flex-wrap: wrap; gap: var(--atip-space-md); min-width: 0; }

.atip-alias-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--atip-space-xs);
  max-height: 460px;
  overflow-y: auto;
}
.atip-alias-card {
  display: flex;
  align-items: center;
  gap: var(--atip-space-xl);
  padding: var(--atip-space-lg) var(--atip-space-xl);
  background: var(--atip-surface);
  border-radius: var(--atip-radius-tag);
  min-width: 0;
}
.atip-alias-card__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--atip-space-xs); }
.atip-alias-card__name { font-size: 16px; font-weight: 600; color: var(--atip-text); overflow-wrap: anywhere; }
.atip-alias-card__source { font-size: 14px; color: var(--atip-muted); overflow-wrap: anywhere; }
.atip-alias-card__icon { flex-shrink: 0; opacity: .7; }

.atip-loader {
  display: flex;
  justify-content: center;
  padding: var(--atip-space-3xl);
  font-size: 28px;
  color: var(--atip-lilla);
}
.atip-loader[hidden] { display: none; }

.atip-empty {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--atip-space-md);
  min-height: 120px;
  padding: var(--atip-space-xl);
  text-align: center;
  color: var(--atip-muted);
}
.atip-empty__icon { font-size: 32px; opacity: .45; }
.atip-empty__msg { font-size: 14px; font-weight: 600; }
.atip-empty__hint { font-size: 13px; opacity: .8; max-width: 40ch; }

.atip-graph__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--atip-space-xl);
  margin-bottom: var(--atip-space-xl);
}
.atip-graph__search { width: 200px; flex-shrink: 0; }
.atip-graph__filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--atip-space-md); }
.atip-graph__filter { display: inline-flex; align-items: center; gap: var(--atip-space-md); cursor: pointer; margin: 0; }

.atip-graph__body { display: flex; gap: var(--atip-space-xl); align-items: stretch; }
.atip-graph__stage { position: relative; flex: 1 1 0; min-width: 0; }
.atip-graph__canvas-wrap {
  position: relative;
  z-index: 0;
  min-height: 495px;
  background: var(--atip-bg);
  border-radius: var(--atip-radius-tag);
  overflow: hidden;
}
.atip-graph__canvas-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(161,0,255,.22) 0%, transparent 70%);
  pointer-events: none;
}
.atip-graph__canvas { position: absolute; inset: 0; }

.atip-graph__actions { position: absolute; top: var(--atip-space-xl); right: var(--atip-space-xl); z-index: 3; display: flex; gap: var(--atip-space-md); }
.atip-graph__zoom {
  position: absolute;
  top: 50%;
  left: var(--atip-space-xl);
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--atip-space-md);
}

.atip-graph__side {
  flex: 0 0 33%;
  min-width: 0;
  max-height: 495px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--atip-space-md);
}
.atip-graph__side-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--atip-muted);
}
.atip-graph__rel { display: flex; flex-direction: column; gap: var(--atip-space-lg); }
.atip-graph__rel-group { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--atip-space-md); }
.atip-graph__rel-head { flex: 0 0 auto; }
.atip-graph__rel-tags { display: flex; flex-wrap: wrap; gap: var(--atip-space-md); flex: 1 1 0; min-width: 0; }
.atip-graph--full .atip-graph__stage { display: flex; flex-direction: column; }
.atip-graph--full .atip-graph__canvas-wrap { flex: 1 1 auto; }

.atip-graph__tabs {
  display: none;
  position: absolute;
  top: var(--atip-space-xl);
  left: var(--atip-space-xl);
  z-index: 3;
  gap: var(--atip-space-xl);
}
.atip-graph--full .atip-graph__tabs {
  display: flex;
  position: static;
  align-items: flex-end;
  min-height: 40px;
  margin-bottom: var(--atip-space-md);
}
.atip-graph--full .atip-graph__actions { top: 0; }
.atip-graph__tab {
  background: none;
  border: 0;
  padding: 0 0 var(--atip-space-md);
  font-size: 16px;
  font-weight: 600;
  color: var(--atip-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.atip-graph__tab.active { color: var(--atip-text); border-bottom-color: var(--atip-accent); }
.atip-graph__tab:focus-visible { outline: 2px solid var(--atip-lilla); outline-offset: 2px; }

.atip-graph__table-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: auto;
  padding: var(--atip-space-xl);
  background: var(--atip-bg);
}
.atip-graph.is-table .atip-graph__zoom { display: none; }
.atip-graph.is-table .atip-graph__empty { display: none; }
.atip-graph__empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--atip-space-lg);
  color: var(--atip-muted);
  font-size: 14px;
}
.atip-graph__empty-icon { font-size: 40px; opacity: .5; }

.atip-graph.is-empty .atip-graph__toolbar,
.atip-graph.is-empty .atip-graph__actions { display: none; }
.atip-graph__side .atip-empty { display: none; }
.atip-graph.is-empty .atip-graph__side .atip-empty { display: flex; }
.atip-graph.is-empty .atip-graph__rel { display: none; }

.atip-graph__popup {
  position: absolute;
  top: var(--atip-space-xl);
  left: var(--atip-space-xl);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--atip-space-xs);
  padding: var(--atip-space-md) var(--atip-space-lg);
  background: var(--atip-surface);
  border: 1px solid var(--atip-lilla);
  border-radius: var(--atip-radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.6);
  pointer-events: none;
  max-width: 320px;
}
.atip-graph__popup-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--atip-text);
  overflow-wrap: anywhere;
}
.atip-graph__popup-type { font-size: 12px; color: var(--atip-muted); text-transform: capitalize; }
.atip-graph__menu {
  position: absolute;
  z-index: 4;
  min-width: 140px;
  padding: var(--atip-space-xs);
  background: var(--atip-surface);
  border: 1px solid var(--atip-lilla);
  border-radius: var(--atip-radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.6);
}
.atip-graph__menu-item {
  display: flex;
  align-items: center;
  gap: var(--atip-space-md);
  width: 100%;
  padding: var(--atip-space-md) var(--atip-space-lg);
  background: none;
  border: 0;
  border-radius: var(--atip-radius-sm);
  color: var(--atip-text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.atip-graph__menu-item:hover { background: var(--atip-translucent); }
.atip-graph__menu-item:focus-visible { outline: 2px solid var(--atip-lilla); outline-offset: -2px; }

.atip-geo__stage { position: relative; }
.atip-geo__map { width: 100%; height: 460px; }
.atip-geo__zoom {
  position: absolute;
  top: var(--atip-space-3xl);
  right: var(--atip-space-3xl);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--atip-space-xl);
}
.atip-geo__legend {
  display: flex;
  align-items: center;
  gap: var(--atip-space-md);
  padding: var(--atip-space-md) var(--atip-space-lg);
}
.atip-geo__legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--atip-space-md);
  font-size: 12px;
  color: var(--atip-muted);
}
.atip-geo__swatch { width: 16px; height: 16px; border-radius: var(--atip-radius-sm); flex-shrink: 0; }
.atip-geo__swatch--origin { background: var(--atip-green); }
.atip-geo__swatch--target { background: var(--atip-red); }

.atip-ttp {
  display: flex;
  gap: var(--atip-space-md);
  overflow: auto;
  max-height: 420px;
  padding-bottom: var(--atip-space-md);
}
.atip-ttp__col-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--atip-text);
  line-height: 1.25;
  min-height: 36px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--atip-surface);
  padding-bottom: var(--atip-space-md);
}
.atip-ttp__col { flex: 0 0 140px; display: flex; flex-direction: column; gap: var(--atip-space-md); }
.atip-ttp__col--empty .atip-ttp__col-title { color: var(--atip-muted); font-weight: 400; }
.atip-ttp__cell {
  display: block;
  padding: var(--atip-space-md);
  background: var(--atip-blue-bg);
  border-radius: var(--atip-radius);
  color: var(--atip-text);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  word-break: break-word;
}
.atip-ttp__cell:hover { filter: brightness(1.5); color: var(--atip-blue-light); }

.atip-cve-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--atip-space-xs);
  max-height: 420px;
  overflow-y: auto;
}
.atip-cve-pill {
  display: block;
  padding: var(--atip-space-lg) var(--atip-space-xl);
  background: var(--atip-surface);
  border: 1px solid transparent;
  border-radius: var(--atip-radius-tag);
  color: var(--atip-text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atip-cve-pill:hover { border-color: var(--atip-lilla); color: var(--atip-text); }

.atip-industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--atip-space-xs); }
.atip-industry-tile {
  display: flex;
  align-items: center;
  gap: var(--atip-space-xl);
  min-height: 80px;
  padding: var(--atip-space-xl) var(--atip-space-3xl);
  background: var(--atip-surface);
  border-radius: var(--atip-radius-card);
  min-width: 0;
}
.atip-industry-tile__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--atip-text);
  overflow-wrap: anywhere;
}
.atip-industry-tile .atip-stat-icon { color: var(--atip-accent); }

/* La card si allunga fino all'altezza della descrizione accanto (h-100):
   i punteggi stanno al centro dello spazio sotto l'header, non in alto. */
.atip-cvss-card { display: flex; flex-direction: column; }
.atip-cvss-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--atip-space-3xl);
}
.atip-cvss-grid > .atip-cvss + .atip-cvss {
  padding-top: var(--atip-space-3xl);
  border-top: 1px solid var(--atip-translucent);
}

.atip-cvss {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--atip-space-lg);
}
.atip-cvss__label { color: var(--atip-muted); }
.atip-cvss__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--atip-space-lg);
  width: 100%;
}
.atip-cvss__gauge { position: relative; flex-shrink: 0; width: 140px; }
.atip-cvss__gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.atip-cvss__track { fill: none; stroke: var(--atip-translucent); stroke-linecap: round; }
.atip-cvss__arc   { fill: none; stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
.atip-cvss__score {
  position: absolute;
  inset: auto 0 9.1%;
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}
.atip-cvss__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--atip-space-md);
  width: 100%;
  min-width: 0;
}
.atip-cvss__desc {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 18px;
  color: var(--atip-muted);
  text-align: center;
  word-break: break-all;
}
.atip-cvss--verde  .atip-cvss__arc { stroke: var(--atip-green); }
.atip-cvss--verde  .atip-cvss__score { color: var(--atip-green); }
.atip-cvss--giallo .atip-cvss__arc { stroke: var(--atip-yellow); }
.atip-cvss--giallo .atip-cvss__score { color: var(--atip-yellow); }
.atip-cvss--rosso  .atip-cvss__arc { stroke: var(--atip-red); }
.atip-cvss--rosso  .atip-cvss__score { color: var(--atip-red); }
.atip-cvss--viola  .atip-cvss__arc { stroke: var(--atip-accent); }
.atip-cvss--viola  .atip-cvss__score { color: var(--atip-accent); }
.atip-cvss--blu    .atip-cvss__arc { stroke: var(--atip-blue-light); }
.atip-cvss--blu    .atip-cvss__score { color: var(--atip-blue-light); }

.atip-ref { display: flex; flex-direction: column; gap: var(--atip-space-md); }
.atip-ref__item {
  padding: var(--atip-space-xl);
  background: var(--atip-translucent);
  border-left: 2px solid var(--atip-lilla);
  border-radius: var(--atip-radius);
}
.atip-ref__row { display: flex; gap: var(--atip-space-xl); font-size: 14px; }
.atip-ref__key { flex: 0 0 120px; color: var(--atip-muted); }
.atip-ref__val { min-width: 0; color: var(--atip-text); word-break: break-word; }

.atip-facts {
  display: grid;
  grid-template-columns: repeat(var(--atip-facts-cols, 3), minmax(0, 1fr));
  gap: var(--atip-space-xs);
}
.atip-fact {
  display: flex;
  flex-direction: column;
  gap: var(--atip-space-md);
  min-height: 80px;
  justify-content: center;
  padding: var(--atip-space-xl) var(--atip-space-3xl);
  background: var(--atip-surface);
  border-radius: var(--atip-radius-card);
  min-width: 0;
}
.atip-fact__label { font-size: 12px; text-transform: uppercase; color: var(--atip-muted); }
.atip-fact__value { font-size: 16px; font-weight: 600; color: var(--atip-text); overflow-wrap: anywhere; }
.atip-fact__value .atip-tag { font-weight: 400; }

.atip-notes {
  display: grid;
  grid-template-columns: repeat(var(--atip-notes-cols, 1), minmax(0, 1fr));
  gap: var(--atip-space-md);
}
@media (max-width: 1200px) {
  .atip-notes { grid-template-columns: repeat(min(var(--atip-notes-cols, 1), 2), minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .atip-notes { grid-template-columns: minmax(0, 1fr); }
}
.atip-note {
  display: flex;
  flex-direction: column;
  gap: var(--atip-space-xs);
  padding: var(--atip-space-xl);
  background: var(--atip-translucent);
  border-left: 2px solid var(--atip-lilla);
  border-radius: var(--atip-radius);
}
.atip-note__title { font-size: 16px; font-weight: 600; color: var(--atip-text); overflow-wrap: anywhere; }
.atip-note__body { margin: 0; font-size: 14px; color: var(--atip-muted); overflow-wrap: anywhere; }
.atip-note__link { font-size: 14px; word-break: break-all; }

@media (max-width: 1200px) {
  .atip-graph__body { flex-direction: column; }
  .atip-graph__side { flex: 1 1 auto; max-height: 320px; }
  .atip-hero { flex-wrap: wrap; }
}

.atip-preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--atip-space-xl);
  background-color: var(--atip-bg);
  background-image: radial-gradient(100% 100% at 50% 0%,
      rgba(161, 0, 255, 0.20) 0%,
      rgba(34, 75, 255, 0.02) 45%,
      rgba(0, 0, 0, 0.00) 100%);
  font-family: 'Graphik', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  transition: opacity .3s ease;
}
.atip-preloader.is-done { opacity: 0; pointer-events: none; }
.atip-preloader > * { opacity: 0; transition: opacity .2s ease; }
.atip-preloader.is-ready > * { opacity: 1; }
.atip-preloader__logo {
  width: 72px;
  height: 72px;
  animation: atipPreloaderPulse 1.6s ease-in-out infinite;
}
.atip-preloader__name { margin: 0; font-size: 20px; font-weight: 600; color: var(--atip-text); }
.atip-preloader__tagline { margin: 0; font-size: 14px; font-weight: 400; color: var(--atip-muted); }
.atip-preloader__bar {
  width: 180px;
  height: 3px;
  border-radius: 999px;
  background: var(--atip-translucent);
  overflow: hidden;
}
.atip-preloader__bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(138deg, var(--atip-lilla) 17%, var(--atip-accent) 95%);
  animation: atipPreloaderSweep 1.2s ease-in-out infinite;
}
@keyframes atipPreloaderSweep {
  from { transform: translateX(-110%); }
  to   { transform: translateX(260%); }
}
@keyframes atipPreloaderPulse {
  50% { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  .atip-preloader__logo { animation: none; }
  .atip-preloader__bar span { animation: none; width: 100%; }
  .atip-preloader > * { transition: none; }
}

body.atip-public .atip-footer { margin-left: 0; }
body.atip-public .atip-public__main {
  min-height: calc(100vh - 37px); /* viewport meno il footer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--atip-space-3xl);
  box-sizing: border-box;
}

.atip-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--atip-space-lg);
  padding: var(--atip-space-lg) var(--atip-space-xl);
  border: 1px solid var(--atip-muted);
  border-radius: var(--atip-radius);
  background: var(--atip-translucent);
  color: var(--atip-text);
  font-size: 14px;
  line-height: 1.4;
}
.atip-notice__icon { flex: 0 0 auto; font-size: 16px; line-height: 1.2; }
.atip-notice--rosso  { border-color: var(--atip-red);    background: var(--atip-red-bg); }
.atip-notice--rosso  .atip-notice__icon { color: var(--atip-red); }
.atip-notice--giallo { border-color: var(--atip-yellow); background: var(--atip-yellow-bg); }
.atip-notice--giallo .atip-notice__icon { color: var(--atip-yellow); }
.atip-notice--verde  { border-color: var(--atip-green);  background: var(--atip-green-bg); }
.atip-notice--verde  .atip-notice__icon { color: var(--atip-green); }
.atip-notice--blu    { border-color: var(--atip-blue-light); background: var(--atip-blue-bg); }
.atip-notice--blu    .atip-notice__icon { color: var(--atip-blue-light); }
.atip-notice--viola  { border-color: var(--atip-lilla);  background: var(--atip-purple-bg); }
.atip-notice--viola  .atip-notice__icon { color: var(--atip-lilla); }

.atip-pref-group { display: flex; flex-direction: column; gap: var(--atip-space-3xl); }
.atip-pref-label { font-size: 14px; font-weight: 600; color: var(--atip-muted); }
.atip-pref-rows { display: flex; flex-direction: column; }
.atip-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--atip-space-xl);
  min-height: 53px;
  padding: var(--atip-space-md) var(--atip-space-xl);
  border-bottom: 1px solid var(--atip-surface);
  box-sizing: border-box;
}
.atip-pref-row__text { display: flex; flex-direction: column; gap: var(--atip-space-xs); min-width: 0; }
.atip-pref-row__title { margin: 0; font-size: 16px; font-weight: 600; color: var(--atip-text); }
.atip-pref-row__desc  { margin: 0; font-size: 14px; font-weight: 400; color: var(--atip-muted); }

body.atip-page {
  --jd-dark-background-color:    var(--atip-surface);
  --jd-dark-background-darknes:  var(--atip-bg);
  --jd-dark-background-ligher:   var(--atip-muted);
  --jd-dark-border-color:        var(--atip-translucent);
  --jd-dark-color-border-selected: var(--atip-lilla);
  --jd-dark-icon-color:          var(--atip-text);
  --jd-dark-text-color:          var(--atip-text);
  --jd-dark-text-color-opacity50: var(--atip-muted);
  --jd-dark-text-color-opacity80: var(--atip-text);
  --jd-dark-toolbar-color:       var(--atip-bg);
  --jd-dark-toolbar-seperator-color1: var(--atip-translucent);
  --jd-dark-toolbar-seperator-color2: var(--atip-translucent);
  --jd-dark-toolbar-seperator-color3: var(--atip-translucent);
  --jd-dark-toolbar-seperator-color-opacity80: var(--atip-translucent);

  --jd-color-white: var(--atip-surface);
  --jd-color-border: var(--atip-translucent);

  --jd-color-background-active:       var(--atip-accent);
  --jd-color-background-selection:    rgba(161, 0, 255, .20);
  --jd-color-background-button-hover: rgba(161, 0, 255, .20);
  --jd-color-button-background-hover: rgba(161, 0, 255, .20);
  --jd-color-background-gray-hover:   rgba(161, 0, 255, .20);
  --jd-color-background-button-hover-opacity30: rgba(161, 0, 255, .12);
  --jd-color-button-background-hover-opacity40: rgba(161, 0, 255, .12);
  --jd-color-button-background-hover-opacity60: rgba(161, 0, 255, .08);
  --jd-color-blue:       rgba(161, 0, 255, .20);
  --jd-color-light-blue: rgba(161, 0, 255, .10);
}
body.atip-page .jodit-container:not(.jodit_inline) {
  background: var(--atip-surface);
  border: 1px solid var(--atip-translucent);
  border-radius: var(--atip-radius);
}
body.atip-page .jodit-workplace,
body.atip-page .jodit-wysiwyg { background: var(--atip-surface); color: var(--atip-text); }
body.atip-page .jodit-toolbar__box { background: var(--atip-bg); border-bottom: 1px solid var(--atip-translucent); }
body.atip-page .jodit-status-bar { background: var(--atip-bg); color: var(--atip-muted); }

body.atip-page #toast-container > div {
  width: 464px;
  max-width: calc(100vw - 2 * var(--atip-space-3xl));
  padding: var(--atip-space-xl);
  background-color: var(--atip-surface);
  background-image: none;
  border: 1px solid var(--atip-muted);
  border-radius: var(--atip-radius-tag);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  opacity: 1;
  font-family: 'Graphik', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
body.atip-page #toast-container > div:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .5); opacity: 1; }
body.atip-page #toast-container .toast-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: var(--atip-space-xl);
}
body.atip-page #toast-container .toast-message {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--atip-text);
}
body.atip-page #toast-container .toast-title:empty { display: none; }
body.atip-page #toast-container .toast-close-button {
  color: var(--atip-text);
  opacity: .7;
  text-shadow: none;
  font-weight: 400;
}
body.atip-page #toast-container .toast-close-button:hover { color: var(--atip-text); opacity: 1; }
body.atip-page #toast-container > .toast-success,
body.atip-page #toast-container > .toast-error,
body.atip-page #toast-container > .toast-warning,
body.atip-page #toast-container > .toast-info { background-image: none !important; }
body.atip-page #toast-container > .toast-success { border-color: var(--atip-green); }
body.atip-page #toast-container > .toast-success .toast-title { color: var(--atip-green); }
body.atip-page #toast-container > .toast-error { border-color: var(--atip-red); }
body.atip-page #toast-container > .toast-error .toast-title { color: var(--atip-red); }
body.atip-page #toast-container > .toast-warning { border-color: var(--atip-yellow); }
body.atip-page #toast-container > .toast-warning .toast-title { color: var(--atip-yellow); }
body.atip-page #toast-container > .toast-info { border-color: var(--atip-blue-light); }
body.atip-page #toast-container > .toast-info .toast-title { color: var(--atip-blue-light); }

body.atip-page .atip-radio {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--atip-muted);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color .15s ease;
}
body.atip-page .atip-radio:checked {
  border-color: var(--atip-accent);
  box-shadow: inset 0 0 0 3px var(--atip-bg), inset 0 0 0 16px var(--atip-accent);
}
body.atip-page .atip-radio:focus-visible {
  outline: 2px solid var(--atip-lilla);
  outline-offset: 2px;
}
.atip-radio-row {
  display: inline-flex;
  align-items: center;
  gap: var(--atip-space-md);
  cursor: pointer;
  margin: 0;
  min-width: 0;
}
.atip-radio-row__label { font-size: 16px; font-weight: 400; color: var(--atip-text); }
.atip-radio-row:has(.atip-radio:checked) .atip-radio-row__label { color: var(--atip-accent); }

.atip-radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--atip-space-xl) calc(var(--atip-space-3xl) + var(--atip-space-md));
}
@media (max-width: 560px) {
  .atip-radio-group { grid-template-columns: 1fr; }
}

.atip-progress { display: flex; flex-direction: column; gap: var(--atip-space-xl); }
.atip-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}
.atip-progress__value { color: var(--atip-lilla); }
body.atip-page .atip-progress__input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--atip-muted);
  border-radius: var(--atip-radius);
  background: linear-gradient(90deg,
    var(--atip-lilla) 0%, var(--atip-accent) var(--p, 0%),
    var(--atip-surface) var(--p, 0%), var(--atip-surface) 100%);
  cursor: pointer;
}
body.atip-page .atip-progress__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--atip-accent);
  box-shadow: 0 0 10px -1px var(--atip-accent);
}
body.atip-page .atip-progress__input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--atip-accent);
  box-shadow: 0 0 10px -1px var(--atip-accent);
}

.atip-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--atip-space-md);
  min-height: 160px;
  padding: var(--atip-space-3xl);
  border: 1px dashed var(--atip-muted);
  border-radius: var(--atip-radius);
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.atip-dropzone:hover, .atip-dropzone.is-over {
  border-color: var(--atip-lilla);
  background: var(--atip-translucent);
}
.atip-dropzone__icon { font-size: 28px; color: var(--atip-text); }
.atip-dropzone__title { font-size: 16px; font-weight: 600; color: var(--atip-text); }
.atip-dropzone__hint { font-size: 13px; color: var(--atip-muted); }
.atip-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.atip-dropzone-files { display: flex; flex-direction: column; gap: var(--atip-space-md); margin-top: var(--atip-space-xl); }
.atip-dropzone-file {
  display: flex;
  align-items: center;
  gap: var(--atip-space-lg);
  padding: var(--atip-space-md) var(--atip-space-lg);
  background: var(--atip-surface);
  border: 1px solid var(--atip-translucent);
  border-radius: var(--atip-radius);
  font-size: 14px;
}
.atip-dropzone-file__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

.atip-meter { display: flex; align-items: center; gap: var(--atip-space-md); min-width: 120px; }
.atip-meter__track {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 3px;
  background: var(--atip-translucent);
  overflow: hidden;
}
.atip-meter__fill { display: block; height: 100%; border-radius: 3px; background: var(--atip-accent); }
.atip-meter__value { flex: 0 0 auto; font-size: 13px; color: var(--atip-muted); font-variant-numeric: tabular-nums; }
.atip-meter--rosso  .atip-meter__fill { background: var(--atip-red); }
.atip-meter--giallo .atip-meter__fill { background: var(--atip-yellow); }
.atip-meter--verde  .atip-meter__fill { background: var(--atip-green); }

body.atip-page .popover {
  --bs-popover-bg: var(--atip-surface);
  --bs-popover-border-color: var(--atip-lilla);
  --bs-popover-body-color: var(--atip-text);
  --bs-popover-header-bg: var(--atip-surface);
  --bs-popover-header-color: var(--atip-text);
  --bs-popover-arrow-border: var(--atip-lilla);
  max-width: 320px;
  font-size: 13px;
}
