/*
 * Copyright (c) 2022 Code Inc. - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited
 * Proprietary and confidential
 * Visit <https://www.codeinc.co> for more information
 */

/**
 * Variables
 */
/*noinspection CssUnresolvedCustomProperty*/
* {
    --min-width: 1000px;
    --default-font: var(--wp--preset--font-family--roboto, "'Roboto', sans-serif");
    --serif-font: var(--wp--preset--font-family--roboto-slab, "'Roboto Slab', serif");
    --default-font-size: 16px;
    --footer-font-size: 14px;
    --content-max-width: 1200px;
    --page-content-max-width: 1000px;
    --content-side-padding: 4rem;
    --dark-font-color: black;
    --img-hover-gradient: linear-gradient(150deg, rgba(118, 112, 145, .5) 0%, rgba(68, 60, 127, .8) 100%);
    --title-color: #565674;
    --color-light-purple: #AEAEC6;
    --color-light-purple-alt: #B8B6C7;
    --color-dark-purple: #73739E;
    --color-top-footer: #87889f;
    --color-bottom-footer: #363547;
}

@media screen and (max-width: 1000px) {
    * {
        --min-width: 0;
        --content-side-padding: 1.5rem;
    }
}


/**
 * Tags / generic
 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--default-font);
    font-size: var(--default-font-size);
    min-width: var(--min-width);
    padding: 0;
    margin: 0;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

body, body a {
    color: var(--dark-font-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif-font);
    font-weight: 300;
}

a {
    text-decoration-thickness: 1px !important;
    text-underline-offset: 0.25ch;
}

figure {
    margin: 0;
}

#header-content,
#footer div.container {
    max-width: var(--content-max-width);
    box-sizing: border-box;
    padding: 0 var(--content-side-padding);
    margin: 0 auto;
}


/**
 * Header
 */
#header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    box-sizing: border-box;
    z-index: 1000;
    font-size: var(--default-font-size);
}

body.logged-in #header {
    top: 32px;
}

#header-content {
    min-width: var(--min-width) !important;
    overflow: visible;
    padding: .5rem var(--content-side-padding);
    /*height: var(--header-height);*/
    box-sizing: border-box;
    display: grid;
    grid-template-columns: min-content auto;
    grid-gap: 1rem;
    transition: all ease-in-out .3s;
}

#header-content > * {
    align-self: start;
}

#logo a {
    display: block;
}

#logo a, #logo img {
    box-sizing: border-box;
    height: 3rem;
}

#logo img {
    border: none;
}

#menu {
    align-self: center;
}

#menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu ul.top {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: baseline;
    column-gap: 1.5rem;
}

#menu ul.sub {
    text-align: left;
    margin-left: -1rem;
    padding-top: .25rem;
}

#menu ul.sub li a {
    display: block;
    padding: .5rem 1rem;
    transition: all ease-in-out .2s;
}

#menu a {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

#menu a i.bi {
    font-size: .8rem;
    display: inline-block;
}

#menu, #menu a {
    color: white;
}

#menu li.regions a {
    display: inline-block;
    padding-inline: .25rem;
    border-radius: .25rem;
    transition: background-color ease-in-out .2s;
    border: 1px solid #ffffff33;
}

#menu li.regions a:hover {
    background-color: #ffffff22;
}

@media screen and (min-width: 1001px) {
    #menu {
        white-space: nowrap;
    }

    #menu-burger,
    #menu-header-overlay {
        display: none;
    }

    #menu li.has-children:hover > ul.sub {
        display: block;
    }

    #menu ul.sub {
        display: none;
        position: absolute;
        box-shadow: .5rem .5rem .5rem rgba(0, 0, 0, .02);
        background-color: rgba(182, 179, 200, .95);
    }

    #menu a.button {
        background-color: rgba(255, 255, 255, .15);
        color: white !important;
        padding: .4rem 1rem;
        border-radius: 5rem;
        transition: background-color ease-in-out .2s;
    }

    #menu a.button:hover {
        background-color: rgba(255, 255, 255, .3);
    }

    #menu li.home {
        display: none;
    }

    #menu ul.sub li a:hover {
        background-color: rgb(159, 157, 175);
    }
}

@media screen and (max-width: 1200px) {
    #menu ul.top {
        column-gap: 1rem;
    }
}

@media screen and (max-width: 1000px) {
    body.menu-open {
        overflow: hidden;
        /*width: 50%;*/
    }

    #logo, #menu-burger {
        position: relative;
        z-index: 9999;
    }

    #menu:not(.open) #menu-burger i.close-menu {
        display: none;
    }

    #menu.open #menu-burger i.open-menu {
        display: none;
    }

    #menu-burger {
        text-align: right;
    }

    #menu-burger i.bi {
        cursor: pointer;
        font-size: 2rem !important;
    }

    body.menu-open #menu-header-overlay {
        display: block;
        z-index: 9998;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 6rem;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    body.menu-open #header-content {
        padding: var(--content-side-padding);
    }

    #menu ul.top {
        display: none;
        position: absolute;
        z-index: 1;
        background: linear-gradient(120deg, #bcbac9 0%, #6f699b 100%);
        left: 0;
        right: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        box-sizing: border-box;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 6rem var(--content-side-padding) 5rem;
    }

    #menu.open ul.top {
        display: block;
    }

    #menu ul.top > li {
        padding: .75rem 0;
        font-size: 1.1rem;
    }

    #menu ul.top > li:not(:last-of-type) {
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    #menu ul.sub {
        display: none;
    }

    #menu li.has-children.open ul.sub {
        display: block;
        margin: .5rem 2rem;
    }

    #menu ul.sub li {
        padding-block: .5rem;
    }

    #menu ul.sub li a {
        padding: 0;
        line-height: 1.25;
    }
}

/**
 * Footer
 */
#footer {
    line-height: 1.4;
    font-size: var(--footer-font-size);
}

#footer, #footer a {
    color: rgba(255, 255, 255, .6);
}

#footer a:hover {
    transition: color ease-in-out .2s;
    color: rgba(255, 255, 255, .8);
}

#footer div.container h3 {
    margin: 0 0 .75rem;
    color: white;
    font-size: 1.25rem;
    font-family: inherit;
    font-weight: 400;
}

#footer div.container p {
    margin: .75rem 0;
}

#footer div.container a {
    text-decoration: none !important;
}

#footer div.container a:hover {
    text-decoration: underline !important;
}

#footer div.container nav a {
    display: inline-block;
    padding: .25rem 0;
}

#footer div.container a i.bi {
    display: inline-block;
    margin-right: .15rem;
}

#footer div.container nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

#footer div.top {
    background-color: var(--color-top-footer);
}

#footer div.top div.container {
    display: grid;
    grid-template-columns: auto auto auto;
    column-gap: 5rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* labels */
#footer div.top section.labels {
    display: flex;
    column-gap: 2rem;
}

#footer div.top section.labels > div {
}

#footer div.top section.labels div.qualiopi figure img {
    border: 1px solid #332879;
}

#footer div.top section.labels figure {
    margin-bottom: .5rem;
}

#footer div.top section.labels figure img {
    max-height: 5rem;
}

#footer div.top section.address strong {
    color: rgba(255, 255, 255, .8);
}

/* addresses */
#footer div.top section.address div.addresses div {
    margin: .75rem 0;
    white-space: nowrap;
}

#footer div.top section.address div.addresses div:first-of-type {
    margin-top: 0;
}

/* bottom */
#footer div.bottom {
    background-color: var(--color-bottom-footer);
}

#footer div.bottom, #footer div.bottom a {
    color: white;
    text-decoration: none;
}

#footer div.bottom div.container {
    display: grid;
    grid-template-columns: auto auto;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

#footer div.bottom div.container section:last-of-type {
    justify-self: end;
}

#footer div.bottom section span {
    white-space: nowrap;
}

#footer div.bottom section span:not(:last-of-type):after {
    content: '—';
    display: inline-block;
    margin: 0 .1rem 0 .2rem;
}

@media screen and (max-width: 1100px) {
    #footer div.top div.container {
        grid-template-columns: auto;
        row-gap: 2.5rem;
        display: flex;
        flex-wrap: wrap;
    }

    /* Order */
    #footer div.top section.labels {
        order: 3;
    }

    #footer div.top section.iperia {
        order: 4;
    }

    #footer div.top section.inrs {
        order: 5;
    }

    #footer div.top nav.links {
        order: 1;
    }

    #footer div.top section.address {
        order: 2;
    }

    /* Logos */
    #footer div.top section.qualiopi figure img {
        width: 8rem;
    }

    #footer div.top section.iperia figure img {
        width: 6rem;
    }

    /* Links */
    #footer div.top nav.links ul {
        display: flex;
        flex-wrap: wrap;
        column-gap: 3rem;
        align-content: space-between;
    }

    #footer div.top nav.links ul li {
        margin: 0;
        min-width: calc(50% - 3rem);
        box-sizing: border-box;
    }

    /* Addresses */
    #footer div.top section.address div.addresses {
        display: flex;
        flex-wrap: wrap;
        column-gap: 3rem;
        align-content: space-between;
    }

    #footer div.top section.address div.addresses > div {
        min-width: calc(33% - 3rem);
        box-sizing: border-box;
    }

    /* Labels */
    #footer div.top section.labels {
        flex-wrap: wrap;
        row-gap: 2.5rem;
        column-gap: 4rem;
    }

    /* Bottom */
    #footer div.bottom div.container {
        padding-top: 1rem;
        padding-bottom: 1rem;
        grid-template-columns: auto;
        row-gap: 1rem;
    }

    #footer div.bottom div.container *:nth-child(1) {
        order: 2;
    }

    #footer div.bottom div.container *:nth-child(2) {
        order: 1;
    }

    #footer div.bottom div.container section:last-of-type {
        justify-self: start;
    }

    #footer div.bottom section:nth-of-type(1) span:nth-of-type(2):after {
        content: "\a";
        white-space: pre;
    }
}