:root {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html, body, a, button, input, label, div {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    color: #222222;
    font-size: 20px;
    font-family: "Old Standard TT", serif;
    font-weight: 400;
    font-style: normal;
    font-optical-sizing: auto;
    overscroll-behavior: none;
    touch-action: manipulation;
}

header {
    position: fixed;
    z-index: 999;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

h1, h2 {
    text-align: center;
}

p {
    padding: 0 0 15px 0;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    line-height: 1.6;
    word-spacing: 0.05em;
}

a {
    position: relative;
    text-decoration: none;
    color: #68a43e;
}

a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 100%;
    height: 2px;
    background-color: #dd1317;
    transition: transform 0.3s ease;
}

a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

nav {
    position: relative;
    outline: none;
}

section {
    padding-top: 50px;
}

footer {
    position: relative;
    padding: 50px 0;
}

footer img {
    width: 200px;
}

footer p.text-s {
    padding: 10px 25px;
    font-size: 16px
}

footer #footer-social, #apply-social {
    padding-top: 50px;
}

footer a, #apply-social a {
    margin: 0 50px;
    color: #222222;
    text-decoration: none;
}

footer a {
    display: inline-block;
    height: 50px;
    line-height: 50px;
}

#fixed-bg {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("../img/header.webp");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

.menu {
    display: flex;
    list-style: none;
    justify-content: space-evenly;
    font-family: "Fredericka the Great", serif;
    font-weight: 400;
    font-style: normal;
}

.menu li#menu-social {
    display: none;
}

.menu li a {
    display: block;
    width: 100%;
    padding: 5px 0;
    font-size: 20px;
    color: #222222;
    text-decoration: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    outline: none;
}

#menu-toggle, #mini-logo {
    display: none;
}

main {
    position: relative;
    z-index: 1;
}

#banner, #banner-event {
    width: 100%;
    height: 800px;
    padding-top: 100px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.3);
    background-image: url("../img/horizontal_white_fade.png");
    background-repeat: repeat-x;
    background-position: bottom;
}

#banner-event {
    height: 500px;
}

#banner p {
    padding-top: 200px;
    text-align: center;
    font-size: min(5vw, 72px);
    font-weight: bold;
}

#about-me #profile-picture {
    background-size: cover;
    background-position: center;
    background-image: url("../img/profile_picture.jpg");
    background-color: #686755;
    border: solid 45px #fff;
}

#social {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.5);
    background-image: url("../img/horizontal_white_fade.png");
    background-repeat: repeat-x;
    background-position: bottom;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#social a {
    display: inline-block;
    padding: 15px;
    margin: 50px 15px;
    font-size: 72px;
    color: #222222;
    text-decoration: none;
}

#culture {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.75);
    background-image: url("../img/horizontal_white_fade_180.png");
    background-repeat: repeat-x;
    background-position: top;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#apply-social a {
    padding: 15px;
    margin: 50px 15px;
    font-size: 36px;
    color: #222222;
}

#footer-logo {
    width: 50vw;
    max-width: 250px;
    height: auto;
    background-color: pink;
    background-image: url("../img/logo_text.png");
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

/**/

.content {
    max-width: 990px;
    height: auto;
    margin: 0 auto;
}

.flex-container {
    display: flex;
}

.box {
    flex: 1;
}

.box-blur {
    background-color: rgba(255, 255, 255, 0.75);
    background-image: url("../img/horizontal_white_fade_180.png");
    background-repeat: repeat-x;
    background-position: top;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.box-shadow {
    box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.2);
}

.box-p {
    padding: 15px;
}

.box-side-p {
    padding: 0 15px;
}

.box-white {
    display: block;
    width: 100%;
    background-color: #fff;
}

.swiper-box {
    height: 900px;
}

.handwritten {
    font-family: "Fredericka the Great", serif;
    font-weight: 400;
    font-style: normal;
}

.button {
    display: inline-block;
    padding: 25px 50px;
    margin: 50px 0;
    color: #fff;
    font-size: 26px;
    font-family: "Fredericka the Great", serif;
    font-weight: 400;
    font-style: normal;
    background: #222222;
    box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.text-italy {
    color: #68a43e;
    text-shadow: 5px 5px 0px #fff,
    10px 10px 0px #dd1317;
}

.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    footer img {
        width: 50vw;
        height: auto;
    }

    #fixed-bg {
        background-image: url("../img/header_mobile.webp");
        background-size: 200%;
        background-position: top center;
        background-repeat: no-repeat;
    }

    #mini-logo {
        display: block;
        position: absolute;
        top: 5px;
        left: 5px;
        width: 60px;
        height: 60px;
        background-image: url("../img/logo_mini.png");
        background-size: 90%;
        background-position: center center;
        background-repeat: no-repeat;
    }

    a#mini-logo:hover::after {
        display: none;
        transform: none;
    }

    .menu {
        flex-direction: column;
        display: none;
        width: 100%;
    }

    ul.menu {
        margin: 0;
        padding: 0;
    }

    ul.menu li {
        margin: 1vh;
        text-align: center;
    }

    .menu li a {
        padding: 1vh;
        font-size: 26px;
    }

    .hamburger {
        display: flex;
        padding: 15px;
        text-align: right;
    }

    .hamburger .fa {
        min-height: 32px;
    }

    #menu-toggle:checked + .hamburger + .menu {
        display: flex;
    }

    #menu-toggle:checked + .hamburger + ul.menu li#menu-social {
        display: flex;
    }

    li#menu-social, footer#footer-social {
        padding: 15px 0;
        border-top: solid 1px #222222;
        border-bottom: solid 1px #222222;
    }

    #banner, #banner-event {
        height: 500px;
        padding: 100px 0;
        background-color: rgba(255, 255, 255, 0.5);
    }

    #banner-event {
        height: 300px;
    }

    #banner p {
        padding: 50px 0;
        font-size: 6vw !important;
    }

    #about-me #profile-picture {
        min-height: 100vw;
        border: 5vw solid #fff;
    }

    #social a {
        margin: 25px 15px;
    }

    /**/
    .flex-container {
        display: flex;
        flex-direction: column;
    }

    .box {
        flex: 1;
    }

    .text-italy {
        text-shadow: 2px 2px 0px #fff,
        4px 4px 0px #dd1317;
    }

    .container {
        flex-direction: column;
    }

    .box {
        width: 100%;
    }

    .swiper-box {
        height: 800px;
    }
}