:root {
  --green: #007146;
  --green-deep: #004c31;
  --black: #050505;
  --paper: #ffffff;
  --soft: #f8f8f8;
  --card: #ededed;
  --shell: min(1450px, calc(100vw - 64px));
  color: #0a0a0a;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); line-height: 1.35; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: white; color: black; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.brand-bar { height: 84px; display: grid; place-items: center; background: white; }
.brand-bar img { width: 267px; height: 42px; object-fit: contain; }
.main-nav { min-height: 82px; display: flex; align-items: center; justify-content: center; background: var(--black); color: white; }
.nav-menu { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 3.1vw, 58px); }
.nav-menu a { font-size: 16px; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.nav-menu a:hover, .nav-menu a:focus-visible { color: #69c4a3; }
.nav-menu .nav-cta { padding: 10px 12px; border: 1px solid var(--green); }
.nav-toggle { display: none; }

.hero { position: relative; height: min(801px, 72vw); min-height: 580px; overflow: hidden; color: white; background: url("assets/hero.png") 50% 50% / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 42, 31, .08) 25%, rgba(0, 25, 18, .52) 100%); }
.hero-content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 90px 86px; }
.hero h1 { max-width: 900px; margin: 0; font-size: clamp(44px, 4.1vw, 72px); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 span { display: block; font-weight: 400; }
.hero p { margin: 14px 0 0; font-size: clamp(20px, 1.7vw, 28px); }

.section { padding: 92px 0; }
.section--soft { background: var(--soft); }
.section-title { width: fit-content; min-width: 495px; margin: 0 0 88px; padding: 0 0 16px 74px; border-bottom: 8px solid var(--green); font-size: clamp(32px, 2.4vw, 42px); line-height: 1.08; }
.section-title--wide { min-width: 815px; }

.territory { min-height: 676px; }
.territory-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr); align-items: center; gap: 60px; }
.territory-copy { align-self: stretch; display: flex; flex-direction: column; }
.territory .section-title { margin-left: -64px; }
.territory-intro { width: 500px; max-width: 100%; margin: 6px 0 98px 74px; font-size: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 54px; margin-left: 74px; }
.stats p { display: flex; align-items: baseline; gap: 10px; margin: 0; white-space: nowrap; }
.stats strong { color: var(--green); font-size: clamp(46px, 3.2vw, 60px); line-height: 1; text-shadow: 0 5px 8px rgba(0, 0, 0, .18); }
.stats span { font-size: 18px; }
.italy-map { width: 375px; max-height: 442px; object-fit: contain; justify-self: center; }

.services { min-height: 730px; }
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(24px, 3.2vw, 68px); padding: 40px 0 55px; }
.service-card { position: relative; min-height: 250px; margin-top: 34px; padding: 98px 18px 24px; background: var(--card); text-align: center; }
.service-card img { position: absolute; top: -62px; left: 50%; width: 126px; height: 126px; border-radius: 50%; object-fit: cover; transform: translateX(-50%); filter: drop-shadow(0 7px 5px rgba(0, 0, 0, .2)); }
.service-card h3 { min-height: 2.6em; margin: 0 0 10px; font-size: 17px; line-height: 1.15; }
.service-card p { margin: 0; font-size: 14px; line-height: 1.22; }

.projects { padding-bottom: 138px; overflow: hidden; }
.projects-heading .section-title { margin-left: 42px; }
.project-gallery { display: grid; grid-template-columns: .82fr 1.18fr .82fr; align-items: center; width: 100%; }
.project-card { position: relative; height: 348px; overflow: hidden; color: white; }
.project-card--featured { height: 431px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.project-card:hover img { transform: scale(1.025); }
.project-card h3 { position: absolute; z-index: 1; left: 50%; bottom: 28px; width: 90%; margin: 0; text-align: center; transform: translateX(-50%); font-size: clamp(22px, 2vw, 34px); }

.certifications { padding-top: 116px; padding-bottom: 142px; }
.certifications .section-title { margin-left: 28px; }
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 84px 68px; }
.cert-item { position: relative; display: flex; align-items: center; min-height: 126px; padding: 16px 26px 16px 170px; background: var(--card); }
.cert-item img { position: absolute; left: -28px; width: 176px; height: 176px; border-radius: 50%; object-fit: cover; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .18)); }
.cert-item > div { width: 100%; }
.cert-item h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.1; }
.cert-item p { margin: 0; font-size: 16px; line-height: 1.28; }

.partnership { position: relative; min-height: 660px; display: grid; align-items: center; overflow: hidden; background: #0a0a0a url("assets/partner-texture.png") 50% / cover no-repeat; }
.partnership::before { content: ""; position: absolute; inset: 90px 0; background: rgba(255, 255, 255, .92); }
.partnership-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; min-height: 512px; }
.partner-intro { display: flex; flex-direction: column; justify-content: center; padding: 60px 74px; background: rgba(255, 255, 255, .38); }
.zenit-logo { width: 480px; height: 78px; object-fit: contain; object-position: left center; }
.partner-intro h2 { max-width: 660px; margin: 80px 0 60px; font-size: clamp(32px, 2.65vw, 48px); line-height: 1.08; }
.outline-button { align-self: flex-start; display: inline-block; padding: 10px 24px; border: 1px solid var(--green); text-decoration: none; font-size: 16px; }
.partner-feature { display: flex; flex-direction: column; justify-content: flex-end; padding: 64px 64px 36px; color: #111; background: linear-gradient(180deg, rgba(245, 245, 245, .12), rgba(245, 245, 245, .83)), url("assets/partner-photo.png") 50% / cover no-repeat; }
.partner-feature h3 { max-width: 440px; margin: 0 0 8px; font-size: 26px; line-height: 1.12; }
.partner-feature p { max-width: 620px; margin: 0; font-size: 17px; }

.site-footer { background: var(--black); color: white; }
.footer-grid { min-height: 330px; display: grid; grid-template-columns: 1.25fr .9fr 1.35fr 1.25fr; gap: 56px; align-items: center; }
.footer-grid h2 { margin: 0 0 8px; font-size: 25px; }
.footer-grid h3 { margin: 0 0 16px; font-size: 20px; }
.footer-grid p { margin: 7px 0; }
.footer-grid address { font-style: normal; line-height: 1.85; }
.footer-grid address a { text-decoration: none; }
.outline-button--dark { margin-top: 24px; }
.footer-actions { display: flex; align-self: end; justify-content: flex-end; gap: 18px; padding-bottom: 72px; }
.footer-actions a { padding: 10px 13px; border: 1px solid var(--green); text-decoration: none; white-space: nowrap; }
.footer-brand { height: 142px; display: grid; place-items: center; background: white; }
.footer-brand img { width: 309px; height: 48px; object-fit: contain; }

:focus-visible { outline: 3px solid #2bc68d; outline-offset: 4px; }

@media (max-width: 1180px) {
  :root { --shell: min(100% - 44px, 980px); }
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 96px 46px; }
  .services { padding-bottom: 120px; }
  .cert-grid { grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); padding: 54px 0; }
  .footer-actions { align-self: center; justify-content: flex-start; padding-bottom: 0; }
}

@media (max-width: 860px) {
  :root { --shell: min(100% - 36px, 720px); }
  .brand-bar { height: 72px; }
  .brand-bar img { width: 226px; }
  .main-nav { position: relative; min-height: 64px; justify-content: flex-end; padding-right: 18px; }
  .nav-toggle { display: grid; gap: 6px; padding: 12px; border: 0; background: transparent; }
  .nav-toggle span:not(.sr-only) { display: block; width: 30px; height: 2px; background: white; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-menu { position: absolute; z-index: 10; top: 64px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 14px 22px 24px; background: var(--black); }
  .nav-menu.is-open { display: flex; flex-direction: column; }
  .nav-menu a { padding: 13px 10px; }
  .nav-menu .nav-cta { margin-top: 8px; }
  .hero { height: 72vh; min-height: 560px; background-position: 42% center; }
  .hero-content { padding: 0 12px 58px; }
  .section { padding: 72px 0; }
  .section-title, .section-title--wide { width: min(86vw, 600px); min-width: 0; margin-bottom: 64px; padding-left: 18px; border-bottom-width: 6px; }
  .territory-grid { grid-template-columns: 1fr; }
  .territory-copy { width: 100%; min-width: 0; }
  .territory .section-title { margin-left: -18px; }
  .territory-intro { width: auto; max-width: none; margin: 0 0 52px; }
  .stats { margin-left: 0; gap: 20px; }
  .stats p { align-items: flex-start; flex-direction: column; white-space: normal; }
  .italy-map { grid-row: 1; width: 280px; opacity: .13; position: absolute; right: 4vw; }
  .territory-grid { position: relative; }
  .territory-copy { position: relative; z-index: 1; }
  .projects-heading .section-title, .certifications .section-title { margin-left: -18px; }
  .project-gallery { grid-template-columns: 1fr; gap: 14px; padding: 0 18px; }
  .project-card, .project-card--featured { height: 360px; }
  .partnership { padding: 70px 0; }
  .partnership::before { inset: 42px 0; }
  .partnership-grid { grid-template-columns: 1fr; }
  .partner-intro { padding: 58px 34px; }
  .partner-intro h2 { margin: 50px 0 42px; }
  .partner-feature { min-height: 390px; padding: 42px 34px; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 28px); }
  .hero { min-height: 520px; }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero p { font-size: 18px; }
  .stats { grid-template-columns: 1fr; }
  .stats p { flex-direction: row; align-items: baseline; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 88px 18px; }
  .service-card { min-height: 240px; padding-inline: 12px; }
  .service-card img { width: 108px; height: 108px; top: -54px; }
  .cert-grid { gap: 60px; }
  .cert-item { display: block; padding: 94px 20px 24px; text-align: center; }
  .cert-item img { top: -44px; left: 50%; width: 124px; height: 124px; transform: translateX(-50%); }
  .cert-item p { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-actions { flex-direction: column; align-items: flex-start; }
  .footer-brand img { width: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
