:root {
  --primary: #174664;
  --primary-dark: #0f3048;
  --primary-light: #1e5a7e;
  --primary-xlight: #e8f2f8;
  --accent: #2a9fd6;
  --accent-light: #d0edf8;
  --text: #0f1923;
  --text-muted: #4a6170;
  --text-light: #7a9aaa;
  --bg: #ffffff;
  --bg-soft: #f5f9fb;
  --bg-card: #ffffff;
  --border: rgba(23, 70, 100, 0.12);
  --border-strong: rgba(23, 70, 100, 0.25);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(23, 70, 100, 0.08);
  --shadow-md: 0 6px 24px rgba(23, 70, 100, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-xlight);
}

.nav-links a.active {
  background-color: var(--primary-xlight);
  color: var(--primary);
  font-weight: 600;
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 8px !important;
  transition: background 0.15s !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

/* ── PAGE WRAPPER ── */
.page {
  padding-top: 64px;
  min-height: 100vh;
}

/* ── SECTIONS / LAYOUT ── */
.section {
  padding: 5rem 2rem;
}

.section-sm {
  padding: 3rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}

h1.display {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.12;
  color: var(--primary);
}

h2.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--primary);
  line-height: 1.2;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── HERO ── */
.hero {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(42, 159, 214, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(30, 122, 170, 0.45) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #1e7aaa 100%);
  background-size: 200% 200%, 200% 200%, 100% 100%;
  animation: heroGradientShift 6s ease-in-out infinite;
  color: #fff;
  padding: 7rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}

@keyframes heroGradientShift {

  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 0 0;
  }

  50% {
    background-position: 100% 50%, 0% 50%, 0 0;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  animation: heroFloatA 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(92, 224, 168, 0.10) 0%, rgba(92, 224, 168, 0) 70%);
  border-radius: 50%;
  animation: heroFloatB 10s ease-in-out infinite;
}

@keyframes heroFloatA {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-130px, 80px) scale(1.25); }
  66%  { transform: translate(60px, 100px) scale(0.85); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes heroFloatB {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(160px, -90px) scale(1.3); }
  66%  { transform: translate(-80px, -60px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Hero animated grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 50%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0) 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0) 75%);
  animation: heroGridDrift 7s linear infinite;
  pointer-events: none;
}

@keyframes heroGridDrift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 48px 48px, 48px 48px;
  }
}

/* Hero floating orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.75;
  will-change: transform;
}

.hero-orb.o1 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #2a9fd6 0%, transparent 70%);
  top: 15%;
  left: 52%;
  animation: orbDriftA 6s ease-in-out infinite;
}

.hero-orb.o2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #5ce0a8 0%, transparent 70%);
  top: 50%;
  left: 30%;
  animation: orbDriftB 8s ease-in-out infinite;
}

.hero-orb.o3 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, #1e7aaa 0%, transparent 70%);
  top: 5%;
  left: 20%;
  animation: orbDriftC 9s ease-in-out infinite;
}

.hero-orb.o4 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(42, 159, 214, 0.8) 0%, transparent 70%);
  top: 70%;
  left: 68%;
  animation: orbDriftD 7s ease-in-out infinite;
}

.hero-orb.o5 {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(92, 224, 168, 0.7) 0%, transparent 70%);
  top: 30%;
  left: 78%;
  animation: orbDriftE 5s ease-in-out infinite;
}

@keyframes orbDriftA {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-160px, 80px) scale(1.15); }
  75%  { transform: translate(80px, 120px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbDriftB {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(130px, -90px) scale(1.2); }
  66%  { transform: translate(-100px, -60px) scale(0.85); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbDriftC {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(110px, 140px) scale(1.25); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbDriftD {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(-90px, -110px) scale(1.3); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbDriftE {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-120px, 70px) scale(1.4); }
  100% { transform: translate(0, 0) scale(1); }
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.2rem;
  max-width: 700px;
}

.hero-sub {
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-outline-dark {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1.5px solid #174664;
  color: #174664;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
  background: transparent;
}


.btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
  background: transparent;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ── BADGE STRIP ── */
.badge-strip {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ce0a8;
}

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow 0.25s, transform 0.25s, border-bottom-color 0.25s;
}

.card:hover {
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 8px 32px rgba(23, 70, 100, 0.14), 0 2px 8px rgba(42, 159, 214, 0.10);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-xlight) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 22px;
  color: var(--primary);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.4s, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card-icon::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(42, 159, 214, 0.55) 70deg,
      transparent 140deg,
      transparent 360deg);
  animation: iconHalo 6s linear infinite;
  opacity: 0;
  transition: opacity 0.45s;
  z-index: -2;
}

.card-icon::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-xlight) 0%, var(--accent-light) 100%);
  z-index: -1;
}

.card:hover .card-icon::before {
  opacity: 0.85;
}

.card:hover .card-icon {
  box-shadow: 0 8px 24px rgba(42, 159, 214, 0.28);
  transform: translateY(-2px);
}

@keyframes iconHalo {
  to {
    transform: rotate(360deg);
  }
}

/* ── GRIDS ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* ── PILLAR SECTION ── */
.pillar {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.pillar:last-child {
  border-bottom: none;
}

.pillar-num {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: var(--border-strong);
  min-width: 60px;
  line-height: 1;
}

/* ── FEATURE LIST ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--primary-xlight);
  border: 1px solid rgba(23, 70, 100, 0.15);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

/* ── TAG CHIP ── */
.chip {
  display: inline-block;
  background: var(--primary-xlight);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid rgba(23, 70, 100, 0.15);
}

/* ── PRODUCT CARD ── */
.product-card {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(42, 159, 214, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(30, 122, 170, 0.5) 0%, transparent 60%),
    var(--primary);
  background-size: 200% 200%, 200% 200%, 100% 100%;
  animation: productGradient 14s ease-in-out infinite;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

@keyframes productGradient {

  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 0 0;
  }

  50% {
    background-position: 100% 50%, 0% 50%, 0 0;
  }
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 30% 30%, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0) 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0) 70%);
  animation: productGridDrift 26s linear infinite;
  pointer-events: none;
}

@keyframes productGridDrift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 36px 36px, -36px 36px;
  }
}

.product-card::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(92, 224, 168, 0.18) 0%, rgba(92, 224, 168, 0) 70%);
  border-radius: 50%;
  animation: productOrb 18s ease-in-out infinite;
}

@keyframes productOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-50px, 40px) scale(1.15);
  }
}

.product-card h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.product-card p {
  color: rgba(255, 255, 255, 0.8);
}

/* ── PROD DARK SECTION ── */
.prod-dark {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(42, 159, 214, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 5% 90%, rgba(23, 70, 100, 0.6) 0%, transparent 55%),
    var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.45);
  --primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-light: rgba(255, 255, 255, 0.42);
  --text: rgba(255, 255, 255, 0.88);
}

/* ── STAT BOX ── */
.stat-box {
  text-align: center;
  padding: 1.5rem;
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 0.4rem;
}

/* ── PAGE HEADER ── */
.page-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem 3rem;
}

.rd-tab-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
}

.rd-tab-btn.active {
  background: #fff;
  color: var(--primary);
}

.rd-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.rd-panel {
  animation: rdFadeIn 0.3s ease;
  align-items: stretch !important;
}

.rd-panel > div:last-child {
  height: 100%;
}

.rd-panel > div:last-child > ul.product-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rd-panel > div:last-child > ul.product-card > li.rs-feat-item {
  flex: 1;
  align-items: center;
}

@keyframes rdFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

.adv-step:hover {
  background: var(--primary-xlight);
}

.prod-dark .adv-step:hover {
  background: rgba(255, 255, 255, 0.07);
}

.adv-step:hover .adv-bar {
  transform: scaleX(1);
}

.rs-feat-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--bg-soft);
  line-height: 1.55;
  transition: background 0.15s;
}

.rs-feat-item:hover {
  background: var(--primary-light);
}

.rs-feat-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
}

/* Sfondo scuro sull'intera section */
.hs-section-dark {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Griglia puntinata di sfondo */
.hs-section-dark .container {
  position: relative;
}

.hs-section-dark .container::before {
  content: '';
  position: absolute;
  inset: -5rem -2rem;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0) 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0) 75%);
  pointer-events: none;
  z-index: 0;
}

.hs-section-dark .container>* {
  position: relative;
  z-index: 1;
}

.hs-wrap {
  position: relative;
}

.hs-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hs-track::-webkit-scrollbar {
  display: none;
}

.hs-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding-bottom: 3rem;
}

/* Barra di navigazione superiore */
.hs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hs-nav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hs-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.hs-dot {
  height: 2px;
  width: 24px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.hs-dot.active {
  width: 40px;
  background: var(--accent);
}

.hs-counter {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
}

.hs-arrows {
  display: flex;
  gap: 8px;
}

.hs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  color: #fff;
  transition: background 0.15s, border-color 0.15s;
}

.hs-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.hs-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.hs-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Slide header — titoli bianchi su scuro */
.hs-slide-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hs-slide-header .section-title {
  color: #fff;
}

.hs-slide-header .eyebrow {
  color: var(--accent);
}

.hs-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2rem;
}

/* Stat strip — vetro su scuro */
.hs-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 2rem;
}

.hs-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: background 0.2s;
}

.hs-stat:hover {
  background: rgba(255, 255, 255, 0.10);
}

.hs-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hs-stat-val {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* Aree applicazione */
.hs-areas {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.hs-area {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: background 0.15s, border-color 0.15s;
}

.hs-area:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(42, 159, 214, 0.4);
}

.hs-area-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.hs-area-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

/* Card APLAND — sfondo leggermente più chiaro del bg */
.hs-section-dark .card {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

.hs-section-dark .card:hover {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: rgba(42, 159, 214, 0.45) !important;
  border-bottom: 1px solid rgba(42, 159, 214, 0.45) !important;
  transform: translateY(-2px);
}

.hs-section-dark .card h3 {
  color: #fff;
}

.hs-section-dark .card p {
  color: rgba(255, 255, 255, 0.65);
}

.hs-section-dark .card .eyebrow {
  color: var(--accent);
}

.hs-section-dark .chip {
  background: rgba(42, 159, 214, 0.15);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(42, 159, 214, 0.3);
}

/* ERP moduli */
.hs-erp-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.hs-mod-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hs-mod {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.hs-mod.on {
  background: rgba(42, 159, 214, 0.15);
  border-color: rgba(42, 159, 214, 0.5);
  border-left: 3px solid var(--accent);
}

.hs-mod:hover:not(.on) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.hs-mod-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(42, 159, 214, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.hs-mod-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hs-mod-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.hs-mod-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.hs-mod-detail {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-height: 200px;
}

.hs-mod-detail-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.hs-feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.hs-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.hs-feat-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

.hs-bar-wrap {
  margin-top: 0.5rem;
}

.hs-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 5px;
}

.hs-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.hs-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--accent) 100%);
  border-radius: 2px;
  width: 0;
  transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Arch pills su scuro */
.hs-arch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
}

.hs-arch-row .chip {
  background: rgba(42, 159, 214, 0.12);
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(42, 159, 214, 0.25);
}

/* Lifecycle — griglia scura con separatori sottili */
.hs-lc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hs-lc-step {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.hs-lc-step::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.hs-lc-step:hover {
  background: rgba(255, 255, 255, 0.07);
}

.hs-lc-step.on {
  background: rgba(42, 159, 214, 0.12);
}

.hs-lc-step.on::after {
  transform: scaleX(1);
}

.hs-lc-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.15);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.hs-lc-step:hover .hs-lc-num {
  color: rgba(255, 255, 255, 0.3);
}

.hs-lc-step.on .hs-lc-num {
  color: var(--accent);
  opacity: 0.8;
}

.hs-lc-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3px;
}

.hs-lc-week {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.75rem;
}

/* Dettaglio step (pannello sotto la griglia) */
.hs-lc-detail-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 1.5rem;
  background: rgba(42, 159, 214, 0.07);
  display: none;
  gap: 1.5rem;
}

.hs-lc-detail-panel.open {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hs-lc-detail-panel h3 {
  color: #fff;
}

.hs-lc-detail-panel p {
  color: rgba(255, 255, 255, 0.6);
}

.hs-lc-detail-panel strong {
  color: rgba(255, 255, 255, 0.85);
}

.hs-task-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hs-task {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(42, 159, 214, 0.3);
  border-radius: 50px;
  padding: 4px 12px;
  background: rgba(42, 159, 214, 0.12);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hs-task::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hs-prog-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .hs-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hs-areas {
    grid-template-columns: 1fr;
  }

  .hs-erp-grid {
    grid-template-columns: 1fr;
  }

  .hs-lc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hs-lc-detail-panel.open {
    grid-template-columns: 1fr;
  }
}

.pr-section-dark {
  background: #1e4663;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.pr-section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, rgba(0, 0, 0, 0.55) 20%, rgba(0, 0, 0, 0) 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, rgba(0, 0, 0, 0.55) 20%, rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
}

.pr-section-dark .container {
  position: relative;
  z-index: 1;
}

/* Layout a colonna unica, card full-width impilate */
.pr-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pr-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.pr-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.pr-card.open {
  background: #ffffffee;
  border-color: rgb(255, 255, 255);
}

/* Riga header cliccabile */
.pr-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.75rem;
  user-select: none;
}

.pr-idx {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.18);
  min-width: 32px;
  transition: color 0.2s;
}

.pr-card.open .pr-idx {
  color: var(--accent);
}

.pr-card.open .pr-subtitle {
  color: rgba(0, 0, 0, 0.5);
}

.pr-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(42, 159, 214, 0.12);
  border: 1px solid rgba(42, 159, 214, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: background 0.2s;
}

.pr-card.open .pr-icon-wrap {
  background: rgba(42, 159, 214, 0.22);
}

.pr-header-text {
  flex: 1;
}

.pr-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 3px;
  transition: color 0.2s;
}

.pr-card.open .pr-title {
  color: #1e4663;
}

.pr-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.4;
}

/* Chip di anteprima — visibili sempre, spariscono nell'expand */
.pr-chips-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
  padding-left: 1rem;
}

.pr-card.open .pr-chips-preview {
  display: none;
}

.pr-chip {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 3px 9px;
  white-space: nowrap;
}

.pr-card.open .pr-chip {
  color: rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

.pr-card.open .pr-chip.accent {
  color: rgba(42, 159, 214, 0.9);
  background: rgba(42, 159, 214, 0.1);
  border-color: rgba(42, 159, 214, 0.3);
}

.pr-chip.accent {
  color: rgba(42, 159, 214, 0.9);
  background: rgba(42, 159, 214, 0.1);
  border-color: rgba(42, 159, 214, 0.25);
}

/* Chevron */
.pr-chevron {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.2s;
}

.pr-card.open .pr-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.pr-chevron svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Corpo espandibile */
.pr-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pr-card.open .pr-body {
  max-height: 600px;
}

.pr-body-inner {
  padding: 0 1.75rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.25rem;
  margin: 0 1.75rem;
  margin-bottom: 1.75rem;
}

.pr-card.open .pr-body-inner {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pr-desc {
  font-size: 14px;
  color: rgb(255, 255, 255);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.pr-card.open .pr-desc {
  color: rgba(0, 0, 0, 0.72);
}

/* Feature list sul lato sinistro */
.pr-feat {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pr-feat li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.pr-card.open .pr-feat li {
  color: rgba(0, 0, 0, 0.62);
}

.pr-feat li::before {
  content: '→';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Pannello destra — chip espansi + eventuale highlight */
.pr-right {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pr-chips-full {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pr-highlight {
  background: rgba(42, 159, 214, 0.08);
  border: 1px solid rgba(42, 159, 214, 0.2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.875rem 1rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  font-family: 'DM Mono', 'Fira Mono', monospace;
  letter-spacing: 0.01em;
}

.pr-card.open .pr-highlight {
  background: rgba(42, 159, 214, 0.07);
  border-color: rgba(42, 159, 214, 0.22);
  color: rgba(0, 0, 0, 0.6);
}

.pr-highlight code {
  color: var(--accent);
  font-family: inherit;
}

.pr-metric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pr-metric-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.pr-card.open .pr-metric-item {
  background: rgba(42, 159, 214, 0.07);
  border-color: rgba(42, 159, 214, 0.2);
}

.pr-metric-val {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.pr-card.open .pr-metric-val {
  color: var(--accent);
}

.pr-metric-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pr-card.open .pr-metric-label {
  color: rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
  .pr-body-inner {
    grid-template-columns: 1fr;
  }

  .pr-chips-preview {
    display: none;
  }
}


/* ── Contatti ─────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item .icon {
  flex-shrink: 0;
  width: 24px;
  color: var(--color-accent, #0057ff);
  /* usa la variabile accent già presente */
}

.contact-item strong {
  display: block;
  margin-bottom: .25rem;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .sede-card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ══════════════════════════════
     FOOTER
  ══════════════════════════════ */
footer#section-footer {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(42, 159, 214, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(30, 90, 126, 0.35) 0%, transparent 55%),
    var(--primary);
  background-size: 200% 200%, 200% 200%, 100% 100%;
  animation: footerGradient 20s ease-in-out infinite;
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  position: relative;
  overflow: hidden;
}

@keyframes footerGradient {

  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 0 0;
  }

  50% {
    background-position: 100% 50%, 0% 50%, 0 0;
  }
}

/* griglia puntinata di sfondo */
footer#section-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0) 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0) 75%);
  pointer-events: none;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ── TOP STRIP ── */
.footer-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2.25rem 0 1.25rem;
  border-bottom: 1px solid #ffffff91;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo img {
  height: 30px;
  width: auto;
  display: block;
}

/* Fallback testo se l'img non carica */
.footer-logo-fallback {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.04em;
}

.footer-divider-v {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* badge certificazioni — riusa la logica .chip del progetto ma invertita */
.footer-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ── GRIGLIA COLONNE ── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 3rem 0 0;
}

.footer-col-lead p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  max-width: 240px;
  margin-top: 0.25rem;
}

footer h4 {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  opacity: 0.9;
}

footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: inline-block;
  /* necessario per ::after underline */
  margin-bottom: 0.5rem;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.15s;
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

footer a:hover {
  color: #fff;
}

footer a:hover::after {
  transform: scaleX(1);
}

/* ── COLONNA CONTATTI ── */
.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-line a {
  margin-bottom: 0;
  font-size: 14px;
}

.footer-contact-line .icon-inline {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-line .icon-inline svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-line:hover .icon-inline {
  color: #fff;
  transform: translateY(-1px);
}

.contact-section-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.28);
  margin: 1.1rem 0 0.6rem;
}

/* ── BOTTOM BAR ── */
.footer-bottom {
  border-top: 1px solid #fff;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-bottom-left {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.footer-bottom-right {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-right a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0;
  transition: color 0.15s;
}

.footer-bottom-right a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-col-lead {
    grid-column: 1 / -1;
  }

  .footer-col-lead p {
    max-width: 100%;
  }
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .footer-col-lead {
    grid-column: 1 / -1;
  }

  .footer-col-lead p {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
    padding: 2.5rem 0 2rem;
  }

  .footer-col-lead {
    grid-column: 1 / -1;
  }

  .footer-top-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  footer#section-footer {
    animation: none;
  }

  footer#section-footer::before {
    display: none;
  }
}

.footer-badge-img {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── TECH TAG ── */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ── PROCESS STEPS ── */
.step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.step-card {
  background: var(--bg-card);
  padding: 1.5rem 1.25rem;
}

.step-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.25;
  line-height: 1;
}

/* ── RESP (legacy block kept; .nav-links display is handled in the
   hamburger media query below with proper collapse animation) ── */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pillar {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pillar-num {
    font-size: 2rem;
  }
}

/* ════════════════════ PLACEHOLDER EFFECTS ════════════════════ */
@keyframes shimmerGlow {
  0% {
    filter: drop-shadow(0 0 4px rgba(99, 179, 237, 0.3)) drop-shadow(0 0 8px rgba(99, 179, 237, 0.1));
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(99, 179, 237, 0.9)) drop-shadow(0 0 24px rgba(99, 179, 237, 0.5)) drop-shadow(0 0 40px rgba(147, 210, 255, 0.3));
  }

  100% {
    filter: drop-shadow(0 0 4px rgba(99, 179, 237, 0.3)) drop-shadow(0 0 8px rgba(99, 179, 237, 0.1));
  }
}

@keyframes shimmerScale {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.glow-img {
  animation:
    shimmerGlow 2.5s ease-in-out infinite,
    shimmerScale 2.5s ease-in-out infinite;
  transition: filter 0.3s ease;
}

.glow-img:hover {
  animation-play-state: paused;
  filter: drop-shadow(0 0 16px rgba(99, 179, 237, 1)) drop-shadow(0 0 32px rgba(99, 179, 237, 0.7));
}

/* ════════════════════ DYNAMIC EFFECTS ════════════════════ */

/* Badge pulse (hero certifications) */
.badge {
  animation: badgeFadeIn 0.6s ease-out backwards;
}

.badge:nth-child(1) {
  animation-delay: 0.4s;
}

.badge:nth-child(2) {
  animation-delay: 0.55s;
}

.badge:nth-child(3) {
  animation-delay: 0.7s;
}

.badge-dot {
  position: relative;
  animation: dotPulse 2.4s ease-in-out infinite;
}

.badge-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: dotRing 2.4s ease-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(92, 224, 168, 0.6);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(92, 224, 168, 0);
  }
}

@keyframes dotRing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes badgeFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* Hero headline entrance */
.hero h1 {
  animation: heroTextIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-sub {
  animation: heroTextIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

.hero-btns {
  animation: heroTextIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

/* Hero button shine on hover */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent 0%,
      transparent 30%,
      rgba(255, 255, 255, 0.55) 50%,
      transparent 70%,
      transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

/* CTA section */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(42, 159, 214, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 50%, rgba(23, 70, 100, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(42, 159, 214, 0.10) 0%, transparent 50%),
    #e8eef3 !important;
  background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100% !important;
  animation: ctaBandAnim 5s ease-in-out infinite;
}

@keyframes ctaBandAnim {
  0%, 100% { background-position: 0% 0%, 100% 100%, 50% 100%, 0 0; }
  50%       { background-position: 100% 50%, 0% 50%, 50% 0%, 0 0; }
}

.cta-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  will-change: transform;
}

.cta-orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(42, 159, 214, 0.40) 0%, transparent 70%);
  top: -60%;
  left: 3%;
  animation: ctaOrbA 5s ease-in-out infinite;
}

.cta-orb-2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(23, 70, 100, 0.30) 0%, transparent 70%);
  top: 5%;
  right: 5%;
  animation: ctaOrbB 7s ease-in-out infinite;
}

.cta-orb-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(42, 159, 214, 0.32) 0%, transparent 70%);
  bottom: -45%;
  left: 52%;
  animation: ctaOrbC 6s ease-in-out infinite;
}

.cta-orb-4 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(92, 224, 168, 0.22) 0%, transparent 70%);
  top: 20%;
  left: 35%;
  animation: ctaOrbD 4.5s ease-in-out infinite;
}

.cta-orb-5 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(42, 159, 214, 0.25) 0%, transparent 70%);
  bottom: 5%;
  right: 28%;
  animation: ctaOrbE 5.5s ease-in-out infinite;
}

@keyframes ctaOrbA {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(160px, 120px) scale(1.25); }
  66%  { transform: translate(80px, -60px) scale(0.85); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes ctaOrbB {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(-130px, -90px) scale(1.2); }
  75%  { transform: translate(60px, 70px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes ctaOrbC {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-110px, -120px) scale(1.3); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes ctaOrbD {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(100px, -80px) scale(1.35); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes ctaOrbE {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-90px, 60px) scale(1.4); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes ctaGradient {

  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 0 0;
  }

  50% {
    background-position: 100% 50%, 0% 50%, 0 0;
  }
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover micro-interactions */
.card .card-icon {
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.25s;
}

.card:hover .card-icon {
  transform: translateY(-3px) rotate(-4deg) scale(1.06);
  background: var(--accent-light);
}

/* Stat number reveal */
.stat-num {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

.text-white {
  color: #fff;
}

/* Step cards hover */
.step-card {
  transition: background 0.25s;
}

.step-card:hover {
  background: var(--bg-soft);
}

.step-card:hover .step-num {
  opacity: 0.55;
  transition: opacity 0.25s;
}

/* Pillar number subtle glow on parent hover */
.pillar {
  transition: padding 0.3s;
}

.pillar:hover .pillar-num {
  color: var(--accent);
  transition: color 0.3s;
}

.pg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 1rem 0;
}

.pc {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #fff;
}

.pc canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pc-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.92) 30%, rgba(255, 255, 255, 0.55) 60%, transparent 100%);
}

.pc-icon {
  font-size: 22px;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

.pc-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 6px;
}

.pc-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Footer link underline animation */
footer a {
  position: relative;
  display: inline-block;
}

footer a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

footer a:hover::after {
  transform: scaleX(1);
}

/* ════════ ICON SYSTEM ════════ */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
  width: 24px;
  height: 24px;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* card-icon already wraps; icon inside scales bigger */
.card-icon .icon {
  width: 26px;
  height: 26px;
}

.card:hover .card-icon .icon svg {
  transform: rotate(-6deg) scale(1.08);
}

/* Pop-in entrance once card becomes visible */
[data-reveal] .card-icon .icon svg {
  opacity: 0;
  transform: scale(0.5) rotate(-25deg);
  transition: opacity 0.55s, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-reveal].is-visible .card-icon .icon svg {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* Solid primary icon badge (competenze numbered sections) */
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex-shrink: 0;
}

.icon-badge::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 180deg,
      transparent 0deg,
      rgba(255, 255, 255, 0.45) 80deg,
      transparent 160deg);
  animation: iconHalo 5s linear infinite;
  z-index: -1;
}

.icon-badge .icon {
  width: 26px;
  height: 26px;
  position: relative;
  z-index: 1;
}

/* Tile icon (cosa-facciamo 3-cell strip + step cards) */
.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary-xlight) 0%, var(--accent-light) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--primary);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.icon-tile::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(42, 159, 214, 0.5) 70deg,
      transparent 140deg);
  animation: iconHalo 6s linear infinite;
  opacity: 0.55;
  z-index: -2;
}

.icon-tile::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary-xlight) 0%, var(--accent-light) 100%);
  z-index: -1;
}

.icon-tile .icon {
  width: 22px;
  height: 22px;
}

.card:hover .icon-tile {
  transform: translateY(-2px) scale(1.05);
}

.card:hover .icon-tile .icon svg {
  transform: rotate(-6deg) scale(1.1);
}

/* Process card heading icon (inline with h3) */
.icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-xlight) 0%, var(--accent-light) 100%);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.icon-pill::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(42, 159, 214, 0.5) 70deg,
      transparent 140deg);
  animation: iconHalo 6s linear infinite;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -2;
}

.icon-pill::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-xlight) 0%, var(--accent-light) 100%);
  z-index: -1;
}

.card:hover .icon-pill::before {
  opacity: 0.9;
}

.icon-pill .icon {
  width: 20px;
  height: 20px;
}

.card:hover .icon-pill .icon svg {
  transform: rotate(-8deg) scale(1.1);
}

/* Inline icon (footer contacts, etc.) */
.icon-inline {
  width: 16px;
  height: 16px;
  display: inline-flex;
  vertical-align: -3px;
  margin-right: 0.55rem;
  color: rgba(255, 255, 255, 0.85);
}

.icon-inline svg {
  stroke-width: 2;
}

footer .footer-contact-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

footer .footer-contact-line .icon-inline {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 0;
  transition: color 0.25s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

footer .footer-contact-line:hover .icon-inline {
  color: #fff;
  transform: translateY(-1px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .hero,
  .hero::before,
  .hero::after,
  .hero-grid,
  .hero-orb,
  .product-card,
  .product-card::before,
  .product-card::after,
  .badge-dot,
  .badge-dot::after,
  .cta-band,
  .card-icon::before,
  .icon-tile::before,
  .icon-badge::before,
  .icon-pill::before {
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ── HAMBURGER BUTTON ─────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  color: var(--primary);
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: var(--primary-xlight);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease, width 0.3s ease;
}

/* Stato aperto → ✕ */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── NAVBAR MOBILE ≤ 768px ─────────────────────────────────────── */
@media (max-width: 768px) {

  /* Mostra hamburger */
  .nav-toggle {
    display: flex;
  }

  /* Reset: i link non sono più nascosti con display:none,
     ma collassati con max-height per poterli animare */
  .nav-links {
    display: flex !important;
    /* sovrascrive il display:none del 768px esistente */
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(23, 70, 100, 0.1);
    z-index: 99;
    /* collassato di default */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    padding: 0.9rem 1.5rem;
    border-radius: 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  /* Il nav-inner deve essere position:relative per il menu assoluto */
  .nav-inner {
    position: relative;
  }
}

/* ── FOOTER: seconda riga certificazioni/social ────────────────── */
/* La riga ha style inline con 5 colonne: usiamo la classe .footer-cert-social
   che aggiungiamo via components.js */
.footer-cert-social {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 0 0 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1100px) {
  .footer-cert-social {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }

  .footer-cert-social [style*="grid-column:span 2"],
  .footer-cert-social [style*="grid-column: span 2"] {
    grid-column: auto !important;
  }
}

@media (max-width: 640px) {
  .footer-cert-social {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    padding-bottom: 2rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   GLOBAL RESPONSIVE OVERRIDES — final, comprehensive layer.
   Targets inline-style grids and per-page hot spots so every page
   collapses cleanly on tablet and phone widths.
   ═══════════════════════════════════════════════════════════════════ */

/* ── TABLET ≤ 1024px ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .section {
    padding: 4rem 1.5rem;
  }

  .section-sm {
    padding: 2.5rem 1.5rem;
  }

  /* prodotti — URBA hero card */
  .product-card[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  /* prodotti — advert: 1fr 1.8fr */
  [style*="grid-template-columns:1fr 1.8fr"] {
    grid-template-columns: 1fr !important;
  }

  /* prodotti — virhub: 1.8fr 1fr */
  [style*="grid-template-columns:1.8fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* ricerca — panel: 1fr 1.65fr */
  .rd-panel,
  [style*="grid-template-columns:1fr 1.65fr"] {
    grid-template-columns: 1fr !important;
  }

  /* contatti — sede cards: 1fr 1fr */
  section.section .card[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── PHONE ≤ 768px ───────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* — Type scale — */
  body {
    font-size: 15px;
  }

  h1.display {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  h2.section-title {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
  }

  .eyebrow {
    font-size: 10.5px;
  }

  /* — Layout chrome — */
  .section {
    padding: 3rem 1.25rem !important;
  }

  .section-sm {
    padding: 2rem 1.25rem !important;
  }

  .page-header {
    padding: 2.5rem 1.25rem 2rem !important;
  }

  .container,
  .container-narrow {
    padding: 0;
  }

  .nav-inner {
    padding: 0 1rem;
    height: 60px;
  }

  .page {
    padding-top: 60px;
  }

  .nav-links {
    top: 60px !important;
  }

  .nav-logo img {
    height: 30px !important;
  }

  /* — Hero — */
  .hero {
    padding: 4.5rem 1.25rem 3.5rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    line-height: 1.15;
  }

  .hero-sub {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .hero-btns {
    gap: 0.6rem;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.25rem;
  }

  .hero-orb.o1 {
    width: 200px;
    height: 200px;
  }

  .hero-orb.o2 {
    width: 160px;
    height: 160px;
  }

  .hero-orb.o3 {
    width: 140px;
    height: 140px;
  }

  /* — Stat numbers — */
  .stat-num {
    font-size: 2.2rem;
  }

  .stat-box {
    padding: 0.75rem;
  }

  /* — CTA band — */
  .cta-band .container h2 {
    font-size: 1.5rem !important;
    line-height: 1.25;
  }

  /* — Universal inline-grid collapse ——————————————————————————— */
  /* Any inline 2-equal-column grid → 1 column */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Any inline 3-col grid */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Any inline 4-col grid → 2 cols */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Asymmetric splits */
  [style*="grid-template-columns:1fr 1.6fr"],
  [style*="grid-template-columns: 1fr 1.6fr"],
  [style*="grid-template-columns:1fr 1.65fr"],
  [style*="grid-template-columns: 1fr 1.65fr"],
  [style*="grid-template-columns:1fr 1.8fr"],
  [style*="grid-template-columns: 1fr 1.8fr"],
  [style*="grid-template-columns:1.8fr 1fr"],
  [style*="grid-template-columns: 1.8fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* "grid-column:span 2" should release to auto when parent collapses */
  [style*="grid-column:span 2"],
  [style*="grid-column: span 2"] {
    grid-column: auto !important;
  }

  /* — prodotti — */
  .product-card {
    padding: 1.75rem 1.5rem !important;
  }

  /* — ricerca — tab bar wraps to 2x2 — */
  div:has(> .rd-tab-btn) {
    flex-wrap: wrap !important;
  }

  .rd-tab-btn {
    flex: 0 0 calc(50% - 2px) !important;
    font-size: 12.5px !important;
    padding: 0.65rem 0.4rem !important;
  }

  /* Force single column on R&S panels without touching the JS-driven
     inline display:none/grid toggle. */
  .rd-panel {
    grid-template-columns: 1fr !important;
  }

  /* — contatti — top strip stacks — */
  section.section-sm>.container>div[style*="space-around"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
  }

  .sede-card-grid {
    grid-template-columns: 1fr !important;
  }

  /* — competenze — slide header wraps — */
  .hs-slide-header {
    flex-wrap: wrap;
  }

  .hs-slide-header .section-title {
    font-size: 1.45rem !important;
  }

  .hs-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .hs-nav-left {
    justify-content: space-between;
  }

  /* — processi — process card header wraps — */
  .pr-header {
    padding: 1.1rem 1.25rem !important;
    gap: 0.85rem !important;
    flex-wrap: wrap;
  }

  .pr-header-text {
    flex: 1 1 calc(100% - 80px);
  }

  .pr-body-inner {
    padding: 1rem 1.25rem 1.5rem !important;
    margin: 0 !important;
    grid-template-columns: 1fr !important;
  }

  /* — index — pillar cards stack — */
  .pg {
    grid-template-columns: 1fr !important;
  }

  .pc {
    min-height: 200px;
  }

  /* — index — RD infografica cards smaller — */
  #rd-wrap .rd-card {
    width: 116px !important;
    padding: 8px 10px !important;
  }

  #rd-wrap .rd-card-title {
    font-size: 12px !important;
  }

  #rd-wrap .rd-card-desc {
    font-size: 10.5px !important;
    line-height: 1.45 !important;
  }

  #section-chi-siamo .rd-overlap-card {
    padding: 1.25rem !important;
  }

  /* — contatti — sede card map height — */
  section.section .card[style*="overflow:hidden"] iframe {
    height: 220px !important;
  }

  /* — contatti mobile — nascondi tab, mostra tutti i panel impilati — */
  .rd-tab-bar {
    display: none !important;
  }

  .rd-panel {
    display: grid !important;
    margin-bottom: 1.25rem;
  }

  .rd-panel:last-child {
    margin-bottom: 0;
  }

  /* — footer tighter — */
  .footer-inner {
    padding: 0 1.25rem;
  }
}

/* ── SMALL PHONE ≤ 480px ────────────────────────────────────────── */
@media (max-width: 480px) {
  .nav-inner {
    padding: 0 0.85rem;
  }

  .nav-logo img {
    height: 26px !important;
  }

  .section {
    padding: 2.5rem 1rem !important;
  }

  .section-sm {
    padding: 1.75rem 1rem !important;
  }

  .page-header {
    padding: 1.75rem 1rem 1.5rem !important;
  }

  .hero {
    padding: 3.75rem 1rem 3rem;
  }

  .footer-inner {
    padding: 0 1rem;
  }

  /* 4-col grids fully collapse */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Grid-4 utility */
  .grid-4 {
    grid-template-columns: 1fr 1fr !important;
  }

  /* URBA inner stats: 2x2 → stack */
  .product-card [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Badge strip wraps tighter */
  .badge {
    font-size: 11px;
    padding: 0.3rem 0.7rem;
  }

  .badge-strip {
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
  }

  /* Ricerca tab bar: 4 in column of 2x2 still — already handled — */

  /* Hide preview chips in processi pr-card (already done at 768) */

  /* Stat-3 grid inside cards */
  .product-card [style*="grid-template-columns:1fr 1fr"]>div {
    padding: 0.85rem 1rem;
  }

  /* Replay btn — keep readable */
  #rd-replay-btn {
    font-size: 11px;
    padding: 7px 16px;
  }

  /* h1 display tighter */
  h1.display {
    font-size: clamp(1.65rem, 8vw, 2.1rem) !important;
  }
}

/* ── EXTRA: prevent horizontal overflow on long URLs/code ──────── */
@media (max-width: 768px) {

  .pr-highlight code,
  .pr-highlight {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  iframe {
    max-width: 100%;
  }
}

/* ── PILLAR TABS (Sistemi geografici · Gestionali · Interoperabilità · Servizi in cloud) ── */
.pt-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.6fr;
  gap: 1.25rem;
  align-items: stretch;
}

.pt-tabs {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 1rem;
  min-height: 560px;
}

.pt-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 6px 18px rgba(15, 48, 72, 0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
}

.pt-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pt-tab:hover {
  background: var(--primary-light);
  transform: translateX(2px);
}

.pt-tab.is-active {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  box-shadow: 0 10px 32px rgba(15, 48, 72, 0.22), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  border-color: rgba(42, 159, 214, 0.45);
}

.pt-tab.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.pt-tab-num {
  flex: 0 0 auto;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}

.pt-tab.is-active .pt-tab-num {
  color: var(--accent);
}

.pt-tab-label {
  flex: 1 1 auto;
}

.pt-tab-arrow {
  width: 22px;
  height: 22px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  color: rgba(255, 255, 255, 0.85);
}

.pt-tab.is-active .pt-tab-arrow {
  opacity: 1;
  transform: translateX(0);
}

.pt-tab-arrow svg {
  width: 100%;
  height: 100%;
}

/* Panel */
.pt-panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.25rem 2rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-height: 560px;
}

.pt-panel::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(42, 159, 214, 0.08) 0%, rgba(42, 159, 214, 0) 70%);
  pointer-events: none;
}

.pt-pane {
  display: none;
  position: relative;
  z-index: 1;
  animation: ptFadeIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pt-pane.is-active {
  display: block;
}

@keyframes ptFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.pt-pane-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pt-pane-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(42, 159, 214, 0.25);
}

.pt-pane-icon .icon {
  width: 26px;
  height: 26px;
  color: #fff;
}

.pt-pane h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.85rem;
  line-height: 1.15;
  color: var(--primary);
  margin: 0.1rem 0 0.15rem;
}

.pt-pane-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.pt-pane-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 56ch;
}

.pt-pane-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.pt-feat {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pt-feat-bullet {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-xlight);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 0.95rem;
  font-weight: 400;
}

.pt-feat-body {
  line-height: 1.5;
}

.pt-feat-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.pt-feat-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pt-pane-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

@media (max-width: 880px) {
  .pt-wrap {
    grid-template-columns: 1fr;
  }

  .pt-tabs {
    grid-template-rows: none;
    min-height: 0;
    gap: 0.75rem;
  }

  .pt-tab {
    padding: 1rem 1.15rem;
    font-size: 1rem;
  }

  .pt-panel {
    padding: 1.75rem 1.5rem;
    min-height: 0;
  }

  .pt-pane h3 {
    font-size: 1.5rem;
  }

  .pt-pane-grid {
    grid-template-columns: 1fr;
  }
}

/* ── COME LAVORIAMO CARDS ── */
.cl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

a.cl-card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.cl-card {
  background: #0d2336;
  border: 1px solid rgba(42, 159, 214, 0.18);
  border-radius: 14px;
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.3s;
}

.cl-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(92, 210, 240, 0.8) 100%);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 14px 14px 0 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 2;
}

.cl-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.35),
    0 4px 16px rgba(42, 159, 214, 0.2);
  border-color: rgba(42, 159, 214, 0.4);
}

.cl-card:hover::before {
  transform: scaleX(1);
}

/* floating inner glow */
.cl-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 159, 214, 0.18) 0%, transparent 65%);
  top: -60px;
  right: -60px;
  pointer-events: none;
  animation: clGlowDrift 8s ease-in-out infinite;
}

.cl-card:nth-child(2) .cl-glow { animation-delay: -2s; }
.cl-card:nth-child(3) .cl-glow { animation-delay: -4s; }
.cl-card:nth-child(4) .cl-glow { animation-delay: -6s; }
.cl-card:nth-child(5) .cl-glow { animation-delay: -1.5s; }
.cl-card:nth-child(6) .cl-glow { animation-delay: -3s; }

@keyframes clGlowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  33%       { transform: translate(-30px, 20px) scale(1.2); opacity: 1; }
  66%       { transform: translate(20px, 30px) scale(0.9); opacity: 0.6; }
}

.cl-bg-num {
  position: absolute;
  bottom: -0.5rem;
  right: 1rem;
  font-family: 'DM Serif Display', serif;
  font-size: 5.5rem;
  line-height: 1;
  color: #fff;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cl-card:hover .cl-bg-num {
  opacity: 0.09;
  transform: scale(1.06) translateX(4px);
}

.cl-num-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cl-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(92, 200, 240, 0.85);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.cl-num-line {
  height: 1px;
  width: 28px;
  background: linear-gradient(90deg, rgba(92, 200, 240, 0.6) 0%, transparent 100%);
  opacity: 0.5;
  transition: width 0.35s ease, opacity 0.35s;
}

.cl-card:hover .cl-num-line {
  width: 52px;
  opacity: 0.9;
}

.cl-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: #e8f4fb;
  margin-bottom: 0.65rem;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.cl-desc {
  font-size: 0.875rem;
  color: rgba(180, 210, 228, 0.8);
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ── Sector section background ── */
.sc-section {
  background:
    linear-gradient(135deg, #0a1e2e 0%, #0f2d42 25%, #082030 55%, #112a3d 80%, #091c2c 100%);
  background-size: 300% 300%;
  animation: scGradientShift 10s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

@keyframes scGradientShift {
  0%   { background-position: 0% 0%; }
  33%  { background-position: 100% 50%; }
  66%  { background-position: 30% 100%; }
  100% { background-position: 0% 0%; }
}

.sc-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: scDotDrift 5s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes scDotDrift {
  from { background-position: 0 0; }
  to   { background-position: 28px 28px; }
}

.sc-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.sc-orb--a {
  width: 500px;
  height: 500px;
  top: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(42, 159, 214, 0.28) 0%, transparent 60%);
  animation: scOrbA 6s ease-in-out infinite;
}

.sc-orb--b {
  width: 380px;
  height: 380px;
  bottom: -80px;
  right: 5%;
  background: radial-gradient(circle, rgba(42, 120, 180, 0.22) 0%, transparent 60%);
  animation: scOrbB 8s ease-in-out infinite;
}

.sc-orb--c {
  width: 280px;
  height: 280px;
  top: 20%;
  left: 50%;
  background: radial-gradient(circle, rgba(80, 200, 240, 0.2) 0%, transparent 60%);
  animation: scOrbC 5s ease-in-out infinite;
}

.sc-orb--d {
  width: 320px;
  height: 320px;
  top: 50%;
  left: 25%;
  background: radial-gradient(circle, rgba(92, 224, 168, 0.18) 0%, transparent 60%);
  animation: scOrbD 7s ease-in-out infinite;
}

.sc-orb--e {
  width: 220px;
  height: 220px;
  bottom: 10%;
  right: 30%;
  background: radial-gradient(circle, rgba(42, 159, 214, 0.22) 0%, transparent 60%);
  animation: scOrbE 4.5s ease-in-out infinite;
}

@keyframes scOrbA {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(160px, 90px) scale(1.25); }
  66%  { transform: translate(60px, -70px) scale(0.85); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes scOrbB {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(-170px, -100px) scale(1.2); }
  75%  { transform: translate(80px, 60px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes scOrbC {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(110px, 130px) scale(1.35); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes scOrbD {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-120px, -90px) scale(1.3); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes scOrbE {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(90px, -110px) scale(1.4); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ── Shared canvas particles style ── */
.hero-particles,
.cta-particles,
.sc-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Mid-page animated background (Come lavoriamo / Lavora con noi) ── */
.cl-section-anim,
.lc-section-anim {
  position: relative;
  overflow: hidden;
}

.mid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.mid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  will-change: transform;
}

.mid-blob--a {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(42, 159, 214, 0.22) 0%, transparent 70%);
  top: -120px;
  right: -80px;
  animation: midBlobA 7s ease-in-out infinite;
}

.mid-blob--b {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(23, 70, 100, 0.18) 0%, transparent 70%);
  bottom: -80px;
  left: 3%;
  animation: midBlobB 9s ease-in-out infinite;
}

.mid-blob--c {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(92, 224, 168, 0.15) 0%, transparent 70%);
  top: 30%;
  left: 42%;
  animation: midBlobC 6s ease-in-out infinite;
}

@keyframes midBlobA {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-140px, 100px) scale(1.2); }
  66%  { transform: translate(80px, -70px) scale(0.85); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes midBlobB {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(160px, -80px) scale(1.25); }
  75%  { transform: translate(40px, 60px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes midBlobC {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-100px, 120px) scale(1.35); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Floating data dots */
.mid-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  will-change: transform, opacity;
}

.mid-dot--1 {
  width: 7px; height: 7px;
  top: 12%; left: 7%;
  animation: midDotFloat 4s 0s ease-in-out infinite;
}
.mid-dot--2 {
  width: 5px; height: 5px;
  top: 72%; left: 22%;
  animation: midDotFloat 5s 0.8s ease-in-out infinite;
}
.mid-dot--3 {
  width: 6px; height: 6px;
  top: 25%; left: 85%;
  animation: midDotFloat 4.5s 0.3s ease-in-out infinite;
}
.mid-dot--4 {
  width: 4px; height: 4px;
  top: 82%; left: 78%;
  animation: midDotFloat 6s 1.5s ease-in-out infinite;
}
.mid-dot--5 {
  width: 6px; height: 6px;
  top: 48%; left: 94%;
  animation: midDotFloat 5s 2s ease-in-out infinite;
}
.mid-dot--6 {
  width: 5px; height: 5px;
  top: 8%; left: 52%;
  animation: midDotFloat 4.2s 1.2s ease-in-out infinite;
}

@keyframes midDotFloat {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: 0.7; }
  50%  { opacity: 0.5; transform: translateY(-45px) scale(1.6); }
  80%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-90px) scale(1); }
}

/* ── Sector cards (Clienti e settori) ── */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.sc-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 860px;
}

@media (max-width: 900px) {
  .sc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sc-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .sc-grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .sc-grid {
    grid-template-columns: 1fr;
  }
}

.sc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.25rem 1.25rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.38s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.25s;
}

.sc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 16px 16px 0 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sc-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 56px rgba(23, 70, 100, 0.12),
    0 6px 20px rgba(42, 159, 214, 0.1);
  border-color: rgba(42, 159, 214, 0.25);
}

.sc-card:hover::before {
  transform: scaleX(1);
}

.sc-bg-shape {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 159, 214, 0.07) 0%, transparent 70%);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s;
  pointer-events: none;
}

.sc-card:hover .sc-bg-shape {
  transform: scale(1.4);
  opacity: 1.5;
}

.sc-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--primary-xlight);
  border: 1px solid rgba(42, 159, 214, 0.18);
  margin-bottom: 1rem;
  color: var(--primary);
  transition: background 0.3s, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}

.sc-card:hover .sc-icon-wrap {
  background: var(--accent-light);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 20px rgba(42, 159, 214, 0.2);
}

.sc-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: var(--primary);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.sc-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.sc-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sc-tags li {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(42, 159, 214, 0.2);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  transition: background 0.2s, color 0.2s;
}

.sc-card:hover .sc-tags li {
  background: rgba(42, 159, 214, 0.14);
}

/* ── Lavora con noi cards ── */
.lc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .lc-grid {
    grid-template-columns: 1fr;
  }
}

.lc-card {
  background: var(--primary-xlight);
  border: 1px solid rgba(23, 70, 100, 0.1);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 1.4rem 1.25rem 1.25rem;
  position: relative;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-left-color 0.25s,
    background 0.25s;
}

.lc-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(23, 70, 100, 0.1),
    0 4px 12px rgba(23, 70, 100, 0.07);
  border-left-color: var(--accent);
  background: #fff;
}

.lc-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.lc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(23, 70, 100, 0.1);
  color: var(--primary);
  transition: background 0.25s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lc-card:hover .lc-icon {
  background: var(--accent-light);
  transform: scale(1.08);
}

.lc-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.3;
}

.lc-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.lc-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lc-tags li {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(23, 70, 100, 0.08);
  border: 1px solid rgba(23, 70, 100, 0.12);
  border-radius: 20px;
  padding: 0.22rem 0.65rem;
  transition: background 0.2s;
}

.lc-card:hover .lc-tags li {
  background: rgba(23, 70, 100, 0.13);
}

/* ── Logo carousel (Clienti e settori) ── */
.logo-carousel {
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.logo-carousel-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #174664;
  margin: 0 0 1.25rem;
}

.logo-carousel-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.logo-carousel-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  animation: logo-scroll 40s linear infinite;
}

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

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

.logo-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 140px;
}

.logo-item img {
  width: 120px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.logo-item-name {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-align: center;
  line-height: 1.2;
  max-width: 120px;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-transform: uppercase;
}

.logo-item:hover .logo-item-name {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .logo-carousel-track {
    animation: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   LAVORA CON NOI — page layout & form styles
   ══════════════════════════════════════════════════════════════ */

/* ── Two-column layout ── */
.lcn-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

/* ── Left column: info ── */
.lcn-info .section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.lcn-perk {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.lcn-perk-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.lcn-perk-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.lcn-perk-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.lcn-note {
  margin-top: 2rem;
  font-size: 14px;
  color: var(--text-muted);
}

.lcn-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.lcn-note a:hover {
  text-decoration: underline;
}

/* ── Right column: form card ── */
.lcn-form-wrap {
  padding: 2.25rem 2rem;
}

.lcn-form-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.lcn-form-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ── Form elements ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.form-required {
  color: var(--accent);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 159, 214, 0.15);
}

.form-input.is-invalid {
  border-color: #d94f4f;
  box-shadow: 0 0 0 3px rgba(217, 79, 79, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-error {
  display: block;
  font-size: 12px;
  color: #d94f4f;
  margin-top: 0.3rem;
  min-height: 1em;
}

/* ── GDPR checkbox ── */
.form-check-group {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
}

.form-check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-check-custom {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: var(--bg);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-check-input:checked + .form-check-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.form-check-input:checked + .form-check-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.form-check-input:focus-visible + .form-check-custom {
  box-shadow: 0 0 0 3px rgba(42, 159, 214, 0.22);
}

.form-check-group.is-invalid .form-check-custom {
  border-color: #d94f4f;
  box-shadow: 0 0 0 3px rgba(217, 79, 79, 0.12);
}

.form-check-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.form-check-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.form-check-link:hover {
  text-decoration: underline;
}

/* ── Submit button ── */
.lcn-submit {
  width: 100%;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.18s, transform 0.15s, box-shadow 0.15s;
}

.lcn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(23, 70, 100, 0.25);
}

/* ── Success message ── */
.lcn-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1rem;
}

.lcn-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-xlight) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.lcn-success h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--primary);
}

.lcn-success p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .lcn-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .lcn-form-wrap {
    padding: 1.5rem 1.25rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   PRIVACY PAGE — body text styles
   ══════════════════════════════════════════════════════════════ */

.privacy-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.privacy-body p,
.privacy-body ul {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.privacy-body ul {
  padding-left: 1.4rem;
}

.privacy-body li {
  margin-bottom: 0.25rem;
}

.privacy-body a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.privacy-body a:hover {
  text-decoration: underline;
}

.privacy-updated {
  margin-top: 2.5rem;
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}

/* ── CTA INLINE FORM ── */
#cta-contact-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-form-box {
  width: 100%;
  max-width: 680px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  text-align: left;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cta-form-box.is-open {
  opacity: 1;
  transform: translateY(0);
}

.cta-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
  margin-bottom: 0.85rem;
}

.cta-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cta-form-field--full {
  margin-bottom: 0.85rem;
}

.cta-form-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.cta-form-field input,
.cta-form-field textarea {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  width: 100%;
}

.cta-form-field input::placeholder,
.cta-form-field textarea::placeholder {
  color: var(--text-light);
}

.cta-form-field input:focus,
.cta-form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 159, 214, 0.14);
  background: #fff;
}

.cta-form-gdpr {
  margin-bottom: 1.25rem;
}

.cta-gdpr-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.cta-gdpr-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--primary);
  cursor: pointer;
}

.cta-gdpr-label span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.cta-gdpr-label strong {
  color: var(--primary);
  font-weight: 600;
}

.cta-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cta-btn-cancel {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 0.25rem;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s;
}

.cta-btn-cancel:hover {
  color: var(--primary);
}

.cta-success {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(23, 70, 100, 0.15);
}

.cta-success svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--accent);
}

.cta-success p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: left;
}

.cta-success strong {
  color: var(--primary);
}

@media (max-width: 640px) {
  .cta-form-box {
    padding: 1.5rem 1.25rem;
  }

  .cta-form-grid {
    grid-template-columns: 1fr;
  }

  .cta-form-actions {
    flex-direction: row;
  }

  .cta-form-actions .btn-primary {
    flex: 1;
    text-align: center;
  }
}

