/* =========================================================
   STUDIO SCIVOLI — Design direction B
   Corporate moderno: blu profondo, azzurro, geometrie nette
   ========================================================= */

:root {
  --ink: #06172b;
  --navy: #0a2540;
  --blue: #0e4e8a;
  --azure: #18a0fb;
  --sky: #7dd3fc;
  --paper: #f4f7fb;
  --white: #ffffff;
  --muted: #5d6e85;
  --muted-2: #8494a8;
  --line: #dfe7f1;
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius: 24px;
  --max: 1240px;
  --header: 78px;
  --shadow-sm: 0 8px 24px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 24px 60px rgba(10, 37, 64, 0.1);
  --shadow-lg: 0 40px 100px rgba(10, 37, 64, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--azure);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 54ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--azure);
  border-radius: 2px;
}

.eyebrow--light {
  color: var(--sky);
}
.eyebrow--light::before {
  background: var(--sky);
}

.grad {
  background: linear-gradient(100deg, #0b6cc0 0%, #18a0fb 58%, #55c7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s,
    border-color 0.3s, box-shadow 0.35s;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 30px rgba(6, 23, 43, 0.18);
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(14, 78, 138, 0.25);
}

.btn-accent {
  background: linear-gradient(120deg, var(--azure), #0b7fd4);
  color: #fff;
  box-shadow: 0 14px 34px rgba(24, 160, 251, 0.3);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(24, 160, 251, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  background: #fff;
  border-color: #c4d4e6;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 0.88rem;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.05);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

.brand img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: #24374e;
  padding: 6px 0;
  transition: color 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--azure);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  border-radius: 2px;
}

.nav a:hover {
  color: var(--blue);
}
.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.header-phone span {
  color: var(--muted-2);
  font-weight: 500;
  margin-right: 6px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.is-open i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open i:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header) 0 auto 0;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 26px;
  display: none;
  box-shadow: var(--shadow-md);
}
.mobile-menu.is-open {
  display: block;
  animation: slideDown 0.35s var(--ease);
}
.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
}
.mobile-menu .btn {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header) + 74px) 0 86px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -8%, #dff1ff 0%, rgba(223, 241, 255, 0) 62%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 70%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(700px 520px at 15% 10%, #000 0%, transparent 78%);
  mask-image: radial-gradient(700px 520px at 15% 10%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid #d5e6f7;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #294666;
  margin-bottom: 26px;
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.04);
}

.hero-badge b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 600;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  display: inline-block;
}

.hero .lead {
  max-width: 50ch;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 38px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-trust div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-trust strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 600;
}

.hero-trust .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--azure);
}

/* Hero visual */

.hero-visual {
  position: relative;
  z-index: 1;
  padding: 10px 0 10px 10px;
}

.hero-frame {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateZ(0);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.03);
  transition: transform 1.2s var(--ease);
}

.hero-visual:hover .hero-frame img {
  transform: scale(1.07);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 23, 43, 0) 42%, rgba(6, 23, 43, 0.62) 100%);
}

.hero-frame-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.hero-frame-caption small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}

.hero-frame-caption strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-frame-caption .badge-year {
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(10, 37, 64, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: float 7s ease-in-out infinite;
}

.float-card--doc {
  left: -26px;
  top: 13%;
}

.float-card--secure {
  right: -18px;
  bottom: 12%;
  animation-delay: -3.2s;
}

.float-card .fc-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: #eaf5ff;
  color: var(--blue);
}

.float-card--secure .fc-icon {
  background: #e8fbf3;
  color: #0a9d6e;
}

.float-card small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 2px;
}

.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.float-card .fc-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0a9d6e;
  color: #fff;
  display: grid;
  place-items: center;
  margin-left: 4px;
  flex: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero-blob--1 {
  width: 340px;
  height: 340px;
  right: -80px;
  top: 40px;
  background: #9fdcff;
  animation: blob 14s ease-in-out infinite;
}
.hero-blob--2 {
  width: 260px;
  height: 260px;
  left: 42%;
  bottom: -60px;
  background: #c9ecff;
  animation: blob 18s ease-in-out infinite reverse;
}

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.06); }
  66% { transform: translate(-18px, 14px) scale(0.96); }
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--ink);
  color: #fff;
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--ink), transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 34s linear infinite;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 0 26px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.marquee-item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--azure);
}

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

/* ---------- Sections ---------- */

.section {
  padding: clamp(70px, 8vw, 112px) 0;
  position: relative;
}

.section--paper {
  background: var(--paper);
}

.section--dark {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.section-head > div {
  max-width: 640px;
}

.section-head h2 {
  margin-top: 16px;
}

.section-head .lead {
  margin-top: 16px;
}

.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head--center .lead {
  margin-inline: auto;
}

/* ---------- Stats ---------- */

.stats {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  padding: 38px 28px;
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat .num span {
  color: var(--azure);
}

.stat .lbl {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  border-radius: 26px;
  filter: grayscale(100%) contrast(1.02);
}

.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0.05), rgba(10, 37, 64, 0.32));
  pointer-events: none;
}

.about-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
}
.about-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.about-badge span {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

.about-copy h2 {
  margin: 16px 0 22px;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-quote {
  margin-top: 30px;
  padding: 20px 0 0 22px;
  border-left: 3px solid var(--azure);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--ink);
}
.about-quote footer {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  margin-top: 28px;
}
.about-points div {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: #31465f;
  align-items: flex-start;
}
.about-points svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--azure);
  margin-top: 3px;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    background 0.45s, border-color 0.45s;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 160, 251, 0.14), transparent 70%);
  transition: transform 0.6s var(--ease), opacity 0.4s;
  opacity: 0;
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 28px 60px rgba(6, 23, 43, 0.22);
}
.service-card:hover::after {
  opacity: 1;
  transform: scale(1.5);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eef6ff;
  display: grid;
  place-items: center;
  color: var(--blue);
  transition: background 0.4s, color 0.4s;
}
.service-card:hover .service-icon {
  background: rgba(24, 160, 251, 0.16);
  color: var(--sky);
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  transition: color 0.4s;
}
.service-card:hover .service-num {
  color: rgba(255, 255, 255, 0.4);
}

.service-card h3 {
  margin-bottom: 10px;
  transition: color 0.4s;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 42ch;
  transition: color 0.4s;
  position: relative;
  z-index: 1;
}

.service-link {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.4s, gap 0.3s;
  position: relative;
  z-index: 1;
}
.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}
.service-card:hover .service-link {
  color: var(--sky);
}
.service-card:hover .service-link svg {
  transform: translateX(4px);
}

.service-card:hover h3,
.service-card:hover p {
  color: #fff;
}
.service-card:hover p {
  color: rgba(255, 255, 255, 0.72);
}

.services-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.services-note svg {
  width: 16px;
  height: 16px;
  color: var(--azure);
  flex: none;
}

/* ---------- Approach (dark) ---------- */

.approach {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(24, 160, 251, 0.18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(125, 211, 252, 0.12), transparent 60%),
    var(--ink);
}

.approach::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: 72px 72px;
  -webkit-mask-image: radial-gradient(700px 500px at 70% 20%, #000, transparent 75%);
  mask-image: radial-gradient(700px 500px at 70% 20%, #000, transparent 75%);
  pointer-events: none;
}

.approach .section-head {
  position: relative;
  z-index: 1;
}

.approach .lead {
  color: rgba(255, 255, 255, 0.68);
}

.approach-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 10px;
}

.approach-item {
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}

.approach-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(125, 211, 252, 0.35);
  transform: translateY(-4px);
}

.approach-item .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  color: var(--sky);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.approach-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.approach-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Client area ---------- */

.area-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.area-copy h2 {
  margin: 16px 0 20px;
}

.area-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  display: grid;
  gap: 18px;
}

.area-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.area-list .bullet {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #eaf5ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.area-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.area-list p {
  font-size: 0.9rem;
  color: var(--muted);
}

.area-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.area-cta .link {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 6px;
}
.area-cta .link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}
.area-cta .link:hover svg {
  transform: translateX(4px);
}

/* App mock */

.app-mock {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 40px 90px rgba(10, 37, 64, 0.16);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
  transition: transform 0.7s var(--ease);
}

.app-mock:hover {
  transform: perspective(1200px) rotateY(0) rotateX(0);
}

.app-mock::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(24, 160, 251, 0.18), transparent 70%);
  pointer-events: none;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: #f7fafd;
  border-bottom: 1px solid var(--line);
}

.app-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8e3ef;
}
.app-bar i:nth-child(1) { background: #ffb3b3; }
.app-bar i:nth-child(2) { background: #ffe0a3; }
.app-bar i:nth-child(3) { background: #b7e7cd; }

.app-bar span {
  margin-left: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.app-head {
  padding: 22px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-head small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.app-head strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--azure));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
}

.app-body {
  padding: 0 24px 24px;
}

.app-body .app-body-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 6px 0 10px;
}

.doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 9px;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.doc:hover {
  border-color: #bfd8f0;
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.06);
}

.doc-ico {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f0f6fd;
  display: grid;
  place-items: center;
  color: var(--blue);
}
.doc-ico--green {
  background: #e9fbf3;
  color: #0a9d6e;
}

.doc-txt {
  min-width: 0;
  flex: 1;
}
.doc-txt strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-txt small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted-2);
  margin-top: 1px;
}

.doc-price {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  flex: none;
}

.doc-btn {
  flex: none;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transition: background 0.3s;
}
.doc-btn:hover {
  background: var(--blue);
}
.doc-btn--ghost {
  background: #eef6ff;
  color: var(--blue);
}

.app-foot {
  margin-top: 14px;
  padding: 14px;
  border-radius: 13px;
  background: linear-gradient(120deg, #0a2540, #0e4e8a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.app-foot small {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.app-foot strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.app-foot .btn {
  padding: 9px 14px;
  font-size: 0.76rem;
  background: #fff;
  color: var(--ink);
}
.app-foot .btn:hover {
  background: var(--sky);
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--muted-2);
}
.secure-note svg {
  width: 14px;
  height: 14px;
  color: #0a9d6e;
}

/* ---------- Clients ---------- */

.clients {
  border-top: 1px solid var(--line);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.client-logo {
  display: grid;
  place-items: center;
  padding: 22px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 112px;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}

.client-logo img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.72;
  transition: filter 0.4s, opacity 0.4s;
}

.client-logo:hover {
  transform: translateY(-4px);
  border-color: #c9dcef;
  box-shadow: var(--shadow-sm);
}
.client-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
}

.contact-copy h2 {
  margin: 16px 0 18px;
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
  border-color: #c9dcef;
  box-shadow: var(--shadow-sm);
}
.contact-card .ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.contact-card small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 3px;
}
.contact-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
}
.contact-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334a63;
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d8e3ef;
  border-radius: 11px;
  background: #fbfdff;
  font-size: 0.92rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a6b5c6;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--azure);
  box-shadow: 0 0 0 4px rgba(24, 160, 251, 0.12);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 6px 0 18px;
}
.check input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--blue);
  flex: none;
}
.check a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note {
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-note svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: #0a9d6e;
}

.form-success {
  display: none;
  padding: 14px;
  border-radius: 11px;
  background: #e9fbf3;
  color: #086b4c;
  font-size: 0.86rem;
  margin-top: 12px;
}
.form-success.is-visible {
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 26px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 380px;
  background: radial-gradient(circle, rgba(24, 160, 251, 0.14), transparent 65%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 0.88rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.58);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.footer-social a:hover {
  background: var(--azure);
  border-color: var(--azure);
  color: #fff;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 9px;
  transition: color 0.25s;
}
.footer-col a:hover {
  color: var(--sky);
}

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.42);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.58);
}
.footer-bottom a:hover {
  color: var(--sky);
}

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

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

[data-reveal="left"] {
  transform: translateX(-30px);
}
[data-reveal="right"] {
  transform: translateX(30px);
}
[data-reveal="scale"] {
  transform: scale(0.96);
}

/* Hero entrance */
.hero-anim {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    max-width: 560px;
    padding-left: 0;
  }
  .hero-frame img {
    aspect-ratio: 4 / 4.2;
  }
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --header: 70px;
  }
  .nav,
  .header-phone {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-actions .btn {
    display: none;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .about-grid,
  .area-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-media {
    max-width: 520px;
  }
  .about-media img {
    aspect-ratio: 4 / 3.2;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 26px 20px;
  }
  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .app-mock {
    transform: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding-inline: 18px;
  }
  .header-inner {
    padding-inline: 18px;
  }
  .hero {
    padding-top: calc(var(--header) + 46px);
    padding-bottom: 60px;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .hero-trust {
    gap: 10px 18px;
  }
  .float-card--doc {
    left: -8px;
    top: 8%;
    transform: scale(0.92);
  }
  .float-card--secure {
    right: -6px;
    bottom: 8%;
    transform: scale(0.92);
  }
  .hero-frame-caption .badge-year {
    display: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: auto;
  }
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .about-points {
    grid-template-columns: 1fr;
  }
  .section-head {
    margin-bottom: 30px;
  }
  .marquee-item {
    font-size: 0.76rem;
    padding: 0 18px;
    gap: 18px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  .hero-anim {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Pagine interne ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 66px;
  color: #fff;
  background:
    radial-gradient(760px 420px at 85% 0%, rgba(24, 160, 251, 0.22), transparent 62%),
    linear-gradient(160deg, #0a2540 0%, #06172b 62%, #04101d 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(620px 420px at 70% 20%, #000, transparent 78%);
  mask-image: radial-gradient(620px 420px at 70% 20%, #000, transparent 78%);
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 22px;
}
.crumbs a {
  color: rgba(255, 255, 255, 0.7);
}
.crumbs a:hover {
  color: #fff;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0 0 18px;
  max-width: 22ch;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.66);
  max-width: 62ch;
  margin: 0;
}

.page-hero .eyebrow {
  color: var(--sky);
  margin-bottom: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.detail-grid + .detail-grid {
  margin-top: 54px;
}

.detail-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #dfe9f4;
}
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 10px;
}

.detail-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 12px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.detail-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #42566d;
  line-height: 1.55;
}
.detail-list svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--blue);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
}
.step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--blue-soft, #eaf4ff);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 0.78rem;
  margin-bottom: 12px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

.legal-body {
  max-width: 780px;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 36px 0 10px;
}
.legal-body h2:first-child {
  margin-top: 0;
}
.legal-body p,
.legal-body li {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
}
.legal-body p {
  margin: 0 0 12px;
}
.legal-body ul {
  padding-left: 20px;
  margin: 0 0 14px;
  display: grid;
  gap: 6px;
}
.legal-body strong {
  color: var(--ink);
}
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted-2);
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 26px;
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.legal-toc a {
  font-size: 0.74rem;
  font-weight: 600;
  color: #42566d;
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}
.legal-toc a:hover {
  color: var(--blue);
  border-color: #c3d5e8;
}

.map-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.map-card > div {
  padding: 28px;
}
.map-card > div + div {
  border-left: 1px solid var(--line);
}
.map-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.map-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.map-note {
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--muted-2);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid + .detail-grid {
    margin-top: 38px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .map-card {
    grid-template-columns: 1fr;
  }
  .map-card > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .page-hero {
    padding: 112px 0 48px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Blocco "fatti" (pagina Studio) ---------- */

.facts-section {
  padding-top: 0;
}
.facts {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}
.facts-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  letter-spacing: -0.02em;
}
.facts-list {
  display: grid;
  gap: 14px;
  margin: 0;
}
.facts-list > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.facts-list > div:first-child {
  padding-top: 0;
  border-top: 0;
}
.facts-list dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.facts-list dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}
.facts-list dd a {
  color: var(--blue);
}
@media (max-width: 640px) {
  .facts-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ---------- Domande frequenti (pagina Servizi) ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0 20px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq-item[open] {
  border-color: #c9dcf3;
  box-shadow: 0 12px 34px rgba(6, 23, 43, 0.06);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-chevron {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--blue);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 0 20px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Credito di realizzazione: in fondo, in tono con la riga inferiore. */
.footer-credit {
  white-space: nowrap;
}
.footer-credit a {
  font-weight: 600;
}

/* ---------- Riconoscimenti (pagina Studio) ---------- */

.credentials-section {
  padding-top: 0;
}
.credentials {
  max-width: 900px;
  margin: 0 auto;
}
.credentials-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  letter-spacing: -0.02em;
}
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.credential {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.credential:hover {
  border-color: #c9dcf3;
  box-shadow: 0 14px 36px rgba(6, 23, 43, 0.07);
  transform: translateY(-2px);
}
.credential-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eaf4ff;
  color: var(--blue);
}
.credential-icon svg {
  width: 21px;
  height: 21px;
}
.credential-text {
  flex: 1 1 auto;
  min-width: 0;
}
.credential-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.94rem;
  color: var(--ink);
}
.credential-text small {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}
.credential-arrow {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted-2);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.credential:hover .credential-arrow {
  color: var(--blue);
  transform: translate(2px, -2px);
}
@media (max-width: 720px) {
  .credentials-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Striscia riconoscimenti (home) ---------- */

.trust-strip {
  padding: 8px 0 28px;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 500;
  color: #2c4a6e;
  transition: color 0.2s var(--ease);
}
.trust-item:hover {
  color: var(--blue);
}
.trust-item svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--blue);
}
@media (max-width: 560px) {
  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Logo del partner: al posto dell'icona, quando il file è presente. */
.credential-logo {
  height: 34px;
  width: auto;
  flex: none;
}
.trust-logo {
  height: 24px;
  width: auto;
  flex: none;
}

/* ---------- Approfondimenti ---------- */

.article-card {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.article-card + .article-card {
  margin-top: 16px;
}
.article-card:hover {
  border-color: #c9dcf3;
  box-shadow: 0 16px 40px rgba(6, 23, 43, 0.07);
  transform: translateY(-2px);
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-card-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.article-card-title a {
  color: var(--ink);
}
.article-card-title a:hover {
  color: var(--blue);
}
.article-card-text {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}
.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}
.article-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}
.article-card-link:hover svg {
  transform: translateX(3px);
}

.empty-state {
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
}
.empty-state strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  color: var(--ink);
}

/* ---------- Corpo di un approfondimento ---------- */

.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  color: #38506b;
}
.article-body > *:first-child {
  margin-top: 0;
}
.article-body h2 {
  margin: 38px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.article-body h3 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.35;
  color: var(--ink);
}
.article-body p {
  margin: 0 0 16px;
}
.article-body strong {
  color: var(--ink);
}
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover {
  color: var(--sky);
}
.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.article-body li {
  margin-bottom: 8px;
}
.article-body ul li::marker {
  color: var(--blue);
}
.article-body sup,
.article-body sub {
  font-size: 0.72em;
}
.article-body hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.article-body blockquote {
  margin: 22px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: #f6f9fd;
  color: var(--ink);
}
.article-body table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.article-body th,
.article-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.article-body th {
  background: #f6f9fd;
  font-weight: 600;
  color: var(--ink);
}

.article-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 760px;
  margin: 40px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-others {
  max-width: 760px;
  margin: 44px auto 0;
}
.article-others h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}
.article-others ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.article-others a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.article-others a:hover {
  border-color: #c9dcf3;
  color: var(--blue);
}

/* Menu principale con cinque voci: un po' più compatto sugli schermi medi. */
@media (max-width: 1100px) and (min-width: 901px) {
  .nav {
    gap: 20px;
  }
  .nav a {
    font-size: 0.87rem;
  }
}
