:root{
  --navy:#172a3a;
  --navy-text:#213241;
  --yellow:#f9d509;
  --soft:#f7f7f7;
  --card:#f5f5f5;
  --content:920px;
  --grid:882px;
  --header-h:138px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--navy-text);
  background:#fff;
  font-family:Montserrat, Arial, Helvetica, sans-serif;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img,video,picture{display:block;max-width:100%}

.site-header{
  height:var(--header-h);
  background:var(--navy);
  width:100%;
  position:relative;
  z-index:10;
}
.header-inner{
  width:var(--content);
  height:100%;
  margin:0 auto;
  display:flex;
  align-items:center;
}
.brand{
  width:232px;
  margin-left:40px;
  margin-right:72px;
  flex:0 0 auto;
}
.brand img{width:232px;height:auto}
.main-nav{
  display:flex;
  align-items:center;
  gap:59px;
  font-size:13px;
  line-height:1;
  font-weight:400;
  color:#fff;
  letter-spacing:0;
}
.main-nav a{opacity:.96}
.main-nav a:first-child{opacity:.35}

.hero{
  position:relative;
  height:calc(100vh - var(--header-h));
  min-height:858px;
  overflow:hidden;
  background:#356f83;
}
.hero-video,
.hero::before{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-video{z-index:0}
.hero::before{
  content:"";
  background:url("assets/hero-poster.jpg") center center/cover no-repeat;
  z-index:-1;
}
.hero-shade{
  position:absolute;
  inset:0;
  background:rgba(24,70,86,.38);
  z-index:1;
}
.hero-pattern{
  position:absolute;
  inset:0;
  opacity:.26;
  z-index:2;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.16) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.15) 0 1px, transparent 1px 4px);
  mix-blend-mode:overlay;
}
.hero-copy{
  position:relative;
  z-index:3;
  text-align:center;
  padding-top:174px;
  width:100%;
}
.hero h1{
  margin:0 auto;
  color:#fff;
  font-size:39px;
  line-height:1.16;
  font-weight:700;
  letter-spacing:3.2px;
}
.hero-arrow{
  display:block;
  width:64px;
  height:48px;
  margin:5px auto 0;
  position:relative;
}
.hero-arrow span{
  display:block;
  width:42px;
  height:42px;
  border-right:8px solid #fff;
  border-bottom:8px solid #fff;
  transform:rotate(45deg);
  margin:0 auto;
}

.section{background:#fff;text-align:center}
.section-head{text-align:center;color:var(--navy-text)}
.section-head h2{
  margin:0;
  font-size:50px;
  line-height:1.08;
  font-weight:700;
  letter-spacing:5px;
}
.section-head span{
  display:block;
  width:111px;
  height:8px;
  background:var(--yellow);
  margin:22px auto 0;
}
.section-head-left{text-align:left}
.section-head-left span{margin-left:0;margin-right:0}

.services{padding:61px 20px 96px}
.services-grid{
  width:var(--grid);
  margin:49px auto 0;
  display:grid;
  grid-template-columns:repeat(3, 282px);
  gap:18px;
}
.service-card{width:282px;background:transparent;text-align:left}
.service-card picture,
.service-card img{
  width:282px;
  height:214px;
  object-fit:cover;
}
.service-title{
  width:282px;
  height:237px;
  background:var(--card);
  padding:32px 24px 0;
  color:#36587b;
  font-size:21px;
  line-height:1.12;
  font-weight:700;
  letter-spacing:-.2px;
}

.media-strip{
  height:258px;
  background-image:
    linear-gradient(rgba(25,65,78,.55),rgba(25,65,78,.55)),
    url("assets/hero-poster.jpg");
  background-size:cover;
  background-position:center 75%;
  background-attachment:fixed;
}

.about{
  width:100%;
  height:640px;
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#fff;
}
.about-copy{
  background:#fff;
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
  padding-top:47px;
  padding-right:130px;
}
.about-inner{width:320px;text-align:left}
.about .section-head h2{font-size:49px;letter-spacing:5.3px}
.about .section-head span{margin-top:27px;width:114px;height:8px}
.clivma-logo{
  width:99px;
  height:99px;
  object-fit:cover;
  margin:10px 0 21px 35px;
}
.about p{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:#565656;
  font-size:16px;
  line-height:1.67;
  font-weight:400;
}
.about-image,
.about-image img{
  width:100%;
  height:640px;
}
.about-image img{object-fit:cover;object-position:center center}

.stats{
  height:207px;
  background:var(--yellow);
  color:#315a7c;
  display:flex;
  align-items:center;
}
.stats-inner{
  width:var(--content);
  height:96px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.stat{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  position:relative;
  text-align:center;
}
.stat:not(:last-child)::after{
  content:"";
  position:absolute;
  right:0;
  top:21px;
  width:1px;
  height:64px;
  background:rgba(255,255,255,.9);
}
.stat strong{
  font-size:55px;
  line-height:.9;
  font-weight:700;
  letter-spacing:1px;
  margin:0 0 18px;
}
.stat span{
  font-size:19px;
  line-height:1.1;
  font-weight:700;
  letter-spacing:-.2px;
}

.projects{padding:60px 20px 134px}
.projects-grid{
  width:var(--grid);
  margin:50px auto 0;
  display:grid;
  grid-template-columns:repeat(2, 425px);
  gap:29px 32px;
}
.projects-grid picture,
.projects-grid img{
  width:425px;
  height:425px;
  object-fit:cover;
}

.clients{
  background:#f7f7f7;
  padding:75px 20px 84px;
  text-align:center;
}
.clients .section-head h2{font-size:48px;letter-spacing:3px}
.clients .section-head span{margin-top:22px;width:110px;height:8px}
.clients-grid{
  width:882px;
  margin:59px auto 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:44px;
}
.clients-grid img{display:block;object-fit:contain;height:auto}
.client-bruedil{width:128px}
.client-edile{width:151px}
.client-vittadello{width:158px}
.client-nardello{width:139px}
.client-mapei{width:151px}

.contact{
  background:#fff;
  padding:59px 20px 38px;
  text-align:center;
}
.contact .section-head h2{font-size:49px;letter-spacing:4px}
.contact .section-head span{margin-top:23px;width:111px;height:8px}
.map-link{
  display:block;
  width:881px;
  height:342px;
  margin:51px auto 0;
  overflow:hidden;
}
.map-link img{width:100%;height:100%;object-fit:cover}
.contact-info{
  width:881px;
  margin:40px auto 0;
  padding-left:28px;
  text-align:left;
  font-family:Arial, Helvetica, sans-serif;
  color:#555;
}
.contact-info h3{
  margin:0 0 22px;
  color:var(--navy-text);
  font-family:Montserrat, Arial, Helvetica, sans-serif;
  font-size:23px;
  line-height:1.2;
  font-weight:700;
}
.contact-info p{
  margin:0 0 22px;
  font-size:16px;
  line-height:1.48;
  font-weight:400;
}
.footer-line{
  width:881px;
  margin:55px auto 0;
  padding-left:28px;
  display:grid;
  grid-template-columns:1fr 1fr;
  color:#777;
  font-family:Arial, Helvetica, sans-serif;
  font-size:14px;
  line-height:1.4;
  text-align:left;
}
.footer-line span:nth-child(2){text-align:center}
.bottom-strip{
  height:96px;
  background-image:linear-gradient(rgba(24,42,58,.56),rgba(24,42,58,.56)),url("assets/hero-poster.jpg");
  background-size:cover;
  background-position:center bottom;
}

.chat-button{
  position:fixed;
  right:24px;
  bottom:24px;
  width:62px;
  height:62px;
  background:var(--navy);
  z-index:50;
}
.chat-button::before{
  content:"";
  position:absolute;
  left:22px;
  top:21px;
  width:21px;
  height:16px;
  background:#fff;
  border-radius:8px;
}
.chat-button::after{
  content:"";
  position:absolute;
  left:24px;
  top:33px;
  width:7px;
  height:7px;
  background:#fff;
  transform:skew(-24deg) rotate(35deg);
}
.to-top{display:none}

@media (max-width:640px){
  :root{--header-h:68px;--content:100%;--grid:264px}
  body{background:#fff}
  .site-header{height:68px}
  .header-inner{width:100%;justify-content:center}
  .brand{width:97px;margin:0}
  .brand img{width:97px}
  .main-nav{display:none}

  .hero{
    height:644px;
    min-height:644px;
  }
  .hero-video{object-position:50% 0}
  .hero-copy{padding-top:27px}
  .hero h1{
    width:280px;
    font-size:17px;
    line-height:1.25;
    letter-spacing:.65px;
  }
  .hero-arrow{display:none}
  .hero-shade{background:rgba(45,126,155,.25)}
  .hero-pattern{opacity:.14}

  .section-head h2{
    font-size:25px;
    line-height:1;
    letter-spacing:1.8px;
  }
  .section-head span{
    width:75px;
    height:7px;
    margin-top:19px;
  }

  .services{padding:24px 0 31px}
  .services-grid{
    width:264px;
    margin:27px auto 0;
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
  .service-card{width:264px;display:flex;flex-direction:column;align-items:center}
  .service-card picture,.service-card img{
    width:198px;
    height:151px;
    object-fit:cover;
  }
  .service-title{
    width:264px;
    height:94px;
    padding:29px 24px 0;
    font-size:18px;
    line-height:1.08;
  }

  .media-strip{
    height:133px;
    background-attachment:scroll;
    background-position:center 25%;
  }

  .about{
    height:auto;
    display:block;
    background:#fff;
  }
  .about-image{display:none}
  .about-copy{
    padding:28px 27px 27px;
    display:block;
  }
  .about-inner{width:100%;max-width:264px;margin:0 auto;text-align:left}
  .about .section-head h2{
    font-size:25px;
    letter-spacing:1.9px;
  }
  .about .section-head span{
    width:75px;height:7px;margin-top:18px;
  }
  .clivma-logo{
    width:161px;
    height:76px;
    object-fit:cover;
    margin:13px auto 20px;
  }
  .about p{
    font-size:13px;
    line-height:1.62;
  }

  .stats{
    height:auto;
    min-height:230px;
    padding:18px 0 19px;
  }
  .stats-inner{
    width:100%;
    height:auto;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .stat{height:96px;justify-content:center}
  .stat::after{display:none}
  .stat strong{
    font-size:33px;
    line-height:1;
    margin-bottom:7px;
  }
  .stat span{
    font-size:17px;
    line-height:1.1;
  }

  .projects{
    padding:22px 0 28px;
    text-align:left;
  }
  .projects .section-head{
    width:264px;
    margin:0 auto;
    text-align:left;
  }
  .projects .section-head span{margin-left:0;margin-right:0}
  .projects-grid{
    width:264px;
    margin:24px auto 0;
    grid-template-columns:1fr;
    gap:29px;
  }
  .projects-grid picture,.projects-grid img{
    width:264px;
    height:264px;
  }

  .clients{
    padding:29px 0 41px;
  }
  .clients .section-head h2{
    font-size:25px;
    letter-spacing:1.9px;
  }
  .clients .section-head span{
    width:75px;height:7px;margin-top:18px;
  }
  .clients-grid{
    width:264px;
    margin:31px auto 0;
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    justify-items:center;
    gap:20px 17px;
  }
  .client-edile{grid-column:1;width:105px;grid-row:1}
  .client-nardello{grid-column:2;width:108px;grid-row:1}
  .client-mapei{grid-column:1/3;width:128px;grid-row:2;margin:1px auto 0}
  .client-vittadello{grid-column:1;width:108px;grid-row:3}
  .client-bruedil{grid-column:2;width:106px;grid-row:3}

  .contact{
    padding:25px 0 19px;
  }
  .contact .section-head h2{
    font-size:25px;
    letter-spacing:1.9px;
  }
  .contact .section-head span{
    width:75px;height:7px;margin-top:18px;
  }
  .map-link{
    width:100%;
    height:214px;
    margin:25px auto 0;
  }
  .contact-info{
    width:264px;
    margin:30px auto 0;
    padding-left:0;
  }
  .contact-info h3{
    font-size:22px;
    margin-bottom:18px;
  }
  .contact-info p{
    font-size:13px;
    line-height:1.5;
    margin-bottom:24px;
  }
  .footer-line{
    width:264px;
    margin:52px auto 0;
    padding-left:0;
    display:block;
    font-size:11px;
    line-height:1.8;
  }
  .footer-line span{display:block;text-align:left!important}
  .bottom-strip{height:37px;background-position:center bottom}

  .chat-button{
    right:18px;
    bottom:17px;
    width:41px;
    height:41px;
    border-radius:50%;
  }
  .chat-button::before{left:14px;top:14px;width:15px;height:12px;border-radius:6px}
  .chat-button::after{left:16px;top:24px;width:5px;height:5px}
  .to-top{
    display:block;
    position:fixed;
    right:18px;
    bottom:85px;
    width:48px;
    height:48px;
    border-radius:50%;
    background:var(--navy);
    z-index:51;
  }
  .to-top::before{
    content:"";
    position:absolute;
    left:15px;
    top:18px;
    width:16px;
    height:16px;
    border-left:6px solid #fff;
    border-top:6px solid #fff;
    transform:rotate(45deg);
  }
}
