@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
    --black: #101010;
    --gold: #c58b2a;
    --gold2: #e3aa47;
    --orange: #f38d27;
    --green: #697532;
    --blue: #1459a3;
    --cream: #fffaf2;
    --paper: #fff;
    --line: #eadfce;
    --muted: #6d6a63;
    --shadow: 0 14px 40px rgba(35, 25, 10, .09)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: linear-gradient(180deg, #fffdf9 0, #fff8ed 100%);
    color: var(--black);
    font-family: 'Nunito Sans', Arial, sans-serif;
    padding-bottom: 70px
}

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 253, 249, .96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px max(18px, calc((100% - 1180px)/2));
    gap: 24px
}

.brand img {
    width: 150px;
    height: auto;
    display: block
}

.top nav {
    display: flex;
    gap: 18px;
    align-items: center
}

.top nav a,
footer a {
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px
}

.top nav a:hover {
    color: var(--gold)
}

.menu-btn {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px
}

.hero {
    max-width: 1180px;
    margin: auto;
    padding: 54px 20px 35px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr);
    align-items: center;
    gap: 50px
}

.hero-art {
    /* background: radial-gradient(circle at 60% 45%, #fff 0, #fff7e8 62%, transparent 63%); */
    display: flex;
    justify-content: center
}

.hero-art img {
    width: min(100%, 580px);
    filter: drop-shadow(0 18px 30px rgba(20, 20, 20, .12))
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--gold)
}

h1,
h2,
h3,
strong {
    font-family: Montserrat, Arial, sans-serif
}

h1 {
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.03;
    margin: 10px 0
}

h2 {
    line-height: 1.15
}

p {
    line-height: 1.65
}

.hero p {
    font-size: 20px;
    font-weight: 700;
    color: var(--green)
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: var(--black);
    color: #fff;
    text-decoration: none;
    padding: 12px 17px;
    font-weight: 800;
    cursor: pointer
}

.btn:hover {
    transform: translateY(-1px)
}

.btn.secondary {
    background: #fff;
    color: var(--black);
    border: 1px solid var(--line)
}

.btn.small {
    padding: 9px 12px;
    font-size: 13px
}

.grid {
    display: grid;
    gap: 16px
}

.menu-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
    grid-template-columns: repeat(4, 1fr)
}

.card {
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow)
}

a.card {
    color: inherit;
    text-decoration: none
}

.menu-grid .card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: .2s
}

.menu-grid .card:hover {
    transform: translateY(-3px);
    border-color: #d5bd93
}

.menu-grid b {
    font-size: 28px
}

.menu-grid strong {
    font-size: 16px
}

.menu-grid span {
    color: var(--muted);
    font-size: 14px
}

.info-banner {
    max-width: 1140px;
    margin: 40px auto;
    padding: 28px 30px;
    background: linear-gradient(120deg, #111 0, #252525 70%, #3d2b14 100%);
    color: #fff;
    border-radius: 22px
}

.info-banner h2 {
    margin: 0
}

.info-banner p {
    margin-bottom: 0;
    color: #e8e2d8
}

.page {
    max-width: 1100px;
    margin: auto;
    padding: 48px 20px
}

.narrow {
    max-width: 850px
}

.section-head {
    margin-bottom: 28px
}

.date-title {
    margin: 36px 0 14px;
    color: var(--green);
    font-size: 21px;
    text-transform: capitalize
}

.timeline {
    display: grid;
    gap: 12px
}

.schedule {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 18px
}

.time {
    font-weight: 800;
    color: var(--gold);
    font-family: Montserrat
}

.schedule h3 {
    margin: 7px 0
}

.schedule p {
    margin: 6px 0;
    color: var(--muted)
}

.tag {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 5px 8px;
    background: #f6ead5;
    border-radius: 99px;
    color: #795619;
    font-weight: 800
}

.people {
    grid-template-columns: repeat(3, 1fr)
}

.person img,
.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover
}

.avatar {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    color: #fff;
    font: 800 32px Montserrat
}

.person {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.person h3 {
    margin: 8px 0 0
}

.person strong,
.person span {
    font-size: 13px;
    color: var(--muted)
}

.partners {
    grid-template-columns: repeat(3, 1fr)
}

.partner img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px
}

.logo-placeholder {
    height: 100px;
    display: grid;
    place-items: center;
    background: #f5efe5;
    border-radius: 14px;
    font-weight: 800;
    text-align: center
}

.partner h3 {
    margin: 8px 0 4px
}

.partner span {
    font-size: 12px;
    color: var(--gold)
}

.partner p {
    font-size: 14px;
    color: var(--muted)
}

.feature {
    max-width: 760px
}

.feature img,
.place img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 14px
}

.place-grid {
    grid-template-columns: repeat(2, 1fr)
}

.place h2 {
    font-size: 21px
}

.place p {
    color: var(--muted)
}

.prose {
    font-size: 16px
}

.prose li {
    margin: 10px 0
}

.certificate-box form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 20px 0
}

.certificate-box input,
.admin input,
.admin select,
.admin textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font: inherit
}

.certificate-box .success {
    padding: 18px;
    background: #edf6e9;
    border: 1px solid #cce1c4;
    border-radius: 14px
}

.error {
    padding: 14px;
    background: #fff0ee;
    border: 1px solid #edc6bf;
    border-radius: 14px;
    color: #8c2e24
}

footer {
    max-width: 1180px;
    margin: 30px auto 0;
    padding: 25px 20px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 12px
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #111;
    color: #fff;
    z-index: 30;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom)
}

.bottom-nav a {
    color: #fff;
    text-decoration: none;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    font-size: 19px
}

.bottom-nav span {
    font-size: 9px;
    font-weight: 700
}

.admin {
    min-height: 100vh;
    background: #f7f3eb;
    padding: 30px
}

.admin-wrap {
    max-width: 1100px;
    margin: auto
}

.admin nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0
}

.admin nav a {
    padding: 10px 13px;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #111;
    border: 1px solid var(--line)
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 13px
}

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

.login {
    max-width: 430px;
    margin: 10vh auto
}

.login img {
    width: 240px;
    display: block;
    margin: 0 auto 20px
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px
}

.form-grid .full {
    grid-column: 1/-1
}

.flash {
    padding: 10px;
    background: #eaf6e7;
    border-radius: 10px;
    margin: 10px 0
}

@media(max-width:900px) {
    .top nav {
        display: none
    }

    .menu-btn {
        display: block
    }

    .nav-open .top nav {
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        top: 68px;
        background: #fff;
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid var(--line)
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 28px
    }

    .hero-art {
        order: 0
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .people,
    .partners {
        grid-template-columns: repeat(2, 1fr)
    }

    .bottom-nav {
        display: grid
    }

    footer {
        padding-bottom: 90px
    }
}

@media(max-width:600px) {
    .brand img {
        width: 120px
    }

    .hero {
        gap: 15px;
        padding: 25px 16px
    }

    .hero-art img {
        max-width: 340px
    }

    .menu-grid {
        padding: 16px;
        gap: 10px
    }

    .menu-grid .card {
        min-height: 135px;
        padding: 16px;
        border-radius: 16px
    }

    .page {
        padding: 32px 16px
    }

    .schedule {
        grid-template-columns: 1fr;
        gap: 5px
    }

    .people,
    .partners,
    .place-grid {
        grid-template-columns: 1fr
    }

    .certificate-box form {
        grid-template-columns: 1fr
    }

    .top {
        padding: 8px 14px
    }

    .info-banner {
        margin: 25px 16px
    }

    .admin {
        padding: 16px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .form-grid .full {
        grid-column: auto
    }
}

.sync-card {
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-left: 5px solid var(--gold)
}

.sync-card h2 {
    margin: 7px 0
}

.sync-card p {
    max-width: 760px;
    color: var(--muted);
    margin: 6px 0 10px
}

.sync-card small {
    color: var(--muted)
}

.sync-card small a {
    color: var(--blue)
}

.sync-btn {
    white-space: nowrap;
    background: var(--green)
}

@media(max-width:700px) {
    .sync-card {
        flex-direction: column;
        align-items: stretch
    }

    .sync-btn {
        width: 100%
    }
}

/* Biografia expansível dos palestrantes */
.bio-expand {
    margin-top: 8px;
}

.bio-toggle {
    border: 1px solid #ccc;
    background: white;
    padding: 6px 10px;
    border-radius: 5px;
    color: #333;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bio-toggle-icon {
    font-size: 14px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.bio-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.bio-content p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.6;
}

.bio-expand.open .bio-content {
    max-height: 1000px;
    opacity: 1;
}

.bio-expand.open .bio-toggle-icon {
    transform: rotate(180deg);
}

.bio-expand.open .bio-toggle-text {
    font-size: 0;
}

.bio-expand.open .bio-toggle-text::after {
    content: "Ocultar biografia";
    font-size: 13px;
}


/* Evento acontecendo neste momento */
.schedule.evento-atual {
    border: 2px solid var(--blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    position: relative;
}

.schedule.evento-atual::before {
    content: "ACONTECE AGORA";
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--blue);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 10px;
    letter-spacing: .3px;
}

/* =========================================
   PALESTRANTES NA PROGRAMAÇÃO
   ========================================= */

.speaker-list {
    position: relative;
}

.speaker-wrapper {
    position: relative;
    display: inline-block;
}

.speaker-name {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: var(--blue);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.speaker-name:hover {
    color: var(--gold);
}

.speaker-name-simple {
    color: var(--muted);
    text-decoration: none;
    cursor: default;
}

.speaker-separator {
    color: var(--muted);
}


/* Cartão */

.speaker-popover {
    position: absolute;
    z-index: 100;

    left: 50%;
    bottom: calc(100% + 12px);

    transform: translateX(-50%) translateY(8px);

    width: 330px;
    max-width: min(330px, 90vw);

    padding: 16px;

    background: #fff;

    border: 1px solid var(--line);
    border-radius: 16px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .16);

    text-align: left;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}


/*
 * Pequena seta do cartão.
 */

.speaker-popover::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -7px;

    width: 13px;
    height: 13px;

    background: #fff;

    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    transform: translateX(-50%) rotate(45deg);
}


/*
 * Desktop:
 * passar o mouse abre o cartão.
 */

.speaker-wrapper:hover .speaker-popover,
.speaker-wrapper:focus-within .speaker-popover,
.speaker-wrapper.speaker-open .speaker-popover {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(-50%) translateY(0);
}


/* Cabeçalho */

.speaker-popover-header {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 12px;
}


/* Foto */

.speaker-popover-photo,
.speaker-popover-avatar {

    width: 64px;
    height: 64px;

    flex: 0 0 64px;

    border-radius: 50%;

    object-fit: cover;
}


/* Avatar */

.speaker-popover-avatar {

    display: grid;

    place-items: center;

    background:
        linear-gradient(135deg,
            var(--orange),
            var(--gold));

    color: #fff;

    font:
        800 24px Montserrat,
        Arial,
        sans-serif;
}


/* Nome e informações */

.speaker-popover-info {

    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;
}

.speaker-popover-info strong {

    font-size: 15px;

    line-height: 1.2;
}

.speaker-popover-info small {

    color: var(--muted);

    font-size: 12px;

    line-height: 1.3;
}


/* Biografia */

.speaker-popover-bio {

    display: block;

    max-height: 130px;

    overflow: auto;

    margin-top: 10px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.5;
}


/* Link */

.speaker-profile-link {

    display: inline-block;

    margin-top: 12px;

    color: var(--blue);

    font-size: 13px;

    font-weight: 800;

    text-decoration: none;
}

.speaker-profile-link:hover {
    color: var(--gold);
}


/* Evento atual */

.schedule.evento-atual {

    border: 2px solid var(--blue);

    box-shadow:
        0 8px 24px rgba(20, 89, 163, .16);

    position: relative;
}

.schedule.evento-atual::before {

    content: "ACONTECE AGORA";

    position: absolute;

    top: -10px;
    right: 14px;

    background: var(--blue);

    color: white;

    font-size: 10px;

    font-weight: 800;

    padding: 4px 8px;

    border-radius: 10px;

    letter-spacing: .3px;
}


/* =========================================
   CELULAR
   ========================================= */

@media (max-width: 600px) {

    .speaker-popover {

        position: fixed;

        left: 50%;
        bottom: 80px;

        top: auto;

        width: min(340px, calc(100vw - 30px));

        max-width: calc(100vw - 30px);

        transform:
            translateX(-50%) translateY(10px);
    }


    .speaker-wrapper:hover .speaker-popover,
    .speaker-wrapper:focus-within .speaker-popover,
    .speaker-wrapper.speaker-open .speaker-popover {

        transform:
            translateX(-50%) translateY(0);
    }


    .speaker-popover::after {
        display: none;
    }


    .speaker-popover-bio {
        max-height: 180px;
    }

}

/* =========================================================
   CERTIFICADOS
   ========================================================= */

.certificate-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 32px;
}

.certificate-card {
    width: 100%;
    max-width: 520px;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #eeeeee;
}

.certificate-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.certificate-card h1 {
    margin: 8px 0 14px;
    font-size: 28px;
}

.certificate-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 28px;
}

.certificate-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: transform .15s ease, opacity .15s ease;
    box-sizing: border-box;
}

.certificate-button:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.certificate-help {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
}

.certificate-help p {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

.partner-name-link {
    color: inherit;
    text-decoration: none
}

.partner-name-link:visited,
.partner-name-link:hover,
.partner-name-link:focus {
    color: inherit;
    text-decoration: none
}

.supporters-head {
    margin-top: 64px;
    padding-top: 34px;
    border-top: 1px solid var(--line)
}

.supporters-head h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin: 8px 0 0
}

.map-container {
    width: 100%;
    margin: 20px 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
}