/* Home hardcoded — dark tech / product, svincolata dalle zone moduli */

.page-home {
  --hp-glass: rgba(14, 18, 26, 0.42);
  --hp-glass-strong: rgba(10, 14, 22, 0.58);
  --hp-glass-border: rgba(255, 255, 255, 0.1);
  --hp-glass-highlight: rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(1200px 640px at 12% -8%, rgba(61, 214, 198, 0.14), transparent 58%),
    radial-gradient(900px 520px at 92% 8%, rgba(122, 162, 255, 0.1), transparent 52%),
    #07090d;
}

.hp {
  display: block;
}

.hp-kicker {
  margin: 0 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hp-kicker--glow {
  color: #9ff7ee;
  text-shadow: 0 0 18px rgba(61, 214, 198, 0.35);
}

.hp-section {
  padding: 5.5rem 0 4.5rem;
}

.hp-section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.hp-section-head h2,
.hp-feature-copy h2,
.hp-close h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hp-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 46ch;
}

.hp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hp-section-foot {
  margin: 1.75rem 0 0;
}

.hp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.88rem 1.5rem;
  border-radius: 1.15rem;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  color: #f4f7fb;
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  transition: transform 0.2s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.hp-btn-label {
  position: relative;
  z-index: 2;
}

.hp-btn::before,
.hp-btn::after {
  content: "";
  position: absolute;
  z-index: 1;
  height: 1px;
  border-radius: 999px;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-btn::before {
  left: 10%;
  right: 10%;
  top: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85) 50%, transparent);
}

.hp-btn::after {
  left: 16%;
  right: 16%;
  bottom: 3px;
  opacity: 0.7;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 50%, transparent);
}

.hp-btn--primary {
  color: #e8fffb;
  background:
    radial-gradient(62% 62% at 28% -12%, rgba(255, 255, 255, 0.16), transparent 70%) padding-box,
    linear-gradient(180deg, rgba(6, 28, 28, 0.94), rgba(3, 14, 16, 0.98)) padding-box,
    linear-gradient(135deg, #d8fff8 0%, #3dd6c6 14%, #1a8f86 32%, #7cf0e4 48%, #0e5c56 64%, #2ec4b6 82%, #e8fffb 100%) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -3px 0 rgba(0, 0, 0, 0.42),
    0 0 18px rgba(61, 214, 198, 0.22),
    0 2.77px 2.21px rgba(0, 0, 0, 0.12),
    0 6.65px 5.32px rgba(0, 0, 0, 0.13),
    0 12.52px 10.02px rgba(0, 0, 0, 0.14),
    0 22px 18px rgba(0, 0, 0, 0.16),
    0 40px 32px rgba(0, 0, 0, 0.18);
}

.hp-btn--ghost {
  color: #f2f5f8;
  background:
    radial-gradient(62% 62% at 28% -12%, rgba(255, 255, 255, 0.12), transparent 70%) padding-box,
    linear-gradient(180deg, rgba(10, 16, 24, 0.92), rgba(6, 10, 16, 0.96)) padding-box,
    linear-gradient(135deg, #ffffff 0%, #c5ccd4 16%, #8b949e 34%, #eef2f6 50%, #6a737c 68%, #dbe1e8 86%, #ffffff 100%) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -3px 0 rgba(0, 0, 0, 0.38),
    0 0 14px rgba(200, 210, 220, 0.14),
    0 6px 20px rgba(0, 0, 0, 0.3);
}

.hp-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.hp-btn:hover::before { transform: translateX(22%); }
.hp-btn:hover::after { transform: translateX(-18%); }

.hp-btn--primary:hover {
  color: #e8fffb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -3px 0 rgba(0, 0, 0, 0.4),
    0 0 24px rgba(61, 214, 198, 0.32),
    0 8px 24px rgba(0, 0, 0, 0.28),
    0 28px 44px rgba(0, 0, 0, 0.22);
}

.hp-btn--ghost:hover {
  color: #f2f5f8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -3px 0 rgba(0, 0, 0, 0.36),
    0 0 18px rgba(200, 210, 220, 0.22),
    0 10px 26px rgba(0, 0, 0, 0.32);
}

.hp-btn:active {
  transform: translateY(1px);
  filter: brightness(0.97);
}

/* Hero */
.hp-hero {
  position: relative;
  isolation: isolate;
  min-height: min(100vh, 960px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hp-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #05070a;
}

.hp-hero-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hp-hero[data-hero-variant="video"] .hp-hero-layer--video,
.hp-hero[data-hero-variant="mesh"] .hp-hero-layer--mesh,
.hp-hero[data-hero-variant="grid"] .hp-hero-layer--grid,
html[data-hero-variant="video"] .hp-hero-layer--video,
html[data-hero-variant="mesh"] .hp-hero-layer--mesh,
html[data-hero-variant="grid"] .hp-hero-layer--grid {
  opacity: 1;
}

.hp-hero-layer--video {
  background: #05070a url("/img/hero-dev74-base.jpg") center / cover no-repeat;
}

.hp-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.05);
}

.hp-hero-layer--mesh {
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(61, 214, 198, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(122, 162, 255, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(46, 196, 182, 0.14), transparent 55%),
    linear-gradient(165deg, #060a10 0%, #0a1218 38%, #071018 72%, #05080d 100%);
}

.hp-hero-layer--grid {
  background:
    radial-gradient(ellipse 55% 45% at 72% 28%, rgba(61, 214, 198, 0.2), transparent 58%),
    radial-gradient(ellipse 45% 40% at 18% 72%, rgba(122, 162, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #07090d 0%, #0b1018 50%, #06080c 100%);
}

.hp-hero-layer--grid::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: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 20%, transparent 75%);
}

.hp-hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hp-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: hp-orb-drift 18s ease-in-out infinite alternate;
}

.hp-hero-orb--a {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: 8%;
  right: 12%;
  background: rgba(61, 214, 198, 0.35);
}

.hp-hero-orb--b {
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  bottom: 12%;
  left: 6%;
  background: rgba(122, 162, 255, 0.28);
  animation-delay: -6s;
}

.hp-hero-orb--c {
  width: min(28vw, 280px);
  height: min(28vw, 280px);
  top: 42%;
  left: 38%;
  background: rgba(46, 196, 182, 0.2);
  animation-delay: -12s;
}

@keyframes hp-orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, -18px) scale(1.08); }
}

.hp-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 68%);
}

.hp-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.72) 0%, rgba(7, 9, 13, 0.32) 50%, rgba(7, 9, 13, 0.2) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.35) 0%, rgba(7, 9, 13, 0.12) 45%, rgba(7, 9, 13, 0.55) 100%);
}

.hp-hero-inner {
  position: relative;
  z-index: 3;
  padding: 5.5rem 0 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(72vh, 720px);
}

.hp-hero-logo {
  width: 1.55rem;
  height: 1.55rem;
}

.hp-hero-title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: #fff;
}

.hp-hero-lead {
  margin: 1.25rem 0 2rem;
  max-width: 38ch;
  font-size: 1.12rem;
  line-height: 1.55;
  color: rgba(232, 238, 246, 0.86);
}

/* Stats */
.hp-stats {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
}

.hp-stats-grid {
  list-style: none;
  margin: 0;
  padding: 1.15rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border: 1px solid var(--hp-glass-border);
  border-radius: 22px;
  background:
    linear-gradient(135deg, var(--hp-glass-highlight), transparent 42%),
    var(--hp-glass);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hp-stats-grid li {
  padding: 0.35rem 0.75rem;
}

.hp-stats-grid strong {
  display: block;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.hp-stats-grid span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Cards / bento */
.hp-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.hp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1.45rem 1.35rem 1.3rem;
  border-radius: 20px;
  border: 1px solid var(--hp-glass-border);
  background:
    linear-gradient(145deg, var(--hp-glass-highlight), transparent 48%),
    var(--hp-glass);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.hp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 180px at 0% 0%, rgba(61, 214, 198, 0.16), transparent 58%);
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: -1;
}

.hp-card:hover {
  color: inherit;
  transform: translateY(-8px);
  border-color: rgba(61, 214, 198, 0.42);
  background:
    linear-gradient(145deg, rgba(61, 214, 198, 0.1), transparent 52%),
    rgba(14, 20, 28, 0.52);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(61, 214, 198, 0.12),
    0 18px 40px rgba(61, 214, 198, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hp-card:hover::before { opacity: 1; }

.hp-card-icon {
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(61, 214, 198, 0.08);
  border: 1px solid rgba(61, 214, 198, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.28s ease, background 0.28s ease;
}

.hp-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hp-card:hover .hp-card-icon {
  transform: scale(1.08);
  background: rgba(61, 214, 198, 0.18);
}

.hp-card h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hp-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.hp-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.hp-card-link::after {
  content: "→";
  transition: transform 0.22s ease;
}

.hp-card:hover .hp-card-link::after {
  transform: translateX(5px);
}

.hp-card--wide {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.25rem;
}

.hp-card--wide p { flex: none; }

@media (min-width: 860px) {
  .hp-bento {
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.1rem;
  }
  .hp-card--lg {
    grid-row: span 2;
    min-height: 100%;
    padding: 1.85rem 1.6rem;
    justify-content: flex-end;
  }
  .hp-card--lg h3 { font-size: 1.55rem; }
  .hp-card--lg .hp-card-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: auto;
  }
  .hp-card--wide {
    grid-column: 2 / -1;
  }
}

/* Feature */
.hp-feature {
  padding-top: 2rem;
}

.hp-feature-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--hp-glass-border);
  background:
    radial-gradient(700px 260px at 100% 0%, rgba(122, 162, 255, 0.12), transparent 55%),
    linear-gradient(145deg, var(--hp-glass-highlight), transparent 40%),
    var(--hp-glass-strong);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hp-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.hp-feature-list li {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.hp-feature-list li:hover {
  transform: translateX(6px);
  border-color: rgba(61, 214, 198, 0.35);
  background: rgba(61, 214, 198, 0.08);
}

.hp-feature-copy .hp-btn { margin-top: 1.5rem; }

@media (min-width: 900px) {
  .hp-feature-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding: 2.6rem 2.4rem;
    gap: 2.5rem;
  }
}

/* Cases */
.hp-cases {
  display: grid;
  gap: 1rem;
}

.hp-case {
  position: relative;
  padding: 1.45rem 1.3rem 1.4rem;
  border-radius: 20px;
  border: 1px solid var(--hp-glass-border);
  background:
    linear-gradient(145deg, var(--hp-glass-highlight), transparent 45%),
    var(--hp-glass);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  overflow: hidden;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.hp-case::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(122, 162, 255, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.hp-case:hover {
  transform: translateY(-7px);
  border-color: rgba(122, 162, 255, 0.38);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.hp-case:hover::after { opacity: 1; }

.hp-case-index {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.hp-case-meta {
  margin: 0 0 0.4rem;
  color: var(--accent-2);
  font-size: 0.82rem;
}

.hp-case h3 {
  margin: 0 0 0.55rem;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.hp-case p:last-child {
  margin: 0;
  color: var(--muted);
}

.hp-case--featured {
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(61, 214, 198, 0.14), transparent 60%),
    linear-gradient(145deg, rgba(61, 214, 198, 0.08), transparent 50%),
    var(--hp-glass-strong);
}

@media (min-width: 860px) {
  .hp-cases {
    grid-template-columns: 1.25fr 1fr 1fr;
  }
  .hp-case--featured h3 { font-size: 1.45rem; }
}

/* Close */
.hp-close {
  padding: 5rem 0 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(800px 280px at 15% 0%, rgba(61, 214, 198, 0.16), transparent 55%),
    radial-gradient(700px 240px at 90% 100%, rgba(122, 162, 255, 0.1), transparent 50%);
}

.hp-close .hp-lead { margin-bottom: 1.6rem; }

.page-home .zone-footer { margin-top: 0; }

@media (max-width: 720px) {
  .hp-hero { min-height: min(92vh, 760px); }
  .hp-hero-inner {
    padding: 4.5rem 0 4rem;
    min-height: min(68vh, 620px);
  }
  .hp-hero-media { background-position: 64% center; }
  .hp-hero-layer--video .hp-hero-video { object-position: 64% center; }
  .hp-hero-media::after {
    background: linear-gradient(180deg, rgba(7, 9, 13, 0.4) 0%, rgba(7, 9, 13, 0.5) 48%, rgba(7, 9, 13, 0.75) 100%);
  }
  .hp-hero-orb { opacity: 0.38; }
  .hp-stats { margin-top: -1.25rem; }
  .hp-stats-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .hp-card--wide {
    grid-template-columns: 1fr;
  }
  .hp-section { padding: 3.5rem 0 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-card,
  .hp-case,
  .hp-btn,
  .hp-btn::before,
  .hp-btn::after,
  .hp-feature-list li,
  .hp-card-icon,
  .hp-card-link::after,
  .hp-hero-layer,
  .hp-hero-orb {
    transition: none;
    animation: none;
  }
  .hp-card:hover,
  .hp-case:hover,
  .hp-btn:hover,
  .hp-btn:active,
  .hp-feature-list li:hover {
    transform: none;
    filter: none;
  }
  .hp-btn:hover::before,
  .hp-btn:hover::after {
    transform: none;
  }
}
