:root {
    --bg: #efe3c8;
    --panel: #fff8ea;
    --border: #9b7a4f;
    --gold: #c9a15a;
    --brown: #5b3516;
    --text: #352516;
    --hover: #f1dfb7;
    --shadow: rgba(0, 0, 0, .15);
}

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

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    background:
        linear-gradient(rgba(239, 227, 200, .92),
            rgba(239, 227, 200, .92));
    color: var(--text);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 16px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    color: var(--brown);
    font-size: 2rem;
}

.header p {
    color: #6b4e2b;
    margin-top: 6px;
}

/* Campo busca */

.search-box {
    margin-bottom: 16px;
}

.search-box input {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: white;
    outline: none;
}

.search-box input:focus {
    border-color: var(--gold);
}

/* Layout principal */

.content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}

/* Painéis */

.item-list,
.item-info {
    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
}

/* Lista */

.item-list ul {
    list-style: none;
    max-height: 70vh;
    overflow-y: auto;
}

.item-list li {
    border-bottom: 1px solid #e4d2aa;
    transition: .2s;
}

.item-list button {
    transition: .2s;
    cursor: pointer;
    padding: 14px 16px;
    width: 100%;
    height: 100%;
    background: none;
    color: inherit;
    border: none;
    font: inherit;
    text-align: left;
    display: flex;
}

.item-list button img,
.item-list button span {
    vertical-align: middle;
}

.item-list button img {
    padding-right: 5px;
}

.item-list li:hover,
.item-list button:hover {
    background: var(--hover);
}

.item-list li.active,
.item-list button.active {
    background: var(--gold);
    color: white;
    font-weight: bold;
}

/* Informações */

.item-info {
    padding: 24px;
}

.item-info h2 {
    color: var(--brown);
    margin-bottom: 20px;
}

.info-block {
    margin-bottom: 24px;
}

.info-block h3 {
    color: var(--brown);
    margin-bottom: 8px;
}

.info-block ul {
    list-style: none;
}

.info-block li {
    margin-bottom: 8px;
}

.info-block a {
    color: #1764d7;
    text-decoration: none;
}

.info-block a:hover {
    text-decoration: underline;
}

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;

    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    padding: 10px;
}

footer a {
    display: flex;
    align-items: center;
}

footer a {
    display: flex;
    align-items: center;
}

footer a img,
footer a svg {
    padding-right: 5px;
}



/* Scroll custom */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* MOBILE */

@media (max-width: 768px) {

    .container {
        padding: 12px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .item-list {
        order: 1;
    }

    .item-info {
        order: 2;
        padding: 18px;
    }

    .item-list ul {
        max-height: 300px;
    }

    .item-list li button {
        padding: 16px;
        font-size: 1rem;
    }

    .search-box input {
        padding: 16px;
        font-size: 16px;
    }

    footer {
        display: grid;
        gap: 8px;
    }
}

/* TELAS GRANDES */

@media (min-width: 1400px) {

    .content {
        grid-template-columns: 380px 1fr;
    }

    .item-info {
        padding: 32px;
    }
}