/* RiparazioneMac.it – Distinct design: Syne + IBM Plex, emerald accent */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  color: #1e293b;
  background: #fafbfc;
  padding-top: 68px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: #059669;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Header – slate with emerald accent */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo:hover { color: #34d399; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-list a {
  color: rgba(255,255,255,.88);
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
}
.nav-list a:hover { color: #fff; background: rgba(5,150,105,.2); }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  background: #25d366;
  color: #fff !important;
  text-decoration: none;
}
.btn-whatsapp:hover { background: #20bd5a; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 1px; transition: transform .2s, opacity .2s; }
body.menu-open { overflow: hidden; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: #0f172a;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform .3s;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-list a { padding: 1rem; display: block; }
  .menu-toggle { display: flex; }
}

/* Main */
.main {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}
.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}
.breadcrumb a { color: #059669; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Typography */
h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: #0f172a;
}
h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.75rem 0 0.6rem;
  color: #1e293b;
}
h3 { font-size: 1.05rem; font-weight: 600; margin: 1.2rem 0 0.5rem; }
p { margin: 0.7rem 0; }
ul, ol { margin: 0.5rem 0; padding-left: 1.5rem; }
a { color: #059669; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 0 -1.5rem 2rem -1.5rem;
  border-radius: 0 0 12px 12px;
}
.hero h1 { color: #fff; margin-bottom: 0.5rem; }
.hero p { color: rgba(255,255,255,.88); margin-bottom: 1.25rem; }

/* Cards & grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card-grid a {
  display: block;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #1e293b;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.card-grid a:hover { border-color: #059669; box-shadow: 0 4px 12px rgba(5,150,105,.1); }

/* CTAs */
.cta-group { margin: 1.5rem 0; }
.cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.cta-primary { background: #059669; color: #fff !important; }
.cta-primary:hover { background: #047857; color: #fff !important; }
.cta-wa { background: #25d366; color: #fff !important; }
.cta-wa:hover { background: #20bd5a; color: #fff !important; }
.cta-outline { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.8); }
.cta-outline:hover { background: rgba(255,255,255,.15); color: #fff !important; }
.cta-hero .cta { padding: 1rem 1.5rem; font-size: 1rem; }

/* FAQ */
.faq { margin: 1rem 0; padding: 1.25rem; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #059669; border-radius: 8px; }
.faq h3 { font-size: 1rem; margin-top: 0; }
.process-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 1.25rem;
  border-radius: 10px;
  margin: 1rem 0;
}

/* Footer */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,.85);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}
.footer-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.footer a { color: #34d399; }
.footer a:hover { color: #6ee7b7; }
.footer-nav { margin: 1rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; }
.footer-nav a { font-size: 0.9rem; }
.footer-nav.clusters { margin-top: 0.5rem; }
.footer-partners { font-size: 0.85rem; margin-top: 1rem; color: rgba(255,255,255,.6); }

/* Sticky CTA mobile */
.sticky-cta-mobile {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 0.75rem 1rem;
  background: rgba(15,23,42,.98);
  border-top: 1px solid rgba(255,255,255,.08);
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,.15);
}
.sticky-cta-mobile .cta { margin: 0; padding: 0.6rem 1rem; font-size: 0.9rem; }
@media (max-width: 900px) {
  .sticky-cta-mobile { display: flex; }
  .main { padding-bottom: 4rem; }
}

/* Trust block */
.trust-block {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.trust-block h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: #0f172a; }
.trust-block ul { margin: 0.5rem 0 0 1rem; padding: 0; }
.trust-block li { margin: 0.35rem 0; }

/* Summary table (AI-friendly) */
.summary-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.summary-table th, .summary-table td { border: 1px solid #e2e8f0; padding: 0.6rem 0.8rem; text-align: left; }
.summary-table th { background: #f1f5f9; font-weight: 600; }
.summary-table tr:nth-child(even) { background: #f8fafc; }

/* Sticky CTA mobile */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(15,23,42,.98);
  border-top: 1px solid rgba(255,255,255,.08);
  justify-content: center;
  flex-wrap: wrap;
}
.sticky-cta .cta { margin: 0; padding: 0.6rem 1rem; font-size: 0.9rem; }
@media (min-width: 901px) { .sticky-cta { display: none; } }
