:root {
    --wine: #642816;
    --ink: #2a2421;
    --muted: #756b63;
    --paper: #f7f3ee;
    --line: #e3d9cf;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, sans-serif;
}

a {
    color: inherit;
}

.explore-site-header {
    min-height: 76px;
    padding: 12px max(22px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.explore-brand {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 10px;
    background: #211b17;
}

.explore-brand img {
    display: block;
    width: 154px;
    max-height: 38px;
    object-fit: contain;
}

.explore-site-header nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.explore-site-header nav a {
    padding: 9px 11px;
    border-radius: 9px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.explore-site-header nav a:hover {
    background: #f1ece7;
}

.explore-site-header .explore-nav-primary {
    background: var(--wine);
    color: #fff;
}

.explore-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 25px 0 60px;
}

.explore-back {
    display: inline-block;
    margin-bottom: 17px;
    color: var(--wine);
    font-weight: 700;
    text-decoration: none;
}

.explore-heading {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: clamp(24px, 4vw, 42px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 19px;
}

.explore-heading__logo {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 170px;
    width: 170px;
    height: 110px;
    padding: 14px;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #faf8f5;
}

.explore-heading__logo img {
    position: absolute;
    inset: 14px;
    display: block;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    object-fit: contain;
}

.explore-heading span {
    color: #95664b;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.explore-heading h1 {
    margin: 7px 0;
    color: var(--wine);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
}

.explore-heading p {
    max-width: 700px;
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.5;
}

.explore-heading strong {
    font-size: .86rem;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.explore-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.explore-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 28px rgba(48, 31, 21, .1);
}

.explore-card a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.explore-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #ddd;
}

.explore-card div {
    padding: 15px;
}

.explore-card h2 {
    margin: 0;
    color: var(--wine);
    font-size: 1rem;
    line-height: 1.25;
}

.explore-card p {
    margin: 7px 0;
    color: var(--muted);
    font-size: .86rem;
}

.explore-card small {
    color: var(--muted);
    font-size: .73rem;
    line-height: 1.35;
}

.explore-empty {
    margin-top: 22px;
    padding: 45px 20px;
    border: 1px dashed #d5c8bc;
    border-radius: 14px;
    text-align: center;
}

.explore-empty h2 {
    color: var(--wine);
}

.explore-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: center;
}

.explore-pagination a {
    color: var(--wine);
    font-weight: 700;
    text-decoration: none;
}

.explore-pagination a:first-child {
    justify-self: start;
}

.explore-pagination a:last-child {
    justify-self: end;
}

.explore-pagination span {
    color: var(--muted);
    font-size: .85rem;
}

.explore-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    padding: 25px;
    background: #211b17;
    color: #ddd3cc;
    font-size: .84rem;
    text-align: center;
}

.explore-footer a {
    color: #fff;
}

@media (max-width: 800px) {
    .explore-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .explore-site-header {
        padding: 10px 14px;
    }

    .explore-brand {
        padding: 8px 10px;
    }

    .explore-brand img {
        width: 118px;
    }

    .explore-site-header nav a {
        display: none;
    }

    .explore-site-header nav a[href="galeria.php"],
    .explore-site-header nav a[href="login.php"],
    .explore-site-header nav a[href="sair.php"] {
        display: block;
    }

    .explore-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .explore-heading__logo {
        width: 140px;
        height: 90px;
        flex-basis: 90px;
    }

    .explore-grid {
        grid-template-columns: 1fr;
    }
}
