/* START: Global tags */
html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    height: 100%;
}

:root {
    --black: #000;
    --white: #fff;
    --blue: #00478d;
    --grey: #818181;
    --light-grey: #aaa;
    --family: "GTAmerica-Regular";
    --gap: 32px;
}

body {
    width: 100%;
    height: 100%;
    background: var(--white);
    color: var(--blue);
    font-size: 20px;
    font-family: var(--family);
    overscroll-behavior: none;
}

body:not(.touchDevice) {
    cursor: none;
}

* {
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none;
}

/*.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}*/

::selection {
    background: var(--black);
    color: var(--white);
}

::-moz-selection {
    background: black;
    color: white;
}

p:not(:last-child) {
    margin-bottom: 20px;
}

a,
a:hover,
a:link {
    text-decoration: none;
    transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
}

body:not(.touchDevice) a {
    cursor: none;
}

em {
}

strong {
}

input {
}

.transition {
    transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
}

.slowTransition {
    transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    -webkit-transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    -moz-transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    -o-transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

.revealElement {
    -webkit-transition: opacity 0.4s ease, transform 0.4s ease;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
    -webkit-transform: translate3d(0, 50px, 0);
    transform: translate3d(0, 50px, 0);
}

.revealElement.slowReveal {
    -webkit-transition: opacity 0.8s ease, transform 0.8s ease;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.revealElement.swipeReveal {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    overflow: hidden;
}

.revealElement.swipeReveal > span {
    display: block;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
    -webkit-transition: transform 0.4s ease;
    transition: transform 0.4s ease;
}

.revealElement.revealed,
.revealElement.swipeReveal.revealed > span {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

#hamburger,
#mobileNav {
    display: none;
}

.container {
    width: 100%;
    clear: both;
    position: relative;
}

.inner-container {
    width: 100%;
    max-width: 1540px;
}

.full-container {
    width: 100%;
    height: 100%;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

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

.flex-center {
    align-items: center;
    justify-content: center;
}

.column {
    width: 50%;
}

.button {
    border: 1px solid;
    position: relative;
    -webkit-transition: background-color 0.25s ease;
    transition: background-color 0.25s ease;
    display: inline-block;
}

.button.whiteBtn {
    border-color: var(--white);
    color: var(--white);
}

.button.blackBtn {
    border-color: var(-black);
    color: var(--black);
}

.button.whiteBtn:hover,
.button.whiteBtn.active {
    background-color: #ffffff40;
}

.button.blackBtn:hover,
.button.blackBtn.active {
    background-color: #00000040;
}

.button > span {
    display: inline-block;
    padding: 7px 16px 9px;
    -webkit-transition: transform 0.1s ease, opacity 0.1s ease;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.button span.first {
    transition-delay: 0.15s;
}

.button span.second {
    position: absolute;
    top: 0;
    left: 0;
    -webkit-transform: translate3d(0, 30%, 0);
    transform: translate3d(0, 30%, 0);
    opacity: 0;
}

.button:hover span.first,
.button.active span.first {
    -webkit-transform: translate3d(0, -30%, 0);
    transform: translate3d(0, -30%, 0);
    opacity: 0;
    transition-delay: 0s;
}

.button:hover span.second,
.button.active span.second {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    opacity: 1;
    transition-delay: 0.15s;
}

.fileBtn {
    color: var(--white);
    position: relative;
    padding-right: 26px;
}

.fileBtn:after {
    content: "";
    display: block;
    width: 17px;
    height: 14px;
    background: url("../images/arrow.svg");
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    right: 0;
    top: 55%;
    -webkit-transform: translate3d(0, -50%, 0);
    transform: translate3d(0, -50%, 0);
    -webkit-transition: transform 0.4s ease;
    transition: transform 0.4s ease;
}

.fileBtn:hover:after {
    -webkit-transform: translate3d(0, -50%, 0) rotateY(180deg);
    transform: translate3d(0, -50%, 0) rotateY(180deg);
    transition-delay: 0.15s;
}

.fileBtn:before {
    content: "";
    width: 0;
    height: 1px;
    position: absolute;
    bottom: 0;
    left: 0;
    -webkit-transition: width 0.2s ease;
    transition: width 0.2s ease;
    background: var(--white);
}

.fileBtn:hover:before {
    width: -webkit-calc(100% - 26px);
    width: calc(100% - 26px);
}

.underlineBtn {
    position: relative;
}

.underlineBtn:after {
    content: "";
    height: 1px;
    width: 0;
    position: absolute;
    bottom: -2px;
    left: 0;
    -webkit-transition: width 0.2s ease;
    transition: width 0.2s ease;
    background: var(--black);
}

.underlineBtn:hover:after {
    width: 100%;
}

.passBtn .passwordInput {
    position: absolute;
    bottom: -20px;
    right: 0;
    -webkit-transform: translateY(40%);
    transform: translateY(40%);
    width: 320px;
    justify-content: flex-end;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: opacity 0.25s ease, transform 0.25s ease;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

html[lang="es-ES"] .passBtn .passwordInput {
    width: 335px;
}

html[lang="ca"] .passBtn .passwordInput {
    width: 350px;
}

.passBtn .passwordInput.show {
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    opacity: 1;
    pointer-events: visible;
}

.passBtn.blackBtn .passwordInput {
    color: var(--black);
}

.passBtn.whiteBtn .passwordInput {
    color: var(--white);
}

.passBtn .passwordInput span {
    padding-bottom: 2px;
}

.passBtn .passwordInput input {
    background: transparent;
    border: 0;
    margin-left: 10px;
    padding-bottom: 1px;
    padding-right: 60px;
    width: 160px;
    opacity: 0.65;
    font-family: "GTAmerica-Regular";
}

.passBtn.blackBtn .passwordInput input {
    color: var(--black);
    border-bottom: 1px solid var(--black);
}

.passBtn.whiteBtn .passwordInput input {
    color: var(--white);
    border-bottom: 1px solid var(--white);
}

.passBtn .passwordInput.success input {
    color: green;
    opacity: 1;
}

.passBtn .passwordInput.failure input {
    color: red;
    opacity: 1;
}

.passBtn .passwordInput figure {
    position: absolute;
    right: 0;
    bottom: 2px;
}

/* HEADER */
header {
    position: fixed;
    width: 100%;
    z-index: 10;
    padding: 35px var(--gap);
    mix-blend-mode: difference;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.formentera {
    color: var(--white);
    text-transform: uppercase;
}

header .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
}

header .logo img {
    width: 200px;
}

header nav > ul {
    display: flex;
    align-items: center;
}

header > nav > .wpml-ls,
header nav > ul li:not(:first-child) {
    margin-left: 43px;
}

header nav ul li a {
    color: var(--white);
}

header nav > ul li a:hover {
    text-decoration: underline;
}

.wpml-ls-sub-menu {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    -webkit-transform: translate3d(0, 10px, 0);
    transform: translate3d(0, 10px, 0);
    -webkit-transition: opacity 0.2s ease, transform 0.2s ease;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wpml-ls li.wpml-ls-item-legacy-dropdown:hover .wpml-ls-sub-menu {
    opacity: 1;
    pointer-events: visible;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.wpml-ls-sub-menu li {
    padding-top: 5px;
}

.wpml-ls a {
    opacity: 0.5;
}

.wpml-ls a:hover {
    opacity: 1;
}

/* FOOTER */
footer {
    padding: 80px var(--gap) var(--gap);
    justify-content: space-between;
    border-top: 1px solid var(--blue);
    position: relative;
    background-color: var(--white);
    z-index: 5;
}

footer .column {
    align-items: flex-end;
}

footer .column:last-child {
    justify-content: space-between;
}

footer .logo svg {
    width: 80px;
    height: auto;
    display: block;
}

footer .column {
    width: auto;
}

footer a {
    color: var(--blue);
}

footer a:hover {
    text-decoration: underline;
}

/* SPECIAL CURSOR */
#specialCursor,
#ring {
    position: fixed;
    border-radius: 100%;
    width: 12px;
    height: 12px;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--white);
    border: 1px solid var(--white);
    z-index: 999;
    pointer-events: none;
    mix-blend-mode: difference;
    transition-property: width, height, opacity, border-width, border-radius,
        background-color;
}

body.touchDevice #specialCursor,
body.touchDevice #ring {
    display: none !important;
}

#ring {
    width: 14px;
    height: 14px;
    background-color: transparent;
    z-index: 9999;
}

body.touchDevice #specialCursor,
body.touchDevice #ring {
    display: none;
}

#specialCursor.hoverLink {
    width: 16px !important;
    height: 16px !important;
    background: var(--white);
}

#ring.drag {
    opacity: 0;
}

#ring.hoverLink {
    animation: pulse 0.7s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        width: 38px;
        height: 38px;
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    40% {
        width: 18px;
        height: 18px;
        opacity: 1;
    }
}

/* PINNED SECTIONS */
.pinnedBackground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.pinnedBackground.imageBackground {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.5;
}

.pinnedBackground video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pinnedBackground picture {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pinnedBackground img {
    width: 70%;
    max-width: 1200px;
    height: auto;
}

/* CONTACT FORM */
.contact-form form {
    position: relative;
}
.contact-form .contact-column span.wpcf7-form-control-wrap {
    width: 100%;
    display: block;
}

.contact-form .contact-column span.wpcf7-form-control-wrap:not(:last-child) {
    margin-bottom: 18px;
}

.contact-form input {
    -webkit-appearance: none;
    appearance: none;
    font-family: "GTAmerica-Regular";
    font-size: 15px;
    line-height: 1;
    color: var(--blue);
    background: var(--white);
    border: 1px solid var(--blue);
    border-radius: 0;
    padding: 8px 14px;
    display: block;
    width: 100%;
    cursor: none;
}

.contact-form input::placeholder {
    color: #aaa;
}

.contact-form .wpcf7-response-output {
    border: 0 !important;
    margin: 0 !important;
    padding: 0;
    font-size: 15px;
    line-height: 1;
}

.contact-form .wpcf7-not-valid-tip {
    position: absolute;
    font-size: 14px;
    right: 14px;
    bottom: 8px;
    color: var(--black);
}

/* The container must be positioned relative: */
.custom-select {
    position: relative;
    font-family: "GTAmerica-Light";
    font-size: 15px;
    line-height: 1;
}

.custom-select select {
    display: none; /*hide original SELECT element: */
}

.select-selected {
    background-color: var(--black);
}

/* Style the arrow inside the select element: */
.select-selected:after {
    position: absolute;
    content: "";
    top: 14px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #fff transparent transparent transparent;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
    border-color: transparent transparent #fff transparent;
    top: 7px;
}

/* style the items (options), including the selected item: */
.select-items div,
.select-selected {
    color: #ffffff;
    padding: 10px 22px 9px;
}

.select-items div {
    color: #aaa;
}

/* Style items (options): */
.select-items {
    position: absolute;
    background-color: var(--white);
    color: var(--black);
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
}

/* Hide the items when the select box is closed: */
.select-hide {
    display: none;
}

.select-items div:hover {
    background-color: #ccc;
    color: var(--black);
}

/* SOUND POPUP */
#soundPopup {
    display: none;
}

/* RESPONSIVE */
@media only screen and (max-width: 1540px) {
    header > nav > .wpml-ls,
    header nav > ul li:not(:first-child) {
        margin-left: 20px;
    }
}

@media only screen and (max-width: 1400px) {
    header nav.flex-row {
        display: none;
    }

    #hamburger {
        display: block;
        position: relative;
        width: 28px;
        height: 15px;
        overflow: hidden;
        transition-delay: 0s;
    }

    .toggleMenu span.middle {
        margin: 0 auto;
        position: relative;
        top: 15px;
    }

    .toggleMenu span.top,
    .toggleMenu span.bottom {
        position: absolute;
        content: "";
    }

    .toggleMenu span {
        width: 100%;
        height: 1px;
        background-color: var(--white);
        display: block;
        left: 0;
    }

    .toggleMenu span.middle {
        top: 7px;
    }

    .toggleMenu span.top {
        top: 0;
    }

    .toggleMenu span.bottom {
        bottom: 0;
    }

    .menu-opened .toggleMenu span {
        -webkit-transition-delay: 0.1s;
        -moz-transition-delay: 0.1s;
        transform: translateX(-100%);
    }

    .menu-opened .toggleMenu span.top {
        left: 3px;
        top: 10px;
        -webkit-transform: rotate(45deg);
        -webkit-transition-delay: 0, 0.1s;
        -moz-transform: rotate(45deg);
        -moz-transition-delay: 0, 0.1s;
    }

    .menu-opened .toggleMenu span.bottom {
        left: 3px;
        bottom: 10px;
        -webkit-transform: rotate(-45deg);
        -webkit-transition-delay: 0, 0.1s;
        -moz-transform: rotate(-45deg);
        -moz-transition-delay: 0, 0.1s;
    }

    #mobileNav {
        display: flex;
        position: fixed;
        width: 100%;
        height: auto;
        background: var(--white);
        top: 0;
        left: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
        z-index: 9;
        -webkit-transition: transform 0.6s ease;
        transition: transform 0.6s ease;
        pointer-events: none;
        padding: 100px 30px var(--gap);
        justify-content: flex-end;
    }

    body.menu-opened #mobileNav {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        pointer-events: visible;
    }

    #mobileNav ul {
        list-style: none;
        text-align: right;
    }

    #mobileNav > ul li:not(:last-child) {
        margin-bottom: 5px;
    }

    #mobileNav a {
        color: var(--black);
    }

    #mobileNav .wpml-ls {
        margin-top: 30px;
    }

    .wpml-ls-sub-menu {
        opacity: 1;
        pointer-events: visible;
        position: relative;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    .wpml-ls-sub-menu li {
        padding-top: 0;
        margin-top: 5px;
    }

    .wpml-ls .wpml-ls-sub-menu li a {
        opacity: 1;
    }
}

@media only screen and (max-width: 1024px) {
    :root {
        --gap: 20px;
    }

    header {
        padding: 25px var(--gap);
    }

    .audioToggler.mainToggler {
        bottom: 90px;
    }

    .logo-star {
        top: 20px;
        left: 20px;
    }

    .logo-star svg {
        width: 30px;
    }

    #mobileNav {
        padding: 100px var(--gap) var(--gap);
    }

    footer {
        padding-top: 60px;
        flex-direction: column !important;
    }

    footer .column {
        justify-content: space-between;
    }

    footer .column:last-child {
        margin-top: 20px;
    }
}

@media only screen and (max-width: 768px) {
    header {
        justify-content: flex-end;
    }

    header .logo {
        left: var(--gap);
        transform: translate3d(0, -50%, 0);
        -webkit-transform: translate3d(0, -50%, 0);
    }

    .formentera {
        display: none;
    }

    .column {
        width: 100%;
    }

    .passBtn .passwordInput {
        right: unset;
        left: 0;
        justify-content: flex-start;
        width: 248px;
        bottom: -30px;
    }

    html[lang="es-ES"] .passBtn .passwordInput {
        width: 268px;
    }

    html[lang="ca"] .passBtn .passwordInput {
        width: 281px;
    }

    .passBtn .passwordInput span,
    .passBtn .passwordInput input,
    .passBtn .passwordInput figure {
        font-size: 14px;
    }

    .passBtn .passwordInput input {
        width: 120px;
    }
}

@media only screen and (max-width: 550px) {
    .audioToggler.mainToggler {
        bottom: 20px;
    }

    footer {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    footer .column {
        flex-direction: column;
        align-items: flex-start;
    }

    footer .column:last-child {
        margin-top: 40px;
    }

    footer a:not(.logo) {
        margin-left: 0;
        margin-top: 15px;
    }

    footer .sign {
        margin-top: 15px;
    }
}
