body {
    background-image: url(../assets/index/background-mold.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-origin: border-box;
    background-position: center;
    background-attachment: fixed;
}

section.title {
    padding: 0 0 2rem 0;
}

div.banner {
    position: relative;
    width: 100%;
}

div.banner div.slide {
    background-repeat: no-repeat;
    background-size: cover;
    background-origin: border-box;
    background-position: center;
    position: relative;
    min-height: 40rem;
    display: flex;
    align-items: center;
}

div.banner div.slide {
    display: none;
}

div.banner .slide-1 {
    background-image: url(../assets/index/slider_envaplas_1.jpg);
}

div.banner .slide-2 {
    background-image: url(../assets/index/slider_envaplas_2.jpg);
}

div.banner .slide-3 {
    background-image: url(../assets/index/slider_envaplas_3.jpg);
}

div.banner .slide-4 {
    background-image: url(../assets/index/slider_envaplas_4.jpg);
}

div.banner div.description {
    padding: 2rem 5%;
    background: rgb(51 51 51 / 85%);
    color: white;
    font-size: 2rem;
    max-width: calc(100%);
    overflow-x: auto;
}

div.banner div.description p {
    width: fit-content;
}

div.banner div.slider-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 2rem);
    display: flex;
    height: 2rem;
    padding: 1rem;
    justify-content: space-between;
    align-items: center;
}

div.banner div.slider-buttons div.flex {
    display: flex;
    gap: 0.5rem;
}

div.banner .slider {
    text-align: center;
    color: white;
}

div.banner .bg-white,
div.banner .bg-hover-white:hover {
    color: black;
    background-color: white;
}

div.banner .slide-badge {
    border: 1px solid white;
    border-radius: 50%;
    display: block;
    width: 0.8rem;
    height: 0.8rem;
}

section.business {
    padding: 2rem 5%;
}

div.business-list {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

div.business-part {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 80vw;
    margin: 0 auto;
    text-align: center;
    flex: 1 1 0;
    min-width: 15rem;
}

div.business-part img {
    width: 5rem;
}

div.business-part h2 {
    font-size: 1.2rem;
}

section.product-types {
    padding: 4rem 5%;
    background: #ededed;
}

div.product-type-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    align-content: stretch;
    gap: 2rem;
}

div.product-type-list a.product {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    text-decoration: none;
    color: #333333;
}

section.product-specifications {
    background: #013765;
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 5%;
    justify-content: center;
}

section.product-specifications div.illustration {
    flex: 1 1 0;
    text-align: center;
}

section.product-specifications div.description {
    flex: 2 1 0;
}

section.product-specifications img {
    max-width: 60vw;
    width: 35rem;
    margin: auto;
}

section.product-specifications h3,
section.product-specifications h4 {
    color: #f2d144;
}

section.product-specifications div.flex {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

section.product-specifications div.flex > * {
    flex: 1 1 0;
    min-width: 15rem;
}

section.engineering {
    padding: 4rem 5%;
}

section.engineering > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

section.engineering div.description {
    flex: 2 1 0;
}

section.engineering div.illustration {
    flex: 1 1 0;
    text-align: center;
}

section.engineering img {
    max-width: 80vw;
    width: 35rem;
    margin: auto;
    border-radius: 2rem;
}

section.mold {
    padding: 8rem 10%;
    color: white;
    background: rgb(0 0 0 / 25%);
}

section.mold > div {
    max-width: 40rem;
    width: 100%;
}

section.mold figure.flex {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

section.mold ul {
    padding: 0;
}

section.mold li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5em 0;
    font-size: 1.4rem;
}

section.mold li img {
    width: 1em;
}

section.main-products {
    padding: 2rem 0;
}

section.main-products div.title {
    padding: 2rem 10%;
}

section.main-products div.product-list {
    width: 100%;
    margin: 2rem auto;
    display: flex;
    justify-items: center;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
}

section.main-products .product-card {
    width: 100%;
    display: block;
    position: relative;
    text-align: center;
    overflow: hidden;
    min-width: 15rem;
    flex: 4 1 25%;
}

section.main-products .product-card div.image {
    width: 100%;
    padding: 2rem 0;
}

section.main-products .product-card img {
    width: 100%;
}

section.main-products .product-card div.background-gradient {
    height: 0;
    width: 100%;
    position: absolute;
    bottom: 0;
    background-image: linear-gradient(to bottom, rgba(94, 97, 114, 0.25), rgb(94, 97, 114));
    transition: ease-in-out 0.5s height;
}

section.main-products .product-card:hover div.background-gradient {
    height: 100%;
}

section.main-products .product-card div.description {
    height: calc(100% - 0.5rem);
    position: absolute;
    width: calc(100% - 1rem);
    bottom: 0;
    color: #484c61;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    gap: 0;
    padding: 0 0.5rem 0.5rem 0.5rem;
    transition: ease-in-out 0.5s color, ease-in-out 0.5s gap;
}

section.main-products .product-card:hover div.description {
    color: white;
    gap: 2rem;
}

section.main-products div.description .name {
    font-size: 1.4rem;
}

section.main-products div.description .subtitle {
    font-weight: bold;
    font-size: 0.9rem;
    height: 0;
    min-height: 0;
    max-height: 0;
    transition: ease-in-out 0.5s min-height, ease-in-out 0.5s max-height;
    visibility: hidden;
}

section.main-products .product-card:hover .subtitle {
    visibility: visible;
    height: fit-content;
    min-height: 1rem;
    max-height: 2rem;
}

section.news {
    height: fit-content;
    padding: 2rem 5%;
}

div.news-list {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 2rem;
    align-items: flex-start;
}

div.news-list > div {
    flex: 1 1 0;
    min-width: 15rem;
}

div.news-card {
    flex: 1 1 0;
    box-shadow: 0 0 5px 0 #bfbfbf;
    padding: 0.5rem;
    color: #999cb0;
}

div.news-card img.news-illustration {
    width: 100%;
}

div.news-card div.body a {
    text-decoration: none;
    color: #00005a;
}

div.news-card div.body h3 {
    font-size: 1.1rem;
}

div.date img {
    width: 1.4em;
}

div.news-card div.date {
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
}

div.news-card div.footer {
    text-align: center;
    padding: 0.5rem;
    border-top: 1px solid #ebebeb;
    margin-top: 1rem;
}

div.news-card div.footer a {
    text-decoration: none;
    color: black;
    font-weight: 600;
}