@font-face {
    font-display: swap;
    font-family: 'Lustria';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/lustria-v13-latin-regular.woff2') format('woff2');
}

:root {

    --theme: #8d7e71;
    --font: "Lustria";
    --shadow: 1px 1px #000;

    --base140: #1c1a17;
    --base120: #45403a;
    --base:    #615951;
    --base80:  #7d7368;
    --base60:  #a29990;
    --base40:  #c5bfba;
    --base20:  #f3f2f1;
    --base0:   #ffffff;

    --error:   #ee1c25;
    --success: #2ecc40;
}

body {
    font-family: var(--font), sans-serif;
    font-size: 1.25rem;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    cursor: pointer;
    text-decoration: none;
    color: var(--base);
}

/*
-----------------------------
HEADER
-----------------------------
*/
body > header {
    flex: 0 0 auto;
    position: relative;
    border-bottom: 1px solid #8d7e71;
    padding: 2rem 1rem 1rem 1rem;
}

body > header svg {
    display: block;
    width: 60%;
    max-width: 30rem;
}

header svg path {
    fill: #8d7e71;
}

#nav-mobile {
    position: absolute;
    display: flex;
    align-items: center;
    top: 0;
    right: 0;
    height: 100%;
    text-align: center;
}

#nav-mobile a {
    display: inline-block;
    font-size: 3rem;
    color: var(--base);
    text-shadow: 1px 1px #000000;
    padding: 2rem;
}

@media only screen and (min-width: 64em) {

    body > header{
        border: none;
    }

    body > header svg {
        margin: 0 auto;
    }

    #nav-mobile {
        display: none;
    }
}

/*
-----------------------------
NAVIGATION
-----------------------------
*/
nav {
    flex: 0 0 auto;
    display: none;
    background-color: var(--theme);
    font-size: 1.75rem;
}

nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1.5rem 1rem;
    text-shadow: var(--shadow);
    color: var(--base0);
    transition: background-color .5s;
}

nav a:hover {
    background-color: var(--base);
    transition: background-color .5s;
}

@media only screen and (min-width: 64em) {

    nav{
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        font-size: 1.25rem;
    }

    nav a {
        padding: 1rem;
        max-width: 12rem;
        flex: 1 1 auto;
    }
}

/*
-----------------------------
TITLE
-----------------------------
*/
#web-hero {
    flex: 0 0 auto;
    position: relative;
}

#web-hero img {
    display: block;
    width: 100%;
    height: auto;
}

#web-hero a {
    color: #ffffff;
}

#web-hero h1, #web-hero h2  {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #ffffff;
    text-shadow: 1px 1px #000000;
    padding: 1rem;
    background-color: rgba(0,0,0,.5);
    font-size: 2rem;
    z-index: 90;
    text-align: center;
}

#web-hero .slick + h1 {
    bottom: 2rem;
}

#web-hero h2 {
    font-size: 1rem;
}

#web-hero .slick-item {
    position: relative;
}

#web-hero .slick-dots {
    position: relative;
    top: -.5rem;
    width: 100%;
    margin: 0;
    text-align: center;
    z-index: 99;
}

#web-hero .slick-dots > li {
    display: inline-block;
    padding: 0 .5rem;
}

#web-hero .slick-dots > li > button {
    font-size: 0;
    height: 1rem;
    width: 1rem;
    border-radius: .5rem;
    cursor: pointer;
    color: transparent;
    background-color: #ffffff;
    border: .1rem solid #8d7e71;
}

#web-hero .slick-dots > li.slick-active > button {
    background-color: #8d7e71;
}

@media only screen and (min-width: 32em) {

    #web-hero h2 {
        font-size: 1.5rem;
    }

}

@media only screen and (min-width: 48em) {

    #web-hero h2 {
        font-size: 2rem;
    }

}

@media only screen and (min-width: 64em) {

    #web-hero h1, #web-hero h2  {
        bottom: 5rem;
        width: 50rem;
        right: 0;
        padding: 2rem 7rem 2rem 2rem;
        font-size: 3.5rem;
        text-align: left;
        z-index: 90;
    }

    #web-hero h2 {
        font-size: 2rem;
    }

    #web-hero .slick + h1 {
        bottom: 5rem;
    }

    #web-hero .slick-dots {
        position: absolute;
        top: auto;
        bottom: 2rem;
        left: 0;
    }

    #web-hero .slick-dots > li > button {
        border: .2rem solid #ffffff;
    }

    #web-hero .slick-dots > li.slick-active > button {
        background-color: #8d7e71;
    }
}

/*
-----------------------------
MAIN
-----------------------------
*/
body > main {
    flex: 1 1 auto;
    padding: 6rem 1rem;
    font-size: 1.5rem;
    color: var(--base);
}

main h1 {
    font-size: 2.5rem;
}

main h2 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
}

main h3 {
    font-size: 2.5rem;
    margin-bottom: .5rem;
}

main p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 2.5rem;
}

main img {
    max-width: 100%;
}

main img + p {
    font-style: italic;
    text-align: center;
    font-size: 1rem;
    line-height: 1.25rem;
}

main .img-subtitle {
    justify-self: center;
    font-size: 1rem;
    line-height: 1.25rem;
    text-align: center;
    max-width: 25rem;
}

main .img-subtitle h3 {
    position: relative;
    top: -3rem;
    color: var(--base0);
    text-shadow: var(--shadow);
}

@media only screen and (min-width: 48em) {

    main > h1 {
        font-size: 3.5rem;
    }
}

/*
-----------------------------
FORM
-----------------------------
*/
form {
    max-width: 66rem;
    margin: 4rem auto;
}

::placeholder {
    color: transparent;
}

.form-field {
    position: relative;
    padding: 1rem;
}

input, select, textarea {
    display: block;
    line-height: 4rem;
    width: 100%;
    transition: all .5s;
    overflow: hidden;
    outline: none;
    background-color: var(--base0);
    font-family: var(--font), sans-serif;
    font-size: 1.25rem;
    border: 1px solid var(--base60);
    color: var(--base);
    border-radius: .25rem;
    padding: 0 .75rem;
}

textarea {
    line-height: normal;
    padding: .5rem;
    resize: none;
    height: 15rem;
}

select::-ms-expand {
    display: none;
}

select {
    padding: 0 3rem 0 .5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

select ~ i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 2rem;
    color: var(--base);
    pointer-events: none;
}

.form-field label {
    position: absolute;
    top: 0;
    left: 0;
    color: #bbb2aa;
    padding-left: 1.75rem;
    line-height: 6rem;
    transition: all .5s;
    overflow: hidden;
    z-index: 1;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field select:focus ~ label,
.form-field select:not([value=""]) ~ label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label
{
    top: -3rem;
    left: 0rem;
    padding-left: 1rem;
    font-size: 1rem;
    color: #8d7e71;
}

input:focus,
select:focus {
    border-color: #979b98;
}

.form-error {
    color: #ee1c25;
    font-size: 1rem;
    margin-top: .25rem;
}

.form-agree {
    padding: 1rem;
}

input[type=checkbox] {
    display: none;
}

.form-agree label {
    position: relative;
    display: inline-block;
    line-height: 2rem;
    padding: .5rem .5rem .5rem 4rem;
    cursor: pointer;
    background-color: var(--base20);
    border: 1px solid var(--base60);
    border-radius: .25rem;
}

.form-agree label:before {
    position: absolute;
    left: 1rem;
    top: .6rem;
    font-family: 'Line Awesome Free', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    background-color: #fff;
    color: transparent;
    content: "\f00c";
    line-height: 1.65rem;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid var(--base);
    text-align: center;
    z-index: 2;
    transition: all .3s ease-in-out;
}

.form-agree input:checked ~ label:before {
    background-color: var(--base);
    color: var(--base0);
    transition: all .3s;
}

/*
-----------------------------
NEWS
-----------------------------
*/
.news {
    margin-bottom: 4rem;
    border-top: 1px solid var(--base40);
    padding-top: 4rem;
}

.news-file img {
    max-width: 100%;
    margin-bottom: 2rem;
}

.news-text {
    grid-column-start: span 2;
}

@media only screen and (min-width: 64em) {

    .news {
        display: grid;
        grid-template-columns: repeat( 3, minmax(0, 1fr));
        grid-gap: 2rem;
    }
}

/*
-----------------------------
EVENT
-----------------------------
*/
.event {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 8rem 0;
    border: 1px solid var(--base60);
}

.event-date {
    background-color: var(--base60);
    color: var(--base0);
    text-shadow: var(--shadow);
    padding: .5rem 1rem;
    font-size: 1.75rem;
    align-self: stretch;
}

.event-caption {
    padding: 1rem 1rem 0 1rem;
    font-size: 2.5rem;
}

.event-link {
    position: relative;
    top: 1rem;
    font-size: 1.5rem;
}

.event-image {
    padding: 1rem;
}

.event-image img {
    display: block;
    max-width: 100%;
}


/*
-----------------------------
FOOTER
-----------------------------
*/
body > footer {
    flex: 0 0 auto;
    background-color: var(--base80);
    padding: 2rem 0;
}

body > footer, body > footer a {
    color: var(--base0);
    text-shadow: var(--shadow);
    font-size: 1rem;
    line-height: 1.5rem;
}

body > footer > div {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

body > footer > div + div {
    margin-top: 5rem;
}

body > footer i {
    display: block;
    font-size: 5.5rem;
    color: var(--base40);
    margin-bottom: 2rem;
}

body > footer svg {
    fill: #ffffff;
    width: 18rem;
}

body > footer h2 {
    font-size: 1.75rem;
    padding-bottom: 1rem;
}

body > footer h3 {
    font-size: 1.25rem;
    padding-bottom: 1rem;
}

@media only screen and (min-width: 84rem) {

    body > footer > div + div {
        margin-top: 0;
    }
}

@media only screen and (min-width: 64em) {

    body > footer, body > footer a {
        font-size: 1.25rem;
        line-height: 2rem;
    }
}

/*
-----------------------------
LINK ANIMATED UNDERLINE
-----------------------------
*/
a.underline {
    display: inline-block;
    position: relative;
    text-decoration: none;
    transition: all .3s;
}

a.underline:before {
    background-color: var(--base);
    content: '';
    height: 1px;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    transition: all .3s ease-in-out;
    width: 0;
}

body > footer a.underline:before {
    background-color: var(--base0);
}

a.underline:hover:before {
    width: 100%;
}

/*
-----------------------------
CURTAIN
-----------------------------
*/
.curtain {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: .5s all;
    z-index: 1;
    text-align: center;
    background-color: var(--base20);
    border: 1px solid var(--base);
    color: var(--base);
    padding: .5rem 2rem;
    margin: 1rem;
    font: var(--font), sans-serif;
    font-size: 1.5rem;
    border-radius: .25rem;
}

.curtain i {
    margin: .15rem 1rem 0 0;
}

.curtain::before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: scaleX(0);
    z-index: -1;
    transition: .5s all;
}

.curtain:hover {
    color: var(--base0);
    text-shadow: var(--shadow);
}

.curtain:hover::before {
    left: 0;
    transform: scaleX(1);
    background-color: var(--base80);
}
