:root {
  --brand: #2b54ad;
  --brand-dark: #1e3a6e;
  --accent: #1a6fd4;
  --accent-soft: #80d5ff;
  --warm: #d97706;

  --bg: #f4f6fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-2: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.1);

  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 8px 28px rgba(15, 23, 42, 0.06);
  --radius: 20px;
  --radius-sm: 12px;

  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Altura aproximada do header fixo (sem barra superior no desktop) */
  --site-header-h: 92px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-header-h);
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 12% 8%, rgba(43, 84, 173, 0.12), transparent 58%),
    radial-gradient(900px 600px at 88% 16%, rgba(128, 213, 255, 0.18), transparent 55%),
    radial-gradient(900px 700px at 70% 92%, rgba(217, 119, 6, 0.06), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #f4f6fb 45%, #eef2f7 100%);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 200;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.anchor {
  display: block;
  position: relative;
  top: calc(-1 * var(--site-header-h) - 12px);
  height: 1px;
  width: 1px;
}

/* Header: branco sólido no topo; após scroll, vidro (blur) — classe .is-scrolled via JS */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top);
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  transform: translateZ(0);
  will-change: transform;
  transition:
    background 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

/* Barra tel./redes: só em viewports estreitas */
.header-top {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
  min-height: 44px;
}

.pill-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--brand-dark);
  font-weight: 600;
  border: 1px solid rgba(43, 84, 173, 0.18);
}

.pill-link:hover {
  background: rgba(43, 84, 173, 0.12);
}

.socials {
  display: flex;
  gap: 8px;
}

.icon-btn.social {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid rgba(43, 84, 173, 0.2);
  background: rgba(255, 255, 255, 0.65);
  color: var(--brand-dark);
}

.icon-btn.social:hover {
  border-color: rgba(43, 84, 173, 0.45);
  color: var(--brand);
  background: rgba(255, 255, 255, 0.95);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.brand-logo--header {
  padding: 0;
  border: 0;
  background: transparent;
  width: min(140px, 42vw);
  height: auto;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 20px;
  text-transform: uppercase;
}

.nav-panel > a,
.nav-panel summary {
  font-size: 16px;
  font-weight: 600;
  color: var(white);
  cursor: pointer;
}

.nav-panel > a:hover,
.nav-panel summary:hover {
  color: var(white);
}

.nav-panel > a,
.nav-panel summary {
  text-shadow: none;
}

.nav-panel .sub {
  position: relative;
}

.nav-panel .sub > summary {
  list-style: none;
}

.nav-panel .sub > summary::-webkit-details-marker {
  display: none;
}
 

.sub-inner {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 4px;
}

.sub[open] .sub-inner {
  display: flex;
}

.sub-inner a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.sub-inner a:hover {
  background: rgba(43, 84, 173, 0.08);
  color: var(--brand);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 99px;
  box-shadow: 0 -6px 0 var(--text), 0 6px 0 var(--text);
}

.nav-cta {
  margin-left: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s, background 0.2s;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #3566c4 55%, var(--accent) 130%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(43, 84, 173, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(43, 84, 173, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.75);
  color: var(--brand-dark);
  border-color: rgba(43, 84, 173, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(43, 84, 173, 0.5);
}

.btn-white {
  background: #fff;
  color: var(--brand-dark);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-white:hover {
  box-shadow: var(--shadow-sm);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Hero full */
.hero-full {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--brand-dark);
  color: #fff;
  overflow: clip;
}

.hero-slides {
  position: relative;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  display: flex;
  align-items: flex-end;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    /* mais escuro de baixo pra cima para melhorar legibilidade */
    linear-gradient(
      0deg,
      rgba(7, 11, 19, 0.92) 0%,
      rgba(15, 23, 42, 0.68) 38%,
      rgba(15, 23, 42, 0.14) 58%,
      rgba(15, 23, 42, 0.04) 78%,
      rgba(15, 23, 42, 0.02) 100%
    ),
    /* mantém o “shape” lateral para dar profundidade */
    linear-gradient(105deg, rgba(15, 23, 42, 0.58) 0%, rgba(15, 23, 42, 0.18) 52%, rgba(15, 23, 42, 0.36) 100%),
    radial-gradient(900px 500px at 20% 90%, rgba(128, 213, 255, 0.2), transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: calc(var(--site-header-h) + 56px) 0 120px;
  max-width: 44rem;
}

.hero-inner h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-inner h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.75) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.86;
}

.eyebrow.dark {
  color: var(--accent);
  opacity: 1;
  letter-spacing: 0.08em;
}

.lead {
  margin: 0 0 26px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  text-transform: uppercase;
}

.hero-controls {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: min(100% - 40px, var(--wrap));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.circle:hover {
  background: rgba(255, 255, 255, 0.22);
}

.dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s var(--ease), background 0.25s;
}

.dot.is-active {
  width: 28px;
  background: #fff;
}

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.65);
  animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* Sections */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.surface {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.muted-band {
  background: linear-gradient(180deg, rgba(43, 84, 173, 0.04) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.h2 {
  margin: 8px 0 0;
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.h2.light {
  color: #fff;
}

.h3 {
  margin: 8px 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.section-head {
  margin-bottom: 36px;
}

.spotlight-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}

.spotlight-block {
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 246, 252, 0.98) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.spotlight-block--sustain {
  background: linear-gradient(145deg, rgba(232, 244, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 55%, rgba(243, 246, 252, 0.98) 100%);
  border-color: rgba(43, 84, 173, 0.18);
}

.spotlight-split {
  gap: clamp(22px, 4vw, 40px);
  padding: clamp(20px, 3vw, 28px);
  align-items: center;
}

.spotlight-split--reverse .spotlight-copy {
  order: 2;
}

.spotlight-split--reverse .spotlight-media {
  order: 1;
}

.spotlight-copy {
  
  min-width: 0;
}

.spotlight-media {
  margin: 0;
  min-height: 260px;
  align-self: stretch;
}

.spotlight-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
  text-transform: uppercase;
}

.spotlight-lead {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}

.spotlight-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.spotlight-lead strong,
.spotlight-text strong {
  color: var(--text);
  font-weight: 700;
}

.prose {
  color: var(--muted);
  margin: 16px 0 20px;
  max-width: 48ch;
}

.prose a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--brand-dark);
}

.prose-light {
  margin: 12px 0 24px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
}

.media-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.media-card img {
  width: 100%;
  height: min(420px, 55vh);
  object-fit: cover;
}

.media-card.spotlight-media img {
  height: 100%;
  min-height: 260px;
  max-height: min(480px, 58vh);
  object-fit: cover;
  object-position: center;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tile {
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tile-visual {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, rgba(43, 84, 173, 0.06), rgba(255, 255, 255, 0.5));
  overflow: hidden;
}

.tile-visual a,
.tile-visual-link {
  display: block;
  height: 100%;
}

.tile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-body {
  padding: 20px 20px 22px;
}

.label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.tile-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
}

.link-arrow {
  font-weight: 800;
  font-size: 14px;
  color: var(--brand);
}

.link-arrow:hover {
  color: var(--accent);
}

/* Catálogo (banner clicável) */
.catalogo-banner {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--surface-2);
  transform: translateY(0);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}

.catalogo-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 84, 173, 0.22);
  box-shadow: var(--shadow);
}

.catalogo-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1900 / 600;
  object-fit: cover;
  object-position: center;
}

.catalogo-banner:focus-visible {
  outline: 2px solid rgba(128, 213, 255, 0.7);
  outline-offset: 3px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-card {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.mini-card--glow {
  position: relative;
  overflow: hidden;
}

.mini-card--glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(220px 160px at 20% 20%, rgba(43, 84, 173, 0.12), transparent 60%),
    radial-gradient(220px 160px at 80% 30%, rgba(128, 213, 255, 0.2), transparent 60%);
  opacity: 0.85;
  pointer-events: none;
}

.mini-card--glow > * {
  position: relative;
  z-index: 1;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.p-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.p-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.p-media {
  aspect-ratio: 16 / 10;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
}

.p-body {
  padding: 20px;
}

.p-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.p-title {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.p-text {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
}

.mini-card strong {
  display: block;
  font-size: 1.28rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.mini-card a {
  font-weight: 800;
  font-size: 14px;
  color: var(--brand);
}

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease);
}

.post:hover {
  transform: translateY(-3px);
}

.post img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-text {
  padding: 18px;
}

.post-text h3 {
  margin: 6px 0 10px;
  font-size: 1.05rem;
  color: var(--text);
}

.meta {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.post-text a {
  font-weight: 800;
  font-size: 14px;
  color: var(--brand);
}

/* Testimonials */
.testimonials {
  background: linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 50%, #153a72 100%);
  color: #fff;
}

.testimonials .eyebrow {
  color: rgba(255, 255, 255, 0.88);
  opacity: 1;
}

.reviews-shell {
  
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.reviews-grid {
  column-count: 3;
  column-gap: 18px;
}

.reviews-grid > * {
  break-inside: avoid;
}

.g-review {
  margin: 0 0 18px;
  padding: 26px clamp(18px, 4vw, 34px);
  display: grid;
  gap: 14px;
  background: #fff;
  color: rgba(15, 23, 42, 0.92);
  border-radius: calc(var(--radius) - 4px);

  width: 100%;
  break-inside: avoid;
}

.g-review-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.g-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(15, 23, 42, 0.92);
  background: rgba(43, 84, 173, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.g-avatar--photo {
  padding: 0;
  overflow: hidden;
}

.g-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g-name {
  display: block;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.2;
  color: rgba(15, 23, 42, 0.92);
}

.g-meta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.62);
}

.g-stars {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #fbbf24;
  line-height: 1;
}

.g-mark {
  opacity: 0.9;
  color: rgba(15, 23, 42, 0.6);
  font-size: 18px;
}

.g-text {
  margin: 0;
  color: rgba(15, 23, 42, 0.85);
  font-size: 15px;
  line-height: 1.6;
}

.g-text p {
  margin: 0;
}

.g-text p + p {
  margin-top: 10px;
}

.g-react {
  display: flex;
  gap: 10px;
}

.g-like {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.75);
  font-size: 13px;
  font-weight: 800;
}

/* grid responsivo */
@media (max-width: 920px) {
  .reviews-grid {
    column-count: 1;
  }
}

@media (min-width: 921px) and (max-width: 1120px) {
  .reviews-grid {
    column-count: 2;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.form {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.form.is-submitting {
  pointer-events: none;
  opacity: 0.92;
}

.form.is-submitting [data-submit-btn] {
  cursor: wait;
}

.lbl {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.lbl input,
.lbl textarea,
.lbl select {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.lbl input:focus,
.lbl textarea:focus,
.lbl select:focus {
  outline: 2px solid rgba(43, 84, 173, 0.25);
  border-color: rgba(43, 84, 173, 0.45);
}

.lbl input[type="file"] {
  padding: 10px 12px;
  width: 100%;
}

.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.fieldset > legend {
  padding: 0;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.radio-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(43, 84, 173, 0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  user-select: none;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill:has(input:checked) {
  border-color: rgba(43, 84, 173, 0.45);
  background: rgba(43, 84, 173, 0.14);
  color: var(--brand-dark);
  box-shadow: 0 10px 28px rgba(43, 84, 173, 0.15);
}

.radio-pill:has(input:focus-visible) {
  outline: 2px solid rgba(43, 84, 173, 0.45);
  outline-offset: 2px;
}

.is-hidden {
  display: none !important;
}

.hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #123271 0%, #2b54ad 100%);
  color: rgba(255, 255, 255, 0.88);
  padding: 48px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.75fr 1fr;
  gap: clamp(22px, 4vw, 40px);
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-col {
  min-width: 0;
  text-transform: uppercase;
}

.foot-logo-link {
  display: inline-block;
  line-height: 0;
}

.foot-logo {
  width: min(148px, 52vw);
  height: auto;
  display: block;
}

.foot-tagline {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  max-width: 22ch;
  line-height: 1.45;
}

.foot-heading {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.foot-links {
  display: grid;
  gap: 10px;
}

.foot-links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  width: fit-content;
}

.foot-links a:hover {
  color: #fff;
}

.foot-line {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.foot-line a {
  color: #fff;
}

.foot-line a:hover {
  color: var(--surface-2);
}

.foot-line-muted {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.foot-socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.foot-social {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s;
}

.foot-social:hover {
  background: rgba(128, 213, 255, 0.12);
  border-color: rgba(128, 213, 255, 0.35);
  color: #fff;
}

.muted {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.foot-copy {
  max-width: 52ch;
}

.foot-copy-block {
  display: grid;
  gap: 6px;
}

.foot-dev {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.foot-dev a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

.foot-dev a:hover {
  color: var(--surface-2);
}

.to-top {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.to-top:hover {
  background: rgba(255, 255, 255, 0.16);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(12px);
  padding: 12px 18px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 300;
  max-width: min(92vw, 420px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Barra superior: telemóvel em retrato — quebra linha e usa melhor a largura */
@media (max-width: 920px) and (orientation: portrait) {
  .wrap.header-top {
    width: min(100% - 24px, var(--wrap));
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 10px 14px;
    padding-block: 10px 8px;
  }

  .header-top .pill-link {
    justify-content: center;
    text-align: center;
  }

  .header-top .socials {
    justify-content: center;
  }
}

@media (max-width: 920px) {
  :root {
    /* Barra superior + logo/menu (aprox., inclui quebra em retrato) */
    --site-header-h: 140px;
  }

  .header-top {
    display: flex;
  }

  .header-main {
    flex-wrap: wrap;
    position: relative;
  }

  /* Painel posicionado em relação a .header-main (largura total), não ao .nav estreito */
  .nav {
    position: static;
  }

  .menu-btn {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 20px;
    z-index: 200;
  }

  .nav.is-open .nav-panel {
    display: flex;
  }

  .nav-panel > a,
  .nav-panel summary {
    padding: 10px 8px;
  }

  .sub-inner {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 4px 0 8px 8px;
    background: rgba(43, 84, 173, 0.06);
  }

  .sub[open] .sub-inner {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero-inner {
    padding: calc(var(--site-header-h) + 32px) 0 140px;
  }

  .hero-controls {
    bottom: 72px;
  }

  .split,
  .tiles,
  .cards-3,
  .posts,
  .contact-grid,
  .product-cards,
  .foot-top {
    grid-template-columns: 1fr;
  }

  .footer {
    text-align: center;
  }

  .foot-logo-link {
    margin-inline: auto;
  }

  .foot-tagline {
    margin-inline: auto;
    max-width: none;
  }

  .foot-links {
    justify-items: center;
  }

  .foot-socials {
    justify-content: center;
  }

  .foot-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .foot-copy {
    max-width: none;
  }

  .media-card img {
    height: min(320px, 45vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .scroll-hint {
    animation: none;
  }
}

/* —— Páginas internas —— */
/* Internas: header fixo; o primeiro bloco após o header ganha margem para não ficar sob ele.
   Na home (.is-home) o hero já compensa em .hero-inner. */
body.is-inner .site-header + * {
  margin-top: var(--site-header-h);
}

.page-shell {
  padding: 28px 0 72px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(43, 84, 173, 0.12), rgba(26, 111, 212, 0.08));
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.page-hero-inner {
  padding: clamp(22px, 4vw, 40px);
}

.page-hero-inner .page-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.page-hero-inner .page-title {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.page-hero-inner .page-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.page-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  padding: clamp(18px, 3vw, 28px);
}

.page-stack {
  display: grid;
  gap: 18px;
}

.prose-block {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}

.prose-block p {
  margin: 0 0 14px;
}

.prose-block h2:first-child,
.prose-block h3:first-child {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.prose-block h2,
.prose-block h3 {
  margin: 22px 0 10px;
  letter-spacing: -0.02em;
}



.prose-block img {
  border-radius: calc(var(--radius-sm) + 4px);
  border: 1px solid var(--line);
}

.rep-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.rep-filter label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.rep-filter select {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.rep-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 16px;
}

.rep-card h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.rep-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.98rem;
}

.rep-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}

.rep-phone-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.rep-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-weight: 600;
}

.rep-phone:hover {
  color: var(--brand-dark);
}

.rep-phone i {
  font-size: 0.95rem;
}

.rep-phone--whatsapp i {
  color: #25d366;
}

.rep-phone--tel i {
  color: var(--brand);
}

.rep-grid {
  display: grid;
  gap: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.gallery-grid a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.line-banner {
  margin-bottom: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.product-card__body {
  padding: 14px 16px 16px;
}

.product-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-align: center;
}

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

.product-card__title a:hover {
  color: var(--brand);
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 36px);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.pagination-meta {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.detail-layout {
  max-width: 820px;
  margin: 0 auto;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.detail-breadcrumb a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.detail-breadcrumb a:hover {
  text-decoration: underline;
}

.detail-breadcrumb-sep {
  opacity: 0.45;
}

.detail-body {
  margin-bottom: 0;
}

.detail-featured {
  margin: 0 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.detail-featured a {
  display: block;
}

.detail-featured img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-prose {
  margin-top: 0;
}

.detail-actions {
  margin: 24px 0 0;
}

.detail-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.detail-media-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.detail-media-stack {
  display: grid;
  gap: 20px;
}

.detail-pdf-list {
  display: grid;
  gap: 10px;
}

.detail-related {
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.detail-related h2 {
  margin: 0 0 20px;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

.video-embed,
.content-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #0b1220;
}

.video-embed iframe,
.content-video iframe,
.video-embed video,
.content-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.f-html .video-embed,
.f-html .content-video {
  max-width: min(960px, 92vw);
  margin: 0 auto;
}

.error-panel {
  text-align: center;
  padding: clamp(28px, 5vw, 56px) 18px;
}

.error-panel h1 {
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.error-panel p {
  margin: 0 auto 18px;
  max-width: 58ch;
  color: var(--muted);
}
@media (max-width: 690px) {
  .rep-filter label {
    width: 100%;
  }
}