/*
Sections css:
- general
- about us
- main partner
- partner
- temp partner [2024 fiera]
- divider
- footer
- media queries
*/

html, body {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 1em;
    color: #00223c;
    scroll-behavior: smooth;
}

.container {
    width: calc(80vw - 4rem);
    max-width: 1306px;
    height: fit-content;
    min-height: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    position: relative;
}

h2 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.875rem;
    color: #00223c;
    font-weight: 900;
    margin-block-end: 0;
    margin-block-start: 0;
    text-align: left;
}

h3 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.875rem;
    color: inherit;
    font-weight: 900;
    line-height: 1.9375rem;
    margin-block-end: 0;
    margin-block-start: 0;
    text-align: left;
}

.orange {
    color: #e7501e;
}

.bold {
    font-weight: 700;
}

.bolder {
    font-weight: 900;
}

a {
    text-decoration: none;
    color: inherit;
}

.fadeOrange {
    color: inherit;
    transition: .3s color;
}

.fadeOrange:hover {
    color: #e7501e;
}

.underline:hover {
    border-bottom: 4px solid #e7501e
}

/* Navbar */

.navbar {
    height: 3rem;
    width: 100%;
    background-color: #fff;
    position: fixed;
    z-index: 1000;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    justify-content: right;
}

.navbar-links li {
    font-size: 0.9rem;
    font-weight: 700;
}

.navbar-logo {
    left: 8vw;
    position: absolute;
}

.burger-menu {
    height: 2rem;
    width: 2rem;
    display: none;
    background-image: url(../img/burger_menu.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    float: right;
    position: relative;
    top: .5rem;
    padding-right: 3rem;
}
 

/* Landing */

.landing {
    width: 100%;
    height: 100vh;
    background-image: url(../img/main-qibus-background.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.slogan {
    font-size: 7.6562vw;
    font-family: ' Noto Sans', sans-serif;
    letter-spacing: -0.48px;
    line-height: 7.1875vw;
    font-weight: 900;
    color: #fff;
    position: absolute;
    left: 4rem;
    top: 8rem;
    text-align: left;
}

.landing-scroll {
    position: absolute;
    bottom: 1.5rem;
}

.main-degree-line {
    top: 17.3vh;
    height: 85vh;
    width: 2em;
    margin: 0;
    padding: 0;
    z-index: 10;
    background-image: url(../img/landing-degree-line.webp);
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
    position: absolute;
}

/* Coordinates */

.landing-degrees-line {
    height: 85vh;
    width: 2rem;
    background-image: url(../img/landing-degree-line.webp);
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
    position: absolute;
    left: 2rem
}

.coordinates-text {
    text-align: left;
    position: absolute;
    left: 4rem;
    top: 50%;
    transform: translate(0, -50%);
    font-size: 0.625rem;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
}

/* About us */

.aboutus-container {
    text-align: left;
}

.aboutus {
    width: 100%;
    position: relative;
    margin-bottom: 10rem;
}

.dark-aboutus-stripe {
    width: 100%;
    background-color: #00223c;
    color: #fff;
    padding-top: 5.2rem;
    padding-bottom: 2.6rem;
    position: relative;
}

.aboutus-content {
    text-align: left;
    max-width: 38.125rem;
}

.aboutus-content h3:nth-child(1) {
    margin-bottom: 3rem;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    line-height: 2.25rem;
    max-width: 22.375rem;
}

.aboutus-content p {
    font-weight: 300;
    line-height: 1.5rem;
    margin-block-start: 0;
    margin-block-end: 1.5rem;
}

.branded-bus {
    width: 50%;
    height: 40.14rem;
    position: absolute;
    right: 0;
    top: 0;
    background-color: #fff;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    background-image: url(../img/mosaic-about.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom left;
}

/* Main partner */

.mainpartner {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    display: grid;
}

.mainpartner-header {
    display: flex;
    gap: 1.5rem;
    height: 5rem;
}

.mainpartner-header-logo {
    height: 5rem;
}

.mainpartner-mainimage {
    width: 100%;
    height: 35vh;
    max-height: 22.625rem;
    position: relative;
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: contain;
}

.sub-image {
    text-align: left;
    height: 9.375rem;
    overflow: hidden;
}

.sub-image-img {
    width: 100%;
    height: 6.5rem;
    background-position: left;
    background-repeat: no-repeat;
    background-size: contain;
}


/* Hydrogen partner */

.hydropartner-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4.5vw;
    overflow: hidden;
}

.electric-grid-container {
    grid-template-columns: 1fr 1fr;
    gap: 2vw;
}

.hydropartner-content-container {
    padding-right: 6rem;
}

.main-partner-header {
    display: flex;
    gap: 1.5rem;
}

.hydropartner-img {
    width: 100%;
}

.hydropartner-yt-video {
    height: 14.4375rem;
    width: 100%;
    border: none;
}

.partner-button-container {
    display: flex;
    align-items: center;
    gap: 8.5%;
}

.justify-flex-right {
    justify-content: flex-end;
}

.partner-button-img {
    height: 3.2rem;
    padding: .7rem;
}

.partner-button {
    display: flex;
    align-items: center;
}

.partner-button-txt {
    margin-block-end: 0;
    margin-block-start: 0;
    font-size: 1.25rem;
    line-height: 1.31rem;
    text-align: left;
}

.main-partner-img-container {
    position: relative;
}

.hydrogen-h2logo {
    height: 3.34rem;
    position: absolute;
    left: 1rem;
    bottom: 1rem;
}

.flex-behaviour {
    display: flex;
}

.align-center {
    align-self: center;
}


/* Divider */

.divider {
    width: 100%;
    height: 8rem;

    margin-top: 12vh;
    margin-bottom: 12vh;
    overflow: hidden;
}

.degree-line {
    grid-area: 1 / 2 / 1 / 4;
    width: 100%;
    height: 2rem;
    background-position: left;
    background-size: cover;
    background-repeat: no-repeat;
}

.divider-grid {
    display: grid;
    grid-template-columns: 1fr 1306px 1fr;
}

.divider-downarrow {
    margin-top: 2.5rem;
}

/* News */

.news {
    margin-top: 7rem;
    display: grid;
    grid-template-rows: 1.5rem 18rem 4rem;
    grid-template-columns: 1fr auto 1fr;
}

.news-orange-bar {
    width: 100%;
    background-color: #e7501e;
    grid-area: 2 / 1 / 2 / 6;
    background-image: url(../img/linea_news.webp);
    background-position: left;
    background-repeat: no-repeat;
    background-size: auto;
}

.news-red-bar {
    width: 100%;
    background-color: red;
    grid-area: 1;
}

.news-container {
    display: grid;
    width: calc(80vw - 4rem);
    max-width: 1306px;
    padding-left: 2rem;
    padding-right: 2rem;
    grid-template-columns: 9rem 4fr 7fr 3rem;
    grid-template-rows: 1.5rem 18rem 4rem;

    grid-area: 1 / 2 / 4 / 3;
}

.news-container h3 {
    grid-area: 2 / 1 / 2 / 1;
    color: #fff;
    position: relative;
    top: 2.7rem;
}

.news-img {
    max-width: 32rem;
    min-width: 22rem;
    width: 30vw;
    grid-area: 1 / 2 / 4 / 2;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.news-info-container {
    max-width: 29.6875rem;
    padding-left: 1.3rem;
    padding-right: 1.3rem;
    grid-area: 2 / 3 / 2 / 3;
    align-self: center;
}

.news-date {
    font-size: 0.75rem;
    color: #fff;
    margin-block-start: 0;
}

.news-title {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 900;
    color: #00223c;
    font-size: 1.25rem;
    margin-block-end: 0;
    margin-block-start: 0;
}

.news-body {
    max-height: 7.875rem;
    color: #fff;
    line-height: 1.3125rem;
    font-size: 1rem;
    font-weight: 300;
    text-overflow: ellipsis;
    overflow: hidden;
}

.news-readmore {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 900;
    color: #00223c;
    font-size: 0.875rem;
}

.news-archive {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 900;
    color: #00223c;
    font-size: 0.875rem;
    grid-area: 3 / 3 / 3 / 3;
    padding-left: 1.3rem;
    align-self: center;
    line-height: 0.875rem;
}

.next-news {
    height: 3rem;
    width: 3rem;
    grid-area: 2 / 4 / 2 / 4;
    align-self: center;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(../img/rightarrow-news.webp);
    cursor: pointer;
}

/* Footer */

.footer {
    width: 100%;
    background-color: #00223c;
    color: #fff;
    padding-top: 3rem;
    padding-bottom: 8rem;
    margin-top: 5.5rem;
}

.footer-grid {
    width: 1024px;
    display: grid;
    grid-template-columns: 1fr minmax(min-content, 6rem) 1.3fr .6fr;
}

.qibus-info {
    padding-right: 2rem;
    text-align: left;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    border-right: 1px solid #fff;
}

.qibus-socials {
    width: fit-content;
    overflow: hidden;
    border-right: 1px solid #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-social-icon-container {
    height: 2.625rem;
    width: 2.625rem;
    border: 1px solid #e7501e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-icon {
    height: 2.3rem;
    width: 2.3rem;
}

.footer-vertical-txt {
    transform: rotate(-90deg);
}
.qibus-form {
    border-right: 1px solid #fff;
    padding-right: 2.5rem;
    padding-left: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

.form-inputicon-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2.5rem;
}

.form-inputicon-container div {
    padding: .5rem
}

.input-footer {
    width: 100%;
    margin-bottom: 1rem;
    padding: .5rem;
    border-radius: 5px;
    border: none;
    font-size: .85rem;
    font-family: inherit;
}

.input-footer:focus {
    outline: none;
}

.footer-form-icon {
    height: 4.375rem;
    margin-right: .5rem;
}

.footer-textarea {
    width: calc(100% - 2rem);
    height: 5.5rem;
    font-size: .85rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    padding: .5rem;
    resize: none;
    margin-left: .5rem;
    margin-right: .5rem;
    font-family: inherit;
}

.footer-textarea:focus {
    outline: none;
}

.form-buttons {
    margin-left: .5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-buttons a {
    font-size: 1.25rem;
    font-weight: 700;
}   

.v-orangebar {
    width: 3px;
    height: 2rem;
    background-color: #e7501e;
}

.form-buttons button {
    font-size: 1.25rem;
    font-weight: 700;
    background-color: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
} 

.qibus-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
    font-size: 0.875rem;
    padding-right: 2rem;
    padding-left: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

.authors {
    text-align: left;
    grid-area: 3 / 1 / 3 / 3;
    padding-top: 3rem;
    font-size: .9rem;
    padding-left: 2rem;
}

.authors a {
    text-decoration: underline;
}


/* Media queries */

@media screen and (max-width: 1200px) {
    .navbar-logo {
        height: 7rem;
    }

    .main-degree-line {
        display: none;
    }

    .mainpartner-grid-container {
        grid-template-rows: 1fr;
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hydropartner-grid-container {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .hydropartner-content-container {
        padding-right: 0rem;
    }

    .main-partner-content-container {
        padding-left: .5rem;
        padding-right: .5rem;  
    }

    .aboutus {
        margin-bottom: 5rem;
    }

    .mainpartner {
        grid-template-columns: 1fr;
        row-gap: 6rem;
    }

    .mainpartner-mainimage {
        height: 27vh;
    }

    .sub-image {
        height: fit-content;
    }

    .h3-main-partner {
        font-size: 1.4375rem;
    }

    .partner-button-img {
        height: 2.5rem;
        padding-right: .6rem;
        padding-left: 0;
    }

    .partner-button-txt {
        font-size: 1rem;
    }

    .main-partner-header-logo {
        height: 4rem;
    }

    .main-partner-yt-video {
        min-height: 10rem;
        height: 30vw;
    }

    .main-partner-img-container {
        padding-left: .5rem;
        padding-right: .5rem;
    }

    .hydrogen-h2logo {
        height: 2.34rem;
        bottom: -1rem;
    }

    .divider {
        height: 4rem;
        margin-top: 0rem;
        margin-bottom: 0rem;
        width: 100%;
    }

    .divider-grid,
    .divider-downarrow {
        display: none;
    }

    .container {
        width: calc(100% - 2rem);
        max-width: 600px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mainpartner {
        margin-top: 4rem;
    }

    .hydrogen {
        margin-top: 4rem;
    }

    .partner-button-container {
        gap: 4.5%;
    }

    .branded-bus {
        display: none;
    }

    .coordinates {
        display: none;
    }

    .aboutus-content {
        width: 100% !important;
        min-width: 0 !important;
    }

    .news {
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: 1.5rem auto 1.5rem;
        overflow: hidden;
    }

    .news-orange-bar {
        grid-area: 1 / 1 / -1 / -1;
        background-image: url(../img/mobile-news-line.webp);
        background-position: top 2rem left 0;
    }

    .news-container {
        display: flex;
        flex-direction: column;
        grid-area: 2 / 2 / 2 / 2;
        width: 100%;
        max-width: 600px;
        justify-items: left;
        overflow: hidden;
        position: relative;
        padding: 0;
    }

    .news-container h3 {
        position: relative;
        top: 0;
        grid-area: unset;
    }

    .news-info-container {
        display: flex;
        flex-direction: column;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .news-img {
        width: 100%;
        max-width: 30rem;
        height: 25rem;
        max-height: none;
        grid-area: unset;
        margin-bottom: 2rem;
        margin-top: 1rem;
    }

    .news-date {
        grid-area: unset;
    }

    .news-title {
        grid-area: unset;
    }

    .news-body {
        grid-area: unset;
    }

    .news-readmore {
        grid-area: unset;
    }

    .news-archive {
        display: none;
    }

    .next-news {
        display: none;
    }

    .temp-partner-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .temp-partner-flex .partner-button-container {
        padding-left: 0.5rem;
    }

    /* footer things */

    .footer {
        width: 100%;
    }

    .footer-grid {
        max-width: 500px;
        width: 100%;
        grid-template-columns: 1fr .3fr;
    }

    .qibus-nav {
        display: none;
    }

    .qibus-form {
        grid-area: 1 / 3 / 1 / 1;
        border: none;
        padding-left: 0;
        padding-right: 0;
    }

    .qibus-info {
        grid-area: 2 / 2 / 2 / 1;
        padding-left: .5rem;
        padding-right: 0;
    }

    .qibus-socials {
        grid-area: 2 / 2 / 2 / 3;
        border: none;
        padding-left: 1rem;
    }

    .authors {
        padding-left: .5rem;
    }
}

@media screen and (max-width: 680px) {
    .navbar-logo {
        height: 5.3rem;
    }

    .burger-menu {
        display: block;
    }

    .navbar-container {
        display: none;
        position: absolute;
        height: calc(100vh - 3rem);
        width: 100vw;
        z-index: 100;
        margin-top: 3rem;
        background-color: rgba(256, 256, 256, .85);
    }

    .navbar-links {
        flex-direction: column;
        padding-top: 3rem;
        padding-right: 2.5rem;
    }

    .navbar-links li {
        text-align: right;
    }

    .navbar-links li a {
        font-size: 2.6rem;
    }

    .landing {
        background-image: url(../img/mobile-main-bg.webp);
    }

    .slogan {
        font-size: 3.125rem;
        line-height: 3.125rem;
    }

    .news-container h3 {
        position: relative;
        top: 0;
        left: 9rem;
        grid-area: unset;
    }

    .temp-partner-flex {
        gap: 1rem;
    }
}

@media screen and (max-width: 1538px) {
    .main-partner-content-container {
        padding-right: 0px;
    }

    .navbar-logo {
        left: 4vw;
    }

    .aboutus-content {
        width: 30vw;
        min-width: 29.56rem;
    }

    .dark-aboutus-stripe {
        padding-top: 2rem;
        padding-bottom: 1.3rem;
    }

    .partner-button-container {
        gap: 1rem;
    }

    .partner-button-txt {
        font-size: 1.125rem;
    }
}

@media screen and (max-width: 1271px) {
    .partner-button-icon {
        display: none;
    }
}

/* temp partner [2024 fiera] */

.temp-partner-container-img {
    width: 100%;
    background-image: url(../img/kinglong_qibus.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    aspect-ratio: 1198/416;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.temp-partner-flex {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
}

/* News page */

.news-wallpaper {
    width: 100%;
    height: 33rem;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 5% 35%;
}

.news-content {
    height: fit-content;
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: #e7501e;
}

.news-content-wrapper {
    width: 100%;
    max-width: 65rem;
    text-align: left;
}

.news-content-wrapper .news-title {
    font-size: 1.875rem;
}

.news-list {
    padding-top: 8rem;
    background-image: url(../img/grigliamappa.webp);
    background-size: cover;
    background-repeat: repeat;
}

.news-list-wrapper {
    max-width: 65rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    row-gap: 5rem;
}

.news-content-wrapper .news-body {
    max-height: none;
}

.news-obj {
    width: 100%;
    max-width: 31rem;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.news-obj-img {
    width: 100%;
}

.news-obj .news-date {
    margin-top: 1rem;
    font-weight: 400;
    color: #e7501e;
}

.news-obj .news-body {
    color: #00223c;
}

@media screen and (max-width: 1200px) {

    .news-wallpaper {
        min-height: 20rem;
        height: 20vh;
    }

    .news-content-wrapper {
        width: calc(100% - 3rem);
        height: fit-content;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .news-obj-wrapper {
        width: calc(100% - 3rem);
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .news-list-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}