:root {
  --fondo: #e7e3dc;
  --carta: #faf8f4;
  --carta-2: #f3efe8;
  --inchiostro: #17150f;
  --tenue: #7a736b;
  --filo: rgba(23, 21, 15, 0.09);
  --ottone: #a27a3e;
  --ottone-chiaro: #d9bd8c;
  --raggio: 22px;
  --sans: 'Mona Sans Variable', 'Mona Sans', system-ui, sans-serif;
  --serif: 'Newsreader Variable', 'Newsreader', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #f1eee8 0%, rgba(241, 238, 232, 0) 60%),
    var(--fondo);
  color: var(--inchiostro);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* a fine grain over the stage */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.47 0 0 0 0 0.43 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.palco {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- the app ---------- */
.app {
  position: relative;
  width: min(640px, 92vw);
  height: min(560px, 90vh);
  border-radius: var(--raggio);
  background: linear-gradient(180deg, #fdfcf9 0%, var(--carta) 40%, #f7f4ee 100%);
  box-shadow:
    0 0 0 1px rgba(23, 21, 15, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(23, 21, 15, 0.05),
    0 8px 18px -6px rgba(23, 21, 15, 0.12),
    0 30px 60px -22px rgba(23, 21, 15, 0.28);
  overflow: hidden;
  isolation: isolate;
}

.vista {
  position: absolute;
  inset: 0;
}

/* ---------- the grid ---------- */
.vista--griglia {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2vh, 14px);
  padding: clamp(12px, 3.2vh, 22px) clamp(12px, 3.4vw, 22px);
}

.testa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.marchio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: 0.01em;
}

.marchio svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ottone);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.voci {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.4vw, 16px);
  font-size: 12px;
  color: var(--tenue);
}

.voce.is-on {
  color: var(--inchiostro);
  font-weight: 560;
}

.voce--borsa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(23, 21, 15, 0.045);
  color: var(--inchiostro);
}

.voce--borsa svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.titoletto {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.titolo-griglia {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(19px, 4.6vh, 28px);
  letter-spacing: -0.01em;
  line-height: 1;
}

.conta {
  font-size: 11.5px;
  color: var(--tenue);
  text-align: right;
}

.orologi {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(8px, 2vh, 14px) clamp(8px, 2vw, 14px);
  list-style: none;
}

.orologio {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1vh, 7px);
  cursor: pointer;
  outline: none;
}

.orologio__lift {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1vh, 7px);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25);
}

.foto {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #e8e3db;
  box-shadow:
    0 0 0 1px rgba(23, 21, 15, 0.05),
    0 1px 2px rgba(23, 21, 15, 0.06),
    0 6px 14px -8px rgba(23, 21, 15, 0.2);
  transition: box-shadow 0.45s ease;
}

.foto img,
.testata__foto img,
.volo img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.foto__zoom {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* the glass edge of the photo, a 1px line that catches the light */
.foto::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.vedi {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(250, 248, 244, 0.82);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 4px 10px -4px rgba(23, 21, 15, 0.35);
  opacity: 0;
  transform: translateY(4px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.vedi svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--inchiostro);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

.info__nome {
  display: block;
  font-size: clamp(12px, 2.5vh, 14px);
  font-weight: 600;
  line-height: 1.15;
}

.info__sotto {
  display: block;
  font-size: clamp(10px, 2.1vh, 11.5px);
  color: var(--tenue);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info__prezzo {
  font-size: clamp(12px, 2.5vh, 13.5px);
  font-weight: 560;
  white-space: nowrap;
}

.orologio.e-sopra .orologio__lift {
  transform: translateY(-3px);
}

.orologio.e-sopra .foto {
  box-shadow:
    0 0 0 1px rgba(23, 21, 15, 0.05),
    0 2px 4px rgba(23, 21, 15, 0.06),
    0 16px 26px -12px rgba(23, 21, 15, 0.35);
}

.orologio.e-sopra .foto__zoom {
  transform: scale(1.045);
}

.orologio.e-sopra .vedi {
  opacity: 1;
  transform: none;
}

.orologio.e-sopra .vedi svg {
  transform: translateX(1px);
}

.orologio.e-premuta .orologio__lift {
  transform: translateY(-1px) scale(0.975);
  transition-duration: 0.12s;
}

@media (hover: hover) {
  .orologio:hover .orologio__lift {
    transform: translateY(-3px);
  }

  .orologio:hover .foto {
    box-shadow:
      0 0 0 1px rgba(23, 21, 15, 0.05),
      0 2px 4px rgba(23, 21, 15, 0.06),
      0 16px 26px -12px rgba(23, 21, 15, 0.35);
  }

  .orologio:hover .foto__zoom {
    transform: scale(1.045);
  }

  .orologio:hover .vedi {
    opacity: 1;
    transform: none;
  }

  .orologio:active .orologio__lift {
    transform: translateY(-1px) scale(0.975);
    transition-duration: 0.12s;
  }
}

.orologio:focus-visible .foto {
  box-shadow: 0 0 0 2px var(--carta), 0 0 0 3.5px var(--ottone);
}

/* ---------- the product page ---------- */
.vista--prodotto {
  visibility: hidden;
}

.testata {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 47%;
  overflow: hidden;
}

.testata__foto {
  position: absolute;
  inset: 0;
  background: #e8e3db;
  visibility: hidden;
}

.testata__velo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(23, 21, 15, 0.16) 0%, rgba(23, 21, 15, 0) 26%),
    linear-gradient(0deg, rgba(23, 21, 15, 0.1) 0%, rgba(23, 21, 15, 0) 22%);
  box-shadow: inset 0 -1px 0 rgba(23, 21, 15, 0.08);
  opacity: 0;
}

/* the glass of the dial: a circle laid exactly over the dial in the photo */
.vetro {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.vetro__luce {
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(112deg,
      rgba(255, 255, 255, 0) 36%,
      rgba(255, 250, 240, 0.22) 44%,
      rgba(255, 255, 255, 0.78) 49.5%,
      rgba(255, 255, 255, 0.95) 50%,
      rgba(255, 250, 240, 0.5) 52%,
      rgba(255, 255, 255, 0) 58%),
    linear-gradient(112deg,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.28) 63%,
      rgba(255, 255, 255, 0) 66%);
  mix-blend-mode: screen;
}

.vetro__riflesso {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(60% 40% at 32% 22%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(90% 90% at 70% 85%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 2px 3px rgba(255, 255, 255, 0.25);
  mix-blend-mode: screen;
  opacity: 0;
}

/* a thin anamorphic streak through the dial while the light crosses it */
.striscia {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 236, 205, 0) 0%, rgba(255, 236, 205, 0.75) 50%, rgba(255, 236, 205, 0) 100%);
  box-shadow: 0 0 8px 1px rgba(255, 228, 190, 0.35);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
}

.tondo {
  position: absolute;
  top: clamp(10px, 2.4vh, 14px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(250, 248, 244, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 14px -6px rgba(23, 21, 15, 0.4);
  visibility: hidden;
  opacity: 0;
}

.tondo svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--inchiostro);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tondo--indietro {
  left: clamp(10px, 2.4vw, 14px);
  transition: background-color 0.25s ease;
}

.tondo--indietro svg {
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.tondo--indietro.e-premuta svg {
  transform: translateX(-2px);
}

.tondo--cuore {
  right: clamp(10px, 2.4vw, 14px);
}

@media (hover: hover) {
  .tondo--indietro:hover {
    background: rgba(255, 255, 255, 0.95);
  }

  .tondo--indietro:hover svg {
    transform: translateX(-2px);
  }
}

.corpo {
  position: absolute;
  left: 0;
  right: 0;
  top: 47%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(6px, 1.6vh, 12px);
  padding: clamp(10px, 2.6vh, 20px) clamp(12px, 3.4vw, 22px) clamp(10px, 2.8vh, 20px);
}

.corpo__testa {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.linea {
  font-size: clamp(9.5px, 2vh, 11px);
  font-weight: 560;
  font-stretch: 115%;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ottone);
  margin-bottom: clamp(2px, 0.6vh, 5px);
}

.nome {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(24px, 7vh, 42px);
  line-height: 1;
  letter-spacing: -0.015em;
}

.nome__riga {
  display: block;
  overflow: hidden;
  padding: 0.04em 0 0.1em;
  margin: -0.04em 0 -0.1em;
}

.nome__testo {
  display: inline-block;
}

.prezzo {
  font-size: clamp(16px, 3.8vh, 22px);
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  padding-bottom: 0.08em;
}

.prezzo__rulli {
  display: inline-flex;
  align-items: flex-start;
}

.cifra {
  display: inline-block;
  height: 1.12em;
  overflow: hidden;
  line-height: 1.12em;
}

.cifra__rullo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cifra__rullo span {
  display: block;
  height: 1.12em;
}

.segno {
  display: inline-block;
  line-height: 1.12em;
  height: 1.12em;
  margin-right: 0.08em;
  color: var(--tenue);
  font-weight: 450;
}

.filo {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--filo), rgba(23, 21, 15, 0.04));
  transform-origin: 0 50%;
}

.nota {
  font-size: clamp(11px, 2.3vh, 13px);
  line-height: 1.45;
  color: var(--tenue);
  max-width: 44ch;
}

.dettagli {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 1.6vw, 10px);
  list-style: none;
}

.dettaglio {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 7px;
  align-items: center;
  min-width: 0;
  padding: clamp(6px, 1.5vh, 10px) clamp(7px, 1.6vw, 11px);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, var(--carta-2) 100%);
  box-shadow:
    0 0 0 1px rgba(23, 21, 15, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 4px 10px -6px rgba(23, 21, 15, 0.18);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 0.3s ease;
}

.dettaglio svg {
  grid-row: span 2;
  width: clamp(14px, 3vh, 18px);
  height: clamp(14px, 3vh, 18px);
  fill: none;
  stroke: var(--ottone);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dettaglio__nome {
  font-size: clamp(9px, 1.9vh, 10.5px);
  color: var(--tenue);
  line-height: 1.2;
}

.dettaglio__valore {
  font-size: clamp(10.5px, 2.3vh, 12.5px);
  font-weight: 560;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (hover: hover) {
  .dettaglio:hover {
    transform: translateY(-2px);
    box-shadow:
      0 0 0 1px rgba(162, 122, 62, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 1),
      0 10px 18px -10px rgba(23, 21, 15, 0.3);
  }
}

.azioni {
  display: flex;
  align-items: center;
  gap: 12px;
}

.borsa {
  flex: none;
}

.borsa__faccia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: clamp(34px, 7vh, 44px);
  padding: 0 clamp(16px, 3.6vw, 22px);
  border-radius: 999px;
  background: linear-gradient(180deg, #2a2720 0%, var(--inchiostro) 100%);
  color: var(--carta);
  font-size: clamp(12px, 2.5vh, 13.5px);
  font-weight: 560;
  font-stretch: 100%;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(23, 21, 15, 0.9),
    0 8px 16px -8px rgba(23, 21, 15, 0.55);
  transition: font-stretch 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4), transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4), background 0.4s ease;
}

.borsa__spunta {
  width: 0;
  height: 14px;
  fill: none;
  stroke: var(--ottone-chiaro);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.borsa.e-premuta .borsa__faccia {
  transform: scale(0.96);
  transition-duration: 0.12s;
}

.borsa.is-fatto .borsa__faccia {
  background: linear-gradient(180deg, #3a3326 0%, #221e16 100%);
}

@media (hover: hover) {
  .borsa:hover .borsa__faccia {
    font-stretch: 112%;
    transform: scale(1.025);
  }

  .borsa:active .borsa__faccia {
    transform: scale(0.96);
    transition-duration: 0.12s;
  }
}

.spedizione {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: clamp(10px, 2.1vh, 11.5px);
  color: var(--tenue);
  line-height: 1.25;
}

.spedizione svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--tenue);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

/* ---------- the photo in flight ---------- */
.volo {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  overflow: hidden;
  visibility: hidden;
  background: #e8e3db;
  will-change: transform;
}

.volo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* ---------- the pointer of the guided tour ---------- */
.puntatore {
  position: absolute;
  z-index: 9;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  margin: -3px 0 0 -5px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.puntatore svg {
  width: 100%;
  height: 100%;
  fill: var(--inchiostro);
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* narrow: the shipping line and the grid subtitle step aside */
@media (max-width: 460px) {
  .nota,
  .spedizione,
  .conta,
  .voce:not(.voce--borsa):not(.is-on) {
    display: none;
  }

  .dettaglio {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .dettaglio svg {
    grid-row: auto;
    margin-bottom: 2px;
  }

  .dettaglio__valore {
    white-space: normal;
    line-height: 1.15;
  }
}

@media (max-height: 470px) {
  .nota,
  .linea {
    display: none;
  }
}
