@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Lora&display=swap');

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: 'Lora', serif;
    background-color: #f4f1ea;
    color: #3b2f2f;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

/* HEADER */
header {
    background-color: #d8cfc4;
    border-bottom: 4px solid #8b6f47;
}

nav {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    gap: 30px;
}

/* HOME BUTTON */
.home-btn {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: #3b2f2f;
    border: 2px solid #3b2f2f;
    padding: 8px 16px;
    background-color: #efe8dd;
}

.home-btn:hover {
    background-color: #e0d6c8;
}

/* MENU */
.menu {
    display: flex;
    gap: 20px;
}

.menu a {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    text-decoration: none;
    color: #3b2f2f;
    padding: 10px 14px;
    border-bottom: 3px solid transparent;
    min-height: 44px;
}

.menu a:hover {
    border-bottom: 3px solid #8b6f47;
}

/* PAGINA ATTIVA */
.menu a.active {
    border-bottom: 3px solid #3b2f2f;
    font-weight: 700;
}

/* LAYOUT */
.main-container {
    display: flex;
    min-height: calc(100vh - 110px);
}

/* BORDI LATERALI */
.side-border {
    width: 5vw;
    min-width: 35px;
    background-color: #c2b6a3;
}

/* CONTENUTO */
.content {
    flex: 1;
    padding: 50px;
    text-align: center;
}

/* TITOLI */
h1 {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    margin-bottom: 30px;
}

/* IMMAGINE HOME */
.hero-image {
    max-width: 80%;
    border: 6px solid #8b6f47;
}

/* ================================================= */
/* =============== RESPONSIVE ====================== */
/* ================================================= */

@media (max-width: 1024px) {
    h1 {
        font-size: 36px;
    }

    .content {
        padding: 40px;
    }
}

@media (max-width: 768px) {

    nav {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 15px;
    }

    .home-btn {
        text-align: center;
        width: 100%;
        background-color: #cbbca6;
    }

    .menu {
        flex-direction: column;
        width: 100%;
    }

    .menu a {
        font-size: 18px;
        padding: 12px;
    }

    .main-container {
        flex-direction: column;
    }

    .side-border {
        width: 100%;
        height: 25px;
        min-width: unset;
    }

    .content {
        padding: 25px;
    }

    h1 {
        font-size: 30px;
    }

    .hero-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {

    h1 {
        font-size: 26px;
    }

    .menu a {
        font-size: 17px;
    }

    body {
        font-size: 15px;
    }
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(216, 207, 196, 0.9);
    text-align: center;
    padding: 6px 0;
    border-top: 2px solid #8b6f47;
    font-family: 'Cinzel', serif;
    font-size: 14px;
}

footer a {
    color: #3b2f2f;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
