:root {
  color-scheme: light;
  --navy: #0f293d;
  --deep: #102c40;
  --green: #276844;
  --mint: #cce8cb;
  --muted: #485d62;
  --paper: #fcfdfb;
  --line: #dce6dd;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.58;
  color: var(--navy);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
h1 { font-size: clamp(3.2rem, 7vw, 6.95rem); }
h2 { font-size: clamp(2.35rem, 4.25vw, 4.15rem); }
h3 { font-size: 1.28rem; line-height: 1.27; letter-spacing: -.022em; }
p, li { font-size: 1rem; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #3c8455; outline-offset: 4px; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(1240px, calc(100% - clamp(2rem, 11vw, 10rem))); margin-inline: auto; }
.top { background: #fafaf9; border-bottom: 1px solid var(--line); }
.navigation { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { flex-shrink: 0; }
.logo img { object-fit: contain; }
.primary-links { display: flex; flex-wrap: wrap; gap: clamp(.8rem, 2vw, 1.6rem); align-items: center; }
.mobile-navigation { display: none; }
nav a { text-decoration: none; font-size: .93rem; font-weight: 650; }
nav a:not(.button):hover, .text-link:hover { color: var(--green); text-decoration-thickness: 2px; }
.nav-actions { display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; }
.nav-contact { border-bottom: 1px solid #659071; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 1; background: white; padding: 1rem; }
.skip:focus { top: .5rem; }
.hero { background: #edf3ec; overflow: hidden; }
.hero-grid { display: grid; min-height: 585px; grid-template-columns: 1.05fr 1fr; gap: clamp(1.1rem, 3vw, 3rem); align-items: stretch; }
.hero-copy { padding: clamp(3.2rem, 7vw, 6.25rem) 0; align-self: center; }
.kicker { color: var(--green); font-size: .875rem; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.hero h1 { margin: 1.05rem 0 1.2rem; }
.hero-copy > p:not(.kicker) { max-width: 38ch; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.22rem); }
.hero-image { position: relative; background: var(--deep); margin: 20px 0; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center 54%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.button { min-height: 46px; padding: .68rem 1.11rem; align-items: center; justify-content: center; display: inline-flex; font-size: .94rem; font-weight: 690; border: 1px solid transparent; border-radius: 5px; text-decoration: none; cursor: pointer; text-align: center; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #1a5134; }
.outline { border-color: #759982; background: transparent; color: var(--navy); }
.outline:hover { background: #dae8dc; }
.section { padding-block: clamp(3rem, 6.5vw, 6.2rem); }
.section-heading { margin-bottom: 2rem; }
.section-heading p { color: var(--muted); margin-top: .65rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(.85rem, 2vw, 1.65rem); }
.card { border: 1px solid var(--line); display: flex; flex-direction: column; background: #fff; }
.card-image { overflow: hidden; aspect-ratio: 16 / 9; background: #dce9e0; display: block; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image img[src="/gestao.webp"] { object-position: 50% 58%; }
.card-image img[src="/contexto.webp"] { object-position: 50% 47%; }
.card-copy { padding: 1.2rem 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.card-copy h3 { margin: .55rem 0 .6rem; }
.card-copy h3 a { text-decoration: none; }
.card-copy h3 a:hover { text-decoration: underline; }
.card-copy p:not(.kicker) { color: var(--muted); margin-bottom: 1.2rem; }
.text-link { color: #215e3b; font-weight: 700; text-underline-offset: 4px; }
.card-copy > .text-link, .card-copy > .button { margin-top: auto; }
.about { background: #f5f8f4; }
.about-intro { max-width: 75ch; }
.about-profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 280px); gap: clamp(1.4rem, 4vw, 3.5rem); align-items: center; margin-bottom: 1.8rem; }
.about-profile .section-heading { margin-bottom: 0; }
.about-portrait { margin: 0; width: 100%; max-width: 280px; }
.about-portrait img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.about-portrait figcaption { font-size: .88rem; color: var(--muted); padding-top: .5rem; }
@media (max-width: 620px) {
  .about-profile { grid-template-columns: 1fr; }
}
.about-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green); padding: clamp(1.2rem, 2.5vw, 1.7rem); }
.about-card p, .about-card ul { color: var(--muted); margin-top: .7rem; }
.about-card ul { padding-left: 1.25rem; }
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.audit-result { display: grid; grid-template-columns: 1fr 2.5fr; align-items: center; gap: 1rem; background: #edf3ec; border-left: 4px solid var(--green); margin-top: 1.6rem; padding: clamp(1.2rem, 3vw, 2rem); }
.audit-result h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 3vw, 2.65rem); font-weight: 500; }
.audit-result h3 + p { color: var(--muted); margin-top: .25rem; }
.diagnostic { background: var(--deep); color: #f7fbf7; padding-block: clamp(3rem, 6.5vw, 6rem); }
.diagnostic-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.diagnostic .kicker { color: #a7d5aa; margin-bottom: .7rem; }
.diagnostic p:not(.kicker) { color: #dae8e5; margin-top: .9rem; max-width: 45ch; }
.checklist { padding-left: 1.25rem; margin: 1.3rem 0 0; }
.checklist li { padding-left: .2rem; margin-block: .38rem; }
.checklist li::marker { content: '✓  '; color: #a7d5aa; }
.diagnostic-options { display: grid; gap: 1.05rem; }
.diagnostic-options > div { background: #19394d; border: 1px solid #38576a; padding: 1.2rem; }
.diagnostic-options a { margin-top: .85rem; }
.diagnostic .primary { background: #cfe8ce; color: #153c2a; }
.diagnostic .primary:hover { background: #e0f2df; }
.diagnostic .outline { color: #f7fbf7; border-color: #a5c3aa; }
.diagnostic .outline:hover { background: #2d4d5f; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.35rem; }
.filters a { border: 1px solid var(--line); border-radius: 5px; padding: .35rem .8rem; text-decoration: none; font-size: .9rem; font-weight: 650; }
.filters a:hover { border-color: var(--green); }
.filters a[aria-current] { background: var(--green); border-color: var(--green); color: white; }
.empty { padding: 1.4rem; background: #edf3ec; }
.contact { padding-block: clamp(2.8rem, 5.5vw, 4.75rem); background: #edf3ec; }
.contact-grid { display: grid; align-items: center; grid-template-columns: 1fr auto; gap: 2rem; }
.contact h2 { margin-top: .5rem; }
.contact p:not(.kicker) { margin-top: .85rem; color: var(--muted); max-width: 55ch; }
.contact-actions { display: grid; justify-items: start; gap: .85rem; }
.contact-actions a { display: inline-flex; align-items: center; gap: .55rem; max-width: 100%; }
.contact-actions .text-link { overflow-wrap: anywhere; }
.contact-actions .contact-icon { display: block; width: 17px; height: 17px; flex: 0 0 17px; }
.footer { background: #0e2638; color: white; }
.footer-inner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding-block: 1.5rem; }
.footer strong, .footer span { display: block; }
.footer span, .footer a { color: #d3e4d9; font-size: .9rem; }
.article { max-width: 850px; margin-inline: auto; }
.article-heading { margin: 1.5rem 0 1.75rem; }
.article h1, .admin h1 { font-size: clamp(2.7rem, 6vw, 5.5rem); margin-block: .55rem 1rem; }
.intro { font-size: 1.17rem; color: var(--muted); }
.article-image { width: 100%; height: auto; max-height: 400px; object-fit: cover; background: #edf3ec; }
.article-body { padding-top: 1.4rem; }
.article-body p { margin-bottom: .95rem; white-space: pre-line; }
.editor-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 1.5rem; align-items: start; }
.editor-grid h2 { font-size: 2.05rem; }
.list-heading { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; justify-content: space-between; }
.editor-list { margin-top: 1rem; display: grid; gap: .5rem; }
.editor-list div, .editor-form, .notice { padding: 1rem; background: #edf3ec; border: 1px solid var(--line); }
.editor-list span { display: block; margin-top: .25rem; color: var(--muted); font-size: .9rem; }
.editor-form form { display: grid; gap: .8rem; margin-top: 1rem; }
.editor-form label { display: grid; gap: .3rem; font-weight: 650; }
.editor-form :is(input, textarea, select) { width: 100%; padding: .58rem; font-weight: 400; border: 1px solid #8ca595; border-radius: 4px; background: white; color: var(--navy); }
.editor-form textarea { resize: vertical; }
.editor-form .actions { margin-top: .25rem; }
.notice { margin-bottom: 1rem; }
.error { color: #812a1c; background: #fff0eb; }
.floating-whatsapp {
  position: fixed; z-index: 5; inset-inline-end: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .65rem 1rem; border-radius: 999px;
  color: #fff; background: #17643e; box-shadow: 0 4px 16px #102c4040; text-decoration: none; font-weight: 700;
}
.floating-whatsapp:hover { background: #124f31; }
.floating-whatsapp svg { width: 21px; height: 21px; }
body:has(.floating-whatsapp) .footer-inner { padding-inline-end: 9rem; }
@media (max-width: 1100px) {
  .navigation { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 66px; padding-block: .5rem; gap: .4rem 1rem; }
  .desktop-navigation { display: none; }
  .mobile-navigation { display: block; }
  .mobile-navigation summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem;
    min-height: 44px; padding-inline: .7rem; color: var(--navy); font-weight: 690;
    border: 1px solid var(--line); border-radius: 5px;
  }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .mobile-navigation .primary-links {
    position: absolute; z-index: 6; inset-inline: 0; top: 100%; display: grid; gap: .15rem;
    max-height: calc(100dvh - 72px); overflow-y: auto; padding: .6rem;
    background: #fafaf9; border: 1px solid var(--line); border-radius: 0 0 8px 8px; box-shadow: 0 8px 18px #102c4026;
  }
  .mobile-navigation .primary-links > a, .mobile-navigation .nav-contact { padding: .5rem .4rem; }
  .mobile-navigation .nav-actions { flex-wrap: wrap; justify-content: space-between; padding-inline: .2rem; }
}
@media (max-width: 620px) {
  .floating-whatsapp { width: 48px; padding: 0; justify-content: center; }
  .floating-whatsapp span { display: none; }
  body:has(.floating-whatsapp) .footer-inner { padding-inline-end: 3.25rem; }
}
@media print { .floating-whatsapp { display: none !important; } }
@media (max-width: 1050px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .hero-grid { min-height: 470px; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .logo img { width: 151px; height: auto; }
  .hero-grid, .diagnostic-grid, .contact-grid, .editor-grid, .grid, .audit-result { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; gap: 0; }
  .hero-copy { padding: 2.6rem 0 1.4rem; }
  .hero-image { height: clamp(245px, 70vw, 370px); margin: 0 0 1.2rem; }
  .hero-image img { object-position: 50% 57%; }
  .contact-grid { gap: 1.25rem; }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-underline-offset: .35em; }

.inquiry-form { max-width: 48rem; margin: 1.65rem auto 0; padding: clamp(1rem, 3vw, 1.75rem); scroll-margin-top: 1rem; }
.inquiry-form h2 { font-size: 1.4rem; margin: 0 0 .4rem; }
.inquiry-form > p { color: var(--muted); }
.inquiry-form > .notice { margin: 1rem 0 0; background: white; }
.inquiry-form > .error { background: #fff0eb; }
.inbox-list { margin-top: 1.5rem; }
.inbox-inquiry { overflow-wrap: anywhere; }
.inbox-inquiry h2 { font-size: 1.5rem; margin: .4rem 0; }
.inquiry-message { white-space: pre-wrap; margin-block: .75rem; }

.inquiry-guide { margin-top: .8rem; }
.inquiry-guide summary { cursor: pointer; color: var(--green); font-weight: 650; }
.inquiry-guide dl { margin: .75rem 0 0; }
.inquiry-guide dt { font-weight: 650; }
.inquiry-guide dd { margin: .1rem 0 .65rem; color: var(--muted); }
.contact .inquiry-note { margin-top: 0; font-size: .9rem; }

.proposal-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
#proposal-help { color: var(--muted); font-size: .9rem; }
@media (max-width: 620px) {
  .proposal-fields { grid-template-columns: 1fr; }
}

.materials-hero {
  background: #edf3ec;
  padding-block: clamp(2.25rem, 5vw, 4.75rem);
}
.materials-hero h1 { font-size: clamp(3rem, 7vw, 6rem); margin-block: .45rem .75rem; }
.materials-hero p { color: var(--muted); font-size: 1.15rem; }
.materials-section { padding-block: clamp(1.7rem, 4vw, 3.8rem); }
.material-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 26%);
  gap: clamp(1.1rem, 4vw, 3.25rem);
  border-top: 4px solid var(--green);
  padding: clamp(1.25rem, 3.8vw, 2.6rem);
}
.material-card + .material-card { margin-top: 1rem; }
.material-card h2 { font-size: clamp(1.9rem, 4.1vw, 3.45rem); margin-block: .5rem .75rem; }
.material-card p:not(.kicker), .material-example p, .materials-note { color: var(--muted); }
.material-card .outline { margin-top: .85rem; }
.material-buy { display: grid; gap: .65rem; justify-items: start; align-content: center; }
.material-price { font-size: 2rem; line-height: 1.12; }
.material-buy p { font-size: .86rem; }
.materials-preview { background: #f2f7f2; }
.preview-heading { margin-top: 1rem; }
.preview-heading h1 { font-size: clamp(2.25rem, 5.5vw, 4.6rem); max-width: 24ch; }
.preview-heading p { max-width: 68ch; }
.preview-gallery { display: grid; gap: clamp(1rem, 3vw, 1.65rem); }
.material-example {
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  padding: clamp(1rem, 2.5vw, 1.55rem);
}
.material-example h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .4rem; }
.preview-image-link { display: grid; gap: .65rem; margin-top: .85rem; justify-items: start; }
.preview-image-link img { width: 100%; height: auto; border: 1px solid var(--line); }
.materials-note { margin: 1.15rem 0 .55rem; font-size: .9rem; }
@media (max-width: 620px) {
  .material-card { grid-template-columns: minmax(0, 1fr); }
  .material-buy { border-top: 1px solid var(--line); padding-top: 1rem; }
}

.preview-zoom { min-width: 0; margin: 0; border: 0; padding: 0; }
.preview-zoom legend { margin-bottom: .35rem; font-weight: 700; }
.preview-zoom input { accent-color: var(--green); margin: 0 .2rem 0 0; }
.preview-zoom label { display: inline-block; padding-block: .65rem; margin-right: .85rem; cursor: pointer; }
.zoom-help { color: var(--muted); margin-bottom: .55rem; font-size: .9rem; }
.preview-viewport {
  width: 100%;
  max-height: 65vh;
  max-height: 65dvh;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
}
.preview-viewport:focus-visible { outline: 3px solid #3c8455; outline-offset: 4px; }
.preview-viewport img { max-width: none; height: auto; }
#zoom-fit:checked ~ .preview-viewport { max-height: none; }
#zoom-fit:checked ~ .preview-viewport img { max-width: 100%; }
#zoom-fit:checked ~ .zoom-help { display: none; }

.publication-group { margin-top: 2.15rem; }
.publication-group > h3 { font-size: clamp(1.32rem, 2.4vw, 1.85rem); margin-bottom: 1rem; }
.post-card .card-copy :is(h3, h4) { margin: .55rem 0 .6rem; font-size: 1.2rem; line-height: 1.27; }
.post-card .card-copy :is(h3, h4) a { text-decoration: none; }
.post-card .card-copy :is(h3, h4) a:hover { text-decoration: underline; }
.post-card .card-image { container-type: inline-size; }
.post-card .card-image > img { object-fit: cover; }
.editorial-cover {
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-columns: 42% 58%;
  container-type: inline-size;
  background: #08223c;
  color: #fff;
}
.editorial-cover-name {
  display: grid;
  align-content: center;
  padding: 11%;
  border-right: 3px solid #81af31;
  font-size: 6.7cqw;
  line-height: 1.1;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.editorial-cover-photo { display: grid; overflow: hidden; align-items: stretch; background: #102a43; }
.editorial-cover-photo img { width: 100%; height: 100%; object-fit: fill; }
.editorial-cover.mark .editorial-cover-photo { background: #f7f7f4; align-items: center; }
.editorial-cover.mark .editorial-cover-photo img { height: auto; }
.article-post-cover { overflow: hidden; }
.article-post-cover > img { width: 100%; height: auto; }
.branded-post-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.branded-post-cover > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.branded-post-cover > .post-cover-brand { position: absolute; top: 5%; right: 4%; width: 27%; height: auto; padding: 1.4%; background: #fff; border-radius: 4px; }

.library-consent { display: grid; gap: .5rem; padding: .75rem; border: 1px solid var(--line); }
.editor-form :is(.library-consent label, .library-check) { display: flex; gap: .5rem; align-items: baseline; }
.editor-form input[type="checkbox"] { width: auto; }
.library-contact + .library-contact { margin-top: .6rem; }
.library-contact summary { cursor: pointer; overflow-wrap: anywhere; }
.library-contact dl { margin: 1rem 0 0; overflow-wrap: anywhere; }
.library-contact dt { font-weight: 650; }
.library-contact dd { margin: 0 0 .5rem; }

.about-subheading { margin-top: 1.25rem; }
.service-hero { background: #edf3ec; padding-block: clamp(2.5rem, 6vw, 5rem); }
.service-hero .kicker { margin: 1.25rem 0 .55rem; }
.service-hero h1 { font-size: clamp(2.65rem, 5.9vw, 5.1rem); max-width: 23ch; }
.service-hero .intro { max-width: 58ch; color: var(--muted); margin-top: 1rem; }
.service-body { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
.service-body h2 { font-size: clamp(1.95rem, 4vw, 3.25rem); }
.service-body h3 { margin-top: .8rem; }
.service-body .checklist li::marker { color: var(--green); }
.service-faq { display: grid; gap: .7rem; margin-top: 1rem; }
.service-faq details { margin: 0; }
.service-faq summary { font-weight: 700; cursor: pointer; }
.service-faq p { margin-top: .55rem; }
#material-gratuito > p { margin-top: 1rem; }
.library-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; padding: 1rem; margin: 0 0 1.5rem; border: 1px solid var(--line); background: #edf3ec; }
.library-filters label { display: grid; gap: .2rem; flex: 1 1 11rem; font-weight: 650; }
.library-filters select { min-height: 46px; width: 100%; color: var(--navy); background: white; border: 1px solid #759982; border-radius: 5px; padding: .5rem; }
.library-filters .text-link { align-self: center; }
.material-title { font-family: inherit; font-size: 1.25rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; margin: .55rem 0; }
.material-tags { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1rem; gap: .3rem; }
.material-tags li { color: var(--green); background: #edf3ec; padding: .12rem .43rem; font-size: .8rem; }
.library-download-actions { margin-top: auto; gap: .55rem; }
.post-card .card-copy .post-date { margin: .3rem 0 0; font-size: .86rem; }
.post-date:empty { display: none; }
.service-card-actions { margin-top: auto; align-items: center; }

.footer-privacy { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.footer-privacy button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; }
.analytics-preference { position: fixed; z-index: 20; inset: auto 1rem 1rem; max-width: 48rem; margin-inline: auto; padding: 1rem; border: 1px solid #759982; border-radius: 8px; background: white; color: var(--navy); box-shadow: 0 8px 28px #122a2430; }
.analytics-preference:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem; }
.analytics-preference > div:first-child { flex: 1 1 22rem; }
.analytics-preference p { margin-top: .25rem; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.privacy-policy h2 { font-family: inherit; font-size: 1.35rem; margin: 1.4rem 0 .45rem; }
.privacy-policy p { line-height: 1.65; overflow-wrap: anywhere; }
@media print { .analytics-preference, .footer-privacy button { display: none !important; } }
