:root {
  --carta: #ecebea;        /* the light ground of the page */
  --inchiostro: #0c1114;   /* the ink */
  --cielo: #bdc4d4;        /* the blue-grey of the button */
  --accento: #bdc4d4;      /* the single accent: the bezel triangle, the small seconds, the check */
  --grigio: #8a8f94;
  --linea: rgba(12, 17, 20, .1);
  --quadrante: #636d90;    /* the dial colour, changed by the swatches */
  --pannello: #f6f5f3;
}

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

html, body { height: 100%; }

body {
  background: var(--carta);
  color: var(--inchiostro);
  font-family: "Manrope Variable", "Manrope", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.mono { font-family: "Red Hat Mono Variable", "Red Hat Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .04em; }

.palco { position: relative; width: 100%; height: 100vh; overflow: hidden; }

/* the faint grid of the ground, lines at .03 and .05 */
.griglia {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(12, 17, 20, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 17, 20, .03) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  background-position: center center;
}

.fondo-testo { position: absolute; left: clamp(16px, 5vw, 64px); top: clamp(16px, 6vh, 64px); }
.marchio { font-weight: 500; font-size: clamp(28px, min(7vw, 9vh), 88px); letter-spacing: -.04em; line-height: 1; }
.etichetta { margin-top: 10px; font-family: "Red Hat Mono Variable", monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--grigio); }

.apri { position: absolute; left: clamp(16px, 5vw, 64px); bottom: clamp(16px, 6vh, 64px); }
.apri-faccia {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--cielo); font-size: 14px; font-weight: 500; transition: transform .16s cubic-bezier(.215, .61, .355, 1), background .16s cubic-bezier(.215, .61, .355, 1);
}
.apri:active .apri-faccia { transform: scale(.96); }
@media (hover: hover) { .apri:hover .apri-faccia { background: #aeb7ca; } }

.velo { position: absolute; inset: 0; background: rgba(12, 17, 20, .22); opacity: 0; pointer-events: none; }

/* the panel */
.pannello {
  position: absolute; top: 12px; bottom: 12px; right: 12px;
  width: min(420px, calc(100% - 24px));
  display: flex; flex-direction: column;
  background: var(--pannello);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 60px -24px rgba(12, 17, 20, .35), 0 2px 6px rgba(12, 17, 20, .08);
  padding: clamp(12px, 2.6vh, 22px) clamp(14px, 4vw, 22px);
  overflow: hidden;
}

.testa { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.piccolo { font-size: 10px; color: var(--grigio); }
h1 { margin-top: 4px; font-size: clamp(17px, min(4.6vw, 4.4vh), 22px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.chiudi { font-size: 10px; padding: 6px 0 6px 8px; color: var(--inchiostro); white-space: nowrap; transition: opacity .16s; }
@media (hover: hover) { .chiudi:hover { opacity: .55; } }

/* the watch */
.vetrina {
  position: relative; flex: 1 1 auto; min-height: 0;
  margin: clamp(6px, 1.4vh, 14px) 0;
  container-type: size;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(60% 55% at 50% 52%, #ffffff 0%, rgba(255, 255, 255, 0) 70%), #efeeec;
  cursor: grab;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.vetrina.presa { cursor: grabbing; }
.orologio { position: absolute; inset: 0; margin: auto; height: min(86cqh, 103cqw); aspect-ratio: 200 / 240; }
.cassa { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 14px rgba(12, 17, 20, .22)); }
.ombra {
  position: absolute; left: 0; right: 0; top: calc(50% + min(43cqh, 51.5cqw) - 4.5cqh); margin: 0 auto; width: min(40cqw, 34cqh); height: 8cqh;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(12, 17, 20, .22), rgba(12, 17, 20, 0));
}
.logo-quadrante { font: 600 6.4px "Manrope Variable", sans-serif; letter-spacing: .32em; fill: #f4f3ef; }
.sotto-quadrante { font: 500 2.6px "Red Hat Mono Variable", monospace; letter-spacing: .18em; fill: #f4f3ef; opacity: .7; }
.data { font: 600 7px "Manrope Variable", sans-serif; fill: #1a1f23; }

.trascina {
  position: absolute; left: 0; top: 0; pointer-events: none;
  font-size: 10px; padding: 6px 10px; border-radius: 999px;
  background: var(--inchiostro); color: var(--carta);
  opacity: 0; white-space: nowrap;
}

/* the choices */
.scelte { display: flex; flex-direction: column; gap: clamp(8px, 1.6vh, 14px); }

.colori { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.colore {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; border-radius: 999px; border: 1px solid var(--linea);
  font-size: 12px; font-weight: 500;
  transition: border-color .2s cubic-bezier(.215, .61, .355, 1), background .2s cubic-bezier(.215, .61, .355, 1), transform .16s cubic-bezier(.215, .61, .355, 1);
}
.colore:active { transform: scale(.96); }
@media (hover: hover) { .colore:hover { border-color: rgba(12, 17, 20, .3); } }
.colore[aria-checked="true"] { border-color: var(--inchiostro); background: #fff; }
.tondo { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 0 1px rgba(12, 17, 20, .12); }

.prezzo-riga { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 2; }
.valuta { position: relative; }
.valuta-tasto {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px;
  border-radius: 999px; border: 1px solid var(--linea); font-size: 11px; background: #fff;
  transition: border-color .2s;
}
@media (hover: hover) { .valuta-tasto:hover { border-color: rgba(12, 17, 20, .3); } }
.freccia { display: inline-flex; width: 12px; height: 12px; }
.valuta-tasto svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.valuta-lista {
  visibility: hidden;
  position: absolute; left: 0; bottom: calc(100% + 6px); min-width: 100%;
  list-style: none; background: #fff; border-radius: 12px; overflow: hidden; height: 0;
  box-shadow: 0 14px 30px -12px rgba(12, 17, 20, .3), 0 0 0 1px var(--linea);
  font-size: 11px;
}
.valuta-lista button { display: block; width: 100%; text-align: left; padding: 7px 14px; transition: background .15s; }
.valuta-lista li:first-child button { padding-top: 10px; }
.valuta-lista li:last-child button { padding-bottom: 10px; }
.valuta-lista button[aria-selected="true"] { color: var(--grigio); }
@media (hover: hover) { .valuta-lista button:hover { background: #f1f1ef; } }

.prezzo { font-size: clamp(18px, min(5vw, 4.6vh), 24px); font-weight: 500; letter-spacing: -.02em; display: flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.prezzo .cifra { display: inline-block; height: 1.15em; overflow: hidden; line-height: 1.15; vertical-align: bottom; }
.prezzo .colonna { display: block; }
.prezzo .colonna span { display: block; height: 1.15em; text-align: center; }
.prezzo .segno { display: inline-block; }
.prezzo .codice { font-size: .52em; font-family: "Red Hat Mono Variable", monospace; letter-spacing: .04em; color: var(--grigio); margin-right: .5em; align-self: center; }

.prenota {
  position: relative; height: 48px; border-radius: 999px; width: 100%;
  background: var(--cielo); overflow: hidden;
  transition: transform .16s cubic-bezier(.215, .61, .355, 1);
}
.prenota:active { transform: scale(.98); }
.prenota-dentro { position: absolute; inset: 0; }
.prenota-faccia {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.prenota-faccia.fatto { color: var(--carta); opacity: 0; }
.prenota-faccia svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accento); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prenota-faccia svg path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.prenota.fatta { background: var(--inchiostro); }
@media (hover: hover) { .prenota:not(.fatta):hover { background: #aeb7ca; } }
.prenota { transition: transform .16s cubic-bezier(.215, .61, .355, 1), background .35s cubic-bezier(.215, .61, .355, 1); }

.nota { font-size: 9px; color: var(--grigio); text-align: center; line-height: 1.4; }

@media (max-height: 460px) {
  .nota { display: none; }
  .piccolo { display: none; }
}
.colore.premuto, .valuta-tasto.premuto, .valuta-lista button.premuto { transform: scale(.96); }
.prenota.premuto { transform: scale(.98); }
.valuta-tasto, .valuta-lista button { transition: transform .16s cubic-bezier(.215, .61, .355, 1), border-color .2s, background .15s; }
