/* FONTS */
@font-face {
    font-family: 'Gotham';
    src: url(assets/fonts/Gotham-Font/normals/Gotham-Thin.otf) format('opentype');
    font-weight: 100;    
}
@font-face {
    font-family: 'Gotham';
    src: url(assets/fonts/Gotham-Font/normals/Gotham-XLight.otf) format('opentype');
    font-weight: 200;    
}
@font-face {
    font-family: 'Gotham';
    src: url(assets/fonts/Gotham-Font/normals/Gotham-Light.otf) format('opentype');
    font-weight: 300;    
}
@font-face {
    font-family: 'Gotham';
    src: url(assets/fonts/Gotham-Font/normals/GothamBook.ttf) format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Gotham';
    src: url(assets/fonts/Gotham-Font/normals/GothamMedium.ttf) format('truetype');
    font-weight: 500;    
}
@font-face {
    font-family: 'Gotham';
    src: url(assets/fonts/Gotham-Font/normals/GothamBold.ttf) format('truetype');
    font-weight: 600;    
}
@font-face {
    font-family: 'Gotham';
    src: url(assets/fonts/Gotham-Font/normals/Gotham-Black.otf) format('opentype');
    font-weight: 800;    
}
@font-face {
    font-family: 'ChronicleTextG1';
    src: url(assets/fonts/ChronicleTextG1/Chronicle\ Text\ G1\ Roman.otf) format('opentype');
}
/* RESPONSIVE */
@media screen and (min-width: 800px) {
    body {
        padding-top: 105px;
    }
}
@media screen and (max-width: 800px) {
    nav {
        display: none;
    }
    body {
        padding-top: 0;
    }
}
@media screen and (max-width: 599px) {
    header p {
        display: none;
    }
    .social {
        display: none;
    }
}
@media screen and (min-width: 600px) {
    .menu {
        display: none;
    }
}
/* STYLES */
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: 'Gotham';
    font-weight: 500;
    background-color: aliceblue;
}
header {
    background-color: #007a86;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    padding: 0 20px 0 20px;
    box-sizing: border-box;
    margin: 0;
    position: fixed;
    top: 0;
    z-index: 20;
}
header p {
    font-family: 'Gotham';
    font-weight: 600;
    margin-left: 30px;
    font-size: 13px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.898);
}
.logo-header {
    height: 60px;
    margin-left: auto;
}
.logo-cendrassos-header {
    height: 50px;
    margin-left: 3em;
}
.social-cendrassos {
    align-items: center;
    margin-left: auto;
}
.social a {
    text-decoration: none;
}
.social img {
    background: #fff;
    margin-left: auto;
    width: 15px;
    padding: 7px;
    border-radius: 12px;
    margin-right: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.208);
}
.logo-social:hover {
    transform: scale(1.13);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.366);
}
.social-unm {
    align-items: left;
    margin-left: 2em;
}
.menu img{
    height: 30px;
}
nav {
    background-color: #ba0c2f;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 35px;
    align-items: end;
    position: fixed;
    top: 70px;
    z-index: 20;
}
nav ul {
    padding-top: 10px;
    margin: 0;
    display: flex;
    list-style: none;
    justify-content: space-around;
    font-family: 'Gotham';
    font-weight: 500;
}
nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}
nav span {
    font-size: 10px;
}
.ul-menu li::after {
  content: "";
  display: block;
  height: 2px;
  background-color: rgb(255, 255, 255);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s;
  margin-top: 1px;
}

.ul-menu li:hover::after {
  transform: scaleX(1);
}
.slider-box {
    width: 100%;
    height: auto;
    overflow: hidden;
}
.slider-box ul {
    display: flex;
    padding: 0;
    margin: 0;
    width: 500%;
    animation: slide 20s infinite alternate ease-in-out;
}
.slider-box li {
    width: 100%;
    list-style: none;
    position: relative;
}
.img-slider-box1 {
    background-image: url(assets/Laboratori.jpg);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 90vh;
}
.img-slider-box2 {
    background-image: url(assets/Laboratori2.jpg);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 90vh;
}
.img-slider-box3 {
    background-image: url(assets/Campen-Laboratory.jpg);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 90vh;
}
.img-slider-box4 {
    background-image: url(assets/Investgation-Laboratory.jpg);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 90vh;
}
.img-slider-box5 {
    background-image: url(assets/Campen-Laboratory4.jpg);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 90vh;
}
@keyframes slide {
    0% {margin-left: 0;}
    15% {margin-left: 0;}

    20% {margin-left: -100%;}
    35% {margin-left: -100%;}

    40% {margin-left: -200%;}
    55% {margin-left: -200%;}

    60% {margin-left: -300%;}
    75% {margin-left: -300%;}

    80% {margin-left: -400%;}
    100% {margin-left: -400%;}
} 
.div-text-scroll {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 90vh;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.548)100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    pointer-events:none;
}
.div-text-scroll a {
    pointer-events: all;
}
.h1FirstPage {
    text-align: center;
    font-family: 'ChronicleTextG1';
    color: #ffffff;
    font-size: 30px;
    font-style: italic;
    margin: 5px 0;
    position: relative;
    bottom: 90px;
    pointer-events: visible;
    text-shadow: 0 0 10px #000000ce;
    display: flex;
    z-index: 10;
}
.div-text-scroll h3 {
    margin: 5px 0;
    color:      #e6e6e6;
    font-family: 'chronicleTextG1';
    pointer-events: visible;
    font-size: 15px;
}
.btn-scroll {
    position: relative;
    bottom: 80px;
    text-decoration: none;
    background-color: #a1a1a150;
    border-radius: 30px;
    padding: 0 15px;
    border: solid 2.5px #006069;
    box-shadow: 0 0 10px #00000080;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: visible;
    display: flex;
    z-index: 10;
}
.btn-scroll:hover {
    transform: scale(1.05);
}
.scroll-arrow {
    position: relative;
    transform: rotate(-45deg);
    border-bottom: solid 1px #fff;
    border-left: solid 1px #fff;
    bottom: 55px;
    height: 20px;
    width: 20px;
    display: inline-block;
    animation: arrow 2s infinite;
}
.scroll-arrow-a {
    pointer-events: visible;
}
@-webkit-keyframes arrow {
    0% {
    -webkit-transform: rotate(-45deg) translate(0, 0);
    }
    20% {
    -webkit-transform: rotate(-45deg) translate(-10px, 10px);
    }
    40% {
    -webkit-transform: rotate(-45deg) translate(0, 0);
    }
}
@keyframes arrow {
    0% {
    transform: rotate(-45deg) translate(0, 0);
    }
    20% {
    transform: rotate(-45deg) translate(-10px, 10px);
    }
    40% {
    transform: rotate(-45deg) translate(0, 0);
    }
}

main {
    width: 100%; 
}
.grid {
    display: grid;
    margin: 90px 10% 120px 10%;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(400px, auto);
    gap: 10px;
    
}
.box {
    border: 1px solid rgb(233, 245, 255);
    border-radius: 10px;
    display: flex;
    justify-content: start;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.116);
    position: relative;
}
.one h2:hover {
    color: #007a86;
}
.two {
    grid-column-start: 1;
    grid-column-end: 7;
    padding-right: 20px;
    display: flex;
    justify-content: end;
}
.two img {
    height: 360px;
    width: 90%;
    border-radius: 10px;
    -webkit-mask-image:-webkit-gradient(linear, right top, right bottom, from(rgb(255, 0, 0)), to(rgb(255, 0, 0)));
    mask-image: linear-gradient(to left, rgb(255, 0, 0) 10%, rgba(255, 0, 0, 0) 90%) ;
}
.two h2 {
    position: absolute;
    width: 400px;
    text-align: center;
    line-height: 45px;
    left: 10%;
    font-size: 40px;
    color: #007b86d8;
    top: 20%;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.322);
}
.two h2:hover {
    color: #ba0c2f;
    cursor: pointer;
}
.three {
    grid-column-start: 1;
    grid-column-end: 5;
    padding: 20px;
}
.three img {
    height: 360px;
    border-radius: 10px;
    -webkit-mask-image:-webkit-gradient(linear, right top, right bottom, from(rgb(255, 0, 0)), to(rgb(255, 0, 0)));
    mask-image: linear-gradient(to right, rgb(255, 0, 0) 30%, rgba(255, 0, 0, 0) 80%) ;
}
.three h2 {
    position: absolute;
    width: 400px;
    text-align: center;
    line-height: 45px;
    left: 37%;
    font-size: 40px;
    color: #007b86d8;
    top: 35%;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.322);
}
.three h2:hover {
    color: #ba0c2f;
    cursor: pointer;
}
.four {
    grid-column-start: 5;
    grid-column-end: 7;
    position: relative;
    display: flex;
    justify-content: center;
}
.four img {
    height: 360px;
    width: 90%;
    border-radius: 10px;
    -webkit-mask-image:-webkit-gradient(linear, right top, right bottom, from(rgb(255, 0, 0)), to(rgb(255, 0, 0)));
    mask-image: linear-gradient(to bottom, rgb(255, 0, 0) 60%, rgba(255, 0, 0, 0) 90%) ;
}
.four h2 {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    line-height: 40px;
    font-size: 30px;
    color: #007b86d8;
    left: 0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.322);
}
.four h2:hover {
    color: #ba0c2f;
    cursor: pointer;
}
footer {
    width: 100%;
    height: 382px;
    background-color: #007a86;
    align-items: start;
}
.red-line {
    width: 100%;
    height: 35px;
    background-color: #ba0c2f;
    position: relative;
    bottom: 8%;
}
footer hr {
    color: #fff;
    margin: 20px 100px;
}
footer section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    display: flex;
    justify-content: space-between;
    margin: 0 7%;
    
}
footer article {
    margin-bottom: 0;
}
.footer-row-one-first img {
    height: 90px;
}
.footer-row-one-first p {
    color: #fff;
    font-family: 'Gotham';
    font-weight: 600;
    font-size: 14px;
    margin-left: 5px;
}
.footer-row-one {
    display: flex ;
    flex-direction: column;
    align-items: start;
    gap: 50px;
}
.social-footer {
    display: flex;
    align-items: center;
    gap: 25px;
    overflow: hidden;
}
.copyright {
    text-align: center;
    color: #fff;
    padding-top: 15px;
    padding-bottom: 20px;
    margin: 0;  
    border: 0;
    display: inline-block;
    position: relative;
}
.copyright::after {
  content: "";
  display: block;
  height: 2px;
  background-color: rgb(255, 255, 255);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s;
  margin-top: 5px;
}

.copyright:hover::after {
  transform: scaleX(1);
}
.flex-copyright {
    display: flex;
    justify-content: center;
}
.logo-instagram-footer {
    background-image: url(assets/logo-insta-white.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    height: 38px;
    width: 38px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-instagram-footer:hover {
    transform: scale(1.3);
}
.logo-facebook-footer {
    background-image: url(assets/logo-facebook-white.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    height: 38px;
    width: 38px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-facebook-footer:hover {
    transform: scale(1.3);
}
.logo-x-footer {
    background-image: url(assets/logo-x-white.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    height: 38px;
    width: 38px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-x-footer:hover {
    transform: scale(1.3);
}
.logo-youtube-footer {
    background-image: url(assets/logo-yt-white.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    height: 45px;
    width: 45px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-youtube-footer:hover {
    transform: scale(1.3);
}
.logo-linkedin-footer {
    background-image: url(assets/logo-linkedin-white.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    height: 38px;
    width: 38px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-linkedin-footer:hover {
    transform: scale(1.3);
}
.footer-row-two-first {
    display: flex ;
    flex-direction: column;
    align-items: end;
}
.footer-row-two-first img {
    margin-top: 15px;
    height: 60px;
    margin-right: 20px;
}
.footer-row-two-first p {
    color: #fff;
    font-family: 'Gotham';
    font-weight: 600;
    font-size: 14px;
    margin-top: 30px;
    margin-right: 5px;
    width: 35em;
    text-align: end;
}
.footer-row-two {
    display: flex ;
    flex-direction: column;
    align-items: end;
    gap: 50px;
}

.footer-row-three h2 {
    color: #fff;
}
.footer-row-three li {
    color: #fff;
    list-style-type: none;
    line-height: 150%;
}
.footer-form h2 {
    color: #fff;
}