
:root {
  --bg: #07070a;
  --bg-soft: #101018;
  --panel: rgba(244, 241, 232, 0.065);
  --panel-strong: rgba(244, 241, 232, 0.11);
  --border: rgba(244, 241, 232, 0.14);
  --border-strong: rgba(244, 241, 232, 0.28);
  --text: #f4f1e8;
  --muted: #aaa5a0;
  --muted-strong: #ded7cd;
  --accent: #f6b73c;
  --accent-2: #ff4d6d;
  --accent-3: #7c3cff;
  --dark-text: #14100b;
  --success: #f6b73c;
  --radius: 28px;
  --radius-lg: 36px;
  --container: 1480px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(246, 183, 60, 0.14), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(255, 77, 109, 0.12), transparent 30%),
    radial-gradient(circle at 50% 94%, rgba(124, 60, 255, 0.10), transparent 34%),
    linear-gradient(135deg, #050506 0%, #0f0e14 48%, #171016 78%, #050506 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 241, 232, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.022) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 78%);
}

::selection {
  background: rgba(246, 183, 60, 0.35);
  color: var(--dark-text);
}

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

p {
  color: var(--muted);
}

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

.container {
  width: min(100% - 80px, var(--container));
  margin-inline: auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(244, 241, 232, 0.08);
  background: rgba(4, 4, 6, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar.is-scrolled {
  background: rgba(4, 4, 6, 0.98);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(246, 183, 60, 0.42);
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(246, 183, 60, 0.32), transparent 45%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 241, 232, 0.72));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 38px rgba(246, 183, 60, 0.18);
}

.brand-mark img {
  width: 76%;
  height: 76%;
  display: block;
  object-fit: contain;
  filter: contrast(1.18) drop-shadow(0 2px 3px rgba(255, 255, 255, 0.35));
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  z-index: 60;
}

.nav-links a {
  position: relative;
  transition: color 0.18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.18s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(244, 241, 232, 0.08);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.menu-toggle:hover {
  border-color: rgba(246, 183, 60, 0.34);
  background: rgba(246, 183, 60, 0.1);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease, background 0.22s ease;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent);
}

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

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent);
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(244, 241, 232, 0.075);
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(244, 241, 232, 0.115);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.btn-primary {
  border: 0;
  color: var(--dark-text);
  background: linear-gradient(135deg, #ffd166 0%, #f6b73c 45%, #ff4d6d 100%);
  box-shadow: 0 18px 46px rgba(246, 183, 60, 0.22);
}

.hero {
  position: relative;
  padding: 88px 0 74px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58px;
  width: min(820px, 86vw);
  height: 360px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(246, 183, 60, 0.11), transparent 64%),
    radial-gradient(circle at 70% 40%, rgba(255, 77, 109, 0.08), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--hero-x, 50%) var(--hero-y, 35%), rgba(246, 183, 60, 0.07), transparent 28%);
  opacity: 0.85;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 9px 14px;
  border: 1px solid rgba(246, 183, 60, 0.3);
  border-radius: 999px;
  background: rgba(246, 183, 60, 0.09);
  color: #fff1cf;
  font-size: 0.83rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(246, 183, 60, 0.12);
}

h1,
h2,
h3 {
  color: var(--text);
}

h1 {
  max-width: 980px;
  margin-bottom: 25px;
  font-size: clamp(3.35rem, 7.2vw, 6.55rem);
  line-height: 0.9;
  letter-spacing: -0.102em;
  text-wrap: balance;
  text-shadow: 0 14px 45px rgba(246, 183, 60, 0.08);
}

.gradient-text {
  background: linear-gradient(135deg, #f4f1e8 10%, #f6b73c 48%, #ff4d6d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 860px;
  margin-bottom: 31px;
  color: var(--muted-strong);
  font-size: 1.09rem;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(244, 241, 232, 0.055);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(246, 183, 60, 0.07), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.stat:hover::before {
  opacity: 1;
}

.stat strong,
.stat span {
  position: relative;
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.04rem;
  letter-spacing: -0.035em;
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(246, 183, 60, 0.14), transparent 42%),
    radial-gradient(circle at bottom left, rgba(255, 77, 109, 0.10), transparent 40%),
    linear-gradient(180deg, rgba(244, 241, 232, 0.12), rgba(244, 241, 232, 0.045)),
    rgba(5, 5, 6, 0.72);
  box-shadow: var(--shadow);
}

.profile-card {
  position: relative;
  z-index: 1;
}

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

.avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 232, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(246, 183, 60, 0.16), transparent 42%),
    rgba(244, 241, 232, 0.08);
}

.avatar img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  display: block;
}

.availability {
  padding: 10px 13px;
  border: 1px solid rgba(246, 183, 60, 0.28);
  border-radius: 999px;
  background: rgba(246, 183, 60, 0.11);
  color: #fff1cf;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.code-panel {
  overflow: hidden;
  border: 1px solid rgba(244, 241, 232, 0.12);
  border-radius: 24px;
  background: rgba(5, 5, 6, 0.82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
}

.code-bar {
  display: flex;
  gap: 7px;
  padding: 13px 15px;
  background: rgba(244, 241, 232, 0.055);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(244, 241, 232, 0.25);
}

.code {
  padding: 20px;
  color: #f4efd8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.75;
  overflow-x: auto;
}

.code .k { color: #f6b73c; }
.code .s { color: #ffd166; }
.code .v { color: #7c3cff; }
.code .c { color: #9a938b; }

section {
  position: relative;
  padding: 82px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.section-kicker {
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h2 {
  max-width: 790px;
  font-size: clamp(2.2rem, 4.2vw, 3.65rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.section-description {
  max-width: 620px;
  line-height: 1.74;
}

#perche-nb {
  padding-top: 104px;
  padding-bottom: 104px;
  overflow: hidden;
}

#perche-nb::before {
  content: "";
  position: absolute;
  inset: 40px 0 auto 0;
  height: 520px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 26%, rgba(246, 183, 60, 0.18), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(255, 77, 109, 0.13), transparent 35%),
    linear-gradient(135deg, rgba(244, 241, 232, 0.035), transparent 62%);
  filter: blur(4px);
  opacity: 0.95;
}

#perche-nb .container {
  position: relative;
  z-index: 1;
}

#perche-nb .section-head {
  align-items: center;
  margin-bottom: 40px;
  padding: 34px;
  border: 1px solid rgba(244, 241, 232, 0.10);
  border-radius: 38px;
  background:
    radial-gradient(circle at top left, rgba(246, 183, 60, 0.12), transparent 38%),
    rgba(244, 241, 232, 0.045);
}

#perche-nb h2 {
  max-width: 900px;
  font-size: clamp(2.45rem, 5.2vw, 4.85rem);
  line-height: 0.93;
}

#perche-nb .section-description {
  max-width: 620px;
  font-size: 1.02rem;
  color: var(--muted-strong);
}

#perche-nb .match-box {
  gap: 20px;
}

#perche-nb .match-item {
  min-height: 210px;
  padding: 30px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(244, 241, 232, 0.075), rgba(244, 241, 232, 0.035)),
    rgba(5, 5, 6, 0.28);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

#perche-nb .match-item::after {
  content: "";
  position: absolute;
  right: -76px;
  top: -76px;
  width: 168px;
  height: 168px;
  border-radius: 999px;
  background: rgba(246, 183, 60, 0.075);
  pointer-events: none;
}

#perche-nb .match-item h3 {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1.25rem;
}

#perche-nb .match-item h3::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 8px rgba(246, 183, 60, 0.09);
}

#perche-nb .match-item p {
  position: relative;
  z-index: 1;
  color: var(--muted-strong);
}


#perche-nb .hero-actions {
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 0;
}

#faq {
  padding-top: 112px;
  padding-bottom: 118px;
}

#faq .section-head {
  margin-bottom: 48px;
}

#faq .match-box {
  gap: 24px;
  margin-bottom: 42px;
}

#faq .match-item {
  padding: 32px;
  min-height: 170px;
  border-radius: 30px;
}

#faq .match-item h3 {
  margin-bottom: 16px;
  font-size: 1.22rem;
}

#faq .match-item p {
  line-height: 1.82;
}

#faq .section-spacer {
  height: 48px;
}

#faq .mini-cta {
  margin-top: 0;
  padding: 68px 46px;
  border-radius: 44px;
}

#faq .mini-cta h2 {
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 4.4vw, 4.45rem);
}


#faq .mini-cta p {
  margin-bottom: 34px;
  font-size: 1.04rem;
}

#servizi {
  padding-top: 118px;
  padding-bottom: 118px;
}

#servizi .section-head {
  margin-bottom: 54px;
}

#servizi .section-description {
  max-width: 650px;
  line-height: 1.86;
  font-size: 1.04rem;
}

#servizi .grid-3 {
  gap: 28px;
  margin-bottom: 34px;
}

#servizi .card {
  min-height: 270px;
  padding: 34px;
  border-radius: 34px;
}

#servizi .card h3 {
  margin-bottom: 18px;
  font-size: 1.42rem;
}

#servizi .card p {
  line-height: 1.86;
  font-size: 1rem;
}

#servizi .section-spacer {
  height: 34px;
}

#servizi .stack-cloud {
  margin-top: 0;
  padding: 28px;
  gap: 14px;
  border-radius: 34px;
}

#servizi .tag {
  min-height: 44px;
  padding-inline: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card,
.match-item,
.timeline-item,
.project,
.cta {
  border: 1px solid var(--border);
  background: var(--panel);
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 28px;
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.card::before,
.match-item::before,
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(246, 183, 60, 0.10), transparent 34%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.card:hover::before,
.match-item:hover::before,
.project:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 183, 60, 0.24);
  background: var(--panel-strong);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
}

.card::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 185px;
  height: 185px;
  border-radius: 999px;
  background: rgba(246, 183, 60, 0.06);
  pointer-events: none;
}

.card h3,
.card p {
  position: relative;
  z-index: 1;
}

.card h3 {
  margin-bottom: 13px;
  font-size: 1.28rem;
  letter-spacing: -0.04em;
}

.card p {
  line-height: 1.72;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, 0.045);
}

.tag {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(244, 241, 232, 0.12);
  border-radius: 999px;
  background: rgba(244, 241, 232, 0.07);
  color: #f0eadc;
  font-size: 0.88rem;
  font-weight: 850;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tag:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 183, 60, 0.26);
  background: rgba(246, 183, 60, 0.07);
}

.project-grid {
  display: grid;
  gap: 26px;
}

.project {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
  gap: 26px;
  padding: 18px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 0%, rgba(246, 183, 60, 0.055), transparent 34%),
    rgba(244, 241, 232, 0.052);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.20);
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.project.is-muted {
  opacity: 0.58;
}

.project:nth-child(even) {
  grid-template-columns: 1.05fr 0.95fr;
}

.project:nth-child(even) .project-visual {
  order: 2;
}

.project-visual {
  position: relative;
  z-index: 1;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(244, 241, 232, 0.13);
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 18%, rgba(246, 183, 60, 0.18), transparent 34%),
    radial-gradient(circle at 88% 86%, rgba(255, 77, 109, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(246, 183, 60, 0.08), rgba(255, 77, 109, 0.08)),
    rgba(5, 5, 6, 0.86);
}

.project-label {
  width: fit-content;
  display: inline-flex;
  padding: 9px 12px;
  border: 1px solid rgba(244, 241, 232, 0.15);
  border-radius: 999px;
  background: rgba(244, 241, 232, 0.11);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mock-window {
  overflow: hidden;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 21px;
  background: rgba(5, 5, 6, 0.76);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.mock-header {
  display: flex;
  gap: 7px;
  padding: 12px;
  background: rgba(244, 241, 232, 0.07);
}

.mock-body {
  padding: 18px;
}

.mock-line {
  height: 12px;
  margin-bottom: 11px;
  border-radius: 999px;
  background: rgba(244, 241, 232, 0.16);
}

.mock-line.w-80 { width: 80%; }
.mock-line.w-65 { width: 65%; }
.mock-line.w-45 { width: 45%; }

.mock-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.mock-mini {
  min-height: 70px;
  border: 1px solid rgba(244, 241, 232, 0.10);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(246, 183, 60, 0.12), rgba(255, 77, 109, 0.075)),
    rgba(244, 241, 232, 0.065);
}

.project-content {
  position: relative;
  z-index: 1;
  padding: 14px 10px 14px 4px;
}

.project-content h3 {
  margin-bottom: 16px;
  font-size: clamp(1.72rem, 3vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.project-content p {
  margin-bottom: 18px;
  line-height: 1.78;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.meta-box {
  padding: 15px;
  border: 1px solid rgba(244, 241, 232, 0.1);
  border-radius: 18px;
  background: rgba(244, 241, 232, 0.055);
}

.meta-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.meta-box strong {
  font-size: 0.94rem;
  line-height: 1.42;
}

.bullet-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.bullet-list li {
  list-style: none;
  display: flex;
  gap: 10px;
  color: var(--muted-strong);
  line-height: 1.55;
}

.bullet-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 950;
}

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

.match-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 25px;
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.match-item:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 183, 60, 0.22);
  background: var(--panel-strong);
}

.match-item h3 {
  margin-bottom: 12px;
  letter-spacing: -0.035em;
}

.match-item p {
  line-height: 1.74;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  padding: 25px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(246, 183, 60, 0.045), transparent 34%),
    rgba(244, 241, 232, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.timeline-item:hover {
  transform: translateX(4px);
  border-color: rgba(246, 183, 60, 0.22);
}

.timeline-date {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 183, 60, 0.24);
  border-radius: 18px;
  background: rgba(246, 183, 60, 0.09);
  color: var(--accent);
  font-weight: 950;
}

.timeline-content h3 {
  margin-bottom: 8px;
  letter-spacing: -0.035em;
}

.timeline-content p {
  line-height: 1.74;
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 54px 46px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 14% 8%, rgba(246, 183, 60, 0.20), transparent 32%),
    radial-gradient(circle at 86% 92%, rgba(255, 77, 109, 0.16), transparent 34%),
    rgba(244, 241, 232, 0.075);
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.cta h2 {
  max-width: 880px;
  margin: 0 auto 18px;
}

.cta p {
  max-width: 740px;
  margin: 0 auto 27px;
  color: #ded8c8;
  line-height: 1.78;
}

.contact-form {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(246, 183, 60, 0.12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 77, 109, 0.08), transparent 34%),
    rgba(244, 241, 232, 0.055);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

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

.form-group {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.form-group label {
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 18px;
  outline: none;
  background: rgba(5, 5, 6, 0.62);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.form-group select {
  appearance: none;
  cursor: pointer;
}

.form-group textarea {
  min-height: 180px;
  padding: 16px;
  resize: vertical;
  line-height: 1.65;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(246, 183, 60, 0.46);
  background: rgba(5, 5, 6, 0.82);
  box-shadow: 0 0 0 4px rgba(246, 183, 60, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(244, 241, 232, 0.42);
}

footer {
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.js-ready section,
.js-ready .hero-card,
.js-ready .stat,
.js-ready .card,
.js-ready .project,
.js-ready .match-item,
.js-ready .timeline-item,
.js-ready .cta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.52s ease, transform 0.52s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js-ready section.is-visible,
.js-ready .hero-card.is-visible,
.js-ready .stat.is-visible,
.js-ready .card.is-visible,
.js-ready .project.is-visible,
.js-ready .match-item.is-visible,
.js-ready .timeline-item.is-visible,
.js-ready .cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.menu-open {
  overflow: hidden;
}
.footer-premium {
  position: relative;
  padding: 96px 0 42px;
  overflow: hidden;
  border-top: 1px solid rgba(244, 241, 232, 0.1);
}

.footer-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(246, 183, 60, 0.16), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(255, 77, 109, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(244, 241, 232, 0.035), transparent 45%);
}

.footer-premium .container {
  position: relative;
  z-index: 1;
}

.footer-glow {
  position: absolute;
  left: 50%;
  top: 28px;
  width: min(900px, 80vw);
  height: 220px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(246, 183, 60, 0.13), transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}

.footer-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 42px;
  margin-bottom: 34px;
  border: 1px solid var(--border);
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(246, 183, 60, 0.16), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 77, 109, 0.10), transparent 36%),
    rgba(244, 241, 232, 0.07);
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.28);
}

.footer-hero h2 {
  max-width: 820px;
  margin-bottom: 16px;
}

.footer-hero p {
  max-width: 720px;
  line-height: 1.75;
  color: var(--muted-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.75fr 0.85fr;
  gap: 34px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: rgba(244, 241, 232, 0.045);
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-description {
  max-width: 440px;
  line-height: 1.75;
}

.footer-grid h4 {
  margin-bottom: 18px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-links {
  display: grid;
  gap: 11px;
  list-style: none;
}

.footer-links a,
.footer-links li {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.footer-links a {
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-links a:hover {
  color: var(--text);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--muted);
}

.footer-bottom-links a:hover {
  color: var(--accent);
}
/*==================================================
COOKIE BANNER
==================================================*/

.cookie-banner{
    position:fixed;
    left:50%;
    bottom:24px;
    transform:translateX(-50%);
    width:min(1150px,calc(100% - 40px));
    z-index:99999;

    padding:1px;

    border-radius:28px;

    background:
    linear-gradient(
        135deg,
        rgba(246,183,60,.45),
        rgba(255,77,109,.25),
        rgba(255,255,255,.08)
    );

    box-shadow:
    0 30px 80px rgba(0,0,0,.45);
}

.cookie-banner[hidden]{
    display:none;
}

.cookie-content{

    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:35px;

    padding:24px;

    border-radius:27px;

    backdrop-filter:blur(18px);

    background:
    radial-gradient(circle at top right,
    rgba(246,183,60,.12),
    transparent 35%),

    rgba(10,10,14,.96);

}

.cookie-title{

    font-size:1.05rem;
    font-weight:800;

    margin-bottom:10px;

    color:var(--text);

}

.cookie-text p{

    color:var(--muted);

    line-height:1.8;

    max-width:700px;

}

.cookie-buttons{

    display:flex;
    gap:12px;

    flex-shrink:0;

}

.cookie-buttons .btn{

    min-width:145px;

}

@media (max-width: 980px) {
  .footer-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #perche-nb .section-head {
    align-items: flex-start;
    padding: 28px;
  }

  #perche-nb h2 {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .footer-premium {
    padding: 64px 0 34px;
  }

  .footer-hero,
  .footer-grid {
    padding: 24px;
    border-radius: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  #perche-nb {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  #perche-nb .section-head {
    padding: 22px;
    border-radius: 28px;
  }

  #perche-nb h2 {
    font-size: clamp(2.05rem, 11vw, 3.05rem);
    letter-spacing: -0.08em;
  }

  #perche-nb .match-item {
    min-height: auto;
    padding: 24px;
    border-radius: 26px;
  }
  #faq {
    padding-top: 72px;
    padding-bottom: 78px;
  }

  #faq .section-head {
    margin-bottom: 30px;
  }

  #faq .match-box {
    gap: 16px;
    margin-bottom: 28px;
  }

  #faq .match-item {
    min-height: auto;
    padding: 24px;
  }

  #faq .section-spacer {
    height: 30px;
  }

  #faq .mini-cta {
    padding: 42px 22px;
    border-radius: 30px;
  }
  #servizi {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  #servizi .section-head {
    margin-bottom: 34px;
  }

  #servizi .grid-3 {
    gap: 18px;
    margin-bottom: 24px;
  }

  #servizi .card {
    min-height: auto;
    padding: 26px;
    border-radius: 28px;
  }

  #servizi .section-spacer {
    height: 24px;
  }

  #servizi .stack-cloud {
    padding: 20px;
    border-radius: 28px;
  }
}

@media (min-width: 1500px) {
  :root { --container: 1720px; }
  .container { width: min(100% - 120px, var(--container)); }
  .hero { padding: 104px 0 92px; }
  h1 { font-size: 7.45rem; }
  .hero-grid { gap: 92px; }
  .project { gap: 42px; }
  .card { min-height: 260px; }
}

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 760px; }
  h1 { font-size: clamp(3.15rem, 8.5vw, 5.7rem); }
  .hero-copy { max-width: 850px; }
}

@media (max-width: 980px) {
  .hero-grid,
  .project,
  .project:nth-child(even),
  .match-box {
    grid-template-columns: 1fr;
  }

  .project:nth-child(even) .project-visual { order: 0; }
  .grid-3,
  .quick-stats { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .menu-toggle { display: inline-grid; }

  .nav-links {
    position: fixed;
    left: 24px;
    right: 24px;
    top: 76px;
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
      radial-gradient(circle at top right, rgba(246, 183, 60, 0.12), transparent 38%),
      rgba(7, 7, 10, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  body.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 14px;
    border: 1px solid rgba(244, 241, 232, 0.08);
    border-radius: 16px;
    background: rgba(244, 241, 232, 0.045);
    color: var(--text);
  }

  .nav-links a::after { display: none; }

  .nav-links a.is-active,
  .nav-links a:hover {
    border-color: rgba(246, 183, 60, 0.24);
    background: rgba(246, 183, 60, 0.075);
  }

  .project-content { padding: 6px 4px 2px; }
  .project-visual { min-height: 285px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 30px, 100%); }
  .hero-grid { gap: 34px; }
  .nav-inner { min-height: 68px; }
  .brand { font-size: 0.95rem; }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; border-radius: 14px; }
  .nav-cta { display: none; }
  .nav-links { left: 15px; right: 15px; top: 70px; }
  .hero { padding: 56px 0 46px; }
  .eyebrow { max-width: 100%; flex-wrap: wrap; border-radius: 18px; line-height: 1.35; }
  h1 { font-size: clamp(2.75rem, 16vw, 4.35rem); letter-spacing: -0.085em; }
  h2 { font-size: clamp(2.05rem, 10.5vw, 3.05rem); }
  .hero-copy { font-size: 1rem; line-height: 1.68; }
  .hero-actions { align-items: stretch; }
  .btn { width: 100%; min-height: 50px; }
  .hero-card { padding: 20px; border-radius: 28px; }
  .profile-top,
  .project-meta,
  .timeline-item { grid-template-columns: 1fr; }
  .profile-top { align-items: flex-start; flex-direction: column; }
  .availability { white-space: normal; }
  .code { font-size: 0.78rem; line-height: 1.7; padding: 16px; }
  .card,
  .match-item,
  .timeline-item { padding: 22px; border-radius: 24px; }
  .timeline-item { display: block; }
  .timeline-date { margin-bottom: 14px; }
  .project { padding: 14px; border-radius: 26px; }
  .project-visual { min-height: 245px; padding: 16px; }
  .project-label { border-radius: 15px; line-height: 1.35; }
  .stack-cloud { padding: 16px; }
  .tag { min-height: 36px; font-size: 0.82rem; }
  .section-head { gap: 16px; }
  section { padding: 56px 0; }
  .cta { padding: 34px 20px; border-radius: 30px; }
  footer { padding-bottom: 34px; line-height: 1.6; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; border-radius: 26px; }
  .cookie-banner{

    width:calc(100% - 20px);

    bottom:12px;

}

.cookie-content{

    flex-direction:column;

    align-items:stretch;

    padding:18px;

}

.cookie-buttons{

    display:grid;

    grid-template-columns:1fr;

}
}

@media (max-width: 420px) {
  .container { width: min(100% - 24px, 100%); }
  h1 { font-size: 2.55rem; }
  h2 { font-size: 2rem; }
  .brand span:last-child { display: none; }
  .hero-copy,
  .section-description,
  .card p,
  .match-item p,
  .timeline-content p,
  .project-content p { font-size: 0.96rem; }
  .mock-cards { grid-template-columns: 1fr; }
  .contact-form { padding: 18px; }
  .form-group input,
  .form-group select,
  .form-group textarea { border-radius: 16px; }

  #perche-nb .section-head {
    padding: 18px;
  }

  #perche-nb .match-item h3 {
    font-size: 1.12rem;
  }
}

@media (pointer: coarse) {
  .card::before,
  .match-item::before,
  .project::before,
  .hero::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .js-ready section,
  .js-ready .hero-card,
  .js-ready .stat,
  .js-ready .card,
  .js-ready .project,
  .js-ready .match-item,
  .js-ready .timeline-item,
  .js-ready .cta {
    opacity: 1 !important;
    transform: none !important;
  }
  #faq .mini-cta h2 {
    font-size: 2.05rem;
  }
  #servizi .card {
    padding: 22px;
  }

  #servizi .tag {
    min-height: 38px;
    padding-inline: 14px;
  }
}
