:root {
  --color-spruce-green: #0f644b;
  --color-conifer-green: #aadc5a;
  --color-naples-yellow: #ffd75a;
  --color-deep-spruce-green: #0c4d3a;
  --color-dark-spruce-green: #09382a;
  --color-white: #ffffff;
  --color-gray-100: #ebebeb;
  --color-gray-300: #c8c8c8;
  --color-gray-500: #a0a0a0;
  --color-gray-700: #737373;
  --color-black: #000000;
  --font-main: "Wix Madefor Text", Arial, sans-serif;
  --font-display: "Alkaline", "Wix Madefor Text", Arial, sans-serif;
  --shadow-soft: 0 18px 45px rgba(9, 56, 42, 0.12);
  --radius: 18px;
  --container: 1160px;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("../fonts/WixMadeforText-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("../fonts/WixMadeforText-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("../fonts/WixMadeforText-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("../fonts/WixMadeforText-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Wix Madefor Text";
  src: url("../fonts/WixMadeforText-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alkaline";
  src: url("../fonts/Alkaline-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alkaline";
  src: url("../fonts/Alkaline-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-dark-spruce-green);
  background: var(--color-white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main#conteudo {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-naples-yellow);
  outline-offset: 3px;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  border-radius: 8px;
  background: var(--color-naples-yellow);
  color: var(--color-dark-spruce-green);
}

.container {
  width: min(calc(100% - 24px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 56px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__logo {
  width: min(152px, 42vw);
  height: auto;
  object-fit: contain;
}

.brand__logo--footer {
  width: min(280px, 70vw);
  filter: none;
}

.brand__number {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--color-naples-yellow);
  color: var(--color-dark-spruce-green);
  font-weight: 800;
  line-height: 1;
}

.brand__number--footer {
  background: var(--color-conifer-green);
}

.brand__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--color-spruce-green);
  color: var(--color-white);
  font-weight: 800;
}

.brand__mark--light {
  background: var(--color-conifer-green);
  color: var(--color-dark-spruce-green);
}

.brand__text {
  display: grid;
  line-height: 1.1;
}

.brand__text strong {
  font-size: 1rem;
  font-weight: 800;
}

.brand__text small {
  color: var(--color-gray-700);
  font-size: 0.78rem;
  font-weight: 600;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 2px solid var(--color-conifer-green);
  border-radius: 14px;
  background: var(--color-conifer-green);
  color: var(--color-dark-spruce-green);
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  background: #9ccf4f;
  border-color: #9ccf4f;
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button--large {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 1.15rem;
}

.button--secondary {
  background: transparent;
  border-color: var(--color-spruce-green);
  color: var(--color-spruce-green);
}

.button--secondary:hover {
  background: var(--color-spruce-green);
  border-color: var(--color-spruce-green);
  color: var(--color-white);
}

.page-hero .button--secondary {
  border-color: var(--color-white);
  color: var(--color-white);
}

.page-hero .button--secondary:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-dark-spruce-green);
}

.hero {
  position: relative;
  padding-top: 24px;
  padding-bottom: 44px;
  background:
    linear-gradient(90deg, rgba(15, 100, 75, 0.08) 0 18%, transparent 18% 100%),
    linear-gradient(45deg, transparent 0 82%, rgba(255, 215, 90, 0.28) 82%),
    #f8fbf4;
}

.hero::after {
  position: absolute;
  content: "";
  inset: auto 0 0 auto;
  width: min(48vw, 520px);
  height: 140px;
  background:
    linear-gradient(135deg, transparent 0 28%, var(--color-conifer-green) 28% 44%, transparent 44%),
    linear-gradient(45deg, var(--color-naples-yellow) 0 22%, transparent 22%),
    var(--color-spruce-green);
  opacity: 0.16;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.site-footer::before {
  position: absolute;
  content: "";
  inset: auto 0 0 auto;
  width: min(48vw, 520px);
  height: 90px;
  background:
    linear-gradient(135deg, transparent 0 28%, var(--color-conifer-green) 28% 44%, transparent 44%),
    linear-gradient(45deg, var(--color-naples-yellow) 0 22%, transparent 22%),
    var(--color-spruce-green);
  opacity: 0.12;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.hero__shell,
.hero__grid,
.split,
.form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}

.hero__shell {
  gap: 28px;
}

.hero__grid {
  align-items: center;
}

.hero__content,
.hero__form {
  position: relative;
  z-index: 1;
}

.hero__content {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.hero__form {
  width: 100%;
}

.hero__brand {
  display: inline-flex;
  width: min(280px, 70vw);
  margin-bottom: 20px;
  justify-self: start;
}

.hero__brand img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero__poster {
  width: min(100%, 390px);
  display: grid;
  grid-template-columns: minmax(112px, 0.82fr) minmax(150px, 1fr);
  gap: 12px;
  align-items: center;
  justify-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-spruce-green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--color-conifer-green);
}

.official-lockup {
  display: block;
  margin-bottom: 14px;
  color: var(--color-spruce-green);
  font-weight: 800;
}

.official-lockup img {
  width: min(210px, 64vw);
  height: auto;
  object-fit: contain;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 0.98;
}

.slogan-heading {
  max-width: min(176px, 46vw);
  margin-inline: auto;
  margin-bottom: 0;
}

.slogan-heading img {
  width: 100%;
  height: auto;
  display: block;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero__lead,
.content-block>p,
.form-copy>p,
.page-hero p {
  color: var(--color-gray-700);
  font-size: 1rem;
}

.hero__lead {
  max-width: 560px;
  margin-bottom: 0;
}

.hero__media,
.image-frame {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--color-spruce-green) 0 32%, transparent 32% 38%, var(--color-conifer-green) 38% 58%, transparent 58%),
    var(--color-gray-100);
  padding: 14px;
}

.hero__media {
  width: 100%;
  min-height: 176px;
  justify-self: center;
  margin-top: 0;
  padding: 7px;
}

.candidate-photo {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  object-position: 50% 42%;
  background: var(--color-white);
}

.hero__media .candidate-photo {
  min-height: 162px;
}

.candidate-photo--intro {
  object-position: 50% 38%;
}

.photo-placeholder {
  display: grid;
  min-height: 280px;
  height: 100%;
  place-items: center;
  align-content: center;
  padding: 24px;
  border: 2px dashed rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  background: rgba(9, 56, 42, 0.72);
  color: var(--color-white);
  text-align: center;
}

.photo-placeholder span {
  font-size: 1.15rem;
  font-weight: 800;
}

.photo-placeholder small {
  max-width: 280px;
  margin-top: 8px;
}

.photo-placeholder--light {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(15, 100, 75, 0.5);
  color: var(--color-dark-spruce-green);
}

.intro {
  background: linear-gradient(180deg, var(--color-white), #f7faf5);
}

.cards {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.action-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(15, 100, 75, 0.16);
  border-radius: 16px;
  background: var(--color-white);
}

.action-card::after {
  position: absolute;
  right: -20px;
  bottom: -24px;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: var(--color-conifer-green);
  content: "";
  opacity: 0.24;
  transform: rotate(18deg);
}

.action-card span {
  color: var(--color-spruce-green);
  font-weight: 800;
}

.action-card p,
.pending,
.field-hint {
  color: var(--color-gray-700);
  font-size: 0.9rem;
}

.hero__form .form-copy {
  margin-bottom: 12px;
}

.hero__form .form-copy h2 {
  margin-bottom: 6px;
  font-size: clamp(1.55rem, 6.4vw, 2.4rem);
}

.hero__form .form-copy p {
  margin-bottom: 6px;
}

.hero__form .form-copy p:last-child {
  margin-bottom: 0;
}

.lead-form {
  padding: 14px;
  border: 1px solid rgba(15, 100, 75, 0.14);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 16px;
  row-gap: 9px;
}

.field {
  display: grid;
  align-content: start;
  gap: 5px;
}

.field--full {
  grid-column: 1 / -1;
}

label,
legend {
  color: var(--color-deep-spruce-green);
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-gray-300);
  border-radius: 12px;
  background: var(--color-white);
  color: var(--color-dark-spruce-green);
  padding: 9px 12px;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-spruce-green) 50%),
    linear-gradient(135deg, var(--color-spruce-green) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

input:disabled {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

[aria-invalid="true"] {
  border-color: #b00020;
}

.field-error {
  min-height: 0;
  color: #b00020;
  font-size: 0.82rem;
  line-height: 1.25;
}

.field-error:empty {
  display: none;
}

.field-hint {
  min-height: 0;
  line-height: 1.35;
}

.city-combobox {
  position: relative;
}

.city-combobox__button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--color-gray-300);
  border-radius: 12px;
  background: var(--color-white);
  color: var(--color-dark-spruce-green);
  cursor: pointer;
  padding: 9px 38px 9px 12px;
  text-align: left;
}

.city-combobox__button::after {
  position: absolute;
  right: 16px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-spruce-green);
  border-bottom: 2px solid var(--color-spruce-green);
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.city-combobox__button.is-disabled {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  cursor: not-allowed;
}

.city-combobox__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 100, 75, 0.22);
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 18px 36px rgba(9, 56, 42, 0.16);
}

.city-combobox__search {
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--color-gray-100);
  border-radius: 0;
}

.city-combobox__list {
  max-height: min(230px, 48vh);
  margin: 0;
  overflow-y: auto;
  padding: 6px;
  list-style: none;
}

.city-combobox__list [role="option"],
.city-combobox__empty {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 10px;
}

.city-combobox__list [role="option"]:hover,
.city-combobox__list [role="option"]:focus {
  background: rgba(170, 220, 90, 0.28);
  outline: 0;
}

.city-combobox__empty {
  color: var(--color-gray-700);
  cursor: default;
}

.fieldset {
  display: grid;
  gap: 8px;
  margin: 13px 0 20px;
  padding: 0;
  border: 0;
}

.checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  font-weight: 500;
  line-height: 1.34;
}

.checkbox input {
  margin-top: 4px;
}

.address-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: 12px;
}

.address-badge__text {
  font-weight: 700;
  flex: 1;
  color: var(--color-deep-spruce-green);
}

.address-badge__edit {
  background: transparent;
  border: none;
  color: var(--color-spruce-green);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.address-badge__edit:hover {
  color: var(--color-conifer-green);
}

.address-badge__edit:focus-visible {
  outline: 3px solid var(--color-naples-yellow);
}

.checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  font-weight: 500;
  line-height: 1.34;
}

.checkbox input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 1px;
  accent-color: var(--color-spruce-green);
}

.checkbox--policy {
  margin-top: 12px;
}

.address-fields {
  margin: 14px 0;
  padding: 12px;
  border-radius: 16px;
  background: #f4f8ef;
}

.address-fields h3 {
  margin-bottom: 14px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  opacity: 0;
}

.form-status {
  min-height: 0;
  margin: 10px 0;
  font-weight: 700;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: var(--color-spruce-green);
}

.form-status.is-error {
  color: #b00020;
}

.form-submit {
  width: 100%;
  margin-top: 20px;
}

.whatsapp-after {
  width: 100%;
  margin-top: 8px;
}

.page-hero {
  padding: 86px 0 56px;
  background:
    linear-gradient(135deg, rgba(170, 220, 90, 0.26) 0 20%, transparent 20%),
    var(--color-spruce-green);
  color: var(--color-white);
}

.page-hero.thank-you {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 64px 0 48px;
}

.page-hero.thank-you .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.page-hero.thank-you h1,
.page-hero.thank-you p,
.page-hero.thank-you .eyebrow {
  margin-inline: auto;
  margin-bottom: 0;
}

.thank-you__phrase {
  font-size: 2rem !important;
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-white) !important;
  margin: 1.5rem 0 !important;
}

.thank-you__redirect {
  margin-bottom: 2rem !important;
  color: var(--color-white) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.25rem;
}

.thank-you__spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-bottom-color: var(--color-naples-yellow);
  border-left-color: var(--color-naples-yellow);
  border-radius: 50%;
  animation: rotation 1s linear infinite;
  display: inline-block;
}

.page-hero.thank-you .hero__actions {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.page-hero .eyebrow,
.page-hero p {
  color: var(--color-gray-100);
}

.policy__content {
  max-width: 860px;
}

.policy__content h2 {
  margin-top: 30px;
  font-size: 1.45rem;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 30px 0;
  background: var(--color-dark-spruce-green);
  color: var(--color-white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    justify-content: space-between;
  }
}

.footer__brand-block,
.footer__social-block,
.footer__privacy-block {
  display: grid;
  gap: 10px;
}

.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--color-white);
  font-weight: 700;
}

.brand--footer .brand__text small,
.footer__note {
  color: var(--color-gray-300);
  font-size: 0.95rem;
  line-height: 1.45;
}

.footer__title {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  width: 42px;
  height: 42px;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer__social-block .pending {
  margin: 0;
  color: var(--color-gray-300);
  font-size: 0.86rem;
  line-height: 1.4;
}

.footer__privacy-block a {
  min-height: 34px;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1.25;
}

.cookie-notice {
  position: fixed;
  z-index: 80;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 100, 75, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(9, 56, 42, 0.18);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  margin: 0;
  color: var(--color-dark-spruce-green);
  font-size: 0.88rem;
  line-height: 1.35;
}

.cookie-notice__button {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-dark-spruce-green);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-overlay.is-active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.loading-spinner {
  width: 64px;
  height: 64px;
  border: 5px solid rgba(170, 220, 90, 0.15);
  border-bottom-color: var(--color-naples-yellow);
  border-left-color: var(--color-conifer-green);
  border-radius: 50%;
  animation: rotation 1.2s linear infinite;
  margin-bottom: 24px;
}

.loading-text {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-main);
  color: var(--color-white);
  letter-spacing: 0.5px;
  text-align: center;
  padding: 0 20px;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg)
  }

  100% {
    transform: rotate(360deg)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ==========================================================================
   Página de Moldura — Landing Page Escura
   ========================================================================== */

/* --- Página de entrada (moldura.php) --- */

.page-moldura {
  position: relative;
  background:
    linear-gradient(90deg, rgba(15, 100, 75, 0.08) 0 18%, transparent 18% 100%),
    linear-gradient(45deg, transparent 0 82%, rgba(255, 215, 90, 0.28) 82%),
    #f8fbf4 !important;
  color: var(--color-dark-spruce-green);
}

.page-moldura::after {
  position: absolute;
  content: "";
  inset: auto 0 0 auto;
  width: min(48vw, 520px);
  height: 140px;
  background:
    linear-gradient(135deg, transparent 0 28%, var(--color-conifer-green) 28% 44%, transparent 44%),
    linear-gradient(45deg, var(--color-naples-yellow) 0 22%, transparent 22%),
    var(--color-spruce-green);
  opacity: 0.16;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 0;
}

.page-moldura .site-footer {
  display: none;
}

.moldura-lp {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.moldura-lp__header {
  width: 100%;
  padding: 28px 0;
}

.moldura-lp__header .brand__logo {
  width: min(300px, 65vw);
}

.moldura-lp__hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 20px 0 0;
}

.moldura-lp__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.moldura-lp__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-conifer-green);
}

.moldura-lp__eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 3px;
  background: var(--color-conifer-green);
  border-radius: 2px;
}

.moldura-lp__title {
  max-width: 520px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  color: var(--color-dark-spruce-green);
}

.moldura-lp__title .hl {
  color: var(--color-conifer-green);
}

.moldura-lp__lead {
  max-width: 460px;
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-gray-700);
}

.moldura-lp__cta {
  margin-bottom: 0;
}

.button--highlight {
  background: var(--color-conifer-green);
  border-color: var(--color-conifer-green);
  color: var(--color-dark-spruce-green);
  box-shadow: 0 4px 24px rgba(170, 220, 90, 0.25);
}

.button--highlight:hover,
.button--highlight:focus-visible {
  background: #9ccf4f;
  border-color: #9ccf4f;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(170, 220, 90, 0.4);
}

/* Preview da moldura (imagem de exemplo no lado direito) */
.moldura-lp__preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

.moldura-lp__frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.moldura-lp__frame-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

.moldura-lp__frame-photo--full {
  object-fit: contain;
  object-position: center;
  transform: scale(1.052) translate(-1.0%, 0.5%);
}

/* Barra de passos "Como funciona" */
.moldura-lp__steps {
  padding: 40px 0;
  background: var(--color-spruce-green);
}

.moldura-lp__steps-inner {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.moldura-lp__steps-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  padding-top: 2px;
  white-space: nowrap;
}

.moldura-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.moldura-step__num {
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.moldura-step__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--color-white);
}

.moldura-step__desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* --- Responsivo da landing de moldura --- */
@media (max-width: 991px) {
  .moldura-lp__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .moldura-lp__hero {
    padding: 10px 0 0;
    margin-bottom: 40px;
  }
  .moldura-lp__preview {
    order: -1;
  }
  .moldura-lp__frame {
    max-width: 360px;
    margin: 0 auto;
  }
  .moldura-lp__content {
    display: flex;
    flex-direction: column;
  }
  .moldura-lp__cta {
    order: -1;
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .moldura-lp__cta .button {
    width: 100%;
    max-width: 420px; /* Limits size on large tablets so it doesn't stretch too absurdly wide, but touches screen corners on phones */
  }
  .moldura-lp__steps-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .moldura-lp__title {
    font-size: 2.4rem;
  }
}

/* --- Página de edição (moldura-editor.php) --- */

.page-moldura-editor {
  background:
    linear-gradient(90deg, rgba(15, 100, 75, 0.08) 0 18%, transparent 18% 100%),
    linear-gradient(45deg, transparent 0 82%, rgba(255, 215, 90, 0.28) 82%),
    #f8fbf4 !important;
  color: var(--color-dark-spruce-green);
}

.page-moldura-editor::after {
  position: absolute;
  content: "";
  inset: auto 0 0 auto;
  width: min(48vw, 520px);
  height: 140px;
  background:
    linear-gradient(135deg, transparent 0 28%, var(--color-conifer-green) 28% 44%, transparent 44%),
    linear-gradient(45deg, var(--color-naples-yellow) 0 22%, transparent 22%),
    var(--color-spruce-green);
  opacity: 0.16;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 0;
}

.page-moldura-editor .site-footer,
.page-moldura-editor .cookie-notice {
  display: none;
}

.editor-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0; /* padding is handled by the header and area */
  z-index: 1;
}

.editor-page__brand .brand__logo {
  width: min(170px, 44vw);
}

.editor-page__area {
  width: 100%;
  max-width: 560px;
  margin: auto; /* Vertically and horizontally centers the editor box */
  padding: 0 20px 40px 20px;
}

.editor-instruction-wrap {
  width: 100%;
  text-align: center;
  margin-bottom: 16px;
}

.editor-instruction-text {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
  color: var(--color-dark-spruce-green);
}

/* Bloco único — quadrado com borda */
.editor-box {
  background: var(--color-white);
  border: 1px solid rgba(15, 100, 75, 0.1);
  box-shadow: var(--shadow-soft);
  border-radius: 22px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.d-none {
  display: none !important;
}

/* Estado vazio */
.editor-box__empty {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estado ativo (canvas + controles dentro do mesmo bloco) */
.editor-box__active {
  display: flex;
  flex-direction: column;
}

.editor-box__canvas-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: #dfe5db; /* Darker gray-green to increase contrast with the white circle */
}

.editor-box__canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.editor-box__controls {
  padding: 14px 16px;
  background: rgba(15, 100, 75, 0.03);
  border-top: 1px solid rgba(15, 100, 75, 0.08);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Botão dos controles do editor */
.button--editor-ctrl {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.88rem;
  background: var(--color-white);
  border: 2px solid rgba(15, 100, 75, 0.15);
  border-radius: 14px;
  color: var(--color-dark-spruce-green);
  cursor: pointer;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease;
}

.button--editor-ctrl:hover {
  background: rgba(15, 100, 75, 0.05);
  border-color: rgba(15, 100, 75, 0.35);
}

.button--sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.88rem;
}