:root {
  --bg: #f6f9fc;
  --bg-alt: #eaf2fb;
  --text: #0f172a;
  --muted: #475569;
  --brand: #145fba;
  --brand-dark: #0b2545;
  --border: rgba(15, 23, 42, 0.12);
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding-inline: clamp(16px, 2.2vw, 28px);
}

.narrow {
  width: min(980px, 100%);
  padding-inline: clamp(16px, 2.2vw, 28px);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 37, 69, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(10px);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  font-weight: 700;
}

.brand-text { font-size: 1.35rem; font-weight: 700; }

.nav-links { display: flex; gap: 18px; align-items: center; color: rgba(255, 255, 255, 0.9); }
.nav-links a.active { border-bottom: 2px solid #fff; padding-bottom: 3px; color: #fff; }

.nav-toggle {
  display: none;
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #2a74ca; }

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

main { overflow: hidden; }

.hero {
  padding: 3.2rem 0 2.4rem;
  background: #ffffff;
}

.hero-small { padding-top: 3rem; }

.servizi-hero {
  padding-top: 3.2rem;
}

.servizi-hero h1 {
  max-width: 980px;
  line-height: 0.94;
}

.servizi-hero .lead {
  max-width: 100%;
  white-space: pre-line;
}

.servizi-hero .btn {
  margin-top: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  gap: .5rem;
}

.servizi-hero-actions {
  margin-top: .85rem;
  text-align: center;
}

.servizi-hero .btn::after {
  content: "→";
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 500;
}

.servizi-catalog-section {
  padding-top: 2.4rem;
}

.servizi-page .service-list {
  max-width: 1260px;
  margin-inline: auto;
  gap: 1.25rem;
}

.servizi-page .service-card {
  border-radius: 18px;
  padding: 1.88rem 2.1rem 1.88rem;
  min-height: 0;
}

.servizi-page .service-top-grid {
  grid-template-columns: 1.36fr .64fr;
  gap: 1.45rem;
  align-items: start;
}

.servizi-page .service-main-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.servizi-page .service-image-wrap {
  width: 100%;
  max-width: 238px;
  margin-left: auto;
  border-radius: 12px;
}

.servizi-page .service-card h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.servizi-page .service-card p {
  font-size: clamp(.92rem, .96vw, 1.03rem);
  line-height: 1.38;
  font-weight: 400;
}

.servizi-page .service-main-content > p {
  margin: .65rem 0 0;
}

.service-highlights {
  margin-top: .95rem;
  display: flex;
  flex-wrap: nowrap;
  gap: .42rem;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding-bottom: .15rem;
}

.service-highlight {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: .3rem .62rem;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.48);
  background: rgba(100, 116, 139, 0.28);
  color: rgba(248, 250, 252, 0.98);
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-meta-grid {
  margin-top: 1.22rem;
  display: grid;
  gap: .72rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-meta-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.18);
  padding: .92rem .95rem;
  min-height: 176px;
  display: flex;
  flex-direction: column;
}

.service-meta-label {
  margin: 0 0 .46rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.92);
}

.service-meta-card p:last-child {
  margin: 0;
  font-size: clamp(.86rem, .9vw, .96rem);
  line-height: 1.34;
  font-weight: 400;
  color: rgba(241, 245, 249, 0.96);
}

/* Stessa struttura per tutte le card, cambia solo il colore/gradient */
.servizi-page .service-list .service-card:nth-child(1) {
  border-color: #4c4f8f;
  background: linear-gradient(150deg, #161f33 0%, #1b2340 52%, #242c4a 100%);
}

.servizi-page .service-list .service-card:nth-child(2) {
  border-color: #2a7088;
  background: linear-gradient(150deg, #0f2a38 0%, #123746 52%, #154455 100%);
}

.servizi-page .service-list .service-card:nth-child(3) {
  border-color: #5e6675;
  background: linear-gradient(150deg, #262b33 0%, #2f353f 52%, #383f4a 100%);
}

.servizi-page .service-list .service-card:nth-child(4) {
  border-color: #6f5a2f;
  background: linear-gradient(150deg, #2b2520 0%, #373026 52%, #43392c 100%);
}

.servizi-page .service-list .service-card:nth-child(5) {
  border-color: #3c7b67;
  background: linear-gradient(150deg, #162f2f 0%, #1d3b3b 52%, #254848 100%);
}

.servizi-page .service-list .service-card:nth-child(6) {
  border-color: #6b4f86;
  background: linear-gradient(150deg, #252238 0%, #302b48 52%, #3b3458 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.6rem;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.86rem;
  border-radius: 999px;
  background: #dbe9ff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: #1f5fb8;
}

h1 { font-size: clamp(2rem, 4vw, 3.9rem); line-height: 1.05; margin: .5rem 0 0; }
h1 span { color: var(--brand); }

.hero h1 {
  font-size: clamp(2.8rem, 4.95vw, 4.45rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  max-width: 860px;
  font-weight: 700;
  color: #171a1f;
}

.lead {
  margin-top: 1.3rem;
  color: #374a62;
  font-size: clamp(1.01rem, 1.12vw, 1.12rem);
  line-height: 1.42;
  max-width: 650px;
}
.hero-lead { white-space: pre-line; }

.hero-actions { margin-top: 1.9rem; }

.hero-image-wrap {
  padding-top: 1rem;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-legend {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem 1.8rem;
  font-size: 1.02rem;
  color: #1c2430;
  font-weight: 500;
}

.hero-legend li::before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  margin-right: 10px;
  background: #111111;
}

.hero-legend li:nth-child(2)::before { background: #003f69; }
.hero-legend li:nth-child(3)::before { background: #00b8ff; }
.hero-legend li:nth-child(4)::before { background: #20a85a; }
.hero-legend li:nth-child(5)::before { background: #1e67f2; }

.hero-cta {
  gap: .5rem;
  padding: 0.92rem 1.85rem;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-cta-arrow {
  font-size: 1.35rem;
  line-height: 1;
}

.hero-card {
  background: linear-gradient(155deg, #0f2a38 0%, #154455 100%);
  color: #fff;
  border-radius: 20px;
  padding: 1.6rem;
  border: 1px solid rgba(255,255,255,.2);
}

.legend-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .9rem; }
.hero-card ul { margin: 0; padding-left: 1rem; display: grid; gap: .45rem; }

.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { margin: 0; font-size: clamp(1.55rem, 2.3vw, 2.4rem); }
.section-copy { margin-top: 1rem; color: var(--muted); max-width: 760px; }

.services-home-section {
  padding-top: 3.4rem;
  padding-bottom: 4.6rem;
  background:
    radial-gradient(circle at 0% 8%, rgba(37, 99, 235, 0.14), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.12), transparent 34%),
    linear-gradient(180deg, #e9f2fb 0%, #eaf4fc 100%);
}

.services-home-section h2 {
  text-align: center;
  font-size: clamp(2.55rem, 3.9vw, 3.95rem);
  letter-spacing: -0.015em;
  line-height: 1.03;
}

.services-home-copy {
  margin: 1.05rem auto 0;
  max-width: 950px;
  text-align: center;
  font-size: clamp(1.01rem, 1.12vw, 1.12rem);
  line-height: 1.46;
  color: #32465f;
}

.cards {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.services-home-section .cards {
  margin-top: 2.2rem;
  gap: 1.2rem;
}

.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.45);
}

.card h3 { margin: 0; font-size: 1.1rem; }
.card p { margin: .7rem 0 0; color: var(--muted); line-height: 1.6; }

.services-home-section .card {
  min-height: 292px;
  padding: 1.42rem 1.55rem 1.34rem;
  display: flex;
  flex-direction: column;
}

.services-home-section .card h3 {
  font-size: clamp(1.38rem, 1.24vw, 1.62rem);
  letter-spacing: -0.015em;
  line-height: 1.14;
  font-weight: 700;
  max-width: 100%;
}

.services-home-section .card p {
  margin-top: .82rem;
  font-size: clamp(.86rem, .84vw, .95rem);
  line-height: 1.42;
  font-weight: 500;
  max-width: 100%;
}

.card-dark {
  background: linear-gradient(150deg, #161f33 0%, #1b2340 55%, #242c4a 100%);
  color: #fff;
  border-color: rgba(148, 163, 184, 0.45);
}

.card-dark p { color: rgba(241, 245, 249, .92); }
.card-dark a {
  margin-top: auto;
  padding-top: 1.18rem;
  display: inline-block;
  font-weight: 700;
  font-size: .92rem;
  color: #f8fafc;
}

.services-home-section .cards-3 .card-dark:nth-child(-n+5) h3 {
  white-space: nowrap;
}

.services-home-section .cards-3 .card-dark:nth-child(1) {
  border-color: #4c4f8f;
  background: linear-gradient(150deg, #161f33 0%, #1b2340 55%, #242c4a 100%);
}

.services-home-section .cards-3 .card-dark:nth-child(2) {
  border-color: #2a7088;
  background: linear-gradient(150deg, #0f2a38 0%, #123746 52%, #154455 100%);
}

.services-home-section .cards-3 .card-dark:nth-child(3) {
  border-color: #5e6675;
  background: linear-gradient(150deg, #262b33 0%, #2f353f 52%, #383f4a 100%);
}

.services-home-section .cards-3 .card-dark:nth-child(4) {
  border-color: #6f5a2f;
  background: linear-gradient(150deg, #2b2520 0%, #373026 55%, #43392c 100%);
}

.services-home-section .cards-3 .card-dark:nth-child(5) {
  border-color: #3c7b67;
  background: linear-gradient(150deg, #162f2f 0%, #1d3b3b 55%, #254848 100%);
}

.services-home-section .cards-3 .card-dark:nth-child(6) {
  border-color: #6b4f86;
  background: linear-gradient(150deg, #252238 0%, #302b48 52%, #3b3458 100%);
}

.use-cases-section {
  padding-top: 4.6rem;
  padding-bottom: 5rem;
}

.use-cases-section h2 {
  text-align: center;
  font-size: clamp(2.45rem, 3.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.use-cases-section .section-copy {
  margin: 1rem auto 0;
  text-align: center;
  max-width: 900px;
  font-size: clamp(1.02rem, 1.1vw, 1.16rem);
  line-height: 1.45;
  color: #32465f;
}

.use-cases-section .cards {
  margin-top: 2.25rem;
  gap: 1.35rem;
}

.use-cases-section .card {
  min-height: 196px;
  border-radius: 18px;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: none;
  padding: 1.45rem 1.45rem 1.2rem;
}

.use-cases-section .card h3 {
  font-size: clamp(1.08rem, 1.24vw, 1.35rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.use-cases-section .card p {
  margin-top: .85rem;
  font-size: clamp(.93rem, .95vw, 1.02rem);
  line-height: 1.42;
  color: #344861;
}

.list-check { margin: 1rem 0 0; padding-left: 1.1rem; display: grid; gap: .6rem; color: var(--muted); }

.consulting-section {
  padding-top: 4.4rem;
  padding-bottom: 5.2rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(30, 94, 168, 0.12), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.1), transparent 34%),
    linear-gradient(180deg, #eaf3fb 0%, #edf5fd 100%);
}

.consulting-grid {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 2rem;
  align-items: start;
}

.consulting-image-wrap {
  position: relative;
  border-radius: 18px;
  overflow: visible;
  border: 1px solid rgba(20, 95, 186, 0.24);
  box-shadow: 0 24px 56px -36px rgba(15, 23, 42, 0.5);
}

.consulting-image-wrap img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.consulting-uptime {
  position: absolute;
  right: -18px;
  bottom: -38px;
  min-width: 236px;
  padding: 1.02rem 1.2rem .9rem;
  border-radius: 16px;
  border: 1px solid rgba(20, 95, 186, 0.75);
  background: linear-gradient(180deg, rgba(247, 250, 253, 0.98) 0%, rgba(232, 239, 247, 0.97) 100%);
  box-shadow: 0 18px 42px -24px rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(5px);
  z-index: 3;
}

.consulting-uptime-value {
  margin: 0;
  font-size: 3.22rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: .95;
  color: #1f5fb8;
}

.consulting-uptime-label {
  margin: .35rem 0 0;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #5b6777;
}

.consulting-content h2 {
  margin: 0;
  font-size: clamp(2.35rem, 3.4vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.018em;
}

.consulting-copy {
  margin-top: 1.2rem;
  max-width: 930px;
  font-size: clamp(.95rem, .96vw, 1.06rem);
  line-height: 1.4;
  color: #32465f;
}

.consulting-content .list-check {
  list-style: none;
  margin: 1.42rem 0 0;
  padding: 0;
  gap: 1.05rem;
}

.consulting-content .list-check li {
  position: relative;
  padding-left: 2.2rem;
  font-size: .92rem;
  line-height: 1.34;
  min-height: 1.4rem;
  display: block;
}

.consulting-content .list-check li span {
  display: block;
}

.consulting-content .list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .24rem;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #1f5fb8;
  background: rgba(255, 255, 255, 0.8);
  font-size: .8rem;
  line-height: 1;
  font-weight: 700;
  color: #1f5fb8;
}

.consulting-content .list-check li strong {
  display: block;
  margin-bottom: .16rem;
  font-size: .98rem;
  line-height: 1.22;
  color: #0f172a;
}

.stack-section {
  padding-top: 4.8rem;
  padding-bottom: 5rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(30, 94, 168, 0.12), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.1), transparent 34%),
    linear-gradient(180deg, #eaf3fb 0%, #edf5fd 100%);
}

.stack-section h2 {
  text-align: center;
  font-size: clamp(2.45rem, 3.45vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.stack-section .section-copy {
  margin: 1rem auto 0;
  max-width: none;
  text-align: center;
  font-size: clamp(1rem, 1.05vw, 1.14rem);
  line-height: 1.44;
  color: #32465f;
  white-space: nowrap;
}

.stack-section .cards {
  margin-top: 2.2rem;
  gap: 1.25rem;
}

.stack-section .card {
  min-height: 150px;
  border-radius: 18px;
  border: 1px solid rgba(20, 95, 186, 0.35);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.78);
  padding: 1.35rem 1.5rem 1.2rem;
}

.stack-section .card h3 {
  font-size: clamp(1.18rem, 1.5vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.stack-section .chips {
  margin-top: 1rem;
  gap: .55rem;
}

.stack-section .chip {
  border: 1px solid rgba(20, 95, 186, 0.26);
  background: rgba(255, 255, 255, 0.92);
  padding: .32rem .78rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #0f172a;
}

.chips {
  margin-top: .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.chip {
  border: 1px solid rgba(20, 95, 186, 0.25);
  background: rgba(20, 95, 186, 0.06);
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.faq {
  margin-top: .8rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .9rem 1rem;
}

.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: .75rem 0 0; color: var(--muted); }

.faq-section h2 {
  text-align: center;
  font-size: clamp(2.45rem, 3.5vw, 3.95rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.faq-section .section-copy {
  margin: 1rem auto 0;
  max-width: none;
  text-align: center;
  font-size: clamp(1rem, 1.04vw, 1.12rem);
  line-height: 1.42;
  color: #32465f;
  white-space: nowrap;
}

.why-section {
  padding-top: 4.9rem;
  padding-bottom: 5.2rem;
}

.why-section h2 {
  text-align: center;
  font-size: clamp(2.45rem, 3.5vw, 3.95rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.why-section .section-copy {
  margin: 1rem auto 0;
  max-width: none;
  text-align: center;
  font-size: clamp(1rem, 1.04vw, 1.12rem);
  line-height: 1.42;
  color: #32465f;
  white-space: nowrap;
}

.why-grid {
  list-style: none;
  margin: 2.15rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.why-grid li {
  border: 1px solid rgba(20, 95, 186, .34);
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-size: 1.06rem;
  line-height: 1.34;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.why-grid li::before {
  content: "✓";
  width: 1.12rem;
  height: 1.12rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #1666c5;
  border-radius: 50%;
  color: #1666c5;
  font-weight: 700;
  font-size: .82rem;
}

.cta {
  background: #2f73c9;
  color: #fff;
  text-align: center;
  padding-top: 5.6rem;
  padding-bottom: 6rem;
}

.cta .narrow {
  max-width: 1210px;
}

.cta h2 {
  margin: 0 auto;
  max-width: 1100px;
  font-size: clamp(2.62rem, 4.65vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.024em;
  font-weight: 700;
}

.cta p {
  margin: 1.62rem auto 0;
  max-width: 1080px;
  font-size: clamp(.98rem, 1.24vw, 1.55rem);
  line-height: 1.4;
  font-weight: 400;
  color: rgba(228, 240, 255, 0.97);
}

.cta-buttons { margin-top: 2.2rem; display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }

.cta .btn-primary {
  min-width: 238px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #f2f4f8;
  color: #0f172a;
  padding: .84rem 1.25rem;
  border-radius: 8px;
  font-size: .97rem;
  line-height: 1.1;
  font-weight: 600;
}

.cta .btn-primary:hover {
  background: #ffffff;
}

.cta .btn-outline {
  margin-top: 0;
  min-width: 238px;
  min-height: 58px;
  border: 1px solid rgba(188, 214, 246, 0.66);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  padding: .84rem 1.25rem;
  border-radius: 8px;
  font-size: .97rem;
  line-height: 1.1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(206, 226, 251, 0.9);
}

.cta-home {
  padding-top: 4.6rem;
  padding-bottom: 4.9rem;
}

.cta-home .narrow {
  max-width: 980px;
}

.cta-home h2 {
  max-width: 100%;
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

.cta-home p {
  margin-top: 1.25rem;
  max-width: 100%;
  font-size: clamp(.96rem, 1.02vw, 1.2rem);
  line-height: 1.38;
}

.cta-home .btn-outline {
  margin-top: 1.85rem;
}

.service-list {
  display: grid;
  gap: 1rem;
}

.service-card {
  background: linear-gradient(150deg, #1f2937 0%, #0f172a 100%);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 18px;
  padding: 1.2rem;
  scroll-margin-top: 90px;
}

.service-top-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 1rem;
  align-items: center;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 1rem;
  align-items: center;
}

.service-image-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.35);
}

.service-image {
  display: block;
  width: 100%;
  height: auto;
}

.service-card h2 { margin-top: 0; color: #fff; }
.service-card p { color: rgba(241, 245, 249, 0.94); }
.service-meta { display: grid; gap: .45rem; margin-top: .8rem; }

.contact-hero {
  padding-top: 3.2rem;
  padding-bottom: 2.9rem;
  background: #f3f6fb;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: 1.25rem;
  align-items: start;
}

.contact-left {
  min-width: 0;
}

.contact-kicker {
}

.contact-title {
  margin: .25rem 0 0;
  font-size: clamp(2.05rem, 3vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: #0f2450;
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.contact-divider {
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: #2a73d9;
  margin-top: .92rem;
}

.contact-intro {
  margin: .72rem 0 0;
  color: #314661;
  font-size: 1.03rem;
  line-height: 1.48;
  max-width: 94%;
}

.contact-right {
  display: grid;
  gap: .8rem;
  min-width: 0;
}

.contact-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  border-radius: 16px;
  padding: 1rem 1.15rem .9rem;
  margin-top: 1.1rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.contact-item {
  display: grid;
  grid-template-columns: 2.85rem 1fr;
  align-items: center;
  gap: .8rem;
  padding: .86rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.contact-item:first-child {
  border-top: 0;
}

.contact-item-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #1f6bd1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.contact-item-label {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: #475569;
  font-weight: 700;
}

.contact-item-value {
  margin: .18rem 0 0;
  color: #0f172a;
  font-size: clamp(.98rem, 1.06vw, 1.2rem);
  line-height: 1.3;
  font-weight: 600;
}

.contact-item-value a {
  color: inherit;
  font-weight: inherit;
}

.contact-map-wrap {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  background: #eaf1fb;
}

.contact-map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.contact-map-fallback {
  height: 100%;
  min-height: 280px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #334155;
  padding: 1rem;
}

.contact-map-consent-note {
  min-height: 280px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1rem;
  color: #1f334d;
  font-size: .98rem;
  line-height: 1.4;
}

.js-consent-map[hidden] {
  display: none !important;
}

.contact-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
}

.contact-meta-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #ffffff;
  padding: .78rem .78rem;
  display: grid;
  grid-template-columns: 2.35rem 1fr;
  gap: .55rem;
  align-items: center;
}

.contact-meta-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: #edf3fd;
  color: #2a73d9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-meta-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.contact-meta-label {
  margin: 0;
  color: #1f6bd1;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .075em;
  font-weight: 700;
}

.contact-meta-text {
  margin: .2rem 0 0;
  color: #1f2937;
  font-size: .93rem;
  line-height: 1.34;
}

.legal { padding: 3.4rem 0; }
.legal-body {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem;
}

.legal-body h1 { font-size: clamp(1.7rem, 2.5vw, 2.5rem); }
.legal-body h2 { margin-top: 1.2rem; font-size: 1.2rem; }
.legal-body p, .legal-body li { color: var(--muted); line-height: 1.65; }
.legal-body ul { padding-left: 1.1rem; }
.meta { font-size: .94rem; }

.site-footer {
  background: var(--brand-dark);
  color: rgba(241, 245, 249, 0.93);
  padding: 1.45rem 0 1.35rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.75fr .9fr .9fr 1fr;
  gap: 0;
  align-items: start;
}

.footer-brand-col {
  padding-right: 2rem;
}

.footer-col {
  min-width: 0;
  padding-left: 1.7rem;
  border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  color: #fff;
}

.footer-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f6bd1;
  font-weight: 700;
  font-size: .88rem;
}

.footer-brand-text {
  font-weight: 700;
  font-size: 1.82rem;
  line-height: 1;
}

.footer-desc {
  margin: .8rem 0 0;
  max-width: 360px;
  color: rgba(226, 232, 240, 0.9);
  font-size: .92rem;
  line-height: 1.45;
}

.footer-divider {
  margin-top: .78rem;
  width: 100%;
  max-width: 410px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.footer-copy {
  margin: .74rem 0 0;
  font-size: .86rem;
  color: rgba(226, 232, 240, 0.95);
  line-height: 1.25;
}

.footer-meta {
  margin: .22rem 0 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: .84rem;
  line-height: 1.25;
}

.footer-heading {
  margin: .1rem 0 .62rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .71rem;
  letter-spacing: .095em;
  color: rgba(203, 213, 225, 0.96);
}

.site-footer a {
  display: block;
  margin: .32rem 0;
  color: #f1f5f9;
  font-size: .95rem;
  line-height: 1.25;
  transition: color .2s ease;
}

.site-footer a:hover {
  color: #bfdbfe;
}

.footer-link-icon {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.footer-link-icon span {
  width: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(203, 213, 225, 0.9);
  font-size: .82rem;
}

.cookie-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 70;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #e5e7eb;
  color: #111827;
  border-radius: 999px;
  min-height: 34px;
  padding: .42rem .95rem;
  font-size: .95rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-panel {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 690px;
  z-index: 80;
  background: #1f49b6;
  color: #fff;
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1.1rem;
  box-shadow: 0 18px 44px rgba(2, 12, 27, 0.35);
  display: none;
}

.cookie-panel.open {
  display: block;
}

.cookie-title {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
  font-weight: 700;
}

.cookie-text {
  margin: .7rem 0 0;
  font-size: .98rem;
  line-height: 1.45;
  color: rgba(240, 246, 255, 0.96);
}

.cookie-text a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}

.cookie-choice {
  margin-top: .9rem;
  border: 1px solid rgba(191, 219, 254, 0.38);
  border-radius: 12px;
  padding: .82rem .88rem;
}

.cookie-choice-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 700;
}

.cookie-choice-desc {
  margin: .22rem 0 0;
  color: rgba(226, 232, 240, 0.93);
  font-size: .9rem;
}

.cookie-choice-options {
  margin-top: .62rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.25rem;
}

.cookie-choice-options label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 1.02rem;
}

.cookie-choice-options input {
  width: 1rem;
  height: 1rem;
}

.cookie-save {
  margin-top: .95rem;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #1f49b6;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  min-height: 42px;
  padding: .64rem 1.1rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .stack-section .section-copy,
  .why-section .section-copy {
    white-space: normal;
    max-width: 92vw;
  }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem 1.2rem; }
  .footer-col {
    border-left: 0;
    padding-left: 0;
  }
  .footer-brand-col {
    padding-right: 0;
  }
  .consulting-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .servizi-page .service-top-grid,
  .service-top-grid,
  .service-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map-wrap,
  .contact-map-wrap iframe,
  .contact-map-fallback,
  .contact-map-consent-note { min-height: 280px; }
  .why-grid { grid-template-columns: 1fr; }
  .services-home-section .card {
    min-height: 0;
    padding: 1.25rem 1.25rem 1.2rem;
  }
  .services-home-section .cards-3 .card-dark:nth-child(-n+5) h3 {
    white-space: normal;
  }
  .use-cases-section .card {
    min-height: 0;
  }
  .stack-section .card {
    min-height: 0;
  }
  .consulting-uptime {
    right: 10px;
    bottom: 10px;
    min-width: 180px;
    padding: .75rem .85rem;
  }
  .consulting-uptime-value { font-size: 2.2rem; }
  .servizi-page .service-list {
    max-width: 100%;
  }
  .servizi-page .service-card {
    padding: 1.35rem 1.2rem 1.35rem;
    min-height: 0;
  }
  .servizi-page .service-image-wrap {
    max-width: 220px;
  }
  .service-highlights {
    gap: .45rem;
  }
  .service-highlight {
    font-size: .78rem;
    padding: .3rem .66rem;
  }
  .servizi-page .service-card h2 {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
  }
  .servizi-page .service-card p {
    font-size: .98rem;
    line-height: 1.42;
  }
  .service-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-meta-card {
    min-height: 150px;
  }
}

@media (max-width: 760px) {
  .stack-section .section-copy,
  .why-section .section-copy,
  .faq-section .section-copy {
    white-space: normal;
    max-width: 92vw;
    font-size: .98rem;
    line-height: 1.4;
  }

  .section h2,
  .services-home-section h2,
  .use-cases-section h2,
  .consulting-content h2,
  .stack-section h2,
  .why-section h2,
  .faq-section h2,
  .cta h2 {
    font-size: clamp(1.95rem, 8vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -0.012em;
  }

  .services-home-section .cards-3 .card-dark:nth-child(-n+5) h3 {
    white-space: normal;
  }

  .services-home-section,
  .use-cases-section,
  .consulting-section,
  .stack-section,
  .why-section {
    padding-top: 3.2rem;
    padding-bottom: 3.4rem;
  }
  .section-copy {
    font-size: .98rem;
    line-height: 1.42;
  }
  .card {
    padding: 1.05rem 1.05rem .95rem;
    border-radius: 14px;
  }
  .use-cases-section .card,
  .stack-section .card,
  .services-home-section .card {
    padding: 1.05rem 1.05rem .95rem;
    border-radius: 14px;
  }
  .services-home-section .card h3 {
    font-size: 1.22rem;
  }
  .services-home-section .card p {
    font-size: .9rem;
    line-height: 1.4;
  }
  .use-cases-section .card h3,
  .stack-section .card h3 {
    font-size: 1.12rem;
  }
  .stack-section .chip {
    font-size: .75rem;
    padding: .28rem .58rem;
  }
  .why-grid {
    gap: .8rem;
    margin-top: 1.5rem;
  }
  .why-grid li {
    font-size: .98rem;
    padding: .82rem .95rem;
    gap: .62rem;
  }
  .consulting-copy {
    font-size: .95rem;
    line-height: 1.38;
  }
  .consulting-content .list-check li strong {
    font-size: .94rem;
  }
  .consulting-content .list-check li {
    font-size: .9rem;
    line-height: 1.32;
  }

  .hero {
    padding-top: 1.5rem;
    padding-bottom: 1.8rem;
  }
  .contact-hero {
    padding-top: 1.5rem;
    padding-bottom: 1.9rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-title {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
  }
  .contact-intro {
    max-width: 100%;
    font-size: .95rem;
    line-height: 1.4;
  }
  .contact-card {
    margin-top: .9rem;
    padding: .86rem .86rem .8rem;
    border-radius: 14px;
  }
  .contact-list {
    margin-top: 0;
  }
  .contact-item {
    grid-template-columns: 2.45rem 1fr;
    gap: .66rem;
    padding: .72rem 0;
  }
  .contact-item-icon {
    width: 2.35rem;
    height: 2.35rem;
  }
  .contact-item-icon svg {
    width: 1rem;
    height: 1rem;
  }
  .contact-item-label {
    font-size: .68rem;
  }
  .contact-item-value {
    font-size: .88rem;
    line-height: 1.24;
  }
  .contact-meta-grid {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
  .contact-meta-card {
    padding: .72rem .72rem;
    grid-template-columns: 2.15rem 1fr;
  }
  .contact-meta-icon {
    width: 2rem;
    height: 2rem;
    font-size: .98rem;
  }
  .contact-meta-label {
    font-size: .66rem;
  }
  .contact-meta-text {
    font-size: .86rem;
  }
  .contact-map-wrap,
  .contact-map-wrap iframe,
  .contact-map-fallback {
    min-height: 220px;
    border-radius: 14px;
  }
  .contact-map-consent-note {
    min-height: 220px;
    border-radius: 14px;
    font-size: .9rem;
  }
  .cookie-fab {
    left: 10px;
    bottom: 10px;
    min-height: 32px;
    padding: .36rem .82rem;
    font-size: .88rem;
  }
  .cookie-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    border-radius: 14px;
    padding: .92rem .92rem .9rem;
  }
  .cookie-title {
    font-size: 1.32rem;
  }
  .cookie-text {
    font-size: .9rem;
  }
  .cookie-choice-title {
    font-size: .98rem;
  }
  .cookie-choice-desc {
    font-size: .84rem;
  }
  .cookie-choice-options label {
    font-size: .94rem;
  }
  .cookie-save {
    width: 100%;
  }
  .servizi-hero {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }
  .servizi-hero h1 {
    max-width: 100%;
  }
  .servizi-hero .lead {
    max-width: 100%;
    font-size: .98rem;
    line-height: 1.45;
  }
  .servizi-hero .btn {
    width: 100%;
    max-width: 320px;
  }
  .servizi-catalog-section {
    padding-top: 1.1rem;
  }
  .servizi-page .service-top-grid {
    gap: .72rem;
  }
  .servizi-page .service-card {
    padding: 1.15rem 1rem 1.15rem;
    border-radius: 16px;
    min-height: 0;
  }
  .servizi-page .service-image-wrap {
    max-width: 214px;
    margin-inline: 0;
    margin-top: 0;
  }
  .service-highlights {
    margin-top: .58rem;
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: .34rem .5rem;
    padding-bottom: 0;
  }
  .service-highlight {
    font-size: .74rem;
    padding: .28rem .58rem;
    letter-spacing: .03em;
    width: auto;
    justify-content: flex-start;
  }
  .servizi-page .service-card h2 {
    font-size: 1.55rem;
    line-height: 1.1;
  }
  .servizi-page .service-card p {
    font-size: .93rem;
    line-height: 1.4;
  }
  .service-meta-grid {
    grid-template-columns: 1fr;
    gap: .62rem;
    margin-top: .72rem;
  }
  .service-meta-card {
    min-height: 0;
  }
  .service-meta-card p:last-child {
    font-size: .91rem;
  }
  .hero h1 {
    font-size: clamp(2.05rem, 10.2vw, 2.85rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
  }
  .lead {
    margin-top: .95rem;
    font-size: .98rem;
    line-height: 1.45;
    max-width: 100%;
  }
  .hero-actions { margin-top: 1.2rem; }
  .hero-cta {
    width: 100%;
    max-width: 320px;
    padding: .82rem 1.1rem;
    font-size: .96rem;
  }
  .hero-image-wrap {
    padding-top: .25rem;
  }
  .hero-image {
    max-width: 86%;
    margin: 0 auto;
  }
  .hero-legend {
    justify-content: flex-start;
    font-size: .85rem;
    gap: .28rem .7rem;
    margin-top: .55rem;
  }
  .hero-legend li::before {
    width: 8px;
    height: 8px;
    margin-right: 7px;
  }
  .nav-inner {
    min-height: 70px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: .95rem;
  }
  .brand-text {
    font-size: 1.18rem;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    background: rgba(11, 37, 69, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 12px;
    padding: .6rem;
    flex-direction: column;
    align-items: stretch;
    gap: .18rem;
    box-shadow: 0 18px 34px -24px rgba(2, 6, 23, 0.7);
  }
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .52rem .72rem;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.2;
  }
  .nav-links a.active {
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.12);
    padding-bottom: .52rem;
  }
  .nav-links .btn.btn-primary {
    margin-top: .22rem;
    justify-content: center;
    min-height: 44px;
    font-size: .98rem;
  }
  .nav-links.open { display: flex; }
  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: .9rem; }
  .footer-brand-text {
    font-size: 1.55rem;
  }
  .footer-meta,
  .site-footer a {
    font-size: .9rem;
  }
  .cta {
    padding-top: 3.2rem;
    padding-bottom: 3.4rem;
  }
  .cta h2 {
    max-width: 96%;
    font-size: clamp(2rem, 8.8vw, 2.7rem);
    line-height: 1.1;
  }
  .cta p {
    margin-top: 1rem;
    font-size: .98rem;
    line-height: 1.4;
  }
  .cta .btn {
    width: 100%;
    max-width: 320px;
  }
  .cta-home {
    padding-top: 2.8rem;
    padding-bottom: 3rem;
  }
  .cta-home h2 {
    max-width: 94%;
    font-size: clamp(1.8rem, 7.2vw, 2.35rem);
    line-height: 1.12;
  }
  .cta-home p {
    margin-top: .92rem;
    font-size: .95rem;
    line-height: 1.38;
  }
  .cta-home .btn-outline {
    margin-top: 1.3rem;
  }
  .cta .btn-outline {
    margin-top: 0;
    min-height: 52px;
    font-size: .96rem;
  }
  .site-footer {
    padding: 2rem 0;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: clamp(1.85rem, 9.4vw, 2.35rem);
    line-height: 1.05;
  }
  .eyebrow {
    font-size: .75rem;
    padding: .31rem .72rem;
  }
  .hero-legend {
    font-size: .78rem;
    gap: .24rem .55rem;
  }
  .consulting-uptime {
    right: 6px;
    bottom: 6px;
    min-width: 156px;
    padding: .6rem .68rem;
  }
  .consulting-uptime-value {
    font-size: 1.95rem;
  }
  .consulting-uptime-label {
    font-size: .72rem;
  }
}
