@media (min-width: 576px) {

}

@media (max-width: 767px) {
  :root {
    --header-height: 45px;
    --footer-height: 50px;
  }
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .grid.eight {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid.twelve {
    grid-template-columns: repeat(7, 1fr);
  }
  h4, .h4 {
    font-size: 1.25rem;
  }
  .wrapper {
    position: relative;
    overflow-x: hidden;
  }
  section {
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }
  .header {
    background: white;
    transition: background 0.2s;
  }
  .header.sticky {
    background: transparent;
  }
  .header .taf-logo {
    max-height: 150%;
    margin: -3% 0 0 -5%;
  }
  .header nav {
    display: flex;
    grid-column: 4 / span 1;
    position: absolute;
    top: 0;
    right: -100vw;
    transition: right 0.3s;
    width: 75vw;
    height: 100vh;
    background: var(--blue-color);
    color: white;
    padding: 4rem 1rem 1rem;
    flex-direction: column;
    justify-content: space-between;
  }
  .header.open nav {
    right: -1rem;
  }
  .header a {
    color: white;
  }
  .header.open a:hover,
  .header.open a:focus,
  .header.open a:active {

  }
  .header .nav {
    display: none;
  }
  .header .menu.nav {
    display: flex;
    flex-direction: column;
    font-size: 1.6rem;
    line-height: 2.222222em;
  }
  .header .menu > li a {
    color: white;
  }
  .header .nav-toggle {
    display: block;
    background: transparent;
    border: none;
    outline: none !important;
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
  }
  .header .nav-toggle::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
  }
  .header:not(.open) .nav-toggle::before {
    width: 1px;
    height: 23px;
    margin-right: 0.25em;
    background: var(--blue-color);
    box-shadow: 4px 0px 0px 0 var(--blue-color), -4px 0px 0 0 var(--blue-color);
  }
  .header.open .nav-toggle {
    color: white;
    font-size: 2.5rem;
    line-height: 0.7em;
  }
  .header.open .nav-toggle::before {
    content: '\2715';
  }
  .header .lang-contacts {
    display: flex;
  }
  .header .address {
    display: inline-block;
    width: 85%;
    vertical-align: top;
    font-size: 1rem;
    text-transform: none;
  }
  .header .address p {
    margin-top: 0;
  }
  .header .address .name,
  .header .address .name + br {
    display: none;
  }
  .header nav .lang {
    display: inline-block;
    width: 15%;
    font-size: 1rem;
    line-height: 1.5em;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .header nav .lang .active a {
    color: var(--red-color);
  }

  #home {
    height: calc(100vh - var(--header-height));
    -webkit-clip-path: polygon(0 -100px, calc(100% - 7em) -100px, calc(100% + 35em) 100%, 0% 100%);
    clip-path: polygon(0 -100px, calc(100% - 7em) -100px, calc(100% + 35em) 100%, 0% 100%);
  }
  #home .bg {
    height: 100vh;
    background-position: 55% 0;
  }
  #home .lead {
    padding: 0.5rem 1rem 0.6rem;
    margin: 0 -1rem;
    font-size: 6.9vw;
  }
  #home .lead .font-hollow {
    display: block;
    -webkit-text-stroke-width: 0.4px;
  }
  #home .logos {
    top: calc(100vh - var(--footer-height));
    padding-top: 0;
  }
  #home .logos small {
    margin-top: 0.5rem;
  }
  #home .logos .grid {
    height: calc(100% - 1rem);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  #home .logos img {
    max-width: 22%;
    height: auto;
    object-fit: contain;
  }
  #home .logos img:last-child {
    height: calc(100% + 0.5em);
  }
  #home .logos img:nth-last-child(2) {
    margin-bottom: -0.5em;
  }

  .trapezoid {
    --height: 123px;
    --inclination: 80px;
    --top: calc(100vh - 6rem);
    --left: 59%;
  }
  .trapezoid1 {
    --width: 355px;
    top: calc(var(--top) - var(--height) - 2rem);
    left: var(--left);
  }
  .trapezoid2 {
    --width: 540px;
    --height: 23px;
    --inclination: 17px;
    top: var(--top);
    left: calc(var(--left) - var(--inclination) - 1rem);
  }


  #about-us {
    margin-top: 1rem;
    padding: 4rem 1rem;
    z-index: 11;
  }
  #about-us.grid .intro {
    grid-column: 1 / span 4;
  }
  #about-us .intro {
    font-size: 1.5em;
  }


  #team {
    padding-top: calc(var(--header-height));
    margin-top: 5rem;
  }
  #team .grid.twelve {
    position: relative;
    width: 100vw;
    left: 0;
  }
  #team .grid .lead {
    grid-column: 1 / span 5;
  }
  #team .lead {
    padding-bottom: 2rem;
  }
  #team .lead::before {
    width: 120vw;
    height: 140%;
    left: -1rem;
    top: auto;
    bottom: 0;
    -webkit-clip-path: polygon(0 0, 45% 0, 100% 100%, 0% 100%);
    clip-path: polygon(0 0, 45% 0, 100% 100%, 0% 100%);
  }
  #team .lead p {
    margin-top: 0.5em;
  }
  #team .members {
    display: grid;
    grid-gap: 2rem 1rem;
    grid-template-columns: repeat(6, 1fr);
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  #team .member {
    grid-column: 1 / span 6;
  }
  #team .member:nth-child(even) .photo {
    float: right;
    margin: 0 0 0 1rem;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 45% 100%, 0% 50%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 45% 100%, 0% 50%);
  }
  #team .member .photo {
    width: calc(calc(100vw - 1rem) / 6 * 4 - 1rem);
  }
  #team .member .name {
    margin-bottom: 0.5rem;
  }

  #services {
    padding-bottom: 1rem;
  }
  #services .grid.eight {
    grid-template-columns: repeat(7, 1fr);
    width: calc(100vw - 2rem);
  }
  #services .lead-space {
    margin: 0 0 2rem;
  }
  #services .lead {
    grid-column: 1 / span 7;
    font-size: 2.25rem;
    padding-top: calc(var(--header-height) - 1px);
  }
  #services .lead::before {
    width: calc(100% + 2rem);
    height: 68vh;
    /*top: -1px;*/
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 31%, 0% 100%);
    clip-path: polygon(0 0, 100% 0, 100% 31%, 0% 100%);
  }
  #services .lead::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    height: 40%;
    width: 1px;
    background: var(--blue-color);
    transform: rotate(44deg);
    transform-origin: bottom;
  }
  #services .lead p {
    max-width: 360px;
    --polygon: polygon(0 0, 100% 0, 100% 61%, 81% 100%, 0 100%);
    padding: 0.2em 0.5em 0.3em;
  }
  #services .info .inner {
    width: calc(100vw - 2rem);
    padding: 1rem 0 2rem;
  }
  #services .info .inner .title {
    font-size: 2rem;
  }
  #services .info .inner .text {
    font-size: 1.25rem;
    line-height: 1.2em;
  }
  #services .info img {
    max-width: 100%;
  }
  #services .info1,
  #services .info3 {
    grid-column: 1 / span 6;
  }
  #services .info2 {
   grid-column: 2 / span 6;
  }
  #services .info2 .inner {
    margin-left: calc((100vw - 1rem) / -7);
    text-align: right;
  }
  #services .truck {
    width: 100vw;
    height: 68vh;
    background-size: cover;
    margin-top: 15rem;
    background-position: top left;
    -webkit-tap-highlight-color: transparent;
  }
/*   #services .truck:hover .inner,
  #services .truck:focus .inner,
  #services .truck:active .inner {
    display: none;
  } */
  #services .truck .hotspot::before {
    --size: 3rem;
    background: var(--blue-color);
  }
  #services .truck .hotspot .inner {
    position: absolute;
    font-size: 0.833334em;
    line-height: 1.2em;
  }
  #services .truck .hotspot1 {
    top: 57%;
    left: 0%;
  }
  #services .truck .hotspot1::before {
    top: auto;
    bottom: 0;
  }
  #services .truck .hotspot1 .inner {
    width: 174px;
    bottom: 0;
    left: 0;
  }
  #services .truck .hotspot1 .plus {
    line-height: 1.04em;
  }
  #services .truck .hotspot1 .kms {
    letter-spacing: -1px;
  }
  #services .truck .hotspot1 .ton {
    padding-bottom: 1.2em;
  }
  #services .truck .hotspot2 {
    top: 2%;
    left: auto;
    right: 2rem;
  }
  #services .truck .hotspot2 .inner {
    width: 154px;
    top: 0;
    right: 0;
    padding-bottom: 0;
  }
  #services .truck .hotspot2 .title {
    margin-bottom: 0.5rem;
  }
  #services .truck .hotspot2 .typologies {

  }
  #services .truck .hotspot2 .typologies > li {
    width: 100%;
    margin: 0.4rem 0;
  }
  #services .truck .hotspot2 .typology img {
    max-width: 100%;
  }
  #services .truck .hotspot2 .typology .name {
    padding-top: 0.5rem;
    letter-spacing: -0.5px;
  }
  #services .truck .hotspot2 .typology .name::after {
    height: 100%;
  }
  #services .truck .hotspot3 {
    top: -5%;
    left: 59%;
  }
  #services .truck .hotspot2::before,
  #services .truck .hotspot3::before {
    left: auto;
    right: 0;
  }
  #services .truck .hotspot3 .inner {
    top: 0;
    width: 59vw;
    right: 0;
  }
  #services .truck .hotspot3 .inner ul li:first-child img {
    width: 85%;
    margin-left: auto;
    display: block;
  }


  #partners {
    padding-top: calc(var(--header-height));
    padding-bottom: 1rem;
    margin-top: 5rem;
    z-index: 0;
  }
  #partners .grid.eight {
    grid-template-columns: repeat(7, 1fr);
  }
  #partners .grid .lead {
    grid-column: 1 / span 5;
    padding: 0 0 2rem;
  }
  #partners .lead::before {
    width: 156vw;
    height: 243%;
    top: auto;
    bottom: 0;
    left: -40vw;
    -webkit-clip-path: polygon(36% 0, 100% 0, 64% 100%, 0% 100%);
    clip-path: polygon(36% 0, 100% 0, 64% 100%, 0% 100%);
  }
  #partners .lead p {
    margin-top: 0.5em;
  }
  #partners .partners {
    padding: 0;
  }
  #partners .partner {
    margin-top: 3rem;
  }
  #partners .partner .name {
    font-size: 0.833334rem;
  }


  #contacts {
    padding-top: 1rem;
    height: 100%;
  }
  #contacts .copyright {
    padding: 1rem;
  }
}

@media (max-width: 374px) {
  .header .menu.nav {
    font-size: 1.3rem;
  }
  .header nav .lang,
  .header .address {
    font-size: 0.8rem;
  }

  #team .grid.twelve {
  }
  #team .grid .lead {
    grid-column: 1 / span 6;
    padding-right: 1rem;
  }
  #team .lead::before {
    -webkit-clip-path: polygon(0 0, 54% 0, 100% 100%, 0% 100%);
    clip-path: polygon(0 0, 54% 0, 100% 100%, 0% 100%);
  }
  #team .members {
    grid-template-columns: repeat(5, 1fr);
  }
  #team .member {
    grid-column: 1 / span 5;
  }
  #team .member .photo {
    width: calc(calc(100vw - 1rem) / 5 * 3 - 1rem);
  }
  #team .member .photo .quote {
    font-size: 0.9rem;
  }

  #services .lead {
    font-size: 1.9rem;
  }
  #services .info .inner .title {
    font-size: 1.8rem;
    margin-top: 0.3rem;
  }
  #services .info .inner .text {
    font-size: 1.1rem;
  }
  #contacts .copyright {
    font-size: 1.1rem;
  }
}
