@import url('https://fonts.googleapis.com/css2?family=Bona+Nova:ital@0;1&family=Red+Hat+Display:wght@400;500&display=swap');

@font-face {
  font-family: 'AB Chanel Corpo';
  src: url('../fonts/abchanel-corpo-extra-light.woff2') format('woff2');
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}

html.valore-age-open { overflow: hidden !important; }

.valore-age {
  --valore-age-gold: #c2a26f;
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #5f5f5f;
}

.valore-age[hidden] { display: none !important; }
.valore-age,
.valore-age *,
.valore-age *::before,
.valore-age *::after { box-sizing: border-box; }

.valore-age__backdrop {
  position: absolute;
  inset: 0;
  background-color: #d9a09d;
  background-image: linear-gradient(rgba(246,215,199,.35), rgba(246,215,199,.35)), var(--valore-hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(3px);
  transform: scale(1.01);
}

.valore-age__dialog {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  min-height: 513px;
  padding: 40px 25px 28px;
  border-radius: 6px;
  background: rgba(249,247,240,.84);
  color: #5f5f5f;
  text-align: center;
  box-shadow: 0 24px 90px rgba(80,42,29,.16);
}

.valore-age__logo {
  position: relative;
  display: block;
  width: 177px;
  height: 62px;
  margin: 0 auto 30px;
}

.valore-age__logo img {
  position: absolute;
  display: block;
  filter: brightness(0) saturate(100%) invert(70%) sepia(21%) saturate(790%) hue-rotate(356deg) brightness(91%) contrast(82%);
}
.valore-age__logo-word { inset: 0 auto auto 0; width: 100%; height: auto; }
.valore-age__logo-sub { left: 50%; bottom: 0; width: 54%; height: auto; transform: translateX(-50%); }

.valore-age__dialog > p:first-of-type {
  width: min(510px, 100%);
  min-height: 34px;
  margin: 0 auto;
  color: #5f5f5f;
  font: 400 12px/1.35 'Red Hat Display', Arial, sans-serif;
}

.valore-age__year {
  display: flex;
  justify-content: center;
  gap: 11px;
  margin: 25px auto 24px;
}

.valore-age__year input {
  width: 56px;
  height: 62px;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid #888;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #aaa;
  text-align: center;
  font: 54px/1 'Bona Nova', Georgia, serif;
  box-shadow: none;
}

.valore-age__year input:focus { border-bottom-color: var(--valore-age-gold); }

.valore-age__selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 310px;
  margin: 0 auto 23px;
  gap: 17px;
  text-align: left;
}

.valore-age__selects label { display: block; margin: 0; }
.valore-age__selects label span {
  display: block;
  margin-bottom: 4px;
  color: #5f5f5f;
  font: 16px/1.2 'Bona Nova', Georgia, serif;
}

.valore-age__selects select {
  width: 100%;
  height: auto;
  padding: 4px 18px 7px 0;
  border: 0;
  border-bottom: 1px solid #888;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #5f5f5f;
  font: 13px 'Red Hat Display', Arial, sans-serif;
  box-shadow: none;
}

.valore-age__enter {
  width: 284px;
  height: 32px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--valore-age-gold);
  color: #fff;
  font: 200 16px/1 'AB Chanel Corpo', 'Red Hat Display', Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
}

.valore-age__enter:hover,
.valore-age__enter:focus-visible { color: #fff; background: #ad8d5f; }

.valore-age :where(button, input, select):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.valore-age__error {
  min-height: 18px;
  margin: 8px 0 0;
  color: #8e3f3f;
  font: 400 11px/1.3 'Red Hat Display', Arial, sans-serif;
}

.valore-age__legal {
  width: min(479px, 100%);
  margin: 6px auto 0;
  color: #5f5f5f;
  font: 400 10px/1.3 'Red Hat Display', Arial, sans-serif;
}

@media (max-width: 767px) {
  .valore-age { padding: 28px; }
  .valore-age__dialog { min-height: 470px; padding: 32px 12px 20px; }
  .valore-age__logo { width: 145px; height: 51px; margin-bottom: 27px; }
  .valore-age__dialog > p:first-of-type { width: 277px; max-width: 100%; font-size: 11px; }
  .valore-age__year { gap: 9px; margin: 28px auto 23px; }
  .valore-age__year input { width: 48px; height: 53px; font-size: 46px; }
  .valore-age__selects { width: 100%; max-width: 309px; gap: 17px; }
  .valore-age__enter { width: min(284px, 100%); }
  .valore-age__legal { margin-top: 4px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .valore-age,
  .valore-age * { scroll-behavior: auto !important; transition: none !important; }
}

