/* ==========================================================================
   Veste "brochure" — pagine Servizi e Tecnologia (e home nuova).
   Tutto è scoped sotto .pcx per non entrare in conflitto con il CSS Elementor
   del sito portato, che resta caricato in pagina.
   Palette presa dalla brochure Proactive: fondo scuro teal/navy, oro per
   Consulenza/Servizi, verde per Formazione/Tecnologia.
   ========================================================================== */

.pcx {
  --bg: #0b1a22;
  --bg-2: #102530;
  --surface: #14303c;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #c9a24a;
  --green: #8cc63f;
  --text: #eaf2f6;
  --muted: #9db2be;

  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  /* clip e non hidden: hidden creerebbe un contenitore di scorrimento e Chrome
     smette di dipingere le immagini che ci finiscono in fondo (lo schema
     dell'architettura restava bianco). clip taglia e basta. */
  overflow-x: clip;
}

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

.pcx p { margin: 0 0 1em; color: var(--muted); }
.pcx strong { color: var(--text); font-weight: 600; }
.pcx a { color: inherit; }

.pcx h1, .pcx h2, .pcx h3, .pcx h4 {
  margin: 0 0 .5em;
  color: var(--text);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-transform: none;
}

/* --- Striscia NEWS -------------------------------------------------------
   Il widget Premium Post Ticker si appoggiava a slick e al JS di Premium
   Addons, rimossi col resto di Elementor: senza, i post si impilano e la
   classe __hidden li rende invisibili lasciando un vuoto alto in pagina.
   Il markup viene già generato in riga e duplicato, qui c'è solo lo scorrimento. */
.premium-post-ticker__content { display: flex; align-items: center; }
.premium-post-ticker__title-wrapper { flex: 0 0 auto; }
.premium-post-ticker__posts-wrapper { flex: 1 1 auto; overflow: hidden; }
.premium-post-ticker__post-wrapper {
  display: flex; position: relative; flex: 0 0 auto; white-space: nowrap;
}
.pt-track { display: flex; width: max-content; animation: pt-scroll 90s linear infinite; }
.pt-half { display: flex; }
.premium-post-ticker__outer-wrapper:hover .pt-track { animation-play-state: paused; }
@keyframes pt-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pt-track { animation: none; } }

.pcx__wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Pastiglie: elenco compatto, senza il peso visivo di una card. */
.pcx__pills { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.pcx__pills li {
  padding: 10px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.pcx__section { padding: 84px 0; }
.pcx__section--tight { padding: 56px 0; }
.pcx__section--alt { background: var(--bg-2); }

/* --- Hero ---------------------------------------------------------------- */
.pcx__hero {
  position: relative;
  padding: 104px 0 88px;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(140, 198, 63, .20), transparent 55%),
    radial-gradient(100% 80% at 88% 12%, rgba(201, 162, 74, .18), transparent 55%),
    linear-gradient(160deg, #0a1a21 0%, #0d232c 55%, #0b1a22 100%);
  border-bottom: 1px solid var(--line);
}
.pcx__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.pcx__hero h1 { font-size: clamp(34px, 5.2vw, 58px); }
.pcx__lead {
  max-width: 720px;
  font-size: clamp(17px, 2vw, 21px);
  color: #c6d6df;
}

/* --- Titoli di sezione --------------------------------------------------- */
.pcx__h2 { font-size: clamp(26px, 3.6vw, 40px); }
.pcx__kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
}
.pcx__rule {
  width: 64px; height: 3px;
  margin: 22px 0 30px;
  background: var(--gold);
  border-radius: 2px;
}

/* --- Griglia pilastri ---------------------------------------------------- */
.pcx__grid { display: grid; gap: 22px; }
.pcx__grid--4 { grid-template-columns: repeat(4, 1fr); }
.pcx__grid--3 { grid-template-columns: repeat(3, 1fr); }
.pcx__grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Card "reparto" in sintesi: numero grande sopra il titolo, tutta cliccabile. */
.pcx__deptCard { display: block; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.pcx__deptCard .pcx__num { font-size: 40px; margin-bottom: 6px; }
.pcx__deptCard:hover { border-color: var(--accent, var(--gold)); transform: translateY(-3px); }

.pcx__card {
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.pcx__card h3 { font-size: 20px; }
.pcx__card p:last-child { margin-bottom: 0; }

/* --- Blocco reparto (01–04) ---------------------------------------------- */
.pcx__dept {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
}
.pcx__dept:first-of-type { border-top: 0; }

.pcx__deptHead { position: sticky; top: 24px; align-self: start; }
.pcx__num {
  display: block;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent, var(--gold));
  opacity: .9;
}
.pcx__deptHead h2 { margin-top: 8px; font-size: 27px; }
.pcx__deptClaim { color: var(--accent, var(--gold)); font-weight: 600; }
.pcx__deptNote {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px; font-style: italic; color: var(--muted);
}

.pcx__offer { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pcx__offer > div {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent, var(--gold));
  border-radius: 12px;
}
.pcx__offer h3 { font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.pcx__offer > div > p:first-of-type { font-style: italic; font-size: 15px; }

.pcx__list { margin: 0 0 18px; padding: 0; list-style: none; }
.pcx__list li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 20px;
  font-size: 15.5px;
  color: var(--muted);
}
.pcx__list li::before {
  content: '';
  position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px;
  background: var(--accent, var(--gold));
  border-radius: 50%;
}
.pcx__list li strong { color: var(--text); }

.pcx__mode {
  display: inline-block;
  margin-top: 4px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.pcx__mode b { color: var(--accent, var(--gold)); font-weight: 600; }

/* --- Schema architettura ------------------------------------------------- */
.pcx__figure {
  margin: 0;
  padding: 22px;
  background: #f4f7f5;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.pcx__figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.pcx__figure figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: #4a5a63;
  text-align: center;
}

/* --- Chiusura / CTA ------------------------------------------------------ */
.pcx__closing {
  padding: 92px 0;
  text-align: center;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(140, 198, 63, .16), transparent 60%),
    linear-gradient(180deg, #0d222b, #0b1a22);
  border-top: 1px solid var(--line);
}
.pcx__closing h2 { font-size: clamp(28px, 4.2vw, 44px); }
.pcx__closing .pcx__lead { margin: 0 auto 30px; text-align: center; }

.pcx__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 6px 8px 0;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.pcx__cta--primary { background: var(--gold); color: #16232b; }
.pcx__cta--ghost { border: 1px solid rgba(255, 255, 255, .38); color: var(--text); }
.pcx__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.pcx__cta--ghost:hover { background: rgba(255, 255, 255, .07); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .pcx__grid--4, .pcx__grid--3 { grid-template-columns: repeat(2, 1fr); }
  .pcx__dept { grid-template-columns: 1fr; gap: 24px; }
  .pcx__deptHead { position: static; }
  .pcx__num { font-size: 52px; }
}
@media (max-width: 720px) {
  .pcx { font-size: 16px; }
  .pcx__section { padding: 60px 0; }
  .pcx__hero { padding: 74px 0 62px; }
  .pcx__grid--4, .pcx__grid--3, .pcx__grid--2, .pcx__offer { grid-template-columns: 1fr; }
  .pcx__figure { padding: 12px; }
  .pcx__cta { display: flex; justify-content: center; margin: 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pcx__cta { transition: none; }
  .pcx__cta:hover { transform: none; }
}
