/* inCloud S.r.l. - Custom Styles */
/* Modern design with Stripe-like violet/indigo gradients */

/* ===== Web Fonts (self-hosted, app/assets/fonts) =====
   Ganky:            titoloni hero (display)
   Ubuntu:           titoli di sezione (h1-h6)
   Poppins:          corpo testo
   Roboto Condensed: dettagli (eyebrow, chip, badge, label) */
@font-face {
  font-family: 'Ganky';
  src: url("/assets/ganky-regular-f9dcec05.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ubuntu';
  src: url("/assets/ubuntu-regular-ecdc7979.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ubuntu';
  src: url("/assets/ubuntu-medium-87f1b117.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ubuntu';
  src: url("/assets/ubuntu-bold-86ca03d3.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url("/assets/poppins-300-a7bf6011.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url("/assets/poppins-400-7d2657e0.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url("/assets/poppins-400italic-f6d907fb.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url("/assets/poppins-500-00f50e65.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url("/assets/poppins-600-fa8eb883.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url("/assets/poppins-700-375219a0.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url("/assets/robotocondensed-400-2b76c336.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url("/assets/robotocondensed-700-8ba357e4.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
  /* Primary gradient colors - Stripe-like */
  --gradient-start: #667eea;
  --gradient-mid: #764ba2;
  --gradient-end: #f093fb;

  /* Primary colors */
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --primary-light: #a5b4fc;

  /* Accent colors */
  --accent: #764ba2;
  --accent-light: #9f7aea;
  /* Indaco scurito per testo su fondi tinta indaco (contrasto >= 4.5:1) */
  --servizi-accent-text: #5062b7;

  /* Neutral colors */
  --text-dark: #1a202c;
  --text-muted: #718096;
  --text-light: #f7fafc;
  --bg-light: #f8f9ff;
  --bg-dark: #0f0f23;
  --white: #ffffff;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(102, 126, 234, 0.1);
  --shadow-md: 0 8px 30px rgba(102, 126, 234, 0.15);
  --shadow-lg: 0 20px 60px rgba(102, 126, 234, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Font stacks */
  --font-display: 'Ganky', 'Ubuntu', 'Poppins', sans-serif;
  --font-heading: 'Ubuntu', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-detail: 'Roboto Condensed', 'Poppins', -apple-system, sans-serif;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Sections ===== */
section {
  padding: 6rem 0;
  position: relative;
}

/* Ancore sotto la navbar fissa (~123px reali): le sezioni linkate dal menu
   non devono finire nascoste dietro la barra */
section[id],
div[id="prodotti"] {
  scroll-margin-top: 130px;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.section-gradient {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 100%);
  color: var(--text-light);
}

.section-gradient p {
  color: rgba(255, 255, 255, 0.9);
}

.section-light {
  background: var(--bg-light);
}

/* ===== Navbar ===== */
.navbar-incloud {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  padding: 1rem 0;
  transition: var(--transition-normal);
}

.navbar-incloud.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand img {
  height: auto;
  max-height: 80px;
  transition: var(--transition-fast);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a3e 50%, var(--gradient-mid) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(240, 147, 251, 0.15) 0%, transparent 40%);
  animation: pulse-bg 8s infinite alternate;
}

@keyframes pulse-bg {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-align: left;
}

/* Occhiello sopra il titolo */
.hero-kicker {
  font-size: 0.9375rem;
  /* 15px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-light);
  margin-bottom: 1.25rem;
  /* 20px */
}

/* Titolo su due righe: gerarchia con il colore, non col peso.
   Sotto 768px flusso naturale (clamp fluido); da 768px in su la dimensione
   e' fissata perche' ciascuna frase (IT e EN) stia su UNA riga nei ~672-676px
   utili del contenitore da 700px. Misurato: la frase piu' lunga
   (EN "It's the software that should adapt to you.") = 813px a 42px
   -> a 34px = 658px, entra con margine. */
.hero h1.hero-title {
  font-size: clamp(2.5rem, 2rem + 2.5vw, 2.625rem);
  /* 40px mobile a piena larghezza, fluido */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  color: var(--text-light);
  /* Da 768px il testo divide la hero col video: quando una frase non entra
     su una riga, le righe vengono bilanciate invece di lasciare parole orfane */
  text-wrap: balance;
}

/* md/lg: il testo sta in mezza hero (colonna utile ~336px a 768, ~456px a 992) */
@media (min-width: 768px) {
  .hero h1.hero-title {
    font-size: 1.75rem;
    /* 28px: a 992px la frase IT piu' lunga misura 451px e sta su una riga */
  }

  /* EN e' piu' lunga ("It's the software that should adapt to you.") */
  html[lang="en"] .hero h1.hero-title {
    font-size: 1.625rem;
  }
}

/* xl: la colonna torna larga (~636px utili a 1440px) */
@media (min-width: 1200px) {
  .hero h1.hero-title {
    font-size: 2.375rem;
    /* 38px: frase IT piu' lunga = 603px */
  }

  html[lang="en"] .hero h1.hero-title {
    font-size: 2.125rem;
    /* 34px: frase EN piu' lunga = 623px */
  }
}

.hero-title-line1 {
  color: rgba(255, 255, 255, 0.75);
}

.hero-title-line2 {
  color: #ffffff;
}

/* Sottotitolo */
.hero-subtitle {
  font-size: 1.3125rem;
  /* 21px */
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 44ch;
  /* ~55-60 caratteri per riga */
  margin-top: 1.75rem;
  /* 28px */
  margin-bottom: 2.25rem;
  /* 36px */
}

/* Coppia pulsanti */
.hero-actions {
  gap: 1rem;
  /* 16px */
}

.btn-hero {
  font-size: 1.0625rem;
  /* 17px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  /* stessa altezza misurata per pieno e outline (bordi inclusi, border-box) */
}

/* Sotto 576px i due bottoni si impilano: larghezze coerenti */
@media (max-width: 576px) {
  .hero-actions .btn-hero {
    width: 100%;
    max-width: 340px;
  }
}

/* ZH: la prima frase del titolo va a capo da sola anche sotto 768px,
   dove il <br> responsive e' nascosto (il CJK non ha spazi su cui spezzare) */
@media (max-width: 767.98px) {
  html[lang="zh"] .hero-title-line1 {
    display: block;
  }
}

/* Fascia statistiche: numero accento, etichetta sotto */
.hero-stats {
  margin-top: 3.25rem;
  gap: 2.5rem;
  text-align: left;
}

.hero-stats .hero-stat-number {
  display: flex;
  align-items: baseline;
  line-height: 1.1;
}

.hero-stats .counter-value,
.hero-stats .hero-stat-suffix {
  font-size: 2.25rem;
  font-weight: 700;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--primary-light);
  color: var(--primary-light);
}

.hero-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.375rem;
}

.hero-logo {
  max-width: 280px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.4));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* ===== Buttons ===== */
.btn-gradient {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 100%);
  border: none;
  color: var(--text-light);
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-normal);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
  color: var(--text-light);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--text-light);
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-normal);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-light);
  color: var(--text-light);
  transform: translateY(-3px);
}

/* ===== Cards ===== */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition-normal);
}

.card-glass:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-service {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  transition: var(--transition-normal);
  border: 0;
  box-shadow: var(--shadow-sm);
}

.card-service:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-service .icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--text-light);
}

/* ===== Sezione Servizi ===== */
#servizi {
  /* Le card bianche staccano per differenza di fondo, non per bordo */
  background: var(--bg-light);
  /* --primary scurito per solo testo su fondi tinta indaco:
     5.30:1 su #F8F9FF, 5.11:1 sulla pillola CTA (bianco + 8% indaco) */
  --servizi-accent-text: #5062b7;
}

/* Occhiello di sezione: come .hero-kicker, ma su fondo chiaro */
.section-eyebrow {
  display: block;
  font-size: 0.8125rem;
  /* 13px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--servizi-accent-text, #5062b7);
  margin-bottom: 0.75rem;
}

/* CTA di card: pillola tinta, non piena.
   min-height 44px (target touch) con testo centrato verticalmente. */
.btn-service-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  align-self: flex-start;
  margin-top: auto;
  /* spinta in basso: le CTA si allineano tra card affiancate */
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  /* 15px */
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  color: var(--servizi-accent-text, #5062b7);
  background: rgba(102, 126, 234, 0.08);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1px solid rgba(102, 126, 234, 0.22);
  border-color: color-mix(in srgb, var(--primary) 22%, transparent);
  transition: var(--transition-fast);
}

.btn-service-cta:hover,
.btn-service-cta:focus-visible {
  color: var(--servizi-accent-text, #5062b7);
  background: rgba(102, 126, 234, 0.14);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  border-color: rgba(102, 126, 234, 0.45);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
}

.card-service .feature-list {
  margin-bottom: 1.5rem;
}

/* ===== Project Cards ===== */
/* Come le card servizi (bianche, senza bordo, filetto superiore 4px),
   ma il filetto prende il colore dominante del logo: --product-accent,
   impostata inline su ogni card nella view. */
.card-project {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--product-accent, var(--primary));
  z-index: 1;
}

.card-project:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* Fascia superiore chiara: logo a piena saturazione, niente banda indaco */
.card-project .project-header {
  background: var(--bg-light);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.card-project .project-logo {
  max-height: 96px;
  max-width: min(100%, 220px);
  width: auto;
  object-fit: contain;
}

.card-project .project-title {
  font-size: 1.35rem;
  color: var(--text-dark);
  text-align: left;
}

.card-project .project-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-project .project-body p {
  flex-grow: 1;
}

/* CTA prodotto: pillola tinta come .btn-service-cta, ma nel colore del prodotto.
   soft/border/text sono precalcolati (8% / 22% su bianco, testo scurito a >= 4.5:1) */
.btn-product-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  color: var(--product-accent-text, var(--servizi-accent-text, #5062b7));
  background: var(--product-accent-soft, rgba(102, 126, 234, 0.08));
  border: 1px solid var(--product-accent-border, rgba(102, 126, 234, 0.22));
  transition: var(--transition-fast);
}

.btn-product-cta:hover,
.btn-product-cta:focus-visible {
  color: var(--product-accent-text, var(--servizi-accent-text, #5062b7));
  background: var(--product-accent-soft, rgba(102, 126, 234, 0.08));
  background: color-mix(in srgb, var(--product-accent) 14%, var(--white));
  border-color: var(--product-accent-border, rgba(102, 126, 234, 0.22));
  border-color: color-mix(in srgb, var(--product-accent) 45%, var(--white));
}

/* ===== Project Logo Marquee ===== */
.logo-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.logo-marquee {
  overflow: hidden;
  padding: 0.5rem 0;
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: project-logo-scroll 28s linear infinite;
  will-change: transform;
}

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

.logo-marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
}

.logo-marquee-item {
  flex: 0 0 clamp(200px, 23vw, 320px);
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
}

.logo-marquee-item img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
  opacity: 0.78;
  filter: grayscale(0.2);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.logo-marquee-item:hover img {
  opacity: 1;
  filter: none;
  transform: scale(1.04);
}

@keyframes project-logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 576px) {
  .logo-marquee-group {
    gap: 1rem;
    padding-right: 1rem;
  }

  .logo-marquee-item {
    flex-basis: 190px;
    height: 76px;
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-wrapper {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .logo-marquee-track {
    width: 100%;
    animation: none;
  }

  .logo-marquee-group:first-child {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }

  .logo-marquee-group[aria-hidden="true"] {
    display: none;
  }
}

/* ===== Feature List ===== */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ===== Il Nostro Mestiere (#mestiere) ===== */
/* Insegna centrata: occhiello tipo .hero-kicker + titolone bianco pieno */
.craft-header {
  margin-bottom: 3rem;
}

.craft-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-light);
  margin-bottom: 0.875rem;
}

.craft-title {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0;
}

/* Griglia delle quattro card: altezze sempre uguali (stretch di griglia) */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.craft-item {
  display: flex;
  flex-direction: column;
}

/* Card intera cliccabile (button). Niente sollevamento ne' ombra:
   il lift e' riservato alle card servizi/prodotti. */
.craft-card {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.4rem 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.craft-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.18);
}

.craft-card:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.craft-card.is-active {
  border-color: var(--primary-light);
}

/* Numero in filigrana */
.craft-card-num {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.14);
  transition: color 0.3s ease;
  pointer-events: none;
}

.craft-card.is-active .craft-card-num {
  color: rgba(165, 180, 252, 0.26);
}

/* Icona: quadrato 56px, tratto lilla che passa al bianco sulla card attiva */
.craft-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background: rgba(165, 180, 252, 0.07);
  border: 1px solid rgba(165, 180, 252, 0.18);
  color: var(--primary-light);
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.craft-card.is-active .craft-card-icon {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(165, 180, 252, 0.14);
}

.craft-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.craft-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
}

.craft-card-summary {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
}

/* Freccia in basso a destra: ruota verso l'alto sulla card attiva */
.craft-card-arrow {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  display: flex;
  color: rgba(255, 255, 255, 0.35);
  transition: transform 0.3s ease, color 0.3s ease;
}

.craft-card.is-active .craft-card-arrow {
  transform: rotate(180deg);
  color: var(--primary-light);
}

/* Testo esteso: sempre presente nel DOM (sorgente SEO). Chiuso = max-height 0.
   Su desktop resta chiuso qui: il pannello condiviso ne mostra un clone.
   Su mobile e' il corpo dell'accordion sotto la card. */
.craft-detail {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.craft-detail-inner {
  padding: 0.9rem 0.4rem 1.4rem;
}

.craft-detail-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.craft-detail-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 60ch; /* colonna stretta: <= 70 caratteri per riga */
  margin-bottom: 0;
}

/* ===== Pannello condiviso sotto la griglia ===== */
.craft-panel {
  position: relative;
  margin-top: 1.5rem;
  padding: 3rem 3.5rem; /* 48-56px: il doppio delle card */
  background: rgba(255, 255, 255, 0.04); /* un gradino piu' chiaro delle card */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  /* nessuna ombra: deve sembrare che si apra da sotto */
}

/* Punta triangolare: si sposta sotto la card attiva (translateX via JS).
   fill #19192c nel markup = bianco 4% composto su --bg-dark #0f0f23:
   tenere allineati se cambia il fondo del pannello. */
.craft-panel-pointer {
  position: absolute;
  top: -14px;
  left: 0;
  width: 30px;
  height: 15px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.craft-panel.has-detail .craft-panel-pointer {
  opacity: 1;
}

/* Zona testo card dentro il pannello */
.craft-panel-detail {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.craft-panel-content {
  padding-bottom: 2.25rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.craft-panel-content.is-entering {
  opacity: 0;
  transform: translateY(8px);
}

.craft-panel-content.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition-duration: 0.15s;
}

.craft-panel-detail .craft-detail-inner {
  padding: 0;
}

/* ===== Manifesto: stato default del pannello ===== */
.craft-manifesto-toggle {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  color: inherit;
  cursor: default;
}

.craft-manifesto-toggle:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 4px;
  border-radius: 4px;
}

.craft-manifesto-lead {
  display: block;
  font-size: 1.3125rem; /* ~21px, bianco pieno: gerarchia col contrasto */
  font-weight: 500;
  line-height: 1.55;
  color: #ffffff;
  max-width: 60ch;
}

.craft-manifesto-hint[hidden] {
  /* esplicito: non affidarsi al reboot di Bootstrap per l'attributo hidden */
  display: none;
}

.craft-manifesto-hint {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-light);
}

.craft-manifesto-clip {
  overflow: hidden;
  margin-top: 0.75rem;
  transition: max-height 0.4s ease;
}

.craft-manifesto.is-collapsed .craft-manifesto-clip {
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
  cursor: pointer;
}

.craft-manifesto.is-collapsed .craft-manifesto-toggle {
  cursor: pointer;
}

.craft-manifesto-body p {
  font-size: 1.0625rem; /* 17px, bianco al 78% */
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 60ch;
  margin: 0 0 1.1rem;
}

/* Firma: staccata da spazio ampio, riga discreta */
.craft-manifesto-body .craft-manifesto-signature {
  margin: 2.75rem 0 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 991.98px) {
  .craft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .craft-panel {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 767.98px) {
  .craft-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Composizione orizzontale: icona a sinistra del testo */
  .craft-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 2.6rem 1.1rem 1.1rem;
  }

  .craft-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
  }

  .craft-card-icon svg {
    width: 26px;
    height: 26px;
  }

  .craft-card-num {
    font-size: 1.75rem;
    top: 0.7rem;
    right: 0.85rem;
  }

  .craft-card-arrow {
    right: 0.85rem;
    bottom: 0.85rem;
  }

  /* Nel dettaglio-accordion il titolo e' gia' sulla card */
  .craft-item .craft-detail-title {
    display: none;
  }

  .craft-detail-inner {
    padding: 0.6rem 0.4rem 1.2rem;
  }

  .craft-panel {
    padding: 1.75rem 1.4rem;
    margin-top: 1.25rem;
  }

  .craft-panel-pointer {
    display: none;
  }

  .craft-manifesto-toggle {
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {

  .craft-card,
  .craft-card-icon,
  .craft-card-arrow,
  .craft-card-num,
  .craft-panel-pointer,
  .craft-panel-detail,
  .craft-panel-content,
  .craft-detail,
  .craft-manifesto-clip {
    transition: none !important;
  }
}

/* ===== Tech Stack ===== */
.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  transition: var(--transition-normal);
}

.tech-icon:hover {
  transform: translateY(-5px);
}

.tech-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-normal);
}

.tech-icon:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Treat <i> like <img> for tech icons */
.tech-icon i {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-normal);
  display: block;
  margin-bottom: 0.75rem;
}

.tech-icon:hover i {
  filter: grayscale(0%);
  opacity: 1;
}

.tech-icon span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Contact Form ===== */
.contact-form {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.contact-form h4 {
  color: var(--text-dark);
  /* Fix invisibility on white background */
}

.form-control {
  border: 2px solid rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  transition: var(--transition-fast);
}


.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer h5 {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
}

.footer-logo {
  max-height: 60px;
  filter: brightness(0) invert(1);
}

/* ===== Flash Messages ===== */
.alert-flash {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  section {
    padding: 4rem 0;
  }

  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

  .hero-logo {
    max-width: 200px;
  }
}

@media (max-width: 767.98px) {

  .card-service,
  .contact-form {
    padding: 1.5rem;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gradient-start), var(--gradient-mid));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== NEW ANIMATION STYLES ===== */

/* Scroll Reveal Animation */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Typing Effect */
.typing-text {
  display: inline-block;
  min-width: 200px;
}

.typing-text::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--primary-light);
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Cursor Glow Effect */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .cursor-glow {
    display: none;
  }
}

/* Hero Image Animation */
.hero-illustration {
  max-width: 100%;
  animation: floatRotate 8s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(102, 126, 234, 0.3));
}

@keyframes floatRotate {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-15px) rotate(2deg);
  }

  50% {
    transform: translateY(-25px) rotate(0deg);
  }

  75% {
    transform: translateY(-15px) rotate(-2deg);
  }
}

/* Glow Pulse Effect */
.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
  }

  50% {
    box-shadow: 0 0 60px rgba(102, 126, 234, 0.6), 0 0 100px rgba(118, 75, 162, 0.3);
  }
}

/* Shimmer Effect on Buttons */
.btn-gradient {
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-gradient:hover::before {
  left: 100%;
}

/* Card Service Enhanced Hover */
.card-service {
  position: relative;
  overflow: hidden;
}

/* Filetto superiore indaco: elemento comune con le card prodotti
   (che avranno filetti di colori diversi) */
.card-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

/* Icon Rotation on Hover */
.card-service:hover .icon {
  transform: rotateY(180deg);
}

.card-service .icon {
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

/* Feature List Animation */
.feature-list li {
  transition: all 0.3s ease;
}

.feature-list li:hover {
  padding-left: 2.5rem;
  color: var(--primary);
}

/* Tech Icon Bounce */
.tech-icon:hover img,
.tech-icon:hover i {
  animation: bounce 0.5s ease;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-10px);
  }

  50% {
    transform: translateY(-5px);
  }

  75% {
    transform: translateY(-8px);
  }
}

/* Stats Counter Style */
.stat-item {
  text-align: center;
  padding: 2rem;
}

/* Section Divider */
.section-divider {
  height: 100px;
  background: linear-gradient(to bottom right, transparent 49%, var(--bg-light) 50%);
}

/* Background Pattern */
.bg-pattern {
  background-image:
    radial-gradient(circle at 25px 25px, rgba(102, 126, 234, 0.05) 2%, transparent 0%),
    radial-gradient(circle at 75px 75px, rgba(118, 75, 162, 0.05) 2%, transparent 0%);
  background-size: 100px 100px;
}

/* Team Image Style */
.team-illustration {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s ease;
}

.team-illustration:hover {
  transform: scale(1.02);
}

/* Security/AI Images */
.feature-image {
  max-width: 300px;
  margin: 0 auto;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.feature-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 20px 40px rgba(102, 126, 234, 0.4));
}

/* Loading Animation */
body:not(.loaded) {
  overflow: hidden;
}

body:not(.loaded)::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  z-index: 99999;
}

body.loaded::before {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Navbar Logo Glow */
.navbar-logo {
  transition: filter 0.3s ease;
}

.navbar-logo:hover {
  filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

/* ===== New Section Styles ===== */

/* Team Cards */
.card-team {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(102, 126, 234, 0.1);
  color: var(--text-dark);
  /* Ensure text is dark inside cards */
}

.card-team h4 {
  color: var(--text-dark) !important;
}

.card-team .text-primary {
  color: var(--primary) !important;
}

.card-team .text-muted {
  color: var(--text-muted) !important;
}

.card-team:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-team .team-img {
  transition: var(--transition-normal);
}

.card-team:hover .team-img {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

/* Le icone social si allineano al fondo card anche con bio di lunghezze diverse */
.card-team .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-team .social-links {
  margin-top: auto;
}

/* Ensure images in About are responsive */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* WhatsApp Float Container */
.whatsapp-container {
  position: fixed;
  bottom: 90px;
  right: 40px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp-float {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  margin-top: 10px;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  color: #FFF;
  transform: scale(1.1);
}

.whatsapp-bubble {
  background-color: white;
  color: #333;
  padding: 10px 15px;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
  /* Animation to show bubble, poi auto-dissolvenza dopo ~8s:
     la seconda animazione (delay 8s + forwards) vince sulla prima */
  opacity: 1;
  visibility: visible;
  animation: fadeInBubble 1s ease-out 1s forwards,
    fadeOutBubble 0.8s ease 8s forwards;
}

.whatsapp-bubble::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid white;
}

@keyframes fadeInBubble {
  from {
    opacity: 0;
    transform: translate(-10px, -50%);
  }

  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@keyframes fadeOutBubble {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 47px;
  /* Aligned center with WhatsApp (40px + 60/2 - 45/2 ~ 47.5px) */
  width: 45px;
  height: 45px;
  background-color: #6366f1;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: #4f46e5;
  color: white;
  transform: translateY(-3px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .whatsapp-container {
    bottom: 70px;
    right: 20px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 25px;
  }

  .whatsapp-bubble {
    font-size: 12px;
    padding: 8px 12px;
    right: 60px;
  }

  .back-to-top {
    bottom: 20px;
    right: 25px;
    /* Aligned with WhatsApp mobile (20 + 25 = 45 center) */
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Widget flottanti su schermi piccoli: non devono coprire CTA e submit */
@media (max-width: 576px) {
  /* La bolla WhatsApp sparisce del tutto: la CTA grande e' gia' nei contatti */
  .whatsapp-bubble {
    display: none;
  }

  /* Badge privacy ridotto (~40px): override dell'inline style del partial */
  #privacyConsentIcon #openPrivacyModal {
    width: 40px !important;
    height: 40px !important;
  }

  #privacyConsentIcon #openPrivacyModal .bi {
    font-size: 1.25rem !important;
  }
}

/* Mobile Stats Override */
@media (max-width: 576px) {
  .hero-stats {
    gap: 1.5rem 2rem;
    margin-top: 2.5rem;
  }

  .hero-stats .counter-value,
  .hero-stats .hero-stat-suffix {
    font-size: 1.875rem;
  }

  .counter-wrapper[data-stat="users"] .counter-value {
    font-size: 0 !important;
  }

  .counter-wrapper[data-stat="users"] .hero-stat-suffix {
    display: none;
  }

  .counter-wrapper[data-stat="users"] .counter-value::after {
    content: '23K+';
    font-size: 1.875rem;
    font-weight: 700;
    display: block;
    -webkit-text-fill-color: var(--primary-light);
    color: var(--primary-light);
  }
}

/* Flag Icons */
.flag-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== Chi Siamo — Manifesto ===== */
#chi-siamo {
  /* Closed 3-color palette for this section */
  --about-text: #1a1d23;
  --about-muted: #5a6270;
  /* --primary darkened ~17% for text-only use on the tinted callout bg
     (4.86:1 on tint, 5.30:1 on section bg); full --primary stays for
     border and icons */
  --about-accent-text: #5062b7;
}

.about-manifesto {
  max-width: 660px;
  margin: 0 auto;
  text-align: left;
  hyphens: none;
  color: var(--about-text);
}

.about-heading {
  color: var(--about-text);
  margin-bottom: 2rem;
}

.about-lead {
  font-size: 1.21875rem; /* 19.5px */
  font-weight: 600;
  line-height: 1.3;
  color: var(--about-text);
  margin-bottom: 1.25rem;
}

.about-lead strong {
  font-weight: 700;
}

.about-credo {
  font-size: 1rem;
  color: var(--about-text);
  margin: 1.25rem 0;
}

.about-callout {
  border-left: 3px solid var(--primary);
  background: rgba(102, 126, 234, 0.08);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0 1.75rem;
}

.about-callout-lead {
  font-size: 1rem;
  font-weight: 600;
  color: var(--about-text);
  margin-bottom: 0.75rem;
}

.about-callout-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-callout-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.96875rem; /* 15.5px */
  color: var(--about-text);
}

.about-callout-list li + li {
  margin-top: 0.5rem;
}

.about-callout-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.125em;
  color: var(--primary);
}

.about-callout-list strong {
  font-weight: 600;
  color: var(--about-accent-text);
}

.about-quote {
  border: 0;
  padding: 0;
  margin: 1.75rem 0;
  text-align: center;
}

.about-quote-line1 {
  font-size: 1.3125rem; /* 21px */
  font-style: italic;
  color: var(--about-accent-text);
  margin-bottom: 0.375rem;
}

.about-quote-line2 {
  font-size: 0.9375rem; /* 15px */
  color: var(--about-muted);
  margin-bottom: 0;
}

.about-closing {
  position: relative;
  font-size: 1.03125rem; /* 16.5px */
  font-style: italic;
  font-weight: 300;
  color: var(--about-text);
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
}

.about-closing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 1px;
  background: rgba(102, 126, 234, 0.4);
}

@media (max-width: 767.98px) {
  .about-callout {
    padding: 1rem 0.875rem;
  }

  .about-lead {
    font-size: 1.15rem;
  }

  .about-quote-line1 {
    font-size: 1.1875rem;
  }
}

/* ===== Contatti: WhatsApp CTA (canale primario) ===== */
.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  max-width: 430px;
  min-height: 72px;
  padding: 0.85rem 1.4rem 0.85rem 0.85rem;
  background: linear-gradient(135deg, #0e8074 0%, #075e54 100%);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 60px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(4, 45, 40, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.whatsapp-cta:hover,
.whatsapp-cta:focus-visible {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(4, 45, 40, 0.5);
  border-color: rgba(255, 255, 255, 0.65);
}

.whatsapp-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #04332d;
  font-size: 1.7rem;
}

.whatsapp-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.whatsapp-cta-text strong {
  font-size: 1.15rem;
}

.whatsapp-cta-text small {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.95);
}

.whatsapp-cta-arrow {
  margin-left: auto;
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.whatsapp-cta:hover .whatsapp-cta-arrow {
  transform: translateX(4px);
}

/* Contatti: canali secondari (email / PEC) */
.contact-alt-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.contact-alt-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.contact-alt-item:hover,
.contact-alt-item:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.contact-alt-item i {
  font-size: 1.05rem;
  opacity: 0.9;
}

.contact-alt-item span {
  font-weight: 600;
  color: #fff;
}

/* Contatti: mappa */
.contact-map {
  height: 250px;
}

@media (max-width: 767.98px) {
  .whatsapp-cta {
    max-width: 100%;
  }

  .contact-map {
    height: 180px;
  }
}

/* ===================================================================
   Jobs / Lavora con noi
   =================================================================== */

/* --- Hero index (/jobs) --- */
.jobs-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a3e 50%, var(--gradient-mid) 100%);
  color: var(--text-light);
  padding: 11rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.jobs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(240, 147, 251, 0.12), transparent),
    radial-gradient(ellipse 50% 60% at 15% 85%, rgba(102, 126, 234, 0.18), transparent);
  pointer-events: none;
}

.jobs-hero-content {
  position: relative;
  max-width: 760px;
}

.jobs-hero-title {
  font-size: clamp(2.1875rem, 1.7rem + 2.2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  color: var(--text-light);
}

.jobs-hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 62ch;
  margin-top: 1.75rem;
  margin-bottom: 2.25rem;
}

/* --- Card posizione (index) --- */
.job-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(102, 126, 234, 0.12);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  opacity: 0;
  transition: var(--transition-normal);
}

.job-card:hover,
.job-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 126, 234, 0.25);
  color: inherit;
}

.job-card:hover::before,
.job-card:focus-visible::before {
  opacity: 1;
}

.job-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.job-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  color: var(--text-light);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.job-card-code {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--servizi-accent-text);
  background: rgba(102, 126, 234, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
}

.job-card-title {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.job-card-excerpt {
  color: #5a6b7f;
  flex-grow: 1;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.job-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--bg-light);
  border: 1px solid rgba(102, 126, 234, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

.job-chip i {
  color: var(--primary);
  font-size: 0.85rem;
}

.job-chip-dark {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.job-chip-dark i {
  color: var(--primary-light);
}

.job-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.job-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(118, 75, 162, 0.08);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

.job-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.job-card-cta i {
  transition: var(--transition-fast);
}

.job-card:hover .job-card-cta i,
.job-card:focus-visible .job-card-cta i {
  transform: translateX(5px);
}

/* --- Perche' inCloud (index, sezione scura) --- */
.job-why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  transition: var(--transition-normal);
}

.job-why-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.job-why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  color: var(--text-light);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.job-why-title {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.job-why-text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* --- Nota SEO discreta --- */
.jobs-seo-note {
  background: var(--white);
  padding: 2.5rem 0;
}

/* --- Hero offerta (/jobs/:slug) --- */
.job-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a3e 55%, var(--gradient-mid) 100%);
  color: var(--text-light);
  padding: 10.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.job-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 85% 20%, rgba(240, 147, 251, 0.1), transparent);
  pointer-events: none;
}

.job-hero .container {
  position: relative;
}

.job-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  padding: 0.5rem 0;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.job-back-link:hover,
.job-back-link:focus-visible {
  color: #ffffff;
}

.job-hero-code {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.job-hero-title {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 20ch;
}

.job-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.job-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.job-hero-posted {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Corpo offerta --- */
.job-detail {
  padding: 5rem 0;
}

.job-section {
  /* annulla il padding globale di `section`: qui sono sotto-sezioni dell'articolo */
  padding: 0;
  margin-bottom: 3rem;
}

.job-section:last-child {
  margin-bottom: 0;
}

.job-section-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.job-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid));
}

.job-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: rgba(102, 126, 234, 0.07);
  border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.job-callout i {
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1.6;
  flex-shrink: 0;
}

.job-callout p {
  color: var(--text-dark);
  font-weight: 500;
}

.job-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.job-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  color: #5a6b7f;
}

.job-list li i {
  color: var(--primary);
  font-size: 0.95rem;
  line-height: 1.7;
  flex-shrink: 0;
}

.job-closing {
  font-weight: 600;
  color: var(--text-dark);
}

/* --- Sidebar offerta --- */
.job-sidebar {
  position: sticky;
  top: 145px;
}

.job-summary-card {
  background: var(--white);
  border: 1px solid rgba(102, 126, 234, 0.12);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.job-summary-title {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.job-summary-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.job-summary-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.job-summary-list li:last-child {
  border-bottom: none;
}

.job-summary-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6b7f;
  margin-bottom: 0.2rem;
}

.job-summary-label i {
  color: var(--primary);
}

.job-summary-value {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
}

.job-email-card {
  background: var(--white);
  border: 1px dashed rgba(102, 126, 234, 0.35);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  margin-top: 1.5rem;
}

.job-email-card p {
  font-size: 0.9rem;
}

.job-email-title {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.job-email-title i {
  color: var(--primary);
}

.job-email-subject {
  font-size: 0.875rem;
  color: var(--servizi-accent-text);
  background: rgba(102, 126, 234, 0.08);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  word-break: break-word;
}

/* --- Modale candidatura --- */
.job-modal {
  border: none;
  border-radius: 20px;
  overflow: hidden;
}

.job-modal-header {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 100%);
  color: var(--text-light);
  border-bottom: none;
  padding: 1.5rem 1.75rem;
  align-items: flex-start;
}

.job-modal-header .modal-title {
  font-weight: 700;
}

.job-modal-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.25rem;
}

.job-resident-fieldset {
  border: 1px solid rgba(102, 126, 234, 0.18);
  border-radius: 14px;
  padding: 1rem 1.25rem 0.85rem;
}

.job-resident-legend {
  float: none;
  width: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0 0.5rem;
  margin-bottom: 0.35rem;
}

.job-cv-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.job-cv-label i {
  color: var(--primary);
}

.job-privacy-note {
  line-height: 1.5;
}

/* Honeypot: fuori dallo schermo, invisibile ma presente nel DOM */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .job-sidebar {
    position: static;
    margin-top: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .jobs-hero {
    padding: 9.5rem 0 4rem;
  }

  .job-hero {
    padding: 9.5rem 0 3rem;
  }

  .job-hero-title {
    max-width: none;
  }

  .job-card {
    padding: 1.5rem;
  }

  .job-detail {
    padding: 3.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .job-hero-actions .btn {
    width: 100%;
  }

  .job-card-top {
    flex-wrap: wrap;
  }

  .job-modal-header {
    padding: 1.25rem 1.5rem;
  }

  /* Su schermi piccoli la modale parte dall'alto: con la tastiera aperta
     il centraggio verticale nasconderebbe i campi bassi */
  #applyModal .modal-dialog-centered {
    align-items: flex-start;
  }
}

/* Tastiera virtuale mobile: limita l'altezza sul viewport dinamico */
#applyModal .modal-dialog-scrollable .modal-content {
  max-height: calc(100dvh - 3.5rem);
}

/* Target touch: radio residenza e chiusura modale */
.job-resident-fieldset .form-check-input {
  width: 1.35em;
  height: 1.35em;
  margin-top: 0.1em;
}

.job-resident-fieldset .form-check-label {
  padding: 0.4rem 0 0.4rem 0.3rem;
}

.job-modal-header .btn-close {
  padding: 0.75rem;
}

/* Card "Perche' inCloud" strette tra 992 e 1199px: meno padding */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .job-why-card {
    padding: 1.5rem 1.25rem;
  }
}

/* ===================================================================
   Applicazione font di brand
   Ganky = titoloni hero (peso unico 400: niente bold sintetico)
   Ubuntu = titoli (gia' su h1-h6 via --font-heading)
   Poppins = corpo (via --font-body sul body)
   Roboto Condensed = dettagli, etichette, chip
   =================================================================== */
.hero h1.hero-title,
.jobs-hero-title,
.job-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.015em;
}

/* Il cinese non ha glifi in Ganky/Ubuntu: lascia lavorare il fallback di sistema */
html[lang="zh"] .hero h1.hero-title,
html[lang="zh"] .jobs-hero-title,
html[lang="zh"] .job-hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0;
}

.hero-kicker,
.section-eyebrow,
.craft-eyebrow,
.badge,
.hero-stat-label,
.job-card-code,
.job-chip,
.job-tag,
.job-summary-label,
.job-hero-code,
.job-hero-posted {
  font-family: var(--font-detail);
}

/* ===================================================================
   Hero: video di presentazione a lato del testo
   (md/lg: colonna destra; mobile: sotto il testo)
   =================================================================== */
.hero-media {
  position: relative;
}

.hero-video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 60px rgba(102, 126, 234, 0.25);
}

.hero-video-poster-btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.hero-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.35) 0%, rgba(118, 75, 162, 0.2) 100%);
  transition: var(--transition-normal);
}

.hero-video-poster-btn:hover .hero-video-overlay,
.hero-video-poster-btn:focus-visible .hero-video-overlay {
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.2) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.hero-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.55);
  transition: var(--transition-fast);
}

.hero-video-poster-btn:hover .hero-play-btn,
.hero-video-poster-btn:focus-visible .hero-play-btn {
  transform: translate(-50%, -50%) scale(1.09);
}

.hero-video-badge {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-detail);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(15, 15, 35, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* Col video a fianco la colonna testo e' ~metta' container: il titolo
   puo' andare su piu' righe, si riduce leggermente il corpo */
@media (min-width: 768px) {
  .hero-content .hero-subtitle {
    max-width: 40ch;
  }
}

@media (max-width: 767.98px) {
  /* Testo + video superano il viewport: niente centratura, si scorre.
     Il padding-top tiene il kicker sotto la navbar fissa (~123px) */
  section.hero {
    padding-top: 8.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-media {
    margin-bottom: 0.5rem;
  }
}

/* ===== reCAPTCHA v3 =====
   Il badge fisso di Google si sovrapponeva al pulsante delle preferenze
   cookie: lo nascondiamo e riportiamo l'attribuzione richiesta da Google
   sotto ai form (vedi chiave i18n recaptcha_notice_html). */
.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-notice {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.recaptcha-notice a {
  color: inherit;
  text-decoration: underline;
}

.contact-form .recaptcha-notice {
  color: rgba(255, 255, 255, 0.6);
}
