/* Palette UiPath Brand Identity V3.1 */
:root {
  --deep-blue: #182126;
  --bright-white: #ffffff;
  --robotic-orange: #fa4616;
  --robotic-orange-dark: #ce340b;
  --agentic-teal: #0ba2b3;
  --teal-dark: #15839a;
  --teal-light: #a5e2f0;
  --grey-100: #f6f6f6;
  --grey-200: #d9d9d9;
  --grey-500: #616161;
  --grey-700: #343434;
  --ink: #182126;
  --muted: #5b6770;

  --font-head: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --radius: 4px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bright-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.045em; }
h3 { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ol, ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-soft { background: var(--grey-100); }
.section-dark { background: var(--deep-blue); color: var(--bright-white); }
.section-orange { background: var(--robotic-orange); color: var(--bright-white); }

.h2 { font-weight: 900; font-size: clamp(1.75rem, 4.2vw, 2.75rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.lead-light { color: #c9d3d8; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.section-dark .muted, .section-dark p { color: #c9d3d8; }

.c-teal { color: var(--agentic-teal); }
.c-orange { color: var(--robotic-orange); }
.c-white { color: var(--bright-white); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--robotic-orange);
  margin-bottom: .75em;
}
.eyebrow-light { color: var(--agentic-teal); }

/* Bottoni: testo in Poppins SemiBold, tracking -25, due-tre parole */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--agentic-teal); outline-offset: 3px; }
.btn-orange { background: var(--robotic-orange); color: var(--bright-white); }
.btn-orange:hover { background: var(--robotic-orange-dark); }
.btn-ghost { border-color: var(--bright-white); color: var(--bright-white); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-dark { background: var(--deep-blue); color: var(--bright-white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--grey-200);
  backdrop-filter: saturate(1.4) blur(6px);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.sep { color: var(--grey-200); font-weight: 400; }
.brand-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 18px; height: 18px; }
.brand-mark i:nth-child(1) { background: var(--robotic-orange); }
.brand-mark i:nth-child(2) { background: var(--agentic-teal); }
.brand-mark i:nth-child(3) { background: var(--deep-blue); }
.brand-mark i:nth-child(4) { background: var(--grey-200); }
.nav nav { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.nav nav a { text-decoration: none; color: var(--ink); }
.nav nav a:not(.nav-cta):hover { color: var(--robotic-orange); }
.nav-cta { background: var(--robotic-orange); color: var(--bright-white) !important; padding: 8px 14px; border-radius: var(--radius); font-family: var(--font-head); font-weight: 600; }
@media (max-width: 560px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .brand { font-size: .95rem; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--deep-blue);
  color: var(--bright-white);
  padding: 72px 0 88px;
}
@media (min-width: 768px) { .hero { padding: 120px 0 140px; } }
.hero-inner { position: relative; z-index: 1; }
.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 0 0 .4em;
  text-transform: none;
}
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #c9d3d8; max-width: 620px; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pixel motif (solid fills, niente bianco) */
.pixels {
  position: absolute;
  right: -40px;
  top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 8px;
  opacity: .9;
  pointer-events: none;
}
.pixels i { display: block; width: 44px; height: 44px; background: #2d373c; border-radius: 2px; }
.pixels i.px-o { background: var(--robotic-orange); }
.pixels i.px-t { background: var(--agentic-teal); }
@media (max-width: 767px) {
  .pixels { grid-template-columns: repeat(3, 22px); gap: 4px; right: -20px; top: 16px; }
  .pixels i { width: 22px; height: 22px; }
}

/* Stats */
.stats { background: var(--grey-100); border-bottom: 1px solid var(--grey-200); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.stat { border-left: 4px solid var(--robotic-orange); padding-left: 16px; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 900; font-size: 2.6rem; letter-spacing: -0.045em; line-height: 1; margin-bottom: 8px; color: var(--ink); }
.stat p { font-size: .98rem; margin-bottom: 6px; }
.stat small { color: var(--muted); font-size: .8rem; }

/* Ruoli */
.roles { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 860px) { .roles { grid-template-columns: repeat(3, 1fr); } }
.role { border-radius: 8px; padding: 28px; background: var(--grey-100); border-top: 6px solid var(--grey-200); }
.role-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); font-family: var(--font-head); font-weight: 900; color: var(--bright-white); margin-bottom: 14px; }
.role-teal { border-top-color: var(--agentic-teal); }
.role-teal .role-icon { background: var(--agentic-teal); color: var(--deep-blue); }
.role-orange { border-top-color: var(--robotic-orange); }
.role-orange .role-icon { background: var(--robotic-orange); }
.role-light { border-top-color: var(--deep-blue); }
.role-light .role-icon { background: var(--deep-blue); }
.role-tag { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--muted); letter-spacing: -0.01em; margin-bottom: .6em; }
.role p:last-child { margin-bottom: 0; }

.text-link { color: var(--robotic-orange); font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Split */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.compare { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.compare li { background: var(--bright-white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 18px 20px; }
.compare-label { display: block; font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.compare li:nth-child(3) { border-color: var(--agentic-teal); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--grey-100); border-radius: 8px; padding: 22px; position: relative; }
.step-n { display: inline-block; font-family: var(--font-head); font-weight: 900; color: var(--robotic-orange); font-size: 1.6rem; letter-spacing: -0.045em; margin-bottom: 4px; }
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--muted); font-size: .97rem; margin-bottom: 10px; }
.steps small { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); background: var(--bright-white); border: 1px solid var(--grey-200); padding: 3px 8px; border-radius: 2px; }

/* Governance */
.pillars { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { border: 1px solid #2d373c; border-radius: 8px; padding: 26px; background: rgba(255, 255, 255, .02); }
.pillar p { color: #c9d3d8; margin: 0; }

/* Trend */
.trends { list-style: none; padding: 0; margin: 0; counter-reset: t; display: grid; gap: 10px; }
.trends li {
  counter-increment: t;
  display: flex; gap: 14px; align-items: baseline;
  padding: 14px 16px; background: var(--grey-100); border-radius: var(--radius);
  font-weight: 500;
}
.trends li::before {
  content: counter(t, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 900; color: var(--agentic-teal); min-width: 2em;
}

/* CTA */
.cta-band { padding: 72px 0; text-align: left; }
.cta-inner { display: grid; gap: 14px; justify-items: start; }
.section-orange .lead { color: var(--bright-white); opacity: .95; margin-bottom: .5em; }
.section-orange .btn-dark:hover { background: #000; }

/* Footer */
.site-footer { background: var(--deep-blue); color: #c9d3d8; padding: 40px 0; font-size: .95rem; }
.site-footer strong { color: var(--bright-white); font-family: var(--font-head); }
.site-footer a { color: var(--bright-white); }
.site-footer .sep { color: #5b6770; }
.footer-inner p { margin: 0 0 .4em; }

/* Pagina risorse */
.page-hero { background: var(--deep-blue); color: var(--bright-white); padding: 64px 0 56px; }
.page-hero h1 { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.045em; line-height: 1.05; }
.page-hero .lead { color: #c9d3d8; }
.wp-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .wp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .wp-grid { grid-template-columns: repeat(3, 1fr); } }
.wp-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--grey-200); border-radius: 8px; padding: 24px;
  background: var(--bright-white);
  border-top: 6px solid var(--robotic-orange);
}
.wp-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { font-family: var(--font-head); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bright-white); background: var(--agentic-teal); padding: 4px 10px; border-radius: 2px; color: var(--deep-blue); }
.wp-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.wp-desc { color: var(--muted); font-size: .97rem; flex: 1; }
.wp-card .btn { align-self: flex-start; margin-top: 8px; }
.cta-band.section-dark { padding: 72px 0; }

/* Admin */
.admin main { max-width: 1000px; }
.admin h1 { font-size: 2rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.kpi { border: 1px solid var(--grey-200); border-radius: 8px; padding: 16px; }
.kpi span { display: block; font-family: var(--font-head); font-weight: 900; font-size: 2rem; letter-spacing: -0.045em; }
.kpi small { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--grey-200); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--grey-200); text-align: left; vertical-align: top; }
th { background: var(--grey-100); font-family: var(--font-head); font-weight: 600; font-size: .85rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Loghi partner */
.logo { height: 34px; width: auto; display: block; }
.logo-footer { height: 40px; width: auto; margin-bottom: 14px; background: var(--bright-white); padding: 8px 12px; border-radius: 4px; }
.westcon-placeholder { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; font-size: 1rem; color: var(--deep-blue); }
.site-footer .sep { color: #5b6770; }
.logo-westcon { height: 34px; width: auto; }
@media (max-width: 560px) {
  .site-header .logo { height: 24px; }
  .site-header .logo-westcon { height: 16px; }
  .site-header .nav-cta { padding: 7px 10px; font-size: .85rem; }
  .site-header .sep { margin: 0 6px; }
}
