/* ================================================================
   DESIGN SYSTEM — consulting-ai.tech
   Modulo 0: token + utility di base (palette, tipografia, forme,
   spazi, micro-interazioni). Solo CSS, nessun testo.

   STATO: file NON collegato a nessuna pagina HTML.
   Nessuna classe qui dentro è ancora applicata a componenti
   esistenti. Il file style.css attuale non viene toccato.
   ================================================================ */

/* --------------------------------
   FONT IMPORT
   Font attuale (Inter) mantenuto per il body.
   Space Grotesk aggiunto per i titoli — cambio sicuro perché
   il sito usa già Inter ovunque (nessuna dipendenza da rimuovere).
   -------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --------------------------------
   COLOR TOKENS
   Valori esatti forniti — namespace separato dai token esistenti
   in style.css (--cream, --accent, ecc. in style.css restano
   invariati e puntano ancora alla palette attuale del sito).
   -------------------------------- */
:root {
  --ds-cream:        #FDF6F0;
  --ds-cream-dark:   #F5EBE0;
  --ds-orange:       #E86A33;
  --ds-orange-dark:  #C45528;
  --ds-orange-light: #FFF0E8;
  --ds-text-primary:   #1A1A1A;
  --ds-text-secondary: #6B6B6B;
  --ds-text-muted:     #9E9E9E;
  --ds-border:  #E8DDD3;
  --ds-surface: #FFFFFF;

  /* Font */
  --ds-font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ds-font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Forme */
  --ds-radius-card: 12px;
  --ds-radius-pill: 999px;

  /* Ombre */
  --ds-shadow-card-hover:      0 4px 24px rgba(232, 106, 51, 0.08);
  --ds-shadow-card-hover-lg:   0 12px 40px rgba(232, 106, 51, 0.12);

  /* Spazi */
  --ds-section-spacing: 96px; /* py-24 */
  --ds-container-max: 1200px;
}

/* ================================================================
   TIPOGRAFIA — scala come classi utility (non su tag h1/h2/h3
   nudi, per non alterare nulla di già renderizzato quando/se
   questo file verrà collegato).
   ================================================================ */

.ds-hero-title {
  font-family: var(--ds-font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ds-text-primary);
}

.ds-h2-section {
  font-family: var(--ds-font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ds-text-primary);
}

.ds-h3-card {
  font-family: var(--ds-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ds-text-primary);
}

.ds-body {
  font-family: var(--ds-font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ds-text-secondary);
}

.ds-caption {
  font-family: var(--ds-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-text-muted);
}

/* ================================================================
   LAYOUT — container e ritmo verticale sezioni
   ================================================================ */

.ds-container {
  width: 100%;
  max-width: var(--ds-container-max);
  margin: 0 auto;
}

.ds-section {
  padding-top: var(--ds-section-spacing);
  padding-bottom: var(--ds-section-spacing);
}

/* ================================================================
   COMPONENTI BASE — card / pill (solo forma, nessun colore
   applicato oltre ai token: da rifinire quando verranno
   effettivamente usati nei moduli successivi)
   ================================================================ */

.ds-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-card);
}

.ds-pill {
  border-radius: var(--ds-radius-pill);
}

/* ================================================================
   UTILITY — MICRO-INTERAZIONI
   ================================================================ */

/* Reveal on scroll — attivata via IntersectionObserver,
   threshold 0.15. Il JS aggiunge/rimuove la classe .visible. */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger per gruppi di elementi (0.1s / 0.2s / 0.3s / ...) */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Card hover */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--ds-shadow-card-hover-lg);
  border-color: var(--ds-orange);
}

/* Link con freccia animata */
.link-arrow span {
  transition: transform 0.3s ease;
}
.link-arrow:hover span {
  transform: translateX(4px);
}

/* Pulsazione leggera (badge, icone, elementi da enfatizzare) */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ================================================================
   MODULO 1 — NAVBAR
   Solo stile: nessun link, nessuna voce di menu, nessun testo
   toccato. Il markup e main.js restano invariati salvo la soglia
   di scroll per .scrolled (20px -> 50px).
   ================================================================ */

.navbar {
  background: var(--ds-cream);
  border-bottom: 1px solid var(--ds-border);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(253, 246, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(26, 26, 26, 0.06);
}

/* Nav link — sottolineatura animata all'hover */
.nav-links a {
  position: relative;
  color: var(--ds-text-secondary);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--ds-orange);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ds-orange);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Logo — leggero respiro continuo, solo nella navbar (non nel footer) */
.navbar .logo-slashes {
  animation: breathe 4s ease-in-out infinite;
  transform-origin: center;
}
@media (prefers-reduced-motion: reduce) {
  .navbar .logo-slashes { animation: none; }
}

/* CTA primaria — solo forma (radius/padding/colore token), testo e link invariati */
.nav-cta {
  background: var(--ds-orange);
  border-radius: var(--ds-radius-pill);
  padding: 0.65rem 1.5rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover {
  background: var(--ds-orange-dark);
  transform: translateY(-1px);
}

/* ================================================================
   MODULO 2 — HERO
   Solo stile: layout a 2 colonne invariato (60/40, stack su
   mobile), nessun testo toccato. Le uniche modifiche al markup
   sono due <span class="hero-highlight"> attorno a "AI Adoption"
   (EN) e "L'adozione dell'AI" (IT) — stesso identico testo,
   nessuna parola aggiunta/rimossa — per poterle colorare in
   arancione senza alterare il resto della headline.
   ================================================================ */

.hero h1 {
  font-family: var(--ds-font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}
.hero-highlight {
  color: var(--ds-orange);
}

.hero-sub {
  color: rgba(253, 246, 240, 0.85);
  max-width: 540px;
}

/* CTA primaria della hero */
.hero .btn-primary {
  background: var(--ds-orange);
  color: #fff;
  border-color: var(--ds-orange);
  border-radius: var(--ds-radius-pill);
  padding: 0.9rem 2rem;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.hero .btn-primary:hover {
  background: var(--ds-orange-dark);
  border-color: var(--ds-orange-dark);
  transform: scale(1.03);
}

/* CTA secondaria della hero — outline */
.hero .btn-outline-light {
  background: transparent;
  color: var(--ds-cream);
  border-color: var(--ds-orange);
  border-radius: var(--ds-radius-pill);
  padding: 0.9rem 2rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.hero .btn-outline-light:hover {
  background: rgba(232, 106, 51, 0.1);
  border-color: var(--ds-orange-dark);
  transform: scale(1.03);
}

/* ================================================================
   MODULO 3 — TRUSTED BY / SCELTI DA
   Solo stile: nomi clienti, alt text e titolo sezione invariati.
   Nessuna reveal-animation qui — sezione volutamente leggera.
   ================================================================ */

.trusted-by {
  background: var(--ds-cream);
  padding: 2.5rem 0;
  border-top: 1px solid var(--ds-border);
  border-bottom: 1px solid var(--ds-border);
}
.trusted-by-inner {
  text-align: center;
}
.trusted-by-label {
  font-family: var(--ds-font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
  margin-bottom: 1.75rem;
}
.trusted-by-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.trusted-by-logo {
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.trusted-by-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .trusted-by-logo { transition: none; }
}
@media (max-width: 640px) {
  .trusted-by-logos { gap: 2rem; }
}

/* ================================================================
   MODULO 4 — CASE STUDIES ("Results we are proud of." /
   "Risultati di cui siamo orgogliosi.")
   Solo stile: titoli, descrizioni, metriche e nomi progetto
   invariati. La sezione passa da carousel a griglia statica
   3 colonne / 1 colonna mobile — vedi nota nel riepilogo.
   ================================================================ */

.case-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 0.5rem;
}

.case-story-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Pannello del diagramma — resta scuro (colore originale della
   sezione) perché le linee/testi dell'SVG sono chiari e
   diventerebbero illeggibili su uno sfondo chiaro. */
.case-story-visual {
  background: #18120A;
  padding: 1.75rem 1.25rem;
}
.case-story-visual .case-diagram {
  background: transparent;
  width: 100%;
}

.case-story-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-story-tag {
  display: inline-block;
  width: fit-content;
  background: var(--ds-orange-light);
  color: var(--ds-orange-dark);
  font-family: var(--ds-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--ds-radius-pill);
  margin-bottom: 1rem;
}

.case-story-client {
  font-family: var(--ds-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ds-text-primary);
  margin-bottom: 0.75rem;
}

.case-story-text {
  font-family: var(--ds-font-body);
  font-size: 0.9375rem;
  color: var(--ds-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.case-story-divider {
  height: 1px;
  background: var(--ds-border);
  margin-bottom: 1.1rem;
}

.case-story-label {
  display: block;
  font-family: var(--ds-font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-orange);
  margin-bottom: 0.5rem;
}

.case-story-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
}

/* Metrica in evidenza — scoping a .case-story-card per non
   toccare .case-stat-value usato nelle pagine dei singoli
   case study. */
.case-story-card .case-stat-value {
  color: var(--ds-orange);
  font-weight: 700;
  font-size: 1.65rem;
}
.case-story-card .case-stat-label {
  color: var(--ds-text-secondary);
  font-size: 0.8rem;
}

.case-story-cta {
  text-align: center;
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .case-story-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .case-story-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   MODULO 5 — SERVIZI ("Our services" / "I nostri servizi",
   homepage). Solo stile: nomi servizio e descrizioni invariati.
   Scoping a #home-services per non toccare la stessa griglia
   (.grid-5/.card/.icon-badge) riusata in /services-ai-consulting/.
   ================================================================ */

/* Card: colonna flex per poter ancorare "Learn more" in fondo
   a tutte le card, indipendentemente dalla lunghezza del testo */
#home-services .card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 14px rgba(26, 26, 26, 0.045);
}

/* Icona: da badge squadrato a badge circolare, leggermente più grande */
#home-services .icon-badge {
  border-radius: 50%;
  width: 52px;
  height: 52px;
}
#home-services .icon-badge svg {
  width: 24px;
  height: 24px;
}

/* Label categoria: altezza riservata per 2 righe e testo ancorato
   in basso, così "AI INTEGRATION" (1 riga) e "SOFTWARE DEVELOPMENT"
   (2 righe) fanno partire il titolo H3 alla stessa altezza su
   tutte le card */
#home-services .card-label {
  display: flex;
  align-items: flex-end;
  min-height: 2.3em;
  line-height: 1.3;
}

/* Titolo card alla scala h3 richiesta (1.25rem / 600) */
#home-services .card h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* La descrizione occupa lo spazio disponibile: "Learn more" resta
   sempre ancorato al fondo della card, allineato tra le 5 card */
#home-services .card p {
  flex: 1;
}
#home-services .card-link {
  margin-top: 0.5rem;
}

/* Carousel: track scorrevole con snap + frecce, al posto della
   griglia statica 3+2. Le card restano identiche nel contenuto. */
.services-carousel {
  position: relative;
}
.services-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0.25rem 0.75rem;
  margin: -0.25rem -0.25rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.services-track::-webkit-scrollbar {
  display: none;
}
.service-card-wrap {
  flex: 0 0 calc((100% - 2 * 1.25rem) / 3);
  scroll-snap-align: start;
  display: flex;
}
.service-card-wrap .card {
  width: 100%;
}
@media (max-width: 1024px) {
  .service-card-wrap { flex-basis: calc((100% - 1.25rem) / 2); }
}
@media (max-width: 640px) {
  .service-card-wrap { flex-basis: 82%; }
}

.services-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  color: var(--ds-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.08);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.services-arrow svg {
  width: 18px;
  height: 18px;
}
.services-arrow:hover {
  background: var(--ds-orange);
  border-color: var(--ds-orange);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}
.services-arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.services-arrow-prev { left: -22px; }
.services-arrow-next { right: -22px; }
@media (max-width: 1180px) {
  .services-arrow-prev { left: 0.5rem; }
  .services-arrow-next { right: 0.5rem; }
}
@media (max-width: 640px) {
  .services-arrow { width: 36px; height: 36px; }
  .services-arrow svg { width: 16px; height: 16px; }
}

/* ================================================================
   MODULO 5 (continua) — pagina Servizi dedicata
   (/services-ai-consulting/ e /it/servizi/). Stesso allineamento
   icone/"Learn more" applicato alla homepage. .grid-5 non è più
   usata dalla homepage (ora carousel), quindi qui si può stilare
   direttamente senza scoping aggiuntivo.
   ================================================================ */
.grid-5 .card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 14px rgba(26, 26, 26, 0.045);
}
.grid-5 .icon-badge {
  border-radius: 50%;
  width: 52px;
  height: 52px;
}
.grid-5 .icon-badge svg {
  width: 24px;
  height: 24px;
}
.grid-5 .card-label {
  display: flex;
  align-items: flex-end;
  min-height: 2.3em;
  line-height: 1.3;
}
.grid-5 .card h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
.grid-5 .card p {
  flex: 1;
}
.grid-5 .card-link {
  margin-top: 0.5rem;
}

/* ================================================================
   MODULO 6 — PROCESSO ("How it works" / "Come funziona", homepage)
   Solo stile: titoli, descrizioni e testo dei 3 step invariati.
   Scoping a #home-process (stessa .steps riusata anche in
   /services-ai-consulting/ e /it/servizi/, non toccate).
   Timeline orizzontale desktop / verticale mobile: già il
   comportamento esistente di .steps (grid 3 col → 1 col a 768px,
   connettore nascosto sotto 768px) — non modificato.
   ================================================================ */

/* Step: leggero lift all'hover, per dare "vita" alla card */
#home-process .step {
  transition: transform 0.3s ease;
}
#home-process .step:hover {
  transform: translateY(-4px);
}

/* Icona circolare sopra ogni step — respiro continuo (utility
   .breathe del design system), con delay sfalsato per step.
   Quando lo step diventa attivo (in viewport) l'icona passa da
   outline chiaro a riempimento arancione pieno, come una tappa
   "completata" sulla linea di progresso. */
#home-process .step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ds-orange-light);
  color: var(--ds-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  animation: breathe 4s ease-in-out infinite;
  transition: background 0.4s ease, color 0.4s ease, box-shadow 0.3s ease;
}
#home-process .step:nth-child(2) .step-icon { animation-delay: 0.3s; }
#home-process .step:nth-child(3) .step-icon { animation-delay: 0.6s; }
#home-process .step.visible .step-icon {
  background: var(--ds-orange);
  color: #FFFFFF;
}
#home-process .step:hover .step-icon {
  box-shadow: 0 8px 20px rgba(232, 106, 51, 0.28);
}
#home-process .step-icon svg {
  width: 24px;
  height: 24px;
}

/* Numero step: grande, muto di default, arancione + piccolo
   "pulse" quando lo step entra in viewport (via .reveal/.visible
   condiviso) */
#home-process .step-num {
  display: block;
  width: auto;
  height: auto;
  background: none;
  border: none;
  border-radius: 0;
  font-family: var(--ds-font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ds-text-muted);
  line-height: 1;
  margin-bottom: 0.75rem;
  transition: color 0.6s ease;
}
#home-process .step.visible .step-num {
  color: var(--ds-orange);
  animation: stepNumPulse 0.5s ease 0.1s;
}
@keyframes stepNumPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Titolo / descrizione alla scala tipografica richiesta */
#home-process .step h3 {
  font-family: var(--ds-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}
#home-process .step p {
  font-family: var(--ds-font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ds-text-secondary);
}

/* Connettore: traccia grigia + riempimento arancione che avanza
   progressivamente con lo scroll (non uno scatto binario).
   Orizzontale su desktop (posizione via CSS, grid a 3 colonne
   fisse), verticale su mobile (posizione calcolata via JS in
   base ai centri reali delle icone, vedi main.js) — sotto 768px
   non è più nascosto come nella versione precedente. */
#home-process .steps-connector {
  top: 26px;
  left: 26px;
  right: calc((100% - 4rem) / 3 - 26px);
  height: 2px;
  background: var(--ds-border);
  border-top: none;
  border-radius: 2px;
  z-index: 0;
}
#home-process .steps-connector-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--ds-orange);
  border-radius: 2px;
}
#home-process .steps-connector-dot {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ds-orange);
  border: 2px solid var(--ds-cream);
  box-shadow: 0 0 0 4px rgba(232, 106, 51, 0.18);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
#home-process .steps-connector-dot.is-active {
  opacity: 1;
}

/* Variante verticale (mobile): il connettore diventa una linea
   sottile che corre dal centro della prima alla dell'ultima icona */
#home-process .steps-connector.is-vertical {
  top: 0;
  left: 0;
  right: auto;
  width: 2px;
  height: 0;
}
#home-process .steps-connector.is-vertical .steps-connector-fill {
  width: 100%;
  height: 0%;
}
#home-process .steps-connector.is-vertical .steps-connector-dot {
  top: 0%;
  left: 50%;
}

@media (max-width: 768px) {
  #home-process .steps-connector { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  #home-process .step,
  #home-process .step-icon,
  #home-process .step-num,
  #home-process .steps-connector-fill,
  #home-process .steps-connector-dot {
    transition: none;
    animation: none;
  }
}

/* ================================================================
   MODULO 7 — PROGRAMMI AI ("Ready to move on AI? Start here." /
   "Pronto a muoverti sull'AI? Inizia da qui."). Solo stile: nomi
   programma (AI Audit/Pilot/Scale), descrizioni e CTA "Book a free
   call" / bottone primario invariati e non ristilizzati.
   Nessun numero/durata nel testo esistente da evidenziare, nessun
   badge "Consigliato" presente: non ne ho aggiunti (da regola).
   ================================================================ */

#home-programs .programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

#home-programs .program-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ds-radius-card);
  padding: 1.5rem;
}

/* Bordo superiore arancione 3px — differenziazione "premium" fra
   i 3 livelli tramite opacità decrescente dello stesso token */
#home-programs .program-card-1 { border-top: 3px solid var(--ds-orange); }
#home-programs .program-card-2 { border-top: 3px solid rgba(232, 106, 51, 0.65); }
#home-programs .program-card-3 { border-top: 3px solid rgba(232, 106, 51, 0.35); }

#home-programs .icon-badge-dark {
  border-radius: 50%;
}

#home-programs .program-eyebrow {
  display: inline-block;
  font-family: var(--ds-font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8936A;
}

#home-programs .program-card h3 {
  font-family: var(--ds-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #FBF7F4;
  margin: 0.5rem 0 0.6rem;
}

#home-programs .program-card p {
  font-size: 0.875rem;
  color: rgba(251, 247, 244, 0.65);
  line-height: 1.7;
  margin: 0;
}

/* ================================================================
   MODULO 8 — INSIGHTS ("Straight talk on AI and technology" /
   "Parole chiare su AI e tecnologia"). Solo stile: titoli
   articolo, categoria e link "All articles" invariati nel testo.
   Category tag riusa .case-story-tag (stesso badge/pill del
   Modulo 4, "stesso stile delle case studies").
   Thumbnail: nessuna immagine reale nel codice sorgente — per ora
   restano i placeholder a gradiente originali (icona sulle news).
   [DA FORNIRE: thumbnail reale per i 3 articoli]
   ================================================================ */

.article-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-card);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.article-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.article-thumb-1 { background: linear-gradient(135deg, #F2C4A8, #E8936A); }
.article-thumb-2 { background: linear-gradient(135deg, #E8936A, #E2622A); }
.article-thumb-3 { background: linear-gradient(135deg, #C85520, #18120A); }

.article-card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card h3 {
  font-family: var(--ds-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ds-text-primary);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.35;
}

.read-more {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ds-orange);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: auto;
}

.insights-more a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ds-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* ================================================================
   MODULO 9 — FOUNDER ("Hi, I'm Lorenzo." / "Ciao, sono Lorenzo.").
   Solo stile: bio e link "More about me" invariati nel testo.
   Foto: già una foto reale (lorenzo-giarnese.png, 1024x1024), non
   un placeholder — nessun [DA FORNIRE] necessario. Layout foto
   sinistra / testo destra già presente via flex-wrap (che porta
   la foto sopra il testo su mobile) — solo formalizzato in classi.
   ================================================================ */

#home-founder .founder-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

/* Foto: cerchio con sottile anello arancione on-brand */
#home-founder .founder-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--ds-orange);
  box-sizing: border-box;
}

#home-founder .founder-bio {
  font-family: var(--ds-font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ds-text-secondary);
  max-width: 480px;
  margin-bottom: 0;
}
#home-founder .founder-bio a {
  color: var(--ds-orange);
  font-weight: 500;
}

/* ================================================================
   MODULO 10 — CTA FINALE. Applicato globalmente a .cta-band, usata
   in tutte le pagine del sito (homepage, FAQ, News, Case Studies,
   About, Servizi...) con titolo/descrizione/bottone propri di ogni
   pagina — nessuno di questi testi è stato toccato, solo lo stile
   del contenitore. Il pattern decorativo a cerchi è stato aggiunto
   nel markup di ogni pagina che usa .cta-band.
   ================================================================ */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ds-orange);
  padding: 5rem 0;
  text-align: center;
}

.cta-band .cta-band-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.1;
  pointer-events: none;
}
.cta-band .cta-band-pattern svg {
  width: 100%;
  height: 100%;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-family: var(--ds-font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.cta-band p {
  font-family: var(--ds-font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.cta-band .btn-primary {
  background: #FFFFFF;
  color: var(--ds-orange);
  border-color: #FFFFFF;
  border-radius: var(--ds-radius-pill);
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.cta-band .btn-primary:hover {
  background: var(--ds-cream-dark);
  border-color: var(--ds-cream-dark);
  color: var(--ds-orange-dark);
  transform: scale(1.03);
}

/* ================================================================
   MODULO 11 — FOOTER. Applicato globalmente (.footer): il footer
   è identico su tutte le pagine del sito, non solo sulla homepage.
   Solo stile: link, testi legali, copyright e UEN invariati.
   Unica eccezione approvata dal cliente: aggiunto link Instagram
   accanto a LinkedIn/Email (nei 7 file che avevano già la riga
   social — le altre pagine non avevano .footer-social e non gliel'ho
   aggiunta, per non introdurre contenuto dove non c'era).
   ================================================================ */

.footer {
  border-top: 1px solid var(--ds-border);
}

/* Titoli colonna: scala caption (uppercase, letter-spacing) */
.footer-col h4 {
  font-family: var(--ds-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Link colonna: scala body, hover verso l'arancione */
.footer-col a {
  font-family: var(--ds-font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ds-text-secondary);
}
.footer-col a:hover {
  color: var(--ds-orange);
}

/* Icone social: stroke 1.5px, colore muted di default (testo
   secondario non ha contrasto sufficiente su fondo quasi nero —
   vedi nota nel riepilogo), arancione all'hover */
.footer-social a {
  color: var(--ds-text-muted);
}
.footer-social a svg {
  width: 18px;
  height: 18px;
}
.footer-social a:hover {
  border-color: var(--ds-orange);
  color: var(--ds-orange);
}

/* Copyright e link legali */
.footer-copy {
  color: var(--ds-text-muted);
}
.footer-legal a {
  color: var(--ds-text-muted);
}
.footer-legal a:hover {
  color: var(--ds-orange);
}
