/*
Theme Name: Digital Color Golden Master 3 (GM3)
Theme URI: https://digitalcolorweb.it/
Author: Digital Color S.r.l.
Description: Homepage Digital Color - Golden Master 3 with flyer and catalog cards.
Version: 3.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: digital-color-gm3
*/

html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.dc-page {
  width: 100%;
  overflow: hidden;
}

.dc-stage {
  position: relative;
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  line-height: 0;
}

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

.dc-stage-main {
  aspect-ratio: 1536 / 924;
  overflow: hidden;
}

.dc-stage-main > img,
.dc-stage-main > .dc-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.dc-stage-main > .dc-overlay {
  pointer-events: none;
}

.dc-stage-footer {
  aspect-ratio: 1536 / 100;
  overflow: hidden;
}

.dc-stage-footer > img,
.dc-stage-footer > .dc-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
}

.dc-stage-footer > .dc-overlay {
  pointer-events: none;
}

.dc-hotspot {
  position: absolute;
  z-index: 5;
  display: block;
  background: transparent;
  text-decoration: none;
  line-height: normal;
}

/* Link positions adjusted to the cropped main artwork. */
.dc-nav-home { left: 55.2%; top: 8.87%; width: 5%; height: 4.88%; }
.dc-nav-products { left: 60%; top: 8.87%; width: 8.3%; height: 4.88%; }
.dc-nav-services { left: 68.4%; top: 8.87%; width: 8.3%; height: 4.88%; }
.dc-nav-tesi { left: 76.8%; top: 8.87%; width: 9.4%; height: 4.88%; }
.dc-nav-cal { left: 86.2%; top: 8.87%; width: 10%; height: 4.88%; }
.dc-wa-top { left: 55%; top: 1.33%; width: 12%; height: 6.09%; }
.dc-email-top { left: 67.3%; top: 1.33%; width: 12%; height: 6.09%; }
.dc-social-facebook { left: 79.7%; top: 1.33%; width: 3.8%; height: 6.09%; }
.dc-social-instagram { left: 83.6%; top: 1.33%; width: 3.8%; height: 6.09%; }
.dc-card1 { left: 7%; top: 40.44%; width: 19%; height: 21.06%; }
.dc-card2 { left: 27%; top: 40.44%; width: 19%; height: 21.06%; }
.dc-card3 { left: 47%; top: 40.44%; width: 19%; height: 21.06%; }
.dc-card4 { left: 67%; top: 40.44%; width: 19%; height: 21.06%; }
.dc-card5 { left: 7%; top: 64.28%; width: 19%; height: 21.06%; }
.dc-card6 { left: 27%; top: 64.28%; width: 19%; height: 21.06%; }
.dc-whatsapp { left: 37%; top: 66.5%; width: 31%; height: 15.52%; }

.dc-promotions {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(0, 540px) minmax(210px, 1fr);
  align-items: stretch;
  gap: clamp(18px, 2vw, 32px);
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 62px) clamp(20px, 3vw, 48px);
  background:
    radial-gradient(ellipse at 8% 18%, rgba(243, 18, 119, .10), transparent 20%),
    radial-gradient(ellipse at 92% 82%, rgba(0, 164, 224, .12), transparent 23%),
    #fff;
}

.dc-promo-side,
.dc-monthly-flyer {
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid rgba(19, 47, 98, .12);
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(12, 30, 57, .12);
}

.dc-promo-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 430px;
  padding: clamp(22px, 3vw, 40px) clamp(16px, 2vw, 28px);
  text-align: center;
}

.dc-quote-card {
  background: linear-gradient(145deg, #fff0f7 0%, #fff 58%, #eef9ff 100%);
}

.dc-calendar-card {
  background: linear-gradient(145deg, #eef9ff 0%, #fff 56%, #fff3f8 100%);
}

.dc-promo-symbol {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ed0b78, #08a9dc);
  box-shadow: 0 8px 18px rgba(15, 68, 126, .18);
  font-size: 42px;
  line-height: 1;
}

.dc-calendar-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 98px;
  margin-bottom: 4px;
  border: 3px solid #138fc7;
  border-radius: 14px;
  color: #10255a;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 68, 126, .12);
}

.dc-calendar-mark::before {
  content: "";
  position: absolute;
  top: 21px;
  right: 0;
  left: 0;
  border-top: 3px solid #ed0b78;
}

.dc-calendar-mark::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 23px;
  width: 10px;
  height: 16px;
  border: 3px solid #138fc7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 48px 0 0 -3px #fff, 48px 0 0 0 #138fc7;
}

.dc-calendar-mark span {
  margin-top: 14px;
  color: #10255a;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .04em;
}

.dc-monthly-flyer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(18px, 2vw, 28px);
  border-color: rgba(243, 18, 119, .24);
  background: #fff;
}

.dc-monthly-flyer h2,
.dc-calendar-card h2 {
  margin: 0;
  color: #10255a;
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.dc-monthly-flyer h2 { margin-bottom: 18px; }

.dc-monthly-flyer img {
  display: block;
  width: min(100%, 540px);
  height: auto;
  border-radius: 6px;
  filter: drop-shadow(0 14px 24px rgba(12, 30, 57, .18));
}

.dc-promo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  box-sizing: border-box;
  padding: 14px 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(100deg, #ed0b78, #08a9dc);
  box-shadow: 0 7px 18px rgba(15, 68, 126, .18);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.dc-promo-button:hover,
.dc-promo-button:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 68, 126, .24);
}

@media (max-width: 1000px) {
  .dc-promotions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
  }
  .dc-monthly-flyer { grid-column: 1 / -1; grid-row: 1; }
  .dc-quote-card { grid-column: 1; grid-row: 2; }
  .dc-calendar-card { grid-column: 2; grid-row: 2; }
}

@media (max-width: 700px) {
  .dc-promotions {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 24px 16px;
  }
  .dc-monthly-flyer { grid-column: 1; grid-row: 1; padding: 18px; }
  .dc-quote-card { grid-column: 1; grid-row: 2; min-height: 230px; }
  .dc-calendar-card { grid-column: 1; grid-row: 3; min-height: 270px; }
  .dc-monthly-flyer img { width: min(100%, 430px); }
}

.dc-footer-phone { left: 74.5%; top: 29%; width: 12%; height: 24%; }
.dc-footer-email { left: 74.5%; top: 53%; width: 14%; height: 30%; }

@media (max-width: 700px) {
  .dc-hotspot { display: none; }
  .dc-hotspot.dc-email-top,
  .dc-hotspot.dc-social-facebook,
  .dc-hotspot.dc-social-instagram { display: block; }
  .dc-stage { width: 100%; }
}
