:root {
  --bg: #f7f9ff;
  --bg-soft: #eef4ff;
  --surface: #ffffff;
  --surface-2: #f9fbff;
  --line: #dbe5ff;
  --text: #14213d;
  --muted: #5d6b8a;
  --primary: #4f7cff;
  --secondary: #18c8ff;
  --accent: #ff62b8;
  --gold: #ffb648;
  --green: #23c483;
  --shadow: 0 18px 45px rgba(91, 118, 179, 0.16);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79,124,255,.12), transparent 24%),
    radial-gradient(circle at 85% 8%, rgba(24,200,255,.12), transparent 18%),
    linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
  position: relative;
  background: rgba(255,255,255,0.40);
}

.section-soft {
  background: linear-gradient(
    180deg,
    rgba(225,236,255,.82) 0%,
    rgba(239,245,255,.92) 100%
  );
  border-top: 1px solid rgba(79,124,255,.10);
  border-bottom: 1px solid rgba(79,124,255,.10);
}

.section-divider::after,
.hero-section-divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 110px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(79,124,255,0.05));
  pointer-events: none;
}

.hero.section {
  background: transparent;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(79,124,255,.12);
  box-shadow: 0 4px 18px rgba(20, 33, 61, 0.04);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: -14px;
  flex-shrink: 0;
}

.brand-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
}

.site-nav a {
  font-weight: 500;
  transition: color .25s ease;
}

.site-nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

/* TESTO COLORATO */

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* BOTTONI */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 16px 32px rgba(79,124,255,.22);
}

.btn-secondary {
  color: var(--primary);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(79,124,255,.18);
}

.btn-full {
  width: 100%;
  border: 0;
  cursor: pointer;
}

/* HERO */

.hero {
  padding-top: 74px;
}

.hero-grid,
.about-grid,
.bespoke-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 36px;
  align-items: center;
}

.tag,
.eyebrow,
.mini-pill,
.status {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.tag,
.eyebrow,
.mini-pill {
  color: var(--primary);
  background: rgba(79,124,255,.09);
  border: 1px solid rgba(79,124,255,.14);
}

.status {
  color: var(--green);
  background: rgba(35,196,131,.12);
  border: 1px solid rgba(35,196,131,.18);
}

.hero h1,
.section-heading h2,
.contact-card h2 {
  margin: 18px 0;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-text,
.section-heading p,
.info-card p,
.contact-card p,
.showcase-card p,
.lead-text,
.site-footer p,
.form-kicker {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 34px;
}

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

.stat-card,
.showcase-card,
.info-card,
.service-card,
.bespoke-box,
.contact-card,
.contact-form {
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(79,124,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.visual-card {
  position: relative;
  overflow: hidden;
}

.stat-card {
  padding: 20px;
}

.stat-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: .96rem;
}

.showcase-card {
  padding: 30px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,98,184,.12), transparent 20%),
    radial-gradient(circle at 10% 100%, rgba(24,200,255,.12), transparent 24%),
    #ffffff;
}

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

/* BROWSER VISUAL */

.browser-visual {
  border: 1px solid rgba(79,124,255,.12);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 30px rgba(79,124,255,.12);
  margin-bottom: 24px;
}

.browser-top {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #eef4ff;
  border-bottom: 1px solid rgba(79,124,255,.10);
}

.browser-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-top span:nth-child(1) { background: #ff8a8a; }
.browser-top span:nth-child(2) { background: #ffd36b; }
.browser-top span:nth-child(3) { background: #63d89a; }

.browser-body {
  display: grid;
  grid-template-columns: 90px 1fr;
  min-height: 230px;
}

.browser-sidebar {
  padding: 18px 12px;
  background: #f7faff;
  border-right: 1px solid rgba(79,124,255,.08);
}

.sidebar-line {
  height: 10px;
  border-radius: 999px;
  background: #dbe5ff;
  margin-bottom: 12px;
}

.sidebar-line.big {
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.sidebar-line.short {
  width: 68%;
}

.browser-content {
  padding: 18px;
}

.content-hero {
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79,124,255,.18), rgba(24,200,255,.14), rgba(255,98,184,.16));
  margin-bottom: 14px;
}

.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.content-card {
  height: 72px;
  border-radius: 18px;
  background: #edf3ff;
}

.content-card.alt {
  background: #fff1f8;
}

.content-bar {
  height: 12px;
  border-radius: 999px;
  width: 74%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* ABOUT */

.about-cards,
.services-grid {
  display: grid;
  gap: 18px;
}

.about-cards {
  grid-template-columns: 1fr 1fr;
}

.info-card,
.service-card,
.bespoke-box,
.contact-card,
.contact-form {
  padding: 26px;
}

.info-card h3,
.service-card h3,
.bespoke-box h3 {
  margin: 0 0 10px;
}

.soft-blue {
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
}

.soft-pink {
  background: linear-gradient(180deg, #ffffff, #fff5fb);
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.icon-badge.blue {
  background: #edf2ff;
}

.icon-badge.pink {
  background: #fff0f8;
}

.mini-icon {
  position: relative;
  display: block;
}

.mini-icon.screen {
  width: 24px;
  height: 18px;
  border: 2px solid #3862ee;
  border-radius: 4px;
}

.mini-icon.screen::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  width: 12px;
  height: 2px;
  background: #3862ee;
  border-radius: 999px;
}

.mini-icon.palette {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(#ff62b8, #ffb648, #18c8ff, #4f7cff, #ff62b8);
}

/* SERVICES */

.section-heading.narrow {
  max-width: 760px;
  margin-inline: auto;
}

.center {
  text-align: center;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}

.tone-1 .service-icon { background: #edf2ff; color: #3862ee; }
.tone-2 .service-icon { background: #eaf9ff; color: #109ec8; }
.tone-3 .service-icon { background: #fff0f8; color: #d84f96; }
.tone-4 .service-icon { background: #fff6e8; color: #e5941c; }
.tone-5 .service-icon { background: #ebfff6; color: #13a66f; }
.tone-6 .service-icon { background: #f1ecff; color: #7b58e7; }

.visual-service-icon {
  position: relative;
  overflow: hidden;
}

.visual-service-icon span {
  position: relative;
  display: block;
}

.service-web span,
.service-custom span,
.service-landing span,
.service-ads span,
.service-social span,
.service-brand span {
  width: 24px;
  height: 24px;
}

/* icone semplici */

.service-web span::before,
.service-web span::after,
.service-custom span::before,
.service-custom span::after,
.service-landing span::before,
.service-landing span::after,
.service-ads span::before,
.service-ads span::after,
.service-social span::before,
.service-social span::after,
.service-brand span::before,
.service-brand span::after {
  content: "";
  position: absolute;
}

.service-web span::before {
  inset: 3px 1px 6px 1px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.service-web span::after {
  width: 10px;
  height: 2px;
  background: currentColor;
  left: 7px;
  bottom: 0;
  border-radius: 999px;
}

.service-custom span::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  left: 3px;
  top: 3px;
}

.service-custom span::after {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  left: 8px;
  top: 8px;
}

.service-landing span::before {
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.service-landing span::after {
  width: 12px;
  height: 2px;
  background: currentColor;
  left: 6px;
  top: 11px;
  border-radius: 999px;
}

.service-ads span::before {
  width: 6px;
  height: 18px;
  background: currentColor;
  left: 2px;
  bottom: 2px;
  border-radius: 999px;
}

.service-ads span::after {
  width: 16px;
  height: 16px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  right: 2px;
  top: 3px;
  transform: rotate(45deg);
}

.service-social span::before {
  width: 20px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 10px;
  left: 2px;
  top: 5px;
}

.service-social span::after {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  left: 9px;
  top: 9px;
}

.service-brand span::before {
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  border: 2px solid currentColor;
  left: 4px;
  top: 4px;
  border-radius: 4px;
}

.service-brand span::after {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  right: 2px;
  bottom: 2px;
}

/* SU MISURA */

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}

.ui-visual {
  position: relative;
  margin-bottom: 24px;
  padding-top: 10px;
}

.ui-window {
  border: 1px solid rgba(79,124,255,.12);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 32px rgba(79,124,255,.10);
}

.ui-top {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #eef4ff;
}

.ui-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b9cfff;
}

.ui-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
  padding: 16px;
}

.ui-block {
  min-height: 70px;
  border-radius: 18px;
  background: #eef3ff;
}

.ui-block.big {
  min-height: 150px;
  grid-row: span 2;
  background: linear-gradient(135deg, rgba(79,124,255,.18), rgba(24,200,255,.12));
}

.ui-block.alt {
  background: #fff1f8;
}

.floating-tag {
  position: absolute;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid rgba(79,124,255,.12);
}

.tag-1 {
  top: -2px;
  right: 18px;
  color: var(--primary);
}

.tag-2 {
  bottom: 18px;
  left: -8px;
  color: var(--accent);
}

.tag-3 {
  bottom: -8px;
  right: 34px;
  color: var(--green);
}

/* CONTATTI */

.contact-section {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.40) 0%,
    rgba(229,238,255,.48) 100%
  );
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-item {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.contact-item small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-item strong {
  font-size: 1.02rem;
}

.contact-form-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-icon-visual {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(79,124,255,.18), rgba(24,200,255,.16));
  position: relative;
}

.contact-icon-visual::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 16px;
  border: 2px solid #3862ee;
  border-radius: 4px;
  left: 13px;
  top: 15px;
}

.contact-icon-visual::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  background: #3862ee;
  left: 18px;
  top: 23px;
  transform: rotate(-25deg);
  border-radius: 999px;
}

.form-kicker {
  margin: 0;
  font-weight: 600;
}

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

.field {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(79,124,255,.4);
  box-shadow: 0 0 0 4px rgba(79,124,255,.08);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* FOOTER */

.site-footer {
  padding: 28px 0 42px;
  border-top: 1px solid rgba(79,124,255,.12);
  background: rgba(255,255,255,.6);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

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

.footer-logo {
  height: 56px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

/* ANIMAZIONI */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .bespoke-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .desktop-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .services-grid,
  .hero-stats,
  .about-cards,
  .field-row {
    grid-template-columns: 1fr;
  }

  .brand {
    margin-left: -6px;
  }

  .brand-logo {
    height: 58px;
  }

  .browser-body {
    grid-template-columns: 1fr;
  }

  .browser-sidebar {
    display: none;
  }

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

  .ui-block.big {
    grid-row: auto;
    min-height: 110px;
  }

  .floating-tag {
    position: static;
    display: inline-flex;
    margin-top: 10px;
    margin-right: 8px;
  }
}

/* PRIVACY POLICY */

.privacy-hero {
  padding-top: 92px;
  padding-bottom: 64px;
  background: transparent;
}

.privacy-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.privacy-update {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(79,124,255,.10);
  color: var(--primary);
  font-weight: 700;
  font-size: .92rem;
}

.privacy-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 44px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88));
  border: 1px solid rgba(79,124,255,.14);
  box-shadow: var(--shadow);
}

.privacy-card h2 {
  margin: 34px 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.privacy-card h2:first-child {
  margin-top: 0;
}

.privacy-card p {
  color: var(--muted);
  margin: 0 0 16px;
}

.privacy-card a {
  color: var(--primary);
  font-weight: 700;
}

.privacy-list {
  margin-bottom: 24px;
}

.privacy-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(79,124,255,.14);
}

@media (max-width: 640px) {
  .privacy-card {
    padding: 28px 22px;
  }

  .privacy-cta {
    flex-direction: column;
  }

  .privacy-cta .btn {
    width: 100%;
  }
}
