/*
Theme Name: Apricom Corpo
*/

body
{
    background-image: linear-gradient(rgb(255 255 255 / 100%), transparent 40%), linear-gradient(transparent 60%, rgb(255 255 255 / 100%)), url(/wp-content/themes/apricom-corpo/img/wallpaper.jpg);
    background-position: center;
    background-size: cover;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: min-content auto;
    margin: 0px;
    height: 100vh;
}

/* Header */
header {
    align-items: center;
    display: flex;
    justify-content: center;
}

.main-content {
    overflow-y: auto;
}

.navmenu {
    align-items: center;
    display: flex;
    gap: 0px;
    justify-content: flex-end;
    margin: 0px;
    margin-left: auto;
    min-width: min-content;
    padding: 0px;
}

.menu-item {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: center;
}

    .menu-item:nth-child(2n+1) > .menu-link {
        color: #797979;
    }

    .menu-item:nth-child(2n) > .menu-link {
        color: #606162;
    }

.menu-link {
    font-family: Arial, sans-serif;
    font-size: 22px;
    padding: 16px;
    text-decoration: none;
    white-space: nowrap;
}

    .menu-link.active {
        color: #f15a29 !important;
    }

.toggle {
    background-color: #00000080;
    border: none;
    border-bottom-right-radius: 16px;
    color: #ffffff;
    display: none;
    font-size: 20px;
    height: 48px;
    left: 0px;
    margin-right: auto;
    padding: 0px;
    position: fixed;
    transition: background-color ease-out 0.3s, border-radius ease-out 0.3s, left ease-out 0.3s;
    top: 0px;
    width: 48px;
    z-index: 2;
}

/*
@media(max-width: 1380px) {
    .menu-link {
        font-size: 20px;
    }
}

@media(max-width: 1190px) {
    .menu-link {
        font-size: 16px;
    }
}
*/

@media(min-width: 1024px) {
    .menu-link {
        font-size: calc(22px * var(--layout-scale));
        padding: calc(16px * var(--layout-scale));
    }
}

@media(max-width: 1010px) {
    .menu-link {
        font-size: 12px;
    }
}

@media(max-width: 820px) {
    .navmenu {
        align-items: flex-start;
        background-color: #000000f0;
        flex-direction: column;
        gap: 8px;
        height: calc(100vh - 32px);
        justify-content: flex-start;
        left: -100vw;
        margin-left: 0px;
        overflow-y: auto;
        padding: 16px;
        position: fixed;
        top: 0px;
        transition: left ease-out 0.3s;
        width: calc(100vw - 32px);
        z-index: 1;
    }

        header[open] > .navmenu {
            filter: brightness(1.5);
            left: 0px;
        }

    .menu-link {
        font-size: 16px;
    }

    .toggle {
        display: inline-block;
    }

        header[open] > .toggle {
            background-color: #ff000080;
            border-bottom-left-radius: 16px;
            border-bottom-right-radius: 0px;
            left: calc(100vw - 48px);
        }
        header[open] > .toggle > span {
            display: none;
        }
        header[open] > .toggle:after {
            content: 'x';
        }
}


/* Footer */
footer {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto max-content;
    min-height: calc(100vh - 58px * var(--layout-scale));
}

.email-back {
    align-items: center;
    background-image: linear-gradient(rgb(255 255 255 / 75%), transparent 100%), linear-gradient(transparent 0%, rgb(255 255 255 / 100%)), url(/wp-content/themes/apricom-corpo/img/contact-wallpaper.svg);
    background-position: center;
    background-size: cover;
    display: flex;
    grid-column-start: 1;
    grid-column-end: 3;
    justify-content: center;
    padding: 96px 48px;
    --text-scale: 0.36;
}

.text {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: calc(24px * var(--text-scale));
}

.title {
    color: #1a1a1a;
    font-family: Arial, sans-serif;
    font-size: calc(135px * var(--text-scale));
    font-weight: bold;
    line-height: calc(110px * var(--text-scale));
}

.subtitle {
    color: #1a1a1a;
    font-family: Arial, sans-serif;
    font-size: calc(24px * var(--text-scale));
}

.button {
    background-color: #da5031;
    border: none;
    border-radius: calc(8px * var(--text-scale));
    color: #ffffff;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: calc(30px * var(--text-scale));
    padding: calc(24px * var(--text-scale));
}

.bottom {
    display: flex;
    flex-direction: column;
}

.map {
    align-items: center;
    aspect-ratio: 2;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.map-iframe {
    height: 100%;
    width: 100%;
}

.address-div {
    align-items: center;
    background-color: #414141;
    color: #ffffff;
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    font-size: calc(15px * var(--address-scale));
    justify-content: center;
    line-height: calc(24px * var(--address-scale));
    padding: 16px;
    white-space: nowrap;
    --address-scale: 0.56;
}

.send-div {
    align-items: center;
    background-color: #2d2d2d;
    display: flex;
    justify-content: center;
    padding: 32px 16px;
    --send-scale: 1;
}

.send-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .send-form-label {
        color: #ffffff;
        font-family: Arial, sans-serif;
        font-size: calc(18px * var(--send-scale));
        white-space: nowrap;
    }

.inputs {
    display: grid;
    grid-gap: calc(8px * var(--send-scale));
    grid-template-columns: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: calc(4px * var(--send-scale));
}

    .input-group > p {
        display: contents;
    }

.input-label {
    color: #ffffffe6;
    font-family: Arial, sans-serif;
    font-size: calc(12px * var(--send-scale));
    white-space: nowrap;
}

.text-input {
    background-color: #00000073;
    border: none;
    border-radius: calc(8px * var(--send-scale));
    color-scheme: dark;
    font-family: Arial, sans-serif;
    font-size: calc(20px * var(--send-scale));
    outline: none;
    padding: calc(4px * var(--send-scale)) calc(8px * var(--send-scale));
    width: calc(192px * var(--send-scale));
}

    .text-input.invalid {
        outline: 2px solid red;
    }

.send-form-btn {
    background-color: #da5031;
    border: none;
    border-radius: calc(8px * var(--send-scale));
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: calc(14px * var(--send-scale));
    margin-left: auto;
    padding: calc(16px * var(--send-scale));
}

@media(min-width: 320px) {
    .email-back {
        --text-scale: 0.44;
    }

    .address-div {
        --address-scale: 0.64;
    }
}

@media(min-width: 375px) {
    .email-back {
        --text-scale: 0.55;
    }

    .address-div {
        --address-scale: 0.77;
    }
}

@media(min-width: 425px) {
    .email-back {
        --text-scale: 0.65;
    }

    .address-div {
        --address-scale: 0.88;
    }
}

@media(min-width: 768px) {
    .email-back {
        padding: 96px;
        --text-scale: 1;
    }

    .address-div {
        --address-scale: 1;
    }

    .inputs {
        grid-template-columns: 50% 50%;
    }
}

@media(min-width: 1024px) {
    .email-back {
        padding: calc(96px * var(--layout-scale));
        --text-scale: calc(1 * var(--layout-scale));
    }

    .address-div {
        align-items: baseline;
        padding: calc(32px * var(--layout-scale)) calc(16px * var(--layout-scale));
        --address-scale: calc(1 * var( --layout-scale));
    }

    .bottom {
        display: grid;
        grid-template-columns: auto max-content max-content;
        grid-template-rows: 100%;
    }

    .send-div {
        grid-column-start: initial;
        grid-column-end: initial;
        padding: calc(32px * var(--layout-scale)) calc(16px * var(--layout-scale));
        --send-scale: calc(1 * var(--layout-scale));
    }

    .map {
        aspect-ratio: initial;
    }

    .text {
        margin-left: calc(96px * var(--layout-scale));
        margin-right: auto;
    }

    .send-form {
        gap: calc(16px * var(--layout-scale));
    }
}

/* WP */
.wpcf7-response-output {
    display: none;
}
