:root {
  --bg: #f8faf9;
  --bg-alt: #eef4f2;
  --surface: #ffffff;
  --text: #0f1a17;
  --text-muted: #4a5c56;
  --border: #d7e3de;
  --accent: #0d7a62;
  --accent-dark: #095c4a;
  --accent-soft: #e4f5f0;
  --dark: #0c1512;
  --dark-soft: #162420;
  --warning: #b45309;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(12, 21, 18, 0.08);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.logo-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.logo-text {
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.header-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.btn-sm {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 58ch;
}

.lead-example {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-card {
  background: var(--dark);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-card li {
  margin-bottom: 0.6rem;
  color: #d5e5df;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-trust-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-trust-caption {
  margin: 0;
  line-height: 1.4;
}

.hero-trust-caption strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.hero-trust-caption span {
  display: block;
  color: #b8cfc6;
  font-size: 0.88rem;
  margin-top: 0.15rem;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.profile-photo {
  width: min(280px, 100%);
  aspect-ratio: 1;
  border-radius: calc(var(--radius) + 6px);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.profile-intro .lead {
  max-width: none;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 60ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 2px 0 rgba(12, 21, 18, 0.02);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.card p,
.table-wrap p,
.price-card p {
  color: var(--text-muted);
  margin: 0;
}

.card-example {
  margin-top: 0.85rem !important;
  padding: 0.75rem 0.85rem;
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text) !important;
  line-height: 1.5;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card .card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-live {
  background: #dcfce7;
  color: #166534;
}

.badge-soon {
  background: #fef3c7;
  color: #92400e;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--bg-alt);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

tr:last-child td {
  border-bottom: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.price {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0.5rem 0 1rem;
  color: var(--accent-dark);
}

.price-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.price-card li {
  margin-bottom: 0.45rem;
}

.cta-band {
  background: var(--dark);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band p {
  margin: 0;
  color: #cfe0da;
  max-width: 50ch;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero .lead {
  max-width: 65ch;
}

.prose {
  max-width: 70ch;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.faq-list h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.faq-list h2:first-of-type {
  margin-top: 0;
}

.faq-teaser {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
  margin-inline: auto;
}

.faq-teaser-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.25rem;
}

.faq-teaser-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
}

.faq-teaser-item summary::-webkit-details-marker {
  display: none;
}

.faq-teaser-item summary::after {
  content: '+';
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-teaser-item[open] summary::after {
  content: '−';
}

.faq-teaser-item p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.guide-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  counter-reset: guide-step;
}

.guide-steps li {
  counter-increment: guide-step;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1rem;
}

.guide-steps li::before {
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-steps strong {
  display: block;
  margin-bottom: 0.15rem;
}

.referenze-teaser {
  margin: 1rem 0;
}

.client-logo-grid--compact .client-logo {
  min-width: 120px;
  min-height: 60px;
}

.referenze-teaser .testimonial-card {
  max-width: 40rem;
  margin-inline: auto;
}

.inline-nav-links {
  margin-top: 1rem;
  text-align: center;
}

.page-nav-hint {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.demo-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid #b9dfd2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.referenze-empty {
  text-align: center;
  max-width: 42ch;
  margin: 0 auto 1rem;
}

.client-logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 72px;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.client-logo img {
  max-width: 140px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  margin: 0;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.testimonial-quote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
}

.testimonial-author {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonial-author strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.booking-wrap {
  position: relative;
  min-height: 630px;
}

.booking-embed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 630px;
}

.booking-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: opacity 0.25s ease;
}

.booking-loader[hidden] {
  display: none;
}

.booking-wrap.is-loading .booking-loader {
  display: flex;
}

.booking-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--bg-alt);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: booking-spin 0.75s linear infinite;
}

.booking-loader-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

@keyframes booking-spin {
  to { transform: rotate(360deg); }
}

#cal-embed {
  width: 100%;
  min-height: 630px;
}

.booking-note {
  margin-top: 0.75rem;
  text-align: center;
}

.contact-form {
  max-width: 560px;
  margin-top: 1.25rem;
}

.contact-form .form-row {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
}

.contact-form textarea {
  min-height: 5rem;
  resize: vertical;
}

.contact-form .form-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.95rem;
  font-weight: 400;
}

.contact-form .form-check input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-success {
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  border: 1px solid #b9dfd2;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.form-error {
  padding: 1rem 1.25rem;
  background: #fff4ed;
  border: 1px solid #f0c9a8;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: #7c3b12;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.site-footer {
  margin-top: 4rem;
  background: var(--dark);
  color: #cfe0da;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
}

.footer-tagline,
.footer-grid p {
  margin: 0 0 0.45rem;
}

.footer-label {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.6rem !important;
}

.site-footer a {
  color: #cfe0da;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 1.5rem;
  font-size: 0.9rem;
  color: #8fa59d;
}

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

  .profile-hero {
    justify-items: center;
    text-align: center;
  }

  .profile-photo {
    max-width: 220px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.75rem;
    display: none;
  }

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

  .header-cta {
    display: none;
  }
}
