/*
Theme Name: Lavoura
Theme URI: http://lavoura.pt
Description: Tema customizado para o site da Lavoura · Produtos e serviços para a Agricultura.
Version: 1.1.0
Author: Agilstore
Author URI: http://agilstore.pt
Text Domain: lavoura-theme
*/

:root {
  --bg: oklch(98% 0.004 240);
  --surface: oklch(100% 0 0);
  --fg: oklch(20% 0.02 240);
  --muted: oklch(50% 0.018 240);
  --border: oklch(90% 0.006 240);
  --accent: oklch(56% 0.12 170);

  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --fg-soft: color-mix(in oklch, var(--fg) 6%, transparent);

  --verde-escuro: #2E3102;

  --font-display: 'Inter', 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;

  --fs-h1: clamp(44px, 6vw, 76px);
  --fs-h2: clamp(32px, 4vw, 52px);
  --fs-h3: 22px;
  --fs-lead: 19px;
  --fs-body: 16px;
  --fs-meta: 13px;

  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 56px;
  --gap-2xl: 96px;
  --container: 1200px;
  --gutter: 32px;
  --radius: 12px;
  --radius-lg: 18px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* ─── Layout ─────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, var(--gap-2xl));
}

.section+.section {
  border-top: 1px solid var(--border);
}

.stack {
  display: flex;
  flex-direction: column;
}

.stack>*+* {
  margin-top: var(--gap-md);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap-xl);
  align-items: center;
}

/* ─── Tipografia ─────────────────────────────────── */
.h1,
h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 650;
}

.h2,
h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 650;
}

.h3,
h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--gap-md);
}

.meta {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--muted);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ─── Topnav ─────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: var(--gap-md);
}

.topnav .logo {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-img img {
  display: block;
  max-height: 48px;
  width: auto;
}

.topnav-nav {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
}

.topnav-nav a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.topnav-nav .btn {
  padding-block: 10px;
}

.topnav-nav a:hover {
  color: var(--fg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-fullscreen.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-close {
  position: absolute;
  top: 14px;
  right: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.nav-fullscreen-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-xl);
}

.nav-fullscreen-links a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}

/* ─── Botões ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: color-mix(in oklch, var(--accent) 88%, black);
  color: var(--surface);
  border-color: color-mix(in oklch, var(--accent) 88%, black);
}

.btn-primary:hover {
  background: color-mix(in oklch, var(--accent) 78%, black);
  border-color: color-mix(in oklch, var(--accent) 78%, black);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--fg);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: transparent;
  padding-inline: 8px;
}

.btn-ghost:hover {
  color: var(--accent);
}

/* ─── Hero ───────────────────────────────────────── */
.hero-split {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(60px, 10vh, 120px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.18) 50%, rgba(0, 0, 0, 0.72) 100%),
    url('https://app.paper.design/file-assets/01KJE80WA861FNW9RZF35YYEXQ/01KZ3KTNSM3FN4F63F97XWMJ8S.jpg') center/cover no-repeat;
}

.hero-split-inner {
  width: 100%;
}

.hero-split-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-split-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}

.hero-split-top .eyebrow {
  color: #A1A1A1;
  margin: 0;
}

.hero-split-top h1 {
  color: #FAFAFA;
}

.hero-split-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}

.hero-lead {
  color: rgba(250, 250, 250, 0.72);
  border-left: 1px solid #A1A1A1;
  padding-left: 20px;
  max-width: 340px;
  font-size: 16px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #FAFAFA;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-hero:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-fade>* {
  opacity: 0;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-fade>*:nth-child(1) {
  animation-delay: 0.05s;
}

.hero-fade>*:nth-child(2) {
  animation-delay: 0.22s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ─── Sobre ──────────────────────────────────────── */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
  margin-bottom: var(--gap-2xl);
}

.sobre-texto h2 {
  font-size: clamp(36px, 4.5vw, 52px);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.sobre-lead {
  font-size: 20px;
  line-height: 1.5;
  max-width: 56ch;
}

.sobre-lista {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 46ch;
}

.sobre-lista li {
  display: flex;
  gap: 10px;
  font-size: 16px;
  line-height: 1.55;
}

.sobre-lista .check {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: 2px;
}

.sobre-missao-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
}

.sobre-missao-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: white;
}

.sobre-missao-text {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
  color: white;
  margin: 0;
}

.pilares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
}

.pilar {
  display: flex;
  flex-direction: column;
}

.pilar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: #F5F5F5;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.pilar-titulo {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #0A0A0A;
  margin: 0 0 12px;
}

.pilar-desc {
  font-size: 16px;
  line-height: 1.5;
  color: #737373;
  margin: 0;
}

/* ─── Métricas ───────────────────────────────────── */
.metricas-section {
  background: var(--bg);
}

.metricas-inner {
  max-width: 900px;
  margin-inline: auto;
}

.metricas-titulo {
  text-align: center;
  margin-bottom: var(--gap-2xl);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0A0A0A;
}

.metricas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.metrica {
  text-align: center;
  padding-inline: var(--gap-lg);
}

.metrica+.metrica {
  border-left: 1px solid var(--border);
}

.metrica-label {
  font-size: 14px;
  font-weight: 500;
  color: #737373;
  margin: 0 0 40px;
  line-height: 1.5;
}

.metrica-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 80px);
  font-weight: 600;
  line-height: 1;
  color: #0A0A0A;
  letter-spacing: -0.04em;
}

.metrica-unit {
  font-size: 0.45em;
  opacity: 0.6;
  margin-left: 4px;
}

.metrica-sub {
  font-size: 20px;
  font-weight: 600;
  color: #737373;
  margin: 10px 0 0;
  letter-spacing: -0.01em;
}

/* ─── Produtos (Carousel) ────────────────────────── */
.produtos-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--gap-xl);
  gap: var(--gap-lg);
  flex-wrap: wrap;
}

.produtos-header-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.produtos-header-text h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0A0A0A;
}

.produtos-header-text .lead {
  font-size: 16px;
  max-width: 48ch;
}

.produtos-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.prod-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.prod-nav-btn:hover {
  background: var(--fg-soft);
}

.produtos-carousel-wrapper {
  position: relative;
  margin-block: 0;
}

.produtos-carousel {
  display: flex;
  gap: 20px;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.produtos-carousel::-webkit-scrollbar {
  display: none;
}

.prod-slide {
  flex: 0 0 360px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.prod-slide-img {
  height: 432px;
  /* aspect ~16:10 */
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.prod-slide:hover .prod-slide-img {
  transform: scale(1.04);
}

.prod-slide-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(in oklab 0deg, oklch(0% 0 0 / 80%) 0%, oklch(0% 0 0 / 28%) 50%, oklch(0% 0 0 / 0%) 100%);
}

.prod-slide-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0 0 6px;
  line-height: 1.3;
}

.prod-slide-body p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.produtos-fade-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 200px;
  pointer-events: none;
  background: linear-gradient(in oklab 270deg, oklch(100% 0 0) 0%, oklch(100% 0 0 / 52%) 34%, oklch(100% 0 0 / 14%) 68%, oklch(0% 0 0 / 0%) 100%);
}

.prod-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--gap-lg);
}

.prod-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(23, 23, 23, 0.2);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.prod-dot--active {
  background: #171717;
  width: 20px;
}

/* ─── Contactos (Split) ──────────────────────────── */
.contactos-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

.contactos-imagem {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  background:
    linear-gradient(in oklab 180deg, oklch(0% 0 0 / 0%) 0%, oklch(0% 0 0 / 90%) 100%),
    url('https://app.paper.design/file-assets/01KJE80WA861FNW9RZF35YYEXQ/01KZ3NE3QENGYNNDYW2RB0A1C7.jpg') center/cover no-repeat;
}

.contactos-label {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 8px;
}

.contactos-tagline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  color: white;
  margin: 0;
}

.contactos-form-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  background: var(--surface);
}

.contactos-form-inner {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.contactos-form-header {
  margin-bottom: 32px;
}

.contactos-form-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.contactos-info {
  display: flex;
  gap: var(--gap-xl);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.contacto-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg);
}

.contacto-info-item svg {
  flex-shrink: 0;
}

.contactos-formulario {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.req {
  color: oklch(57.7% 0.245 27.3);
}

.input,
.textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #E5E5E5;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}

.contactos-mapa {
  width: 100%;
}

.contactos-mapa iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.btn-form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 20px;
  border-radius: var(--radius);
  background: #171717;
  color: #FAFAFA;
  border: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.btn-form-submit:hover {
  background: #333;
}

.btn-form-submit:active {
  transform: translateY(1px);
}

/* ─── Footer Completo ────────────────────────────── */
.pagefoot-full {
  background: var(--verde-escuro);
  padding-block: 72px 32px;
}

.pagefoot-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.pagefoot-grid {
  display: grid;
  grid-template-columns: 4fr 3fr 2fr 3fr;
  gap: var(--gap-xl);
  padding-bottom: var(--gap-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pagefoot-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pagefoot-logo {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: white;
}

.pagefoot-logo img {
  max-height: 60px;
  width: auto;
}

.pagefoot-tagline {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 30ch;
}

.pagefoot-badges {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  opacity: 0.9;
}

.pagefoot-badges img {
  height: 40px;
  width: auto;
}

.pagefoot-col-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: white;
  margin: 0 0 24px;
}

.pagefoot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pagefoot-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.15s ease;
  line-height: 1.5;
}

.pagefoot-links a:hover {
  color: white;
}

.pagefoot-social li a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagefoot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap-md);
  padding-top: var(--gap-xl);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.pagefoot-bottom a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.15s ease;
}

.pagefoot-bottom a:hover {
  color: white;
}

/* ─── Card (manter compatibilidade) ──────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ─── Reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ─── Mensagem de obrigado ───────────────────────── */
.thanks {
  color: color-mix(in oklch, var(--accent) 75%, black);
  font-size: 14px;
}

/* ─── Responsivo ─────────────────────────────────── */
@media (max-width: 1024px) {
  .pagefoot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {

  .grid-2,
  .grid-3,
  .grid-2-1,
  .grid-1-2 {
    grid-template-columns: 1fr;
  }

  .topnav-inner {
    flex-wrap: nowrap;
  }

  .topnav-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-fullscreen-links a {
    font-size: 26px;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
  }

  .pilares {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .metricas-grid {
    grid-template-columns: 1fr;
  }

  .metrica+.metrica {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: var(--gap-lg);
  }

  .contactos-split {
    grid-template-columns: 1fr;
  }

  .contactos-imagem {
    min-height: 320px;
  }

  .contactos-form-col {
    padding: var(--gap-xl) var(--gutter);
  }

  .hero-split-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .sp-body-grid {
    grid-template-columns: 1fr;
  }

  .sp-hero {
    min-height: 60vw;
  }

  .pagefoot-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-fade>* {
    animation: none;
    opacity: 1;
  }

  .prod-slide-img {
    transition: none;
  }
}

/* ─── Swiper: Overrides para Produtos ───────────── */
.produtos-swiper-wrapper {
  position: relative;
}

.produtos-swiper {
  padding-inline: var(--gutter) !important;
  overflow: hidden !important;
}

.swiper-slide.prod-slide {
  width: 360px !important;
  flex-shrink: 0;
}

/* Ocultar os controlos padrão do Swiper (usamos os nossos) */
.swiper-button-next,
.swiper-button-prev {
  display: none !important;
}

/* Pagination dots Swiper */
.produtos-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--gap-lg);
}

.produtos-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.2);
  opacity: 1;
  transition: background 0.2s ease, width 0.2s ease;
}

.produtos-pagination .swiper-pagination-bullet-active {
  background: #171717;
  width: 20px;
  border-radius: 4px;
}

/* Link sobre o slide */
.prod-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.prod-slide-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* CTA dentro do slide */
.prod-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.prod-slide-link:hover .prod-slide-cta {
  color: white;
}

/* ─── Single Produto ─────────────────────────────── */
.single-produto-page {
  --sp-pad: clamp(24px, 5vw, 64px);
}

/* Hero */
.sp-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(80px, 12vh, 140px);
  background: #2a2a22 center/cover no-repeat;
}

.sp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.78) 100%);
}

.sp-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.sp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}

.sp-breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s ease;
}

.sp-breadcrumb a:hover {
  color: white;
}

.sp-breadcrumb span[aria-hidden] {
  opacity: 0.4;
}

.sp-breadcrumb span[aria-current] {
  color: rgba(255, 255, 255, 0.9);
}

.sp-hero-content {
  max-width: 720px;
}

.sp-categoria {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.sp-hero-content h1 {
  color: white;
  margin-bottom: 20px;
}

.sp-excerpt {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 56ch;
}

/* Body */
.sp-body-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--gap-2xl);
  align-items: start;
}

.sp-entry-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
}

.sp-entry-content h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  margin: 40px 0 16px;
}

.sp-entry-content h3 {
  font-size: 20px;
  margin: 32px 0 12px;
}

.sp-entry-content p {
  margin: 0 0 20px;
}

.sp-entry-content ul,
.sp-entry-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.sp-entry-content li {
  margin-bottom: 8px;
}

.sp-entry-content img {
  border-radius: var(--radius-lg);
  max-width: 100%;
  height: auto;
}

.sp-section-title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}

.sp-especificacoes {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.sp-espec-content {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* Sidebar */
.sp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(60px + var(--gap-lg));
}

.sp-img-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

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

.sp-contact-card {
  background: var(--verde-escuro);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sp-contact-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.sp-contact-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.5;
}

.sp-btn-contacto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: white;
  color: var(--verde-escuro);
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.sp-btn-contacto:hover {
  opacity: 0.9;
}

.sp-btn-telefone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.sp-btn-telefone:hover {
  background: rgba(255, 255, 255, 0.18);
}

.sp-meta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sp-meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.sp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.sp-tag:hover {
  border-color: var(--fg);
  color: var(--fg);
}

/* Relacionados */
.sp-relacionados {
  border-top: 1px solid var(--border);
}

.sp-relacionados-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-lg);
  margin-top: var(--gap-xl);
}

.sp-rel-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.sp-rel-card:hover {
  border-color: color-mix(in oklch, var(--fg) 30%, var(--border));
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(10, 12, 8, 0.3);
}

.sp-rel-img {
  aspect-ratio: 16/10;
  background: var(--bg) center/cover no-repeat;
}

.sp-rel-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-rel-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.sp-rel-body p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.sp-rel-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  transition: color 0.15s ease;
}

.sp-rel-card:hover .sp-rel-cta {
  color: var(--fg);
}

/* Single produto — responsivo */
@media (max-width: 1024px) {
  .sp-body-grid {
    grid-template-columns: 1fr;
  }

  .sp-sidebar {
    position: static;
  }

  .sp-relacionados-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sp-relacionados-grid {
    grid-template-columns: 1fr;
  }

  .swiper-slide.prod-slide {
    width: 280px !important;
  }
}

/* ─── Hero Interno (Litígios, Privacidade) ───────── */
.inner-hero {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.72) 100%),
    url('https://app.paper.design/file-assets/01KJE80WA861FNW9RZF35YYEXQ/01KZ3KTNSM3FN4F63F97XWMJ8S.jpg') center/cover no-repeat;
  padding-block: clamp(80px, 12vh, 140px) clamp(64px, 9vw, 96px);
}

.inner-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inner-hero .sp-breadcrumb {
  color: rgba(255,255,255,0.6);
}

.inner-hero .sp-breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.inner-hero h1 {
  color: #FAFAFA;
  max-width: 720px;
}

.inner-hero-lead {
  font-size: var(--fs-lead);
  color: rgba(250,250,250,0.72);
  max-width: 56ch;
  margin: 0;
  line-height: 1.55;
}

/* ─── Resolução de Litígios ──────────────────────── */
.litigios-intro-section {
  background: var(--surface);
}

.litigios-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

.litigios-intro-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
}

.litigios-intro-text p:last-child {
  margin-bottom: 0;
}

.litigios-intro-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.litigios-destaque-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.litigios-destaque-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.litigios-destaque-card h2 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

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

.litigios-entidades-section {
  background: var(--bg);
}

.litigios-entidades-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-lg);
}

.litigios-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.3s ease;
}

.litigios-card:hover {
  border-color: color-mix(in oklch, var(--fg) 20%, var(--border));
  box-shadow: 0 12px 32px -16px rgba(10,12,8,0.15);
  transform: translateY(-3px);
}

.litigios-card-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.litigios-card-logo img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.litigios-card-nome {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0;
}

.litigios-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 28ch;
}

.litigios-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.15s ease;
}

.litigios-card-link:hover {
  color: color-mix(in oklch, var(--accent) 75%, black);
}

.litigios-portal-section {
  padding-block: clamp(48px, 7vw, 72px);
  background: var(--verde-escuro);
}

.litigios-portal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.litigios-portal-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

.litigios-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,0.4);
  transition: text-decoration-color 0.15s ease;
}

.litigios-portal-link:hover {
  text-decoration-color: white;
}

/* Responsivo — litígios */
@media (max-width: 920px) {
  .litigios-intro-grid {
    grid-template-columns: 1fr;
  }

  .litigios-entidades-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Política de Privacidade ────────────────────── */
.privacidade-section {
  background: var(--bg);
}

.privacidade-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--gap-2xl);
  align-items: start;
}

.privacidade-article {
  min-width: 0;
}

.privacidade-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 var(--gap-xl);
  padding-bottom: var(--gap-xl);
  border-bottom: 1px solid var(--border);
}

.privacidade-bloco {
  padding-block: var(--gap-xl);
  border-bottom: 1px solid var(--border);
}

.privacidade-bloco:last-child {
  border-bottom: none;
}

.privacidade-bloco h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.privacidade-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.privacidade-bloco p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 14px;
}

.privacidade-bloco p:last-child {
  margin-bottom: 0;
}

.privacidade-bloco a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacidade-lista {
  margin: 12px 0 14px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacidade-lista li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.privacidade-contactos-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.privacidade-contacto-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.privacidade-contacto-item:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.privacidade-cnpd-card {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.privacidade-cnpd-card p {
  margin: 0 0 8px;
}

.privacidade-cnpd-nome {
  font-weight: 600;
  color: var(--fg) !important;
}

.privacidade-bloco h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 10px;
}

.privacidade-cookies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
  margin-top: 20px;
}

/* Sidebar — privacidade */
.privacidade-sidebar {
  position: sticky;
  top: calc(60px + var(--gap-lg));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.privacidade-sidebar-card {
  background: var(--verde-escuro);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacidade-sidebar-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.privacidade-sidebar-card > p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  margin: 0;
}

.privacidade-sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacidade-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.privacidade-sidebar-item:hover {
  opacity: 0.85;
}

.privacidade-sidebar-item small {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2px;
}

.privacidade-sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: white;
  flex-shrink: 0;
}

.privacidade-sidebar-card .sp-btn-contacto {
  background: white;
  color: var(--verde-escuro);
  font-size: 14px;
  justify-content: center;
}

.privacidade-sidebar-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.privacidade-sidebar-nav-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.privacidade-sidebar-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: idx;
}

.privacidade-sidebar-index li {
  counter-increment: idx;
}

.privacidade-sidebar-index a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.privacidade-sidebar-index a::before {
  content: counter(idx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--border);
  flex-shrink: 0;
}

.privacidade-sidebar-index a:hover {
  color: var(--fg);
}

/* Responsivo — privacidade */
@media (max-width: 1024px) {
  .privacidade-layout {
    grid-template-columns: 1fr;
  }

  .privacidade-sidebar {
    position: static;
  }

  .privacidade-cookies-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .privacidade-contactos-inline {
    flex-direction: column;
  }
}