/* =====================================================================
   chi-siamo.html (revisione 17/11/2026): componenti nuovi, prefisso cs-
   ===================================================================== */

/* Hero: numeri */
.cs-numbers { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 900px; margin: 44px auto 0; }
.cs-numbers li { display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.cs-numbers b { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--orange); line-height: 1; }
.cs-numbers span { font-size: 0.86rem; color: rgba(255,255,255,.72); }

/* In breve + patto */
.cs-brief__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
.cs-brief__copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--navy-dark); margin-bottom: 20px; }
.cs-brief__copy p { color: var(--navy-mid); font-size: 1.05rem; line-height: 1.75; margin-bottom: 14px; }
.cs-areas { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cs-areas li { font-size: 0.82rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--navy-dark); padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--border); }
.cs-pact { display: grid; gap: 16px; padding: 38px 34px; border-radius: 22px; background: linear-gradient(160deg, var(--navy-dark), #0e161e); color: var(--white); position: relative; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.cs-pact::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--orange); }
.cs-pact:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(22,33,44,.22); }
.cs-pact__k { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); }
.cs-pact__q { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.3; }
.cs-pact__q em { font-style: italic; color: var(--orange); }
.cs-pact__go { font-weight: 600; font-size: 0.92rem; color: rgba(255,255,255,.85); }
.cs-pact__go span { display: inline-block; color: var(--orange); transition: transform .25s ease; }
.cs-pact:hover .cs-pact__go span { transform: translateX(5px); }

/* Storia: linea del tempo orizzontale */
.cs-tl { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; position: relative; }
.cs-tl::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--border); }
.cs-tl::after { content: ""; position: absolute; left: 0; top: 9px; height: 2px; width: 0; background: var(--orange); transition: width 2s cubic-bezier(.2,.7,.2,1); }
.cs-story.visible .cs-tl::after, .cs-story.in .cs-tl::after, .cs-story.is-visible .cs-tl::after { width: 100%; }
.cs-tl__item { position: relative; padding-top: 34px; opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i) * .3s); }
.cs-story.visible .cs-tl__item, .cs-story.in .cs-tl__item, .cs-story.is-visible .cs-tl__item { opacity: 1; transform: none; }
.cs-tl__dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 3px solid var(--orange); box-shadow: 0 0 0 5px rgba(255,130,0,.12); }
.cs-tl__item:last-child .cs-tl__dot { background: var(--orange); }
.cs-tl__year { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--orange); line-height: 1; margin-bottom: 10px; }
.cs-tl__item h3 { font-size: 1.05rem; color: var(--navy-dark); margin-bottom: 8px; }
.cs-tl__item p { font-size: 0.9rem; line-height: 1.6; color: var(--navy-mid); }

/* Frase della direzione */
.cs-quote { padding: 110px 0; background: linear-gradient(140deg, var(--navy-dark), #0e161e); color: var(--white); text-align: center; }
.cs-quote__text { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.3; max-width: 900px; margin: 0 auto; }
.cs-quote__text em { font-style: italic; color: var(--orange); }
.cs-quote__by { margin-top: 26px; font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* Squadra in due blocchi */
.cs-team-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--orange); margin: 48px 0 0; text-align: center; }
.team-grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 960px; margin-left: auto; margin-right: auto; margin-top: 22px; }

/* CTA: dopo la rimozione di "Certificazioni" (25/11/2026) lo statement scuro è attaccato alla CTA scura:
   un filetto arancio separa le due fasce */
.statement + .cta::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(560px, 70%); height: 1px; background: linear-gradient(90deg, transparent, var(--orange), transparent); opacity: .7; z-index: 1; }

/* CTA */
.cs-cta__text { max-width: 620px; margin: 14px auto 32px; color: rgba(255,255,255,.78); font-size: 1.05rem; }

@media (max-width: 1024px) {
  .cs-brief__grid { grid-template-columns: 1fr; gap: 32px; }
  .cs-tl { grid-template-columns: 1fr; gap: 28px; padding-left: 34px; }
  .cs-tl::before, .cs-tl::after { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .cs-story.visible .cs-tl::after, .cs-story.in .cs-tl::after, .cs-story.is-visible .cs-tl::after { width: 2px; height: 100%; }
  .cs-tl::after { height: 0; transition: height 2s cubic-bezier(.2,.7,.2,1); }
  .cs-tl__item { padding-top: 0; }
  .cs-tl__dot { left: -34px; }
}
@media (max-width: 760px) {
  .cs-numbers { grid-template-columns: 1fr 1fr; }
  .team-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .team-grid--3 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .cs-tl__item { opacity: 1; transform: none; transition: none; }
  .cs-tl::after { width: 100%; transition: none; }
}
