:root {
  --coral: #f36f5f;
  --coral-dark: #b84034;
  --teal: #1e7775;
  --mint: #d7eee9;
  --yellow: #f5c451;
  --ink: #252525;
  --muted: #6c625e;
  --paper: #fff8f1;
  --white: #ffffff;
  --line: rgba(37, 37, 37, 0.14);
  --shadow: 0 22px 70px rgba(37, 37, 37, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 248, 241, 0.9);
  backdrop-filter: blur(18px);
}

.brand-link,
.site-nav a,
.button,
.site-footer a {
  text-decoration: none;
}

.brand-mark {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
}

.brand-mark span {
  color: var(--coral-dark);
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(86svh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(37, 37, 37, 0.78) 0%, rgba(37, 37, 37, 0.48) 42%, rgba(37, 37, 37, 0.08) 100%),
    url("../public/hero-lattido.png") center / cover;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 68px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd8cc;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(4rem, 13vw, 8.8rem);
  line-height: 0.92;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
}

h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.15;
}

.hero-copy {
  max-width: 600px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--coral);
}

.button.primary:hover {
  background: var(--coral-dark);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.button.tertiary {
  color: var(--teal);
  border-color: rgba(30, 119, 117, 0.25);
  background: var(--white);
}

.intro-band {
  padding: 24px 20px;
  background: var(--teal);
  color: var(--white);
}

.intro-band p {
  width: min(980px, 100%);
  margin: 0 auto;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 750;
  text-align: center;
}

.section,
.process,
.contact {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.package-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(37, 37, 37, 0.06);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  border-radius: 50%;
  color: var(--teal);
  background: var(--mint);
  font-weight: 900;
}

.service-card p,
.package-card p,
.process-copy p,
.contact p,
.steps p {
  color: var(--muted);
}

.service-card p {
  margin: 14px 0 0;
}

.packages-section {
  width: 100%;
  max-width: none;
  padding: 86px max(20px, calc((100% - 1120px) / 2));
  background: #fff1dc;
}

.package-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.package-card {
  min-height: 200px;
}

.package-card.highlight {
  border-color: rgba(243, 111, 95, 0.48);
  box-shadow: var(--shadow);
}

.package-label {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.package-card h3 + p {
  margin-bottom: 0;
}

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.process-copy {
  position: sticky;
  top: 110px;
}

.process-copy p {
  max-width: 470px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.steps span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 900;
}

.steps p {
  margin: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 56px;
  padding: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.contact p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 20px;
  }

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

  .site-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: calc(82svh - 72px);
  }

  .hero-background {
    background:
      linear-gradient(180deg, rgba(37, 37, 37, 0.82) 0%, rgba(37, 37, 37, 0.5) 52%, rgba(37, 37, 37, 0.18) 100%),
      url("../public/hero-lattido.png") 58% center / cover;
  }

  .service-grid,
  .package-list,
  .process,
  .contact {
    grid-template-columns: 1fr;
  }

  .process-copy {
    position: static;
  }

  .contact {
    padding: 30px 22px;
  }
}

@media (max-width: 620px) {
  .hero-content,
  .section,
  .process,
  .contact {
    width: min(100% - 28px, 1120px);
  }

  .hero-content {
    padding: 40px 0 52px;
  }

  .section,
  .process {
    padding: 64px 0;
  }

  .packages-section {
    padding: 64px 14px;
  }

  .service-card,
  .package-card {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 24px;
  }

  .steps li {
    grid-template-columns: 42px 1fr;
    gap: 4px 14px;
  }

  .steps span {
    width: 38px;
    height: 38px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 20px;
  }
}
