/* ================================================================
   AVISO DE ENTRADA — Mérito Galardoado × Sika Portugal
   Modal central, só na 1.ª página que a pessoa abre.
   ================================================================ */
.mg-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 17, 12, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .4s ease;
}
.mg-notice-overlay.is-visible { opacity: 1; }

.mg-notice {
  position: relative;
  width: min(460px, 100%);
  background: #FBF8F1;
  color: #1a1a1a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  font-family: 'Inter', system-ui, sans-serif;
  text-align: center;
  transform: translateY(14px) scale(.98);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.mg-notice-overlay.is-visible .mg-notice { transform: none; }
.mg-notice::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #8B6A1E, #E8C877 50%, #8B6A1E);
}

.mg-notice-body { padding: 34px 34px 22px; }
.mg-notice-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #A8802A;
  margin-bottom: 14px;
}
.mg-notice-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 14px;
  text-wrap: balance;
}
.mg-notice-text {
  font-size: 15px;
  line-height: 1.6;
  color: #55504a;
  margin: 0 auto;
  max-width: 36ch;
  white-space: pre-line;
  text-wrap: pretty;
}
.mg-notice-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}
.mg-notice-cta {
  display: inline-block;
  padding: 13px 26px;
  background: #C9A24B;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 100px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.mg-notice-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(201,162,75,.45); }
.mg-notice-skip {
  background: none;
  border: none;
  color: #8a837a;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px;
}
.mg-notice-skip:hover { color: #1a1a1a; }

/* Rodapé "Uma parceria de" com os 2 logos */
.mg-notice-foot {
  border-top: 1px solid #ECE4D3;
  background: #fff;
  padding: 16px 24px 18px;
}
.mg-notice-foot-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9a9288;
  margin-bottom: 10px;
}
.mg-notice-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.mg-notice-logos img { display: block; width: auto; object-fit: contain; }
.mg-notice-logo-merito { height: 78px; margin: -14px -10px; }
.mg-notice-logo-sika { height: 54px; }
.mg-notice-x {
  color: #C9A24B;
  font-size: 16px;
  font-weight: 300;
}

.mg-notice-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: none;
  border-radius: 50%;
  background: #EFE8DA;
  color: #1a1a1a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.mg-notice-close:hover { background: #E2D8C4; }

/* Barra de tempo */
.mg-notice-bar {
  height: 3px;
  background: #C9A24B;
  transform-origin: left;
  animation: mg-notice-timer linear forwards;
}
@keyframes mg-notice-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.mg-notice:hover .mg-notice-bar { animation-play-state: paused; }

@media (max-width: 520px) {
  .mg-notice-body { padding: 30px 22px 18px; }
  .mg-notice-title { font-size: 22px; }
  .mg-notice-text { font-size: 14px; }
  .mg-notice-logo-merito { height: 64px; margin: -12px -8px; }
  .mg-notice-logo-sika { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-notice-overlay, .mg-notice { transition: none; }
}
