:root {
  --bg: #f6f6f8;
  --surface: #ffffff;
  --surface-soft: #f3f4f7;
  --surface-blue: #eaf2ff;
  --surface-green: #edf9f2;
  --text: #1f2024;
  --muted: #72757f;
  --line: #e7e9ef;
  --blue: #1273ea;
  --blue-dark: #0d5fcb;
  --dark: #202024;
  --radius: 26px;
  --radius-lg: 30px;
  --container: 1260px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #fff;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231, 233, 239, 0.7);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 108px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-links {
  display: inline-flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  color: #40434c;
}

.nav-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.hours-pill {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.82rem;
  color: #8b909a;
  font-weight: 600;
}

.hours-pill::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #4fc66b;
  transform: translateY(-50%);
}

.nav-cta,
.text-link {
  color: var(--blue);
  font-weight: 700;
}

.hero {
  padding: 5.75rem 0 3.8rem;
}

.hero-stack {
  display: grid;
  gap: 3rem;
}

.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.cta-panel h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 0.94;
  font-weight: 800;
}

.hero h1 {
  margin-top: 1rem;
  max-width: 10.8ch;
  font-size: clamp(4rem, 8vw, 6.6rem);
}

.hero h1 span {
  color: var(--blue);
}

.lead {
  max-width: 33rem;
  margin: 1.6rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions,
.feature-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--blue);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    transform 220ms var(--ease),
    background 220ms ease,
    box-shadow 220ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
}

.button-small {
  min-height: 42px;
}

.button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-showcase {
  position: relative;
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, #fbfbfd 0%, #f4f5f8 100%);
  overflow: hidden;
}

.floating-label {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
  color: #6a6f78;
  font-size: 0.8rem;
  font-weight: 600;
}

.floating-label-left {
  left: 1.35rem;
  bottom: 1.35rem;
}

.floating-label-right {
  right: 1.35rem;
  top: 1.35rem;
}

.floating-label-right::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: #52cf6a;
}

.orb {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(212, 216, 225, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orb-1 {
  width: 450px;
  height: 450px;
}

.orb-2 {
  width: 300px;
  height: 300px;
}

.phone-visual {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  border-radius: 32px;
  background: #1c1e23;
  box-shadow:
    0 28px 60px rgba(18, 24, 40, 0.22),
    0 4px 16px rgba(18, 24, 40, 0.12),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
}

.phone-hero {
  height: 380px;
}

/* Pulsanti laterali */
.phone-btn-silent,
.phone-btn-vol-u,
.phone-btn-vol-d,
.phone-btn-power {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #2e3035;
}

.phone-btn-silent {
  left: -3px;
  top: 60px;
  height: 22px;
}

.phone-btn-vol-u {
  left: -3px;
  top: 94px;
  height: 32px;
}

.phone-btn-vol-d {
  left: -3px;
  top: 134px;
  height: 32px;
}

.phone-btn-power {
  right: -3px;
  top: 100px;
  height: 46px;
}

/* Dynamic island */
.phone-island {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 44px;
  height: 11px;
  border-radius: 999px;
  background: #0a0b0d;
  transform: translateX(-50%);
  z-index: 3;
}

.phone-screen {
  position: absolute;
  inset: 7px;
  border-radius: 26px;
  background: linear-gradient(145deg, #1a2035 0%, #0e1520 100%);
  overflow: hidden;
}

.screen-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* ── Diagnostic UI ── */
.diag-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
}

.diag-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 5px;
}

.diag-time {
  font-size: 0.45rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.diag-batt-icon {
  position: relative;
  width: 14px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1.5px;
}

.diag-batt-icon::before {
  content: "";
  position: absolute;
  left: 1.5px;
  top: 1.5px;
  bottom: 1.5px;
  width: 65%;
  background: #52cf6a;
  border-radius: 0.5px;
}

.diag-batt-icon::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 2px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 0 1px 1px 0;
  transform: translateY(-50%);
}

.diag-appbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.diag-logo {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--blue);
  display: grid;
  place-items: center;
  font-size: 0.4rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.diag-apptitle {
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.01em;
}

.diag-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
}

.diag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.diag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #52cf6a;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(82, 207, 106, 0.6);
}

.diag-lbl {
  flex: 1;
  font-size: 0.42rem;
  color: rgba(255, 255, 255, 0.6);
}

.diag-val {
  font-size: 0.42rem;
  font-weight: 700;
  color: #52cf6a;
}

.diag-footer {
  padding: 7px 12px 10px;
  text-align: center;
  font-size: 0.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.01em;
}

/* ── Repair visual (sezione servizi) ── */
.repair-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.repair-phone {
  position: relative;
  width: 130px;
  height: 262px;
  border-radius: 24px;
  background: #1c1e23;
  box-shadow:
    0 20px 48px rgba(18, 24, 40, 0.2),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}

.repair-phone .phone-island {
  width: 32px;
  height: 9px;
  top: 9px;
}

.repair-phone .phone-btn-vol-u {
  left: -3px;
  top: 62px;
  height: 22px;
}

.repair-phone .phone-btn-vol-d {
  left: -3px;
  top: 90px;
  height: 22px;
}

.repair-phone .phone-btn-power {
  right: -3px;
  top: 68px;
  height: 32px;
}

.screen-cracked {
  position: absolute;
  inset: 5px;
  border-radius: 20px;
  background: linear-gradient(145deg, #1a1a1e 0%, #111115 100%);
  overflow: hidden;
}

.crack {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  transform-origin: top left;
}

.crack-a {
  width: 1.5px;
  height: 90px;
  left: 35%;
  top: 15%;
  transform: rotate(12deg);
}

.crack-b {
  width: 1px;
  height: 60px;
  left: 42%;
  top: 30%;
  transform: rotate(-30deg);
}

.crack-c {
  width: 1px;
  height: 45px;
  left: 28%;
  top: 50%;
  transform: rotate(50deg);
}

.crack-d {
  width: 1px;
  height: 35px;
  left: 55%;
  top: 40%;
  transform: rotate(-15deg);
}

.crack-label {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.01em;
}

.screen-repaired {
  position: absolute;
  inset: 5px;
  border-radius: 20px;
  background: linear-gradient(145deg, #2d8bff 0%, #2479eb 48%, #1f65d0 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.repaired-check {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.repaired-label {
  font-size: 0.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.repaired-sub {
  font-size: 0.37rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.01em;
}

.repair-arrow {
  color: rgba(160, 168, 185, 0.7);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-box {
  padding: 1.45rem 1rem;
  text-align: center;
}

.stat-box + .stat-box {
  border-left: 1px solid var(--line);
}

.stat-box strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
}

.stat-box span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 500;
}

.section {
  padding: 5.6rem 0;
}

.section-heading-centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.section-heading h2 {
  margin-top: 0.8rem;
  max-width: 11.5ch;
  font-size: clamp(3.4rem, 6.8vw, 4.9rem);
}

.section-lead {
  max-width: 42rem;
  margin: 1rem auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.trust-section {
  padding-bottom: 0;
}

.trust-heading h2 {
  max-width: 12ch;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.trust-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fafbfe 0%, #f3f5f8 100%);
}

.trust-card h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.trust-card p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-feature {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-soft);
}

.service-feature-copy,
.service-feature-visual {
  min-height: 530px;
}

.service-feature-copy {
  padding: 2.4rem 2.5rem 2rem;
}

.service-code,
.mini-index {
  margin: 0;
  color: #9aa0ab;
  font-size: 0.82rem;
  font-weight: 700;
}

.service-feature-copy h3 {
  margin: 1rem 0 0;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.service-feature-copy h3 span {
  color: #6f737d;
}

.service-feature-copy p:not(.service-code) {
  max-width: 31rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-actions {
  margin-top: 1.8rem;
}

.feature-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-meta strong {
  display: block;
  font-size: 1.1rem;
}

.feature-meta span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.service-feature-visual {
  position: relative;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(224, 227, 234, 0.85);
  background: linear-gradient(180deg, #f3f4f8 0%, #eff1f6 100%);
}

.service-feature-visual::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 115, 234, 0.1), transparent 65%);
}


.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.mini-card {
  position: relative;
  min-height: 310px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--surface-soft);
}

.mini-card-blue {
  background: linear-gradient(180deg, #edf4ff 0%, #f3f4f7 38%);
}

.mini-card-green {
  background: linear-gradient(180deg, #eefaf2 0%, #f5f6f8 38%);
}

.mini-icon {
  position: absolute;
  right: 1.35rem;
  top: 1.35rem;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.mini-card h3 {
  margin: 6.6rem 0 0;
  font-size: 1.7rem;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.mini-card p {
  margin: 1rem 0 0;
  max-width: 100%;
  color: var(--muted);
  line-height: 1.58;
}

.mini-card .text-link {
  margin-top: auto;
  padding-top: 1.25rem;
  align-self: flex-start;
}

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.process-line {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 25%, #dfe3ea 25%, #dfe3ea 100%);
}

.process-item {
  position: relative;
  text-align: center;
}

.process-dot {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #d7dbe3;
  background: #fff;
  color: #9ea3ad;
  font-size: 0.72rem;
  font-weight: 700;
}

.process-item-active .process-dot {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.process-item h3 {
  margin: 1.15rem 0 0;
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: -0.045em;
}

.process-item p {
  max-width: 14rem;
  margin: 0.75rem auto 0;
  color: var(--muted);
  line-height: 1.55;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  padding: 2.2rem 2.25rem;
  border-radius: 28px;
  background: var(--dark);
  color: #fff;
}

.cta-panel h2 {
  margin-top: 1rem;
  font-size: clamp(3rem, 6vw, 4.5rem);
}

.cta-panel h2 span {
  color: rgba(255, 255, 255, 0.62);
}

.cta-text {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.cta-actions {
  margin-top: 2rem;
}

.contact-panel {
  align-self: center;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 1rem 0;
}

.contact-row + .contact-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-row span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.contact-row strong {
  font-size: 0.96rem;
}

.site-footer {
  padding: 2.1rem 0 2.6rem;
  background: #f8f8fa;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: #8d929b;
  font-size: 0.82rem;
}

.footer-row > span:last-child {
  justify-self: end;
}

.footer-links {
  display: inline-flex;
  gap: 1.25rem;
}

.footer-powered {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #aab0bb;
  letter-spacing: 0.01em;
}

.footer-powered a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent, #246bfd);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 200ms;
}

.footer-powered a:hover {
  opacity: 0.75;
}

[data-reveal] {
  opacity: 0;
  filter: blur(6px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease),
    filter 700ms var(--ease);
}

[data-reveal="up"] {
  transform: translateY(28px);
}

[data-reveal="left"] {
  transform: translateX(28px);
}

[data-reveal="scale"] {
  transform: scale(0.98);
}

[data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .service-feature,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .service-feature-copy,
  .service-feature-visual {
    min-height: auto;
  }

  .service-feature-visual {
    min-height: 360px;
    border-left: 0;
    border-top: 1px solid rgba(224, 227, 234, 0.85);
  }

  .repair-visual {
    gap: 12px;
  }

  .repair-phone {
    width: 90px;
    height: 180px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(var(--container), calc(100% - 1.4rem));
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-showcase {
    min-height: 360px;
  }

  .orb-1 {
    width: 320px;
    height: 320px;
  }

  .orb-2 {
    width: 220px;
    height: 220px;
  }

  .stats,
  .trust-grid,
  .service-cards,
  .process-track,
  .feature-meta,
  .footer-row {
    grid-template-columns: 1fr;
  }

  .stat-box + .stat-box {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .process-line {
    display: none;
  }

  .process-item {
    text-align: left;
    padding-left: 2.75rem;
  }

  .process-dot {
    position: absolute;
    left: 0;
    top: 0;
  }

  .process-item p {
    margin-left: 0;
  }

  .footer-links,
  .footer-row > span:last-child {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .nav-meta {
    gap: 0.7rem;
  }

  .hours-pill {
    display: none;
  }

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

  .floating-label {
    font-size: 0.72rem;
  }

  .floating-label-left {
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.9rem;
    justify-content: center;
  }

  .floating-label-right {
    right: 0.9rem;
    top: 0.9rem;
  }

  .cta-panel {
    padding: 1.5rem;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
