*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    padding: 0;
    margin: 0;
    scrollbar-gutter: both-edges;
}

p::selection,
h1::selection,
h2::selection,
h3::selection,
h4::selection,
h5::selection,
h6::selection {
    background-color: #fbb90d;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Grandstander", cursive;
}

header {
    background-color: #eee;
    padding-block: 24px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

nav {
    margin-right: 24px;
    display: none;
}

.navigation-menu {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: nowrap;
    display: none;
}

.navigation-menu__item{
    padding: 18px 30px;
    list-style-type: none;
    border-radius: 4px;
}

.navigation-menu__item__link:hover {
    color: #e1a60c;
}

.navigation-menu__item__link {
    color: black;
    font-family: "Grandstander", cursive;
    font-weight: bold;
    font-size: 24px;
    text-decoration: none;
}

.header-logo {
    margin-left: 24px;
    height: 7rem;
    cursor: pointer;
}

p {
    margin-bottom: 2rem;
    width: fit-content;
}

.main-title {
    font-size: 80px;
    text-align: center;
    z-index: 5;
    text-shadow: 2px 2px 0 #b78a12;
    background-color: white;
    width: calc(8ch + 20px);
}

.main-title__container {
    width: 100%;
    display: grid;
    place-content: center;
}

main {
    margin-top: 128px;
    margin-bottom: 80px;
    font-family: "Open Sans", sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 4rem;
}

mark {
    padding-inline: 2px;
    background-color: #fbb90d88;
    transform: skew(15deg, 15deg);
}

mark::selection {
    background-color: black;
    color:white;
}

.main-presentation {
    width: 100%;
    max-width: 900px;
    min-width: 430px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-presentation__container {
    padding: 4rem 4rem 2rem;
    border: 3px solid #e1a60c;
    border-radius: 6px;
    position: relative;
    top: -100px;
}

.main-presentation-beer {
    margin: 2rem 8rem;
}

section {
    margin-bottom: 4rem;
}

.event.past {
    background-color: white;
    filter: grayscale(0.9) opacity(0.6);
    display: none;
}

.event.past::before {
    isolation: isolate;
    position: absolute;
    top: 50%;
    width: 100%;
    height: 100px;
    content: 'TERMINATO';
    background-color: black;
    color: white;
    font-size: 70px;
    font-weight: bold;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 5px black;
}

.event-title {
    font-size: 64px;
    text-align: center;
}

.event-image {
    background: url("assets/citta-vecchia.jpg");
    min-width: 55%;
    aspect-ratio: 0.7;
    background-size: cover;
    border-left: 1px solid black;
    background-color: #fbb90d;
}


.event-container {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #fbb90d;
    box-shadow: 0 6px 12px rgba(73, 56, 15, 0.68);
}

h3 {
    font-size: 40px;
    line-height: 5rem;
}

.event-text {
    padding-inline: 2rem;
    margin-top: 0;
}

.event-text::selection {
    background-color: black;
    color: #fbb90d;
}

footer {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer__social {
    height: 5rem;
    background-color: #231f1f;
    color: #fbb90d;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3rem;

}

.footer__info {
    height: 1.6rem;
    font-family: "Open Sans";
    font-size: 12px;
    font-weight: 100;
    letter-spacing: 1px;
    color: #cb9815;
    background-color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 24px;
}

.footer__info__left {
    display: flex;
    gap: 16px;
}

svg {
    height: 2rem;
}

path {
    fill: #fbb90d;
}

.social-link {
    transform: scale(1);
    transition-duration: .5s;
}

.social-link:hover {
    transform: scale(1.4);
    transition-duration: .5s;
}

.statute-external-icon {
    height: 10px;
}

.statute-link {
    color: #cb9815;
    text-decoration: unset;
}

.statute-link:hover {
    text-decoration: underline;
}



/* CRAFT BEER EVENT */

.bud-event {
    width:900px;
    box-shadow: 0 6px 12px rgba(73, 56, 15, 0.68);
    max-width: 1200px;
    margin-top: 3rem;
    margin-inline: auto;
    margin-bottom: 16rem;
}

.bud-event__title {
    text-align: center;
    font-size: clamp(1rem, -0.4286rem + 4.5714vw, 3rem);
    line-height: clamp(2.5rem, 0.7143rem + 5.7143vw, 5rem);
    margin-bottom: 1rem;
}

.bud-event__image {
    width: 100%;
}

.bud-event__desc {
    text-align: center;
    font-size: clamp(0.75rem, -0.8571rem + 5.1429vw, 2rem);
    width: 100%;
    margin-top: 0;
}

@media (max-width: 992px) {
    header {
        padding-block: 12px;
    }

    .header-logo {
        margin-left: 24px;
        height:4rem;
    }

    .bud-event {
        width: 80vw;
    }
}

@media (max-width: 1048px) {
    .event-text {
        text-align: center;
    }

    .event-container {
        flex-direction: column;
    }

    .event-image {
        width: 100%;
        border-left: unset;
        border-top: 1px solid black;
    }
}