.header {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 100px);
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 24px;
    grid-template-areas: "a b c d";
    align-items: center;
    z-index: 100;
    padding: 32px 16px;
    padding-bottom: 100px;
    box-sizing: border-box;
}

.header__logo {
    pointer-events: all;
    position: absolute;
    top: -32px;
    left: -32px;
    grid-area: a;
    width: 150%;
    padding: 32px;
}

.header__logo::after {
    content: '';
    position: absolute;
    top: -100px;
    left: -240px;
    width: 300%;
    height: 200%;
    background-color: white;
    z-index: -1;
    transform: rotate(-35deg);
}

.header__logo-image {
    width: 100%;
    cursor: pointer;
}

.header__contact {
    pointer-events: all;
    grid-area: c;
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 9999px;
    padding: 4px 16px;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
}

.header__icon {
    width: 32px;
    height: 32px;
}

.header__contact-text {
    color: #273a4f;
    font-weight: 700;
    font-size: 14px;
    margin-left: 4px;
}

.header__menu-toggle {
    pointer-events: all;
    grid-area: d;
    display: none;
    width: 32px;
    height: 32px;
}

/* NAVIGATOR */

.navigator {
    position: fixed;
    right: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.navigator__item {
    position: relative;
    right: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transform: scale(1);
    transition: transform 0.2s linear, right 0.2s linear;
    animation: navigator-out 0.2s linear forwards;
}

.navigator__item:hover {
    right: 10%;
    transform: scale(1.2);
    animation: navigator-in 0.2s linear forwards;
}

.navigator__multi {
    position: relative;
    right: 0;
    width: 100%;
    height: 100%;
    display: grid;
    box-sizing: border-box;
    cursor: pointer;
    transform: scale(1);
    transition: transform 0.2s linear, right 0.2s linear;
    animation: navigator-out 0.2s linear forwards;
}

.navigator__multi:hover {
    right: 10%;
    transform: scale(1.2);
    animation: navigator-in 0.2s linear forwards;
}

.navigator__multi-item {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.navigator__multi--2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.navigator__multi--4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.navigator__image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 120px;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

/* SLIDER */

.slider {
    position: relative;
    width: calc(100% - 100px);
    height: 100%;
}

.slider__items {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slider__item {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider__item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-color: black;
}

.slider__item--current {
    z-index: 1;
}

.slider__image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider__phrase {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.slider__logo {
    display: block;
    width: 200px;
    margin: 32px 0;
}

.slider__title {
    color: white;
    line-height: 1.5em;
    font-size: 32px;
}

.slider__text {
    max-width: 500px;
    color: white;
    line-height: 2em;
    font-size: 18px;
}

.slider__link {
    border: none;
    color: white;
    background-color: #ad8a06;
    padding: 12px 24px;
    margin-top: 16px;
    box-sizing: border-box;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

.slider__link:hover {
    background-color: #caa625;
}

.slider__controller {
    position: absolute;
    bottom: 64px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.slider__arrow {
    width: 64px;
    margin: 16px;
    cursor: pointer;
    opacity: 0.6;
}

.slider__arrow:hover {
    opacity: 1;
}

.slider__arrow--next {
    transform: rotate(180deg);
}

/* FOOTER */

.footer {
    background-image: linear-gradient(0deg, rgba(0,0,0,0.5), transparent);
    position: fixed;
    bottom: 0;
    left: 0;
    width: calc(100% - 100px);
    display: grid;
    grid-template-columns: 1fr 0px 1fr;
    align-items: center;
    padding: 16px 32px;
    padding-top: 100px;
    box-sizing: border-box;
}

.footer__rights {
    font-size: 12px;
    color: white;
}

.footer__privacy {
    color: white;
    text-decoration: underline;
    justify-self: center;
}

.footer__socials {
    justify-self: right;
    display: flex;
    align-items: center;
}

.footer__links {
    justify-self: right;
    display: flex;
    align-items: center;
}

.footer__info {
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.footer__text {
    color: white;
    font-size: 18px;
    text-align: center;
}

.footer__link {
    color: white;
    margin: 0 8px;
    text-decoration: underline;
}

.contact {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.contact-form {
    flex-grow: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d9dfe4;
}

.contact-form__container {
    width: 100%;
    padding: 32px;
    box-sizing: border-box;
}

.contact-form__text {
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 8px;
}

.contact-form__inputs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form__input {
    width: 100%;
    padding: 12px;
    border: none;
    box-sizing: border-box;
}

.contact-form__input--textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form__submit {
    border: none;
    color: white;
    background-color: #273a4f;
    padding: 12px 24px;
    margin-top: 16px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.contact-form__submit:disabled {
    background-color: #888;
    cursor: default;
}

.contact-form__submit:hover {
    background-color: #536c8a;
}

.contact-form__submit[success] {
    background-color: #9feb74;
    cursor: default;
}

.contact-form__submit[error] {
    background-color: #eb7474;
    cursor: default;
}

.submit-message {
    margin-top: 4px;
    color: #eb7474;
    font-size: 14px;
}

.g-recaptcha {
    display: none;
}

.legal-advice {
    font-size: 12px;
}

.legal-advice a {
    color: #273a4f;
    text-decoration: underline;
}

#map {
    flex-grow: 1;
    height: 100%;
}

.whatsapp {
    position: fixed;
    bottom: 64px;
    left: 32px;
    z-index: 100;
}

@media (max-width: 1400px) {
    .header {
        grid-template-columns: 80px 1fr auto auto;
    }
}

@media (max-width: 1200px) {
    .slider__logo {
        width: 150px;
    }

    .slider__title {
        font-size: 18px;
    }

    .slider__text {
        font-size: 14px;
    }

    .footer__text {
        font-size: 16px;
    }
}

@media (max-width: 800px) {
    .header {
        grid-template-columns: 100px 1fr auto auto;
        width: 100%;
    }
    
    .header__logo {
        width: 60%;
    }

    .header__logo::after {
        top: -100px;
        left: -140px;
        width: 300%;
        height: 200%;
    }

    .header__menu-toggle {
        display: block;
    }

    .navigator {
        right: -120%;
        width: 100%;
        z-index: 1000;
        transition: right 0.2s ease-in-out;
    }

    .navigator--open {
        right: 0%;
    }

    .slider {
        width: 100%;
    }

    .slider__phrase {
        top: calc(50% - 42px);
        text-align: center;
    }

    .slider__logo {
        display: block;
        margin: 32px auto;
    }

    .slider__title {
        text-align: center;
        margin: 0 auto;
    }

    .slider__text {
        text-align: center;
        margin: 0 auto;
    }

    .slider__controller {
        bottom: 80px;
    }

    .slider__arrow {
        width: 48px;
    }

    .footer {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px 16px;
    }

    .footer__rights {
        grid-row: 3 / 4;
        text-align: center;
        justify-self: center;
    }

    .footer__privacy {
        font-size: 12px;
    }

    .footer__socials {
        justify-self: center;
    }

    .footer__icon {
        width: 24px;
    }

    .contact {
        flex-direction: column-reverse;
    }

    .contact-form {
        padding-top: 80px;
        max-width: 100%;
    }

    .contact-form__container {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-form__input--textarea {
        min-height: 50px;
    }

    .whatsapp {
        bottom: 32px;
    }
}

@media (max-width: 600px) {
    .whatsapp {
        bottom: 85px;
    }
}

@media (max-width: 400px) {
    .header {
        grid-template-columns: 50px 1fr auto auto;
        gap: 8px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .header__logo {
        top: -48px;
        left: -32px;
        width: 110%;
    }

    .slider__controller {
        bottom: 110px;
    }

    .slider__arrow {
        margin: 16px 8px;
    }

    .slider__logo {
        width: 100px;
    }

    .slider__text {
        font-size: 12px;
    }

    .slider__title {
        font-size: 14px;
    }

    .footer__text {
        font-size: 12px;
    }

    .footer__socials {
        flex-direction: column;
    }

    .footer__links {
        margin-top: 8px;
    }

    .whatsapp {
        bottom: 115px;
    }
}

@keyframes navigator-in {
    0% {
        z-index: 0;
    }
    1% {
        z-index: 1;
    }
    100% {
        z-index: 1;
    }
}

@keyframes navigator-out {
    0% {
        z-index: 1;
    }
    99% {
        z-index: 1;
    }
    100% {
        z-index: 0;
    }
}