.materials-page {
  background: #fbfaf7;
  color: var(--blue-dark);
}

.materials-page .site-header {
  background: rgba(255, 253, 248, .97);
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(20, 43, 58, .055);
  backdrop-filter: blur(12px);
}
.materials-page .site-header:not(.is-scrolled) .logo-white { display: none; opacity: 0; }
.materials-page .site-header:not(.is-scrolled) .logo-color { display: block; opacity: 1; }
.materials-page .site-header:not(.is-scrolled) .logo-icon { opacity: 0; }
.materials-page .main-nav .is-active { color: #b48332; }

.materials-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 110px;
  padding: 70px max(34px, calc((100% - 1400px) / 2));
  color: #fff;
}
.materials-hero > img,
.materials-hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.materials-hero > img { object-fit: cover; object-position: center 54%; filter: none; }
.materials-hero-overlay { background: linear-gradient(90deg, rgba(9,20,27,.82), rgba(9,20,27,.48) 44%, rgba(9,20,27,.15)), linear-gradient(0deg, rgba(9,20,27,.25), transparent); }
.materials-hero-content { position: relative; z-index: 1; max-width: 600px; }
.materials-hero .eyebrow { margin: 0 0 11px; padding: 0; color: #d5ad62; }
.materials-hero h1 { color: #fff; font-size: clamp(60px, 6vw, 88px); font-weight: 400; }
.materials-hero-content > p:last-child { max-width: 520px; margin: 25px 0 0; color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.8; }

.materials-library {
  width: min(1120px, calc(100% - 60px));
  margin: 0 auto;
  padding: 90px 0 105px;
}
.materials-heading { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.materials-heading .eyebrow { margin: 0 0 11px; padding: 0; color: #c0923d; }
.materials-heading h2 { color: var(--blue-dark); font-size: clamp(38px, 4vw, 54px); font-weight: 400; }
.materials-heading > p:last-child { max-width: 580px; margin: 18px auto 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.materials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.material-card {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  border: 1px solid rgba(23,60,88,.11);
  border-radius: 4px;
  background: #fff;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.material-card:hover { transform: translateY(-4px); border-color: rgba(192,146,61,.45); box-shadow: 0 18px 45px rgba(22,50,68,.07); }
.material-card-body { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 48px 45px 42px; text-align: center; }
.material-type { display: grid; width: 76px; height: 76px; place-items: center; margin-bottom: 25px; border: 1px solid rgba(192,146,61,.55); color: #a97628; font-family: var(--serif); font-size: 20px; letter-spacing: .08em; }
.material-number { position: absolute; top: 26px; left: 28px; margin: 0; color: #c0923d; font-size: 9px; font-weight: 600; letter-spacing: .16em; }
.material-card h3 { margin: 0 0 12px; color: var(--blue-dark); font-size: 32px; font-weight: 400; }
.material-card-body > p:last-child { max-width: 390px; margin: 0; color: #74818a; font-size: 11px; line-height: 1.7; }
.material-card-action { display: flex; min-height: 62px; align-items: center; justify-content: center; gap: 18px; border-top: 1px solid rgba(23,60,88,.08); background: #f7f4ee; color: #9d702a; font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.material-card-action b { font-size: 17px; font-weight: 400; transition: transform .2s ease; }
.material-card:hover .material-card-action b { transform: translateY(3px); }
.material-card:nth-child(3):hover .material-card-action b { transform: translate(3px,-3px); }

.materials-support {
  display: grid;
  grid-template-columns: 1fr 1.05fr auto;
  gap: 40px;
  align-items: center;
  margin-top: 42px;
  padding: 35px 42px;
  border: 1px solid rgba(23,60,88,.1);
  border-radius: 4px;
  background: #f1ede6;
}
.materials-support .eyebrow { margin: 0 0 7px; padding: 0; color: #c0923d; }
.materials-support h2 { color: var(--blue-dark); font-size: 30px; font-weight: 400; }
.materials-support > p { margin: 0; color: #6b7982; font-size: 11px; line-height: 1.7; }
.materials-support > a { display: inline-flex; min-height: 46px; align-items: center; gap: 25px; padding: 11px 20px; border: 1px solid rgba(174,125,44,.65); color: #9f7129; font-size: 9.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.materials-support > a:hover { background: #b68536; color: #fff; }

@media (max-width: 900px) {
  .materials-grid { grid-template-columns: 1fr; }
  .materials-support { grid-template-columns: 1fr 1fr; }
  .materials-support > a { grid-column: 1 / 3; justify-self: start; }
}

@media (max-width: 700px) {
  .materials-hero { min-height: 500px; margin-top: 60px; padding: 65px 24px; }
  .materials-hero h1 { font-size: 56px; }
  .materials-library { width: calc(100% - 28px); padding: 68px 0 75px; }
  .materials-heading { margin-bottom: 38px; }
  .materials-heading h2 { font-size: 44px; }
  .material-card { min-height: 350px; }
  .material-card-body { padding: 44px 24px 36px; }
  .material-card h3 { font-size: 29px; }
  .materials-support { grid-template-columns: 1fr; gap: 18px; padding: 30px 24px; }
  .materials-support > a { grid-column: auto; }
}
/* Hero tipográfico alinhado à página Casamentos */
.materials-hero-content { max-width: 760px; }
.materials-hero .eyebrow { margin: 0; padding-left: 5px; color: var(--gold); font-size: 11px; font-weight: 600; line-height: 1.65; letter-spacing: .18em; text-transform: uppercase; }
.materials-hero h1 { max-width: 700px; margin: 0; color: #fff; font-family: var(--serif); font-size: clamp(36px, 4.2vw, 54px); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
.materials-hero-content > p:last-child { max-width: 520px; margin: 28px 0 0; color: #fff; font-family: var(--sans); font-size: 18px; font-weight: 400; line-height: 1.65; letter-spacing: .01em; }
@media (max-width: 600px) { .materials-hero h1 { font-size: 36px; } }
@media (max-width: 700px) { .materials-hero h1 { font-size: 42px; } .materials-hero-content > p:last-child { font-size: 16px; } }

/* Escala mobile consolidada */
@media (max-width: 700px) {
  .materials-hero { min-height: 440px; margin-top: 58px; padding: 54px 22px; }
  .materials-hero h1 { font-size: 34px; line-height: 1.05; }
  .materials-hero-content > p:last-child { margin-top: 20px; font-size: 14px; line-height: 1.6; }
  .materials-library { padding: 52px 0 58px; }
  .materials-heading h2 { font-size: 29px; line-height: 1.08; }
  .material-card-body { padding: 36px 22px 30px; }
  .material-card h3 { font-size: 25px; line-height: 1.12; }
  .materials-support { padding: 28px 22px; }
  .materials-support h2 { font-size: 27px; line-height: 1.1; }
}
/* Ícone vetorial para links externos dos materiais */
.material-external-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
}
.material-external-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}