/* =============================================
   ICT Labs — tecnologie.css
   Pulse / Tecnologie Page
   ============================================= */

/* ── CSS Variables ── */
:root {
  --ict-blue:       #0aa1d6;
  --ict-blue-dark:  #0086b3;
  --ict-blue-light: #c2ebf9;
  --ict-navy:       #0d1b2a;
  --ict-dark:       #1a1a1a;
  --ict-gray:       #666666;
  --ict-gray-mid:   #999999;
  --ict-gray-light: #e5e7eb;
  --ict-white:      #ffffff;
  --ict-off:        #f8f9fa;
  --ict-off2:       #f0f7fb;

  --font:    'azo-sans-web', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-xs: 0 1px 4px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,.12);
  --shadow-lg: 0 24px 56px rgba(0,0,0,.14);

  --ease: .32s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font);
  color: var(--ict-dark);
  background: var(--ict-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }



/* =============================================
   PAGE HERO
   ============================================= */
.pg-hero {
  background: linear-gradient(135deg, var(--ict-navy) 0%, #0d2233 55%, #0a1a28 100%);
  min-height: 340px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 96px 0 56px;
}
.pg-hero::before {
  content: 'PULSE';
  position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%);
  font-size: clamp(80px, 14vw, 190px);
  font-weight: 900; color: rgba(255,255,255,.025);
  letter-spacing: -.06em; line-height: 1; pointer-events: none;
}
.pg-hero::after {
  content: '';
  position: absolute; left: -80px; top: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(10,161,214,.14) 0%, transparent 65%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ict-blue-light);
  background: rgba(10,161,214,.14); border: 1px solid rgba(10,161,214,.28);
  padding: .28rem .9rem; border-radius: 50px; margin-bottom: 1.1rem;
}
.pg-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800; color: #fff; line-height: 1.05; margin-bottom: .9rem;
}
.pg-hero h1 .hb {
  color: var(--ict-blue);
  animation: hbeat 2.2s ease-in-out infinite; display: inline-block;
}
@keyframes hbeat {
  0%,100% { transform: scale(1); }
  14%      { transform: scale(1.35); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.2); }
  56%      { transform: scale(1); }
}
.pg-hero p {
  font-size: 1.05rem; font-weight: 300;
  color: rgba(255,255,255,.68); line-height: 1.75; max-width: 500px;
}

#pulse_txt {
  display: inline-block;
  z-index:100;
  position: relative;
  text-shadow: 0px 0px 4px rgba(0,0,0,.8);
}
#pulse_h {
  display: inline-block;
  transform: rotate(30deg);
  margin-left: -35px;
  z-index:90;
  position: relative;
}
/* =============================================
   SECTION WRAPPERS — alternating BG
   ============================================= */
.s-white  { background: var(--ict-white); }
.s-off    { background: var(--ict-off); }
.s-blue   { background: linear-gradient(135deg, #0d2233 0%, #0a3050 100%); }
.s-navy   { background: var(--ict-navy); }
.s-light  { background: var(--ict-off2); }

/* =============================================
   COMMON SECTION ELEMENTS
   ============================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ict-blue); margin-bottom: .85rem;
}
.eyebrow::before { content: ''; display: block; width: 22px; height: 2px; background: var(--ict-blue); }
.eyebrow--light { color: var(--ict-blue-light); }
.eyebrow--light::before { background: var(--ict-blue-light); }

.sec-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700; line-height: 1.15; color: var(--ict-dark); margin-bottom: .65rem;
}
.sec-title em { color: var(--ict-blue); font-style: normal; }
.sec-title--light { color: #fff; }

.sec-sub { font-size: .98rem; font-weight: 300; color: var(--ict-gray); line-height: 1.8; }
.sec-sub--light { color: rgba(255,255,255,.58); }

.body-text { font-size: 1rem; font-weight: 300; color: #444; line-height: 1.9; }

/* =============================================
   SEZIONE 1 — PULSE INTRO
   ============================================= */

/* Stat pills */
.stat-pill {
  display: flex; align-items: flex-start; gap: .85rem;
  background: var(--ict-white);
  border: 1px solid var(--ict-gray-light);
  border-left: 3px solid var(--ict-blue);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--ease), transform var(--ease);
}
.stat-pill:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.stat-pill__icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,161,214,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--ict-blue); font-size: .95rem; flex-shrink: 0;
}
.stat-pill__body strong {
  display: block; font-size: .88rem; font-weight: 700;
  color: var(--ict-dark); margin-bottom: .15rem;
}
.stat-pill__body span { font-size: .8rem; color: var(--ict-gray); line-height: 1.5; }

/* Intro split — testo sx */
.intro-text { font-size: 1rem; font-weight: 300; color: #444; line-height: 1.9; }
.intro-text strong { color: var(--ict-dark); font-weight: 600; }

/* =============================================
   SEZIONE 2 — SUITE (dark carousel)
   ============================================= */
.suite-wrap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative; overflow: hidden;
}
.suite-wrap::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(10,161,214,.14) 0%, transparent 68%);
  pointer-events: none;
}

.suite-slide { display: flex; align-items: center; gap: 2.25rem; }
.suite-slide__img { flex-shrink: 0; width: 190px; }
.suite-slide__img img { width: 100%; border-radius: var(--radius-md); }
.suite-slide__body { flex: 1; }

.suite-label {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ict-blue-light);
  background: rgba(10,161,214,.12); border: 1px solid rgba(10,161,214,.25);
  padding: .22rem .75rem; border-radius: 50px; margin-bottom: 1rem;
}
.suite-slide__body p {
  font-size: .97rem; font-weight: 300;
  color: rgba(255,255,255,.75); line-height: 1.85;
}

.arrow-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 1rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--ease), transform var(--ease), border-color var(--ease);
}
.arrow-btn:hover { background: var(--ict-blue); border-color: var(--ict-blue); transform: scale(1.1); }

/* =============================================
   SEZIONE 3 — D2C (step cards 01-02-03)
   ============================================= */
.step-connector {
  position: relative;
  display: flex; align-items: flex-start;
  gap: 0;
}
/* linea continua tra le palline */
.step-connector::before {
  content: '';
  position: absolute;
  top: 27px; /* centro pallina */
  left: calc(16.666% + 27px);
  right: calc(16.666% + 27px);
  height: 2px;
  background: var(--ict-blue);
  z-index: 0;
}

.step-col {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; position: relative; z-index: 1; padding: 0 .5rem;
}
.step-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ict-blue); color: #fff;
  font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(10,161,214,.38);
  margin-bottom: 1.35rem; flex-shrink: 0;
}
.step-card {
  background: var(--ict-white);
  border: 1px solid var(--ict-gray-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  width: 100%;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: rgba(10,161,214,.35);
}
.step-card i { font-size: 1.6rem; color: var(--ict-blue); display: block; margin-bottom: .65rem; }
.step-card__title {
  font-size: .82rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ict-dark); margin-bottom: .55rem; line-height: 1.3;
}
.step-card__text { font-size: .84rem; color: var(--ict-gray); line-height: 1.65; }

/* conclusione D2C */
.d2c-conclusion {
  background: var(--ict-white);
  border: 1px solid var(--ict-gray-light);
  border-left: 4px solid var(--ict-blue);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-xs);
}
.d2c-conclusion p { font-size: .95rem; font-weight: 300; color: #444; line-height: 1.85; margin: 0; }

/* =============================================
   SEZIONE 4 — BEHAVIOUR (dark carousel 2)
   ============================================= */
.behav-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: background var(--ease), border-color var(--ease);
}
.behav-card:hover { background: rgba(255,255,255,.09); border-color: rgba(10,161,214,.38); }
.behav-card__title {
  font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: .9rem; line-height: 1.15;
}
.behav-card__title span { color: var(--ict-blue); }
.behav-card__text { font-size: .97rem; font-weight: 300; color: rgba(255,255,255,.62); line-height: 1.85; }

/* =============================================
   SEZIONE 5 — DASHBOARD / FUTURO
   ============================================= */
.dash-wrap { position: relative; }
.dash-wrap img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.dash-badge {
  position: absolute; bottom: -14px; right: -14px;
  background: var(--ict-blue); color: #fff;
  border-radius: var(--radius-md); padding: .9rem 1.25rem;
  text-align: center; box-shadow: var(--shadow-md); min-width: 110px;
}
.dash-badge strong {
  display: block; font-size: 1.7rem; font-weight: 900; line-height: 1;
}
.dash-badge span {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; opacity: .85;
}

/* =============================================
   SEZIONE 6 — TECH PAGINATION
   ============================================= */
.tech-pills {
  display: flex; flex-wrap: wrap; gap: .45rem;
  list-style: none; margin: 0; padding: 0; justify-content: center;
}
.tech-pills li a {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ict-dark);
  background: var(--ict-off); border: 1px solid var(--ict-gray-light);
  border-radius: 50px; padding: .45rem 1.1rem;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.tech-pills li a:hover {
  background: var(--ict-blue-light); border-color: var(--ict-blue); color: var(--ict-blue-dark);
}
.tech-pills li.is-active a {
  background: var(--ict-blue); border-color: var(--ict-blue);
  color: #fff; box-shadow: 0 4px 14px rgba(10,161,214,.35);
}

/* =============================================
   HERO CONTENT CARD
   Riprende il pattern .contest-card del progetto
   ============================================= */
.hero-content-card {
  background: rgba(10, 161, 214, .95);
  border: 1px solid rgba(10, 161, 214, .30);
  border-radius: var(--radius-lg);          /* var già in css.css */
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 8px 32px rgba(10, 161, 214, .18),
    0 1px 0 rgba(255, 255, 255, .06) inset;
  transition: border-color var(--transition), box-shadow var(--transition);
}

/* riflesso angolare — stesso trick di .contest-card:hover */
.hero-content-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(10,161,214,.22) 0%, transparent 68%);
  pointer-events: none;
}

/* eyebrow pill — stesso stile di .hero-label */
.hero-content-card__tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fd-red-light);              /* #c2ebf9 */
  background: rgba(10, 161, 214, .15);
  border: 1px solid rgba(10, 161, 214, .35);
  padding: .28rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

/* titolo — stesso pattern di .hero-title */
.hero-content-card__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--fd-white);
  line-height: 1.05;
  margin-bottom: .9rem;
}

/* descrizione — stesso pattern di .hero-desc */
.hero-content-card__desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, .68);
  line-height: 1.75;
  margin: 0;
}

/* strong interni in azzurro chiaro */
.hero-content-card__desc strong {
  color: var(--fd-red-light);   /* #c2ebf9 */
  font-weight: 600;
}

/* =============================================
   TECH SIDE DOCK (fisso destra)
   ============================================= */
#techDock {
  position: fixed;
  right: 1.25rem; top: 80%; transform: translateY(-50%);
  z-index: 900;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(10,161,214,.5);
  border-radius: 999px;
  padding: .7rem .45rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.10), 0 1px 0 rgba(255,255,255,.9) inset;
  display: none;
}
@media (min-width: 1200px) { #techDock { display: block; } }

#techDock ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: .28rem; }
#techDock li + li::before { content: ''; display: block; width: 18px; height: 1px; background: rgba(0,0,0,.09); margin: .08rem auto 0; }

.dock-link {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--ict-gray); font-size: 1rem; text-decoration: none;
  background: transparent; border: 1.5px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.dock-link:hover {
  background: rgba(10,161,214,.09);
  border-color: rgba(10,161,214,.22);
  color: var(--ict-blue); transform: scale(1.14);
}
.dock-link.is-active {
  background: var(--ict-blue); border-color: var(--ict-blue);
  color: #fff; box-shadow: 0 4px 14px rgba(10,161,214,.38);
}
.dock-link.is-active:hover { background: var(--ict-blue-dark); border-color: var(--ict-blue-dark); transform: scale(1.08); }

.dock-tip {
  position: absolute;
  right: calc(100% + .7rem); top: 50%;
  transform: translateY(-50%) translateX(5px);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; color: var(--ict-dark);
  background: rgba(255,255,255,.94); border: 1px solid rgba(0,0,0,.07);
  border-radius: 5px; padding: .28rem .65rem;
  box-shadow: 0 3px 12px rgba(0,0,0,.10);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.dock-link:hover .dock-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

.dock-link.is-active {
  background: var(--ict-blue);
  border-color: var(--ict-blue);
  color: #fff !important;          /* ← aggiungi !important */
  box-shadow: 0 4px 14px rgba(10,161,214,.38);
}

.dock-link.is-active i {
  color: #fff !important;
}

#techDock .dock-link,
#techDock .dock-link:visited,
#techDock .dock-link:hover,
#techDock .dock-link:focus {
  color: var(--ict-gray);
}

#techDock .dock-link.active,
#techDock .dock-link.is-active {
  background: var(--ict-blue);
  border-color: var(--ict-blue);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(10,161,214,0.38);
  transform: scale(1.1);
}

#techDock .dock-link.active i,
#techDock .dock-link.is-active i {
  color: #fff !important;
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* stagger children */
.reveal-g > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .48s ease, transform .48s ease;
}
.reveal-g.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:.04s; }
.reveal-g.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:.14s; }
.reveal-g.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:.24s; }



/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
  .suite-slide { flex-direction: column; gap: 1.4rem; }
  .suite-slide__img { width: 150px; margin: 0 auto; }
  .pg-hero { padding: 85px 0 45px; }
  .step-connector::before { display: none; }
  .step-connector { flex-direction: column; gap: 1.5rem; }
  .step-col { flex-direction: row; text-align: left; align-items: flex-start; padding: 0; }
  .step-num { margin-bottom: 0; margin-right: 1rem; flex-shrink: 0; }
}
@media (max-width: 767.98px) {
  .pg-hero { padding: 75px 0 38px; }
  .dash-badge { bottom: -8px; right: 8px; }
}

/* =============================================
   TECH BOTTOM BAR
   Fixed bottom, si ferma al footer via JS
   ============================================= */
#techBar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;

  /* frosted glass blu scuro */
  background: rgba(13, 27, 42, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid rgba(10, 161, 214, .25);

  transform: translateY(0);
  transition: transform .38s cubic-bezier(.4,0,.2,1),
              opacity  .38s cubic-bezier(.4,0,.2,1);
}

/* stato "agganciato al footer": torna nel flusso */
#techBar.is-docked {
  position: absolute;
  bottom: auto;
  top: 0;               /* viene posizionato via JS con top assoluto */
  transform: none;
}

/* nascosto su mobile (rimane il dock laterale) */
@media (max-width: 767.98px) {
  #techBar { display: none; }
}

.techbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .7rem 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.techbar-inner::-webkit-scrollbar { display: none; }

/* Label "Tecnologie" a sinistra */
.techbar-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(194, 235, 249, .55);
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.1);
  padding-right: 1.4rem;
}
.techbar-label i { font-size: .85rem; color: var(--ict-blue, #0aa1d6); }

/* Pills */
.techbar-pills {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: nowrap;
}

.techbar-pills li a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50px;
  padding: .38rem .95rem;
  white-space: nowrap;
  transition: background .28s ease, color .28s ease,
              border-color .28s ease, box-shadow .28s ease;
}
.techbar-pills li a i { font-size: .85rem; opacity: .8; }

.techbar-pills li a:hover {
  background: rgba(10, 161, 214, .18);
  border-color: rgba(10, 161, 214, .45);
  color: #c2ebf9;
}

.techbar-pills li.is-active a {
  background: #0aa1d6;
  border-color: #0aa1d6;
  color: #fff;
  box-shadow: 0 3px 14px rgba(10,161,214,.40);
}
.techbar-pills li.is-active a i { opacity: 1; }

/* spazio al fondo della pagina per non coprire contenuti */
body { padding-bottom: 58px; }