:root {
  --bg: #05070d;
  --bg-soft: #0a1020;
  --card: #0d1324;

  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(56, 189, 248, 0.32);

  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;

  --accent: #38bdf8;
  --accent-light: #67e8f9;
  --accent-soft: rgba(56, 189, 248, 0.1);

  --success: #22c55e;

  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "Fira Code", monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --container: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  background:
          radial-gradient(circle at 20% 0%, rgba(56,189,248,0.14), transparent 30rem),
          linear-gradient(180deg, #05070d 0%, #070b16 55%, #05070d 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 7, 13, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background .25s ease, border-color .25s ease;
}

.site-header::before {
  content: "";
  position: fixed;
  top: -120px;
  left: 0;
  right: 0;
  height: 120px;
  background: rgba(5, 7, 13, 0.98);
  pointer-events: none;
}

.site-header.scrolled {
  background: rgba(5, 7, 13, 0.92);
  border-color: var(--line);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
  margin-left: 4px;
}

.desktop-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color .2s ease;
}

.desktop-nav a:hover {
  color: var(--accent-light);
}

.header-cta {
  border: 1px solid var(--line-strong);
  padding: 10px 17px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  background: rgba(56,189,248,0.06);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.header-cta:hover {
  background: var(--accent-soft);
  color: var(--accent-light);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
  margin: 5px auto;
  transition: transform .25s ease;
}

.menu-toggle.open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle.open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* TYPOGRAPHY */

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  max-width: 760px;
}

h3 {
  font-size: 1.4rem;
}

/* HERO */

.hero {
  position: relative;
  padding: 150px 0 105px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
          linear-gradient(rgba(56,189,248,0.055) 1px, transparent 1px),
          linear-gradient(90deg, rgba(56,189,248,0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 48% 28%, black, transparent 72%);
  opacity: .45;
}



.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #020617;
  box-shadow: 0 18px 44px rgba(56,189,248,.22);
}

.btn-primary:hover {
  box-shadow: 0 24px 60px rgba(56,189,248,.32);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.btn-secondary:hover {
  background: rgba(56,189,248,0.08);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* HERO TRUST PANEL */

.mini-label {
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 24px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* SECTIONS */

.section {
  padding: clamp(76px, 8vw, 112px) 0;
}

.soft-section {
  background: rgba(255,255,255,0.025);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* SEO INTRO */

.seo-intro {
  background:
    radial-gradient(circle at 50% 0%, rgba(56,189,248,0.08), transparent 30rem),
    rgba(255,255,255,0.018);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2,
.section-head p {
  margin-inline: auto;
}

.section-head p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 16px;
}

/* CARDS */

.service-card,
.method-card,
.example-card,
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13,19,36,0.68);
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  padding: 32px;
  min-height: 230px;
}

.service-number,
.method-card span {
  display: inline-block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.76rem;
  margin-bottom: 22px;
}

.service-card h3 {
  margin-bottom: 14px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* METHOD */

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.method-card {
  padding: 28px;
}

.method-card h3 {
  margin-bottom: 12px;
}

.method-card p {
  color: var(--muted);
  line-height: 1.65;
}

/* EXAMPLES */

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.example-card {
  padding: 30px;
  min-height: 200px;
}

.example-card h3 {
  margin-bottom: 12px;
}

.example-card p {
  color: var(--muted);
  line-height: 1.65;
}

/* PRICING */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.price-card {
  position: relative;
  padding: 32px;
}

.price-card.featured {
  border-color: var(--line-strong);
  background:
          linear-gradient(180deg, rgba(56,189,248,.1), transparent 50%),
          rgba(13,19,36,0.78);
}

.badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #020617;
  border-radius: 999px;
  padding: 5px 11px;
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
}

.price-name {
  font-family: var(--mono);
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  margin-bottom: 16px;
}

.price-card h3 {
  font-size: 2.1rem;
  margin-bottom: 16px;
}

.price-card p:not(.price-name):not(.badge) {
  color: var(--muted);
  line-height: 1.65;
}

.small-note {
  max-width: 620px;
  margin: 28px auto 0;
  text-align: center;
}

.small-note p {
  color: var(--muted);
}

/* FINAL CTA */

.final-cta {
  padding: clamp(84px, 10vw, 130px) 0;
  background:
          radial-gradient(circle at 50% 100%, rgba(56,189,248,.12), transparent 32rem),
          var(--bg-soft);
  text-align: center;
  border-top: 1px solid var(--line);
}

.final-cta-inner {
  max-width: 760px;
}

.final-cta h2 {
  margin-inline: auto;
}

.final-cta p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  margin: 22px auto 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.final-note {
  display: block;
  margin-top: 24px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: .78rem;
}

/* FOOTER */

.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  background: #03050b;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-center {
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-center p {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
}

.footer-right a {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.78rem;
  transition: color .2s ease;
}

.footer-right a:hover {
  color: var(--accent);
}

/* IUBENDA FOOTER LINKS */

.footer .iubenda-embed,
.footer .iubenda-black,
.footer .legal-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 9px 16px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: rgba(56, 189, 248, 0.06) !important;
  background-image: none !important;
  color: var(--muted) !important;
  font-family: var(--mono) !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.footer .iubenda-embed::before,
.footer .iubenda-black::before,
.footer .legal-link::before {
  display: none !important;
  content: none !important;
}

.footer .iubenda-embed:hover,
.footer .iubenda-black:hover,
.footer .legal-link:hover {
  border-color: var(--accent) !important;
  background: rgba(56, 189, 248, 0.1) !important;
  color: var(--accent-light) !important;
}

/* ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

/* RESPONSIVE */

@media (max-width: 980px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    display: none;
    background: rgba(5,7,13,.98);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 22px;
  }

  .mobile-nav.open {
    display: grid;
  }

  .mobile-nav a {
    padding: 13px 0;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
  }

  .mobile-cta {
    color: var(--accent) !important;
    border-bottom: 0 !important;
  }


  .services-grid,
  .method-grid,
  .examples-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 740px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    height: 68px;
  }

  .hero {
    padding: 118px 0 78px;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-text {
    font-size: 1.03rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .services-grid,
  .method-grid,
  .examples-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .method-card,
  .example-card,
  .price-card {
    padding: 26px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    justify-content: center;
  }
}

.iub__us-widget{
  display: none !important;
}

.footer-legal-compact {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #9fb7d9;
  background:
    linear-gradient(180deg, rgba(22, 39, 64, 0.72), rgba(8, 16, 30, 0.82));
  border: 1px solid rgba(120, 170, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 12px 28px rgba(0,0,0,0.18);

  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.legal-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-icon:hover {
  transform: translateY(-2px);
  color: #e8f2ff;
  border-color: rgba(80, 170, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(31, 57, 92, 0.86), rgba(10, 21, 39, 0.94));
}

.legal-icon span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  font-family: "Space Grotesk", sans-serif;
  padding: 7px 11px;
  border-radius: 999px;
  white-space: nowrap;

  font-size: 12px;
  font-weight: 500;
  color: #dbeafe;
  background: rgba(8, 18, 32, 0.96);
  border: 1px solid rgba(120, 170, 255, 0.24);
  box-shadow: 0 12px 30px rgba(0,0,0,0.32);

  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.legal-icon:hover span {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.preferences-cookie::after {
  content: "Preferenze Cookie";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);

  padding: 7px 11px;
  border-radius: 999px;
  white-space: nowrap;

  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;

  color: #dbeafe;
  background: rgba(8, 18, 32, 0.96);
  border: 1px solid rgba(120, 170, 255, 0.24);
  box-shadow: 0 12px 30px rgba(0,0,0,0.32);

  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 20;
}

.preferences-cookie:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* HERO FULL WIDTH */

.hero-content-full {
  position: relative;
  z-index: 1;
}

.hero-content-full .hero-copy {
  max-width: 880px;
}

.hero-content-full h1 {
  max-width: 920px;
}

.hero-content-full .hero-text {
  max-width: 760px;
}

/* HERO STATS */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 58px;
}

.hero-stat {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(56,189,248,.07), transparent 60%),
    rgba(13,19,36,0.64);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.hero-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.16), transparent 16rem);
  opacity: 0;
  transition: opacity .25s ease;
}

.hero-stat:hover::before {
  opacity: 1;
}

.hero-stat strong {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--accent);
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.06em;
  margin-bottom: 16px;
}

.hero-stat span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 280px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .hero-stat {
    padding: 24px;
  }
}

.hero {
  position: relative;
  padding: 150px 0 105px;
  overflow: hidden;
}

.hero-content-full {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-content-full .hero-copy {
  max-width: 1040px;
  margin: 0 auto;
}

.hero-content-full h1 {
  max-width: 1040px;
  margin: 0 auto;
}

.hero-text {
  max-width: 820px;
  margin: 24px auto 0;
  text-align: center;
}

.hero-actions {
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 58px;
}

.hero-stat {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(56,189,248,.07), transparent 60%),
    rgba(13,19,36,0.64);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.hero-stat strong {
  display: block;
  color: var(--accent);
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.06em;
  margin-bottom: 16px;
}

.hero-stat span {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
}

/* MOBILE FIX */

@media (max-width: 740px) {
  .hero {
    padding: 118px 0 72px;
  }

  .hero-content-full {
    width: min(100% - 28px, var(--container));
  }

  .hero-content-full h1 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
    line-height: 1.05;
    max-width: 100%;
  }

  .hero-text {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 38px;
  }

  .hero-stat {
    padding: 22px;
  }

  .hero-stat strong {
    font-size: 3.3rem;
    margin-bottom: 10px;
  }

  .hero-stat span {
    font-size: 1rem;
  }
}

/* SEO INTRO */

.seo-intro {
  background:
    radial-gradient(circle at 50% 0%, rgba(56,189,248,0.08), transparent 30rem),
    rgba(255,255,255,0.018);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.faq-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13,19,36,0.68);
}

.faq-card h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.faq-card p {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 740px) {

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-card {
    padding: 26px;
  }
}

/* CURSOR IT GLOW EFFECT */

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(56,189,248,0.18), rgba(56,189,248,0.06) 38%, transparent 68%);
  filter: blur(8px);
  transition: opacity 0.25s ease;
}

body:hover .cursor-glow {
  opacity: 1;
}

@media (max-width: 740px) {
  .cursor-glow {
    display: none;
  }
}

@media (max-width: 740px) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-bg {
    opacity: 0.22;
    background-size: 96px 96px;
  }

  .hero-stat,
  .service-card,
  .method-card,
  .example-card,
  .price-card,
  .faq-card {
    box-shadow: none;
  }
}