@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* Utility */
.text-center {
    text-align: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Roboto', sans-serif;
}

/* Da usare */

h2 {
    font-size: 2rem;
    color: #75d5ca;
    margin: 1em 0;
}

h3 {
    font-size: 1.375rem;
    margin-bottom: 1em;
}

p,
li {
    font-size: 1rem;
    line-height: 150%;
}

li {
    list-style: none;
}

ol li {
    list-style: decimal;
    text-align: left;
    margin-left: 1em;
}

.f {
    display: flex;
}

.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

header {
    border-bottom: 3px solid #75d5ca;
}

.header-fields {
    margin: 2em 0;
    text-align: center;
}

.header-fields input {
    margin-right: 1em;
    margin-bottom: 0.5em;
}

.header-fields button {
    margin-top: 1em;
    padding: 5px 20px;
    border: none;
    background-color: #75d5ca;
    color: #000;
}

.grid-layout-main {
    padding: 1.5em;
}

.grid-layout-nav {
    display: none;
}

.logo {
    justify-content: center;
    margin: 1em 0;
    display: flex;
    align-items: center;
}

.logo span {
    margin: 0 1em;
}

.hamburger-menu {
    width: 30px;
    height: 30px;
}

.hamburger-menu div {
    width: 100%;
    height: calc(70% / 3);
    margin-top: calc(20% / 3);
    margin-bottom: calc(20% / 3);
    background-color: #75d5ca;
}

div.scrollmenu {
    background-color: #75d5ca;
    overflow: auto;
    white-space: nowrap;

    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 0;
}

div.scrollmenu a {
    display: inline-block;
    color: #121212;
    text-align: center;
    padding: 14px;
    text-decoration: none;
}

.content {
    text-align: center;
    margin: 2em 0.8em;
}

.content p {
    text-align: left;
}

.content-section {
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0 0.8em;
    padding: 20px;
    margin-bottom: 1em;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.content-title {
    margin-bottom: 0.6em;
}

nav,
.display-xs-none {
    display: none;
}

.flex-images {
    display: flex;
    flex-direction: column;
    margin-top: 1em;
}

/* .flex-images div {
    margin-bottom: 1.5em;
} */

.flex-image {
    width: 100%;
}

.main-points {
    display: flex;
    flex-direction: column;
}

.main-points div {
    margin: 1em 0;
}

.integration-grid-container {
    display: grid;
    grid-template-areas:
        'text text text'
        'list list list'
        'img1 img1 img1'
        'img2 img2 img2'
        'img3 img3 img3';
    grid-gap: 10px;
}

.integration-grid-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.integration-grid-item-1 {
    grid-area: text;
}

.integration-grid-item-2 {
    grid-area: list;
}

.integration-grid-item-3 {
    grid-area: img1;
}

.integration-grid-item-4 {
    grid-area: img2;
}

.integration-grid-item-5 {
    grid-area: img3;
}

.integration-list {
    text-align: left;
    margin: 1em 0;
}

.integration-list li {
    list-style-type: disc;
    margin-left: 1em;
}

.field-list li {
    list-style-type: lower-latin;
}

.field-list-first {
    margin: 0.8em 0;
}

.field-list li ol li {
    list-style-type: '- ';
}

.field-list li ol li ol li {
    list-style-type: square;
}

.field-coverage-images,
.field-coverage-lists {
    display: flex;
    flex-direction: column;
}

.field-coverage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 10px;
}

.field-coverage-grid-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.field-coverage-list {
    margin: 1em 0;
}

.field-coverage-list li {
    font-weight: bold;
    font-size: 1.125rem;
}

.manufacturing img,
.smart-logistics img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manufacturing ul,
.smart-logistics ul {
    text-align: left;
}

.manufacturing ul li,
.smart-logistics ul li {
    list-style-type: '- ';
    margin-left: 1em;
}

.manufactoring-flex,
.smart-logistics-flex {
    display: flex;
    flex-direction: column;
}

.manufactoring-column,
.smart-logistics-column {
    padding: 10px;
}

.manufactoring-column h5,
.smart-logistics-column h5 {
    margin: 1em 0;
}


/* media query */

@media only screen and (min-width: 769px) {

    /* nuovo code per desktop */
    .grid-layout {
        display: grid;
        grid-template-areas:
            'header header header'
            'nav main main'
            'nav main main'
        ;
        height: 100vh;
        grid-template-rows: 20% auto auto;
        grid-template-columns: 30% auto auto;
    }

    .grid-layout-header {
        grid-area: header;
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 3px solid #75d5ca;
        padding: 0 30px;
    }

    .logo {
        margin: 0;
    }

    .grid-layout-nav {
        display: block;
        grid-area: nav;
        background-color: #fff;
        border-right: 3px solid #75d5ca;
        padding-top: 20px;
    }

    .grid-layout-main {
        grid-area: main;
        background-color: #fff;
        overflow: auto;

    }

    .menu-list {
        text-align: center;
    }

    .menu-list {
        margin: 1.4em 0;
    }

    .who-we-are-content {
        padding: 30px;
    }

    .who-we-are-content h2 {
        margin-top: 0;
        text-align: center;
    }

    .field-coverage-images,
    .field-coverage-lists {
        flex-direction: row;
    }

    .field-coverage-eu {
        flex-basis: 60%;
    }

    .field-coverage-it {
        flex-basis: 40%;
    }

    .certificate-rina,
    .certificate-iqnet {
        padding: 2em;
    }

    .certificate-rina img,
    .certificate-iqnet img {
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    /* fine code per desktop */

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0px 30px 0 30px;
    }

    /* .container-1400 {
        max-width: 1400px;
        margin: 0 auto;
    } */

    .display-xs-none {
        display: block;
    }

    .scrollmenu {
        display: none;
    }

    .content {
        display: grid;
    }

    .content p {
        text-align: center;
    }

    .content-section-1 {
        grid-column: 1 / span 2;
        grid-row: 1;
    }

    .content-section-2 {
        grid-column: 1;
        grid-row: 2;
    }

    .content-section-3 {
        grid-column: 2;
        grid-row: 2;
    }

    main {
        /* margin-top: 200px; */
        width: 100%;
    }

    nav {
        display: block;
        padding-top: 40px;
        border-right: 3px solid #75d5ca;
        width: 30%;
        position: fixed;
        top: 150px;
        left: 30px;
        bottom: 0;
        text-align: center;
    }

    .menu span {
        background-color: #75d5ca;
        border: 1px solid #ddd;
        padding: 7px 12px;
        border-radius: 50px;
    }

    .menu li:hover span {
        background-color: #7fe2d6;
    }

    .menu li:hover a {
        color: #5ba39b;
    }

    .menu a {
        padding: 5px 25px;
        background-color: #ddd;
        border-radius: 50px;
    }

    /* nav ul li {
        margin: 2em 0;
    } */

    .menu-link {
        border-left: 3px solid #75d5ca;
        /* padding: 8px 25px; */
        color: #121212;
        text-decoration: none;
    }

    .menu-active {
        background-color: #75d5ca;
    }

    .flex-images {
        display: flex;
        flex-direction: row;
    }

    .flex-column-50 {
        flex-basis: 50%;
        padding: 0 10px;
    }

    .flex-image {
        width: 100%;
    }

    .main-points {
        flex-direction: row;
    }

    .integration-grid-container {
        display: grid;
        grid-template-areas:
            'text text text'
            'list list img3'
            'img1 img2 img3';
        grid-gap: 10px;
    }

    .manufactoring-flex {
        flex-direction: row;
    }


    .smart-logistics-flex {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .smart-logistics-column {
        flex-basis: 50%;
    }

    .smart-logistics-column--wide {
        flex-basis: 100%;
        margin-top: 1em;
    }

    .smart-logistics img {
        object-fit: contain;
    }


}