@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #ffffff;
  --panel: #ffffff;

  --text: #111827;
  --muted: #6b7280;
  --soft-text: #667085;

  --brand: #c0182a;
  --navy: #142436;

  --border: #eeeeee;
  --radius: 20px;

  --card-shadow: 0 24px 80px -55px rgba(20, 36, 54, 0.35);

  --font-heading:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-body:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Reset */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

/* Container */

.wrap {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding-top: 20px;
}

.layout {
  display: block;
  width: 100%;
}

/* Esconder elementos antigos */

.toc,
.tagrow,
.tag,
.count,
.module summary::before {
  display: none !important;
}

/* Secções principais */

.product {
  margin: 0 0 56px;
  scroll-margin-top: 100px;
}

/* Cabeçalho da área: Design, CAM, Steel, etc. */

.product-head,
.product-header {
  position: relative;
  overflow: hidden;
  margin: 0 0 28px;
  padding: 34px 38px;
  border-radius: var(--radius);
  color: #ffffff;
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(255, 255, 255, 0.13) 0 110px,
      transparent 111px
    ),
    linear-gradient(120deg, #142436 0%, #24394e 72%, #c0182a 100%);
}

.product-head::after,
.product-header::after {
  content: "";
  position: absolute;
  right: -64px;
  top: -82px;
  width: 220px;
  height: 220px;
  border: 26px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  pointer-events: none;
}

.product-head h2,
.product-header h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
}

.product-head p,
.product-header p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

/* Cartões principais — estilo da referência */

.module {
  width: 100%;
  margin: 0 0 24px;
  padding: 48px 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

/* Remove aspeto de accordion */

.module summary {
  display: block;
  padding: 0;
  margin: 0 0 16px;
  cursor: default;
  list-style: none;
  background: transparent;
  border: 0;
}

.module summary::-webkit-details-marker {
  display: none;
}

.module h3 {
  margin: 0;
  color: #000000;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Cada entrada deixa de ser uma caixa dentro da caixa */

.entry {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Separação entre várias entradas dentro do mesmo cartão */

.entry + .entry {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid #f0f0f0;
}

.entry .content {
  max-width: 100%;
}

/* Título da novidade */

.entry h4 {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Texto */

.entry p {
  margin: 0 0 14px;
  color: var(--soft-text);
}

/* Lista com setas, como na referência */

.entry ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 24px;
  color: var(--soft-text);
  line-height: 1.55;
}

.entry li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: #6b7280;
  font-weight: 700;
}

.entry li::marker {
  content: "";
}

/* Galeria / imagem / vídeo por baixo do texto */

.gallery {
  display: block;
  margin-top: 22px;
}

.gallery:empty {
  display: none;
}

.gallery figure {
  width: min(560px, 100%);
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

.gallery figure + figure {
  margin-top: 18px;
}

.gallery img,
.gallery video {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 0;
  background: transparent;
}

.gallery figcaption {
  display: none;
}

/* Caso existam vídeos fora da galeria */

.entry video,
.entry iframe {
  display: block;
  width: min(560px, 100%);
  max-width: 100%;
  margin-top: 22px;
  border: 0;
  border-radius: var(--radius);
}

/* Notas */

.note {
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid rgba(192, 24, 42, 0.22);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--soft-text);
  box-shadow: none;
}

/* Estados */

.empty {
  display: none;
}

.hidden {
  display: none !important;
}

/* Footer */

.footer {
  margin-top: 54px;
  padding: 34px 0;
  border-top: 4px solid var(--brand);
  background: var(--navy);
  color: #d9e2ea;
  font-size: 14px;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  color: #ffccd2;
}

/* Responsivo */

@media (max-width: 860px) {
  .wrap {
    width: min(100% - 32px, 1180px);
  }

  .product-head,
  .product-header {
    padding: 28px 24px;
  }

  .module {
    padding: 36px 32px;
  }

  .gallery figure,
  .entry video,
  .entry iframe {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .product-head h2,
  .product-header h2 {
    font-size: 30px;
  }

  .module {
    padding: 28px 22px;
  }

  .module h3 {
    font-size: 16px;
  }

  .entry h4 {
    font-size: 16px;
  }

  .entry li {
    padding-left: 22px;
  }
}
