:root {
  --green-dark: #173c25;
  --green: #456f35;
  --green-mid: #668c45;
  --green-soft: #dfe9d8;
  --cream: #f8f5eb;
  --white: #ffffff;
  --text: #183524;
  --shadow: rgba(23, 60, 37, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: "M PLUS Rounded 1c", Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 58px);
  background: rgba(248, 245, 235, 0.86);
  border-bottom: 1px solid rgba(23, 60, 37, 0.12);
  backdrop-filter: blur(14px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  text-decoration: none;
  z-index: 120;
}

.logo-img {
  width: 46px;
  height: 56px;
  object-fit: contain;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-copy strong {
  font-size: clamp(1.1rem, 1.7vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.logo-copy small {
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 34px);
}

.nav a {
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--green-mid);
}

.nav a[aria-current="page"] {
  color: var(--green-mid);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 130;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(23, 60, 37, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(23, 60, 37, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.menu-toggle.is-open {
  border-color: rgba(23, 60, 37, 0.34);
  background: var(--white);
  box-shadow: 0 14px 30px rgba(23, 60, 37, 0.13);
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--green-dark);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2) {
  top: 22px;
}

.menu-toggle span:nth-child(3) {
  top: 29px;
}

.menu-toggle.is-open span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 132px 24px 86px;
  background: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(180deg, rgba(248, 245, 235, 0.03), rgba(248, 245, 235, 0.24)),
    url("../../img/milano-skyline.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero-bg,
#leavesCanvas {
  transition: opacity 0.3s ease;
}

body.menu-open .hero-bg,
body.menu-open #leavesCanvas {
  opacity: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.56), transparent 34%),
    linear-gradient(180deg, rgba(248, 245, 235, 0.02), rgba(248, 245, 235, 0.18));
  pointer-events: none;
}

#leavesCanvas {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 8;
  width: min(980px, 100%);
  text-align: center;
  transform: translateY(-8px);
}

.hero-leaf {
  display: block;
  width: clamp(120px, 13vw, 210px);
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 18px 28px rgba(23, 60, 37, 0.22));
  animation: heroLeafMove 5.2s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--green);
}

h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(3.1rem, 8vw, 8.4rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-shadow:
    0 12px 26px rgba(255, 255, 255, 0.9),
    0 16px 34px rgba(23, 60, 37, 0.12);
}

.payoff {
  margin: 22px auto 34px;
  max-width: 760px;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--green-dark);
  text-shadow: 0 10px 26px rgba(255, 255, 255, 0.9);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  border: 1px solid rgba(23, 60, 37, 0.34);
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(248, 245, 235, 0.76);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 14px 30px var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
  background: var(--white);
}

.section {
  padding: 94px clamp(22px, 6vw, 92px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.lead {
  max-width: 940px;
  margin: 0 auto 34px;
  color: var(--green-dark);
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-align: center;
}

.text-block {
  max-width: 850px;
  margin: 0 auto;
}

.text-block.wide {
  max-width: 980px;
}

.text-block p,
.section p {
  font-size: 1.08rem;
  line-height: 1.85;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 26px;
  color: var(--green-dark);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.services {
  background: #fbfaf5;
}

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

.cards article {
  padding: 34px 28px;
  border: 1px solid rgba(23, 60, 37, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(23, 60, 37, 0.08);
}

.cards h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 900;
}

.cards p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.section-green {
  background: var(--green-soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

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

.check-list li,
.client-list li {
  position: relative;
  padding: 16px 18px 16px 46px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(23, 60, 37, 0.07);
}

.check-list li::before,
.client-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 100% 0 100% 0;
  transform: rotate(-45deg);
}

.contact {
  text-align: center;
  padding-bottom: 124px;
}

.contact-with-grass {
  position: relative;
  overflow: hidden;
}

.contact-with-grass .footer-grass-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.contact-with-grass .section-inner {
  position: relative;
  z-index: 2;
}

.contact p {
  margin: 0 auto 30px;
  max-width: 680px;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(520px, 100%);
  margin: 30px auto;
}

.contact-item {
  display: block;
  padding: 15px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(23, 60, 37, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.company {
  margin-top: 26px;
  font-size: 0.94rem;
  line-height: 1.7;
  opacity: 0.76;
}

.company strong {
  opacity: 1;
}

.home-gallery {
  padding-top: 24px;
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(23, 60, 37, 0.14);
  box-shadow: 0 14px 32px rgba(23, 60, 37, 0.1);
  background: rgba(255, 255, 255, 0.66);
}

.home-gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.page-photo {
  margin: 30px 0 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(23, 60, 37, 0.14);
  box-shadow: 0 14px 32px rgba(23, 60, 37, 0.1);
}

.page-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.page-main {
  padding-top: 84px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(78px, 9vw, 128px);
  padding-bottom: clamp(68px, 8vw, 108px);
  background:
    linear-gradient(180deg, rgba(248, 245, 235, 0.9), rgba(223, 233, 216, 0.76)),
    url("../../img/milano-skyline.png") center bottom / cover no-repeat;
}

.page-hero .section-inner {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.8rem, 7vw, 6.6rem);
}

.page-hero .payoff {
  margin-left: 0;
  text-align: left;
}

.page-leaf {
  display: block;
  width: clamp(76px, 10vw, 132px);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 18px 28px rgba(23, 60, 37, 0.18));
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.service-list article {
  padding: 24px;
  border: 1px solid rgba(23, 60, 37, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 34px rgba(23, 60, 37, 0.07);
}

.service-list h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 1.22rem;
  font-weight: 900;
}

.service-list p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

@keyframes heroLeafMove {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

@media (max-width: 1040px) {
  .site-header {
    padding: 12px 16px;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 46px;
  }

  .nav {
    position: absolute;
    inset: 0 0 auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    min-height: 100dvh;
    padding: 104px 16px 34px;
    background:
      linear-gradient(180deg, var(--cream) 0%, var(--cream) 52%, var(--green-soft) 100%);
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    transform: translateY(-12px);
    transition: opacity 0.24s ease, transform 0.24s ease;
  }

  .nav::before {
    content: "";
    width: min(420px, 100%);
    height: 1px;
    margin-bottom: 6px;
    background: rgba(23, 60, 37, 0.14);
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(420px, 100%);
    min-height: 58px;
    padding: 0 18px 0 20px;
    border: 1px solid rgba(23, 60, 37, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 28px rgba(23, 60, 37, 0.08);
    color: var(--green-dark);
    font-size: clamp(1rem, 4.8vw, 1.24rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.03em;
    text-align: left;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }

  .nav a::after {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-left: 16px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    opacity: 0.48;
    transform: rotate(45deg);
  }

  .nav a:hover,
  .nav a:focus-visible {
    border-color: rgba(23, 60, 37, 0.26);
    background: var(--white);
    transform: translateY(-1px);
  }

  .hero {
    padding-top: 154px;
  }

  .hero-bg {
    background-size: auto 100%;
  }

  .cards,
  .split,
  .service-list {
    grid-template-columns: 1fr;
  }

  .home-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
  }

  .logo-img {
    width: 38px;
    height: 48px;
  }

  .logo-copy {
    min-width: 0;
  }

  .logo-copy strong {
    font-size: 1rem;
  }

  .logo-copy small {
    font-size: 0.58rem;
  }

  .nav {
    padding: 92px 14px 28px;
  }

  .nav a {
    min-height: 56px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding: 72px 18px;
  }

  .page-main {
    padding-top: 72px;
  }

  .page-hero {
    padding-top: 68px;
  }
}
