:root {
    --green: #123e31;
    --gold: #e9c273;
    --ink: #17382f;
    --paper: #f8f6f0;
    --muted: #54675f
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px
}

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

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

button,
input,
select {
    font: inherit
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #b04c20;
    outline-offset: 5px
}

.skip {
    position: absolute;
    top: -80px;
    left: 16px;
    background: white;
    padding: 12px;
    z-index: 20
}

.skip:focus {
    top: 10px
}

.notice {
    text-align: center;
    background: #8c2429;
    color: white;
    padding: 9px 20px;
    font-size: 13px;
    letter-spacing: .04em
}

.header {
    max-width: 1260px;
    margin: auto;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    line-height: 1.25
}

.brand strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 27px
}

.brand-symbol {
    background: var(--green);
    color: var(--gold);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-weight: bold;
    font-size: 18px
}

.header nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px
}

.header nav a {
    text-decoration: none
}

.nav-pill {
    border: 1px solid #c4c9be;
    border-radius: 24px;
    padding: 10px 17px
}

.hero {
    max-width: 1260px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 65px 65px 60px;
    background: var(--green);
    color: #fff;
    border-radius: 22px;
    position: relative;
    overflow: hidden
}

.eyebrow {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 18px
}

.hero .eyebrow {
    color: var(--gold)
}

h1,
h2,
h3,
h4,
p {
    overflow-wrap: break-word
}

h1,
h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: normal;
    line-height: 1.12;
    letter-spacing: -.03em
}

h1 {
    font-size: clamp(35px, 4.1vw, 58px);
    margin: 0 0 25px
}

h1 em {
    color: var(--gold);
    font-style: normal
}

h2 {
    font-size: clamp(30px, 3.2vw, 44px);
    margin: 0 0 20px
}

h3 {
    font-size: 22px;
    line-height: 1.2
}

.hero p {
    max-width: 470px
}

.button {
    display: inline-flex;
    gap: 22px;
    align-items: center;
    background: var(--gold);
    color: #18392f;
    border-radius: 7px;
    padding: 13px 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin-top: 12px
}

.hero .hero-note {
    font-size: 12px;
    color: #d8e2da;
    margin-top: 22px
}

.hero-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center
}

.hero-art>img {
    width: 100%;
    max-width: 540px
}

.pair {
    width: 95%;
    background: #fff;
    border-radius: 180px;
    padding: 25px 35px;
    box-shadow: 0 25px 50px #0002
}

.pair img {
    width: 100%;
    max-width: 420px;
    margin: auto;
    image-rendering: auto
}

.hero-art>span {
    font-family: Georgia, serif;
    color: var(--gold);
    font-size: 19px
}

.content {
    max-width: 1200px;
    margin: auto;
    padding: 75px 35px
}

.intro {
    text-align: center;
    max-width: 760px
}

.intro p:last-child {
    max-width: 610px;
    margin: 25px auto 0;
    color: var(--muted)
}

.prizes {
    padding-top: 20px
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 45px;
    margin-bottom: 30px
}

.section-title>p {
    max-width: 350px;
    color: var(--muted);
    font-size: 14px
}

.prize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px
}

.prize {
    background: #fff;
    border: 1px solid #e3e3d8;
    border-radius: 15px;
    overflow: hidden
}

.prize-photo {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf0e9;
    padding: 25px
}

.prize-photo img {
    max-height: 235px;
    width: auto;
    object-fit: contain
}

.prize>div:last-child {
    padding: 30px
}

.prize h3 {
    margin: 0
}

.prize p {
    margin-bottom: 0;
    color: var(--muted)
}

.sponsors {
    border-top: 1px solid #dedfd5
}

.sponsors>p {
    color: var(--muted)
}

.tier {
    margin-top: 45px;
    --size: 160px;
    --border: #617a69;
    --tint: #eef3ee
}

.tier.master {
    --size: 360px;
    --border: #ad8332;
    --tint: #fcf4df
}

.tier.ouro {
    --size: 260px;
    --border: #b99441;
    --tint: #faf4e3
}

.tier.prata {
    --size: 210px;
    --border: #939fa8;
    --tint: #eef1f4
}

.tier-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px
}

.tier-heading h3 {
    margin: 0;
    font-family: Georgia, serif;
    font-weight: normal;
    font-size: 26px
}

.tier-heading>span:last-child {
    font-size: 12px;
    margin-left: auto;
    color: var(--muted)
}

.tier-heading>span:first-child {
    color: var(--border)
}

.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
    padding: 25px;
    border-radius: 15px;
    background: var(--tint)
}

.sponsor-card {
    width: min(var(--size), 100%);
    text-align: center;
    min-width: 0
}

.logo-frame {
    aspect-ratio: 1;
    background: white;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px #183c3010;
    overflow: hidden
}

.logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.sponsor-card h4 {
    font-size: 14px;
    font-weight: normal;
    margin: 12px 0 0
}

.sponsor-card a {
    font-size: 12px
}

.missing {
    font-size: 13px;
    color: var(--muted);
    max-width: 120px
}

.signup {
    background: #e7ebdf;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 65px;
    max-width: 1130px
}

.signup p {
    max-width: 630px;
    margin: 25px auto
}

.status-pill {
    display: inline-block;
    border: 1px solid #466350;
    border-radius: 30px;
    padding: 9px 20px;
    font-size: 13px
}

.legal p {
    white-space: pre-wrap
}

footer {
    background: var(--green);
    color: white;
    padding: 45px max(25px, calc((100vw - 1130px)/2));
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 25px
}

footer p {
    margin: 0;
    font-size: 13px
}

footer>a:last-of-type {
    font-size: 13px
}

footer small {
    width: 100%;
    border-top: 1px solid #ffffff30;
    padding-top: 20px;
    color: #d3dfd7;
    font-size: 12px
}

[hidden] {
    display: none !important
}

.admin-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px
}

.catalog {
    list-style: none;
    padding: 0
}

.catalog button {
    display: block;
    text-align: left;
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #ccd3c7;
    cursor: pointer
}

.catalog span {
    display: block;
    font-size: 12px;
    color: var(--muted)
}

label {
    display: block;
    margin: 14px 0
}

input:not([type=checkbox]),
select {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid #aeb9ae;
    border-radius: 4px
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.actions button {
    padding: 8px 12px
}

.admin-layout .sponsor-card {
    max-width: 100%
}

@media(min-width:1150px) {
    .master .sponsor-grid {
        gap: 18px;
        padding: 15px
    }

    .master .sponsor-card {
        width: calc((100% - 36px)/3);
        max-width: 360px
    }
}

@media(max-width:900px) {
    .header {
        padding: 20px;
        flex-direction: column;
        gap: 18px
    }

    .hero {
        margin: 0 20px;
        padding: 40px;
        gap: 25px
    }

    .hero h1 {
        font-size: 41px
    }

    .hero-art>span {
        font-size: 15px
    }

    .pair {
        padding: 20px
    }

    .section-title {
        align-items: start;
        flex-direction: column;
        gap: 0
    }

    .tier.master {
        --size: 300px
    }

    .content {
        padding: 55px 25px
    }

    .signup {
        margin: 0 20px 50px
    }

    .admin-layout {
        gap: 25px
    }
}

@media(max-width:600px) {
    .header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
        font-size: 12px
    }

    .brand strong {
        font-size: 24px
    }

    .hero {
        grid-template-columns: 1fr;
        margin: 0 12px;
        padding: 32px 25px
    }

    .hero h1 {
        font-size: 39px
    }

    .hero-art {
        margin-top: 12px
    }

    .hero-art>img {
        max-width: 390px
    }

    .pair {
        max-width: 330px
    }

    .hero .eyebrow {
        font-size: 10px
    }

    .prize-grid,
    .admin-layout {
        grid-template-columns: 1fr
    }

    .prize-photo {
        height: 250px
    }

    .prize>div:last-child {
        padding: 24px
    }

    .sponsor-grid {
        gap: 16px;
        padding: 16px
    }

    .tier.master {
        --size: 300px
    }

    .tier.ouro {
        --size: 235px
    }

    .tier.prata {
        --size: 190px
    }

    .tier.apoiadores {
        --size: 145px
    }

    .sponsor-card h4 {
        font-size: 13px
    }

    .signup {
        margin: 0 12px 40px;
        padding: 40px 24px
    }

    .content {
        padding: 45px 20px
    }

    footer {
        flex-direction: column
    }

    .logo-frame {
        padding: 10px
    }

    .tier-heading>span:last-child {
        font-size: 11px
    }

    .tier-heading {
        gap: 10px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
}

/* Ajuste visual dos logotipos - Natal Premiado */
.tier.prata .logo-frame,
.tier.apoiadores .logo-frame {
    padding: 4px;
}

.tier.prata .logo-frame img,
.tier.apoiadores .logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Ampliação de patrocinadores sem site oficial */
.logo-frame>a,
.logo-frame>.sponsor-zoom-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sponsor-zoom-trigger {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: zoom-in;
}

.sponsor-zoom-trigger img {
    transition: transform .2s ease;
}

.sponsor-zoom-trigger:hover img {
    transform: scale(1.06);
}

.sponsor-zoom-dialog {
    width: min(540px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    border: 0;
    border-radius: 18px;
    padding: 20px;
    background: #fff;
    color: #17382f;
    box-shadow: 0 20px 70px #0005;
}

.sponsor-zoom-dialog::backdrop {
    background: rgba(0, 0, 0, .7);
}

.sponsor-zoom-content {
    position: relative;
    text-align: center;
}

.sponsor-zoom-content img {
    display: block;
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
    margin: 20px auto;
}

.sponsor-zoom-content h3 {
    font-family: Georgia, serif;
    font-size: 21px;
    margin: 12px 0 0;
}

.sponsor-zoom-close {
    position: absolute;
    right: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #edf0e9;
    color: #17382f;
    font-size: 25px;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .sponsor-zoom-trigger img {
        transition: none;
    }
}

/* Natal Premiado - enquadramento completo da fotografia dos premios */
.hero .hero-art .pair {
    width: 100%;
    max-width: 480px;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
}

.hero .hero-art .pair img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .hero .hero-art .pair {
        width: 100%;
        padding: 8px;
        border-radius: 16px;
    }

    .hero .hero-art .pair img {
        max-height: 420px;
    }
}

/* Arte horizontal dos premios e ampliacao */
.hero .hero-art .pair {
    width: 100%;
    max-width: 540px;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
}

.hero .hero-art .pair .premios-ampliar {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.hero .hero-art .pair .premios-ampliar img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 10px;
}

.premios-modal {
    width: min(1100px, 95vw);
    max-height: 95vh;
    padding: 12px;
    border: 0;
    border-radius: 16px;
    background: white;
    box-shadow: 0 25px 80px #0006;
}

.premios-modal::backdrop {
    background: rgba(0, 0, 0, .8);
}

.premios-modal img {
    display: block;
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.premios-modal-fechar {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #17382f;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 2px 12px #0003;
}

/* Galeria ampliada dos prêmios */
.prize-photo .galeria-premios-abrir {
    cursor: zoom-in;
}

.galeria-premios-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(94vw, 1100px);
    max-width: 1100px;
    max-height: 94vh;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .4);
    overflow: visible;
}

.galeria-premios-modal::backdrop {
    background: rgba(0, 0, 0, .86);
}

.galeria-premios-modal img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(94vh - 24px);
    object-fit: contain;
    cursor: zoom-out;
    border-radius: 8px;
}

.galeria-premios-fechar {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #123b2c;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .3);
    z-index: 2;
}

@media (max-width: 600px) {
    .galeria-premios-modal {
        width: 96vw;
        padding: 7px;
    }
}


/* Cabecalho centralizado dos premios */
.prizes .premios-cabecalho {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.prizes .premios-cabecalho>div {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

.prizes .premios-cabecalho h2 {
    margin-bottom: 20px;
}

.prizes .premios-periodo {
    font-size: 18px;
    font-weight: 700;
    color: #184c35;
    margin: 0 0 14px;
}

.prizes .premios-aviso {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 auto 8px;
    max-width: 680px;
}

.prizes .premios-ressalva {
    font-size: 12px;
    opacity: .7;
    margin-bottom: 30px;
}

.site-footer {
    margin-top: 64px;
    padding: 48px 24px 20px;
    color: #fff;
    background: #123c30;
    border-top: 4px solid #d9b568;
}

.site-footer .footer-content {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 40px;
}

.site-footer .brand {
    display: inline-flex;
    color: #fff;
    text-decoration: none;
}

.site-footer .brand span {
    font-size: 15px;
}

.site-footer .brand strong {
    display: block;
    color: #f0d597;
    font-size: 28px;
    line-height: 1.2;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #f0d597;
    font-size: 16px;
}

.site-footer p {
    margin: 16px 0;
    color: #e0e9e4;
    font-size: 14px;
    line-height: 1.7;
}

.site-footer .footer-nav a {
    display: block;
    width: fit-content;
    margin-bottom: 12px;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer a:focus-visible {
    outline: 2px solid #f0d597;
    outline-offset: 5px;
}

.site-footer .footer-link {
    color: #f0d597;
    font-size: 14px;
    font-weight: 600;
}

.site-footer .footer-bottom {
    max-width: 1120px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid #ffffff30;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer small {
    color: #d0ded6;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .site-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
    }
}

.site-footer .footer-address {
    margin-top: 20px;
    color: #e0e9e4;
    font-size: 14px;
    font-style: normal;
    line-height: 1.7;
}

.site-footer .footer-address strong {
    display: block;
    margin-bottom: 6px;
    color: #f0d597;
}

.site-footer {
    display: block;
    box-sizing: border-box;
    height: auto;
}

.site-footer .footer-address {
    margin-top: 20px;
    color: #e0e9e4;
    font-size: 14px;
    font-style: normal;
    line-height: 1.7;
}

.site-footer .footer-address strong {
    display: block;
    margin-bottom: 6px;
    color: #f0d597;
}

.site-footer .footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 16px 32px;
    max-width: 1120px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid #ffffff30;
}

.site-footer .footer-bottom small {
    position: static;
    display: block;
    margin: 0;
    color: #d0ded6;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.site-footer .footer-notice {
    text-align: right;
}

@media (max-width: 700px) {
    .site-footer .footer-bottom {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .site-footer .footer-notice {
        text-align: left;
    }
}

.header .brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.header .brand::before,
.header .brand::after {
    content: none;
}

.header .brand-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

.header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 700px) {
    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .header .brand-logo {
        width: 150px;
    }

    .header nav {
        gap: 12px 16px;
    }
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 20px 24px;
}

.header .brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    text-decoration: none;
}

.header .brand::before,
.header .brand::after {
    content: none;
}

.header .header-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 128px;
    padding: 8px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 14px;
}

.header .header-logo-box img {
    display: block;
    width: 100%;
    height: auto;
}

.header .header-brand-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.header .header-brand-text strong {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.2;
}

.header .header-brand-text > span {
    font-size: 14px;
    line-height: 1.5;
}

.header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 1000px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 16px;
    }

    .header .brand {
        flex-direction: column;
        text-align: center;
    }

    .header .header-logo-box {
        width: 110px;
    }

    .header nav {
        gap: 12px 16px;
    }
}