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

html {
    color-scheme: dark;
}

body,
input,
button,
select,
textarea {
    font-family: "Outfit", sans-serif;
}

body {
    background-color: hsl(203, 93%, 9%);
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: hsla(203, 93%, 6%, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 1rem 0;
    z-index: 3;
}

header .container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

header .logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.hero {
    background-color: hsl(203, 93%, 10%);
    background-image: url("img/hero.jpg");
    background-attachment: fixed;
    background-position: 50% 80%;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero .overlay {
    padding: 12rem 1rem 8rem 1rem;
    background-color: hsla(203, 93%, 5%, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    text-align: center;
}

img {
    width: 100%
}

.page {
    flex-grow: 1;
}

section {
    margin-top: 4rem;
    margin-bottom: 4rem;
    text-align: center;
}

section h2 {
    margin-bottom: 1rem;
}

section form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background-color: hsl(203, 93%, 20%);
    width: 95%;
    max-width: 900px;
    margin: 2rem auto;
    margin-bottom: 0;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0px 0px 20px hsla(203, 93%, 10%, 0.4);
}

section form .orizzontale {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
}

section form fieldset {
    border: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    text-align: left;
    width: 100%;
    max-width: 100%;
}

section form .orizzontale fieldset {
    flex-direction: column;
}

section form fieldset.buttons {
    max-width: max-content;
}

section form fieldset label {
    user-select: none;
}

section form .orizzontale fieldset label {
    display: block;
    width: 100%;
}

section form fieldset input[type="text"],
section form fieldset input[type="email"] {
    font-size: 98%;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid hsla(203, 93%, 75%, 0.5);
    width: 100%;
    max-width: 100%;
    background-color: hsla(203, 93%, 5%, 0.8);
}

section form fieldset input[type="text"]:hover,
section form fieldset input[type="text"]:focus,
section form fieldset input[type="email"]:hover,
section form fieldset input[type="email"]:focus {
    border: 1px solid hsla(203, 93%, 75%, 1);
    outline: none;
}

section form fieldset input[type="submit"],
section form fieldset input[type="button"],
.button {
    font-size: 95%;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    background-color: hsl(203, 93%, 75%);
    color: hsl(203, 93%, 10%);
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
}

section form fieldset input[type="submit"]:hover,
section form fieldset input[type="button"]:hover,
.button:hover {
    background-color: hsl(203, 93%, 70%);
}

section .boxes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

section .boxes .box,
.corso-box {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 99%;
    max-width: 1100px;
    margin: 0 auto;
    background-color: hsl(203, 93%, 20%);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0px 0px 20px hsla(203, 93%, 10%, 0.4);
}

.corso-box {
    background-color: hsl(203, 93%, 15%);
}

section .boxes .box .image {
    flex-grow: 1;
    max-width: 25rem;
    min-width: 25rem;
}

section .boxes .box .image img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    display: block;
    aspect-ratio: 4/3;
}

.corso-box .image {
    flex-grow: 1;
    max-width: 10rem;
    min-width: 10rem;
}

.corso-box .image img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    display: block;
    aspect-ratio: 1/1;
}

section .boxes .box .data,
.corso-box .data {
    flex-grow: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

section .boxes .box .data h3,
.corso-box .data h3 {
    font-size: 1.8rem;
}

@media only screen and (max-width: 767px) {

    section .boxes .box .data h3,
    .corso-box .data h3 {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 600px) {
    section form .orizzontale {
        flex-direction: column;
        align-items: stretch;
    }

    .corso-box {
        flex-direction: column;
    }

    .corso-box .image {
        max-width: 100%;
        min-width: 100%;
        height: 8rem;
    }

    .corso-box .data h3 {
        font-size: 1.3rem;
    }
}

section .boxes .box .data .meta,
.corso-box .data .meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 1rem 0;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
}

section .boxes .box .data .meta p,
.corso-box .data .meta p {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    width: max-content;
    padding: 0.2rem 0.4rem;
    border-radius: 0.5rem;
    background-color: hsl(203, 93%, 30%);
}

section .buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

code {
    background-color: hsl(221, 14%, 14%);
    color: #ff6685;
    padding: 0.2rem 0.3rem;
    border-radius: 0.5rem;
}

footer {
    text-align: center;
    background-color: hsla(203, 93%, 6%, 0.8);
    padding: 1rem 0;
}