:root {
  --green-900: #072b21;
  --green-800: #0b3d2e;
  --green-700: #11553f;
  --orange: #f29a2e;
  --orange-light: #ffc067;
  --cream: #fff4e0;
  --white: #ffffff;
}
* { box-sizing: border-box; margin: 0; }
body {
  font-family: "Poppins", sans-serif;
  color: var(--cream);
  min-height: 100vh;
  background: radial-gradient(1200px 700px at 80% -10%, var(--green-700), transparent 60%),
              var(--green-900);
  overflow-x: hidden;
}

/* formas decorativas (inspiradas nas artes do congresso) */
.bg-shape { position: fixed; z-index: 0; pointer-events: none; }
.s1 { width: 520px; height: 520px; border-radius: 50%; background: var(--orange);
      top: -260px; left: -200px; opacity: .9; }
.s2 { width: 380px; height: 380px; border-radius: 50%; border: 36px solid var(--green-700);
      bottom: -160px; right: -120px; }
.s3 { width: 260px; height: 140px; border-radius: 140px 140px 0 0; background: var(--orange);
      bottom: 0; left: 8%; opacity: .25; }

.wrap { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 36px 20px 24px; }
.wrap.wide { max-width: 1100px; }

.hero { text-align: center; margin-bottom: 26px; }
.tag { display: inline-block; background: var(--orange); color: var(--green-900); font-weight: 800;
       font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
       padding: 6px 16px; border-radius: 999px; }
h1 { font-weight: 800; font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1.05; margin: 16px 0 10px; color: var(--white); }
h1 em, h2 em { font-family: "Playfair Display", serif; font-style: italic; font-weight: 900; color: var(--orange); }
.hero p { color: var(--cream); opacity: .85; }
.hero.small h1 { font-size: 2.2rem; }

.card { background: rgba(255, 244, 224, .97); color: var(--green-900); border-radius: 28px;
        padding: 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
        border-bottom: 8px solid var(--orange); }
.card.center { text-align: center; margin-top: 12vh; }
.card h2 { font-size: 2rem; margin: 10px 0; }
.card p { margin: 8px 0; }
.verse { font-family: "Playfair Display", serif; font-style: italic; color: var(--green-700); margin: 16px 0 24px !important; }
.check { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: var(--green-800);
         color: var(--orange); font-size: 2.6rem; display: grid; place-items: center;
         box-shadow: 0 0 0 8px var(--orange); }

.field { display: block; margin-bottom: 18px; flex: 1; }
.field > span { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; color: var(--green-800); }
input[type=text], input[type=tel], input[type=number], input[type=password], select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid #d9c9a8;
  background: var(--white); font: inherit; color: var(--green-900); transition: .2s;
}
input:focus, select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 154, 46, .25); }
.row { display: flex; gap: 14px; }
@media (max-width: 520px) { .row { flex-direction: column; gap: 0; } }

.drop { position: relative; display: grid; place-items: center; min-height: 190px; cursor: pointer;
        border: 3px dashed var(--orange); border-radius: 20px; background: #fff; overflow: hidden; transition: .2s; }
.drop:hover, .drop.hover { background: #fff0d4; transform: scale(1.01); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop-text { position: relative; text-align: center; padding: 20px; color: var(--green-800); }
.drop-text .icon { font-size: 2.4rem; }
.drop-text small { display: block; opacity: .7; margin-top: 4px; }
.drop-text.over-img { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px;
                      background: linear-gradient(transparent, rgba(7, 43, 33, .9)); color: #fff; }
.drop-text.over-img .icon, .drop-text.over-img small { display: none; }

.btn { display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer; border: 0;
       padding: 16px; border-radius: 16px; font: inherit; font-weight: 800; font-size: 1.05rem;
       color: var(--green-900); background: linear-gradient(135deg, var(--orange-light), var(--orange));
       box-shadow: 0 8px 20px rgba(242, 154, 46, .45); transition: .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(242, 154, 46, .6); }

.alert { background: #ffe3d6; color: #8a2a00; border-left: 5px solid #d9480f;
         padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: .9rem; }
footer { text-align: center; margin-top: 22px; font-family: "Playfair Display", serif; font-style: italic; opacity: .7; }

/* painel */
.filter { max-width: 320px; margin: 0 auto 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.item { background: var(--cream); color: var(--green-900); border-radius: 20px; overflow: hidden;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .3); border-bottom: 6px solid var(--orange); }
.item img { width: 100%; height: 190px; object-fit: cover; display: block; }
.info { padding: 14px 16px 16px; }
.info h3 { margin: 8px 0; font-size: 1.1rem; }
.info p { font-size: .9rem; margin: 3px 0; }
.info a { color: var(--green-700); font-weight: 600; }
.info small { opacity: .6; }
.chip { background: var(--green-800); color: var(--orange-light); font-size: .7rem; font-weight: 700;
        padding: 4px 10px; border-radius: 999px; }
.empty { grid-column: 1/-1; text-align: center; opacity: .8; }

/* ===== Mobile ===== */
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }
input[type=text], input[type=tel], input[type=number], select { font-size: 16px; min-height: 50px; } /* 16px evita zoom no iOS */
.btn { min-height: 52px; }

@media (max-width: 640px) {
  .wrap { padding: 22px 14px calc(20px + env(safe-area-inset-bottom)); }
  .hero { margin-bottom: 18px; }
  .hero p { font-size: .92rem; }
  .tag { font-size: .68rem; padding: 5px 12px; }
  h1 { margin: 12px 0 8px; }
  .card { padding: 20px 16px; border-radius: 22px; border-bottom-width: 6px; }
  .card.center { margin-top: 6vh; }
  .card h2 { font-size: 1.6rem; }
  .field { margin-bottom: 14px; }
  .field > span { font-size: .82rem; }
  .drop { min-height: 160px; border-width: 2px; }
  .drop-text { padding: 14px; }
  .drop-text small { font-size: .72rem; }
  .btn { font-size: 1rem; }

  /* formas decorativas menores para não cobrir o conteúdo */
  .s1 { width: 300px; height: 300px; top: -170px; left: -130px; }
  .s2 { width: 220px; height: 220px; border-width: 22px; bottom: -110px; right: -80px; }
  .s3 { display: none; }

  /* painel */
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .item img { height: 220px; }
  .hero.small h1 { font-size: 1.7rem; }
  .filter { max-width: none; }
}

@media (max-width: 360px) {
  h1 { font-size: 1.9rem; }
  .card { padding: 16px 12px; }
}

/* login */
.pass { position: relative; }
.pass input { padding-right: 52px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
       border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; border-radius: 10px; }
.eye:hover { background: #fff0d4; }
.back { display: block; text-align: center; margin-top: 16px; color: var(--green-700); font-weight: 600; text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--orange); }
.topbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.logout { color: var(--cream); text-decoration: none; font-weight: 600; font-size: .85rem; padding: 8px 16px;
          border: 2px solid var(--orange); border-radius: 999px; transition: .2s; }
.logout:hover { background: var(--orange); color: var(--green-900); }
