/* Piè di pagina a rotoli */
:root {
  --pagina: #ece7dc;
  --piede: #171612;
  --vassoio: #1f1e19;
  --carta: #f3efe6;
  --tenue: #8f8a7e;
  --linea: rgba(243, 239, 230, 0.1);
  --accento: #ff6a1f;
  --cartone: #c49e6c;
  --ombra: rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html,
body {
  margin: 0;
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  color: var(--carta);
  background: var(--pagina);
  -webkit-font-smoothing: antialiased;
}
.fine-pagina {
  flex: 0 0 clamp(8px, 2.6vh, 26px);
}

.piede {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2.2vh, 22px);
  padding: clamp(14px, min(4vw, 4.4vh), 44px) clamp(14px, 4vw, 52px) clamp(10px, 2.4vh, 24px);
  background: var(--piede);
  border-radius: clamp(16px, 3vw, 30px) clamp(16px, 3vw, 30px) 0 0;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04) inset, 0 -18px 40px -24px rgba(40, 30, 10, 0.35);
}

/* the top: brand, links, newsletter */
.piede__cima {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: clamp(10px, 3vw, 48px);
  align-items: start;
}
.occhiello {
  margin: 0 0 clamp(4px, 1vh, 10px);
  font-size: clamp(10px, min(1vw, 1.6vh), 12px);
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tenue);
}
.titolo {
  margin: 0;
  font-size: clamp(24px, min(5.4vw, 8vh), 76px);
  font-weight: 680;
  font-stretch: 118%;
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.colonne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 2vw, 28px);
}
.colonna__testa {
  margin: 0 0 clamp(4px, 1vh, 10px);
  font-size: clamp(10px, min(1vw, 1.6vh), 12px);
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tenue);
}
.colonna ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(1px, 0.5vh, 6px);
}

/* the links: on hover a strip of tape is laid behind the word, with its torn ends */
.voce {
  position: relative;
  display: inline-block;
  padding: 0.08em 0.42em;
  margin: 0 -0.42em;
  color: var(--carta);
  text-decoration: none;
  font-size: clamp(13px, min(1.4vw, 2.3vh), 17px);
  font-weight: 480;
  font-stretch: 100%;
  transition: color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), font-stretch 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.voce__testo { position: relative; }
.voce__nastro {
  position: absolute;
  inset: 0.06em 0 0.02em;
  background: var(--accento);
  clip-path: polygon(0 8%, 4% 0, 2% 22%, 5% 40%, 1.5% 62%, 4.5% 82%, 1% 100%, 96% 100%, 99% 86%, 95.5% 64%, 99% 44%, 96% 22%, 100% 6%, 97% 0);
  transform: rotate(-1.6deg) scaleX(0);
  transform-origin: 0 50%;
  opacity: 0.96;
  transition: transform 0.42s cubic-bezier(0.34, 1.45, 0.6, 1);
}
.voce__nastro::after {
  /* the paper sheen of the strip */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.08));
}
.voce:focus-visible { outline: none; color: var(--piede); }
.voce:focus-visible .voce__nastro { transform: rotate(-1.6deg) scaleX(1); }
.voce:active .voce__nastro { transform: rotate(-1.6deg) scaleX(1) scaleY(0.88); transition-duration: 0.12s; }
@media (hover: hover) {
  .voce:hover { color: var(--piede); font-stretch: 108%; }
  .voce:hover .voce__nastro { transform: rotate(-1.6deg) scaleX(1); }
}

/* the newsletter */
.lettera__testa {
  display: block;
  margin-bottom: clamp(6px, 1.4vh, 14px);
  font-size: clamp(12px, min(1.3vw, 2.1vh), 16px);
  line-height: 1.3;
  color: var(--tenue);
}
.lettera__campo {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  background: rgba(243, 239, 230, 0.05);
  box-shadow: 0 0 0 1px var(--linea) inset, 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.3s;
}
.lettera__campo:focus-within { box-shadow: 0 0 0 1px rgba(255, 106, 31, 0.6) inset, 0 0 0 4px rgba(255, 106, 31, 0.12); }
.lettera input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--carta);
  font: inherit;
  font-size: clamp(12px, min(1.3vw, 2.1vh), 15px);
  padding: 0;
}
.lettera input::placeholder { color: rgba(243, 239, 230, 0.32); }
.iscriviti {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}
.iscriviti__faccia {
  display: block;
  padding: clamp(7px, 1.3vh, 11px) clamp(12px, 1.6vw, 18px);
  border-radius: 999px;
  background: var(--carta);
  color: var(--piede);
  font-size: clamp(12px, min(1.2vw, 2vh), 14px);
  font-weight: 600;
  font-stretch: 100%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 14px -6px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s cubic-bezier(0.3, 1.8, 0.5, 1), font-stretch 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), background 0.3s;
}
.iscriviti:active .iscriviti__faccia { transform: scale(0.94); transition-duration: 0.12s; }
.iscriviti.fatto .iscriviti__faccia { background: var(--accento); }
@media (hover: hover) {
  .iscriviti:hover .iscriviti__faccia { transform: scale(1.04); font-stretch: 112%; }
}

/* the tray where the rolls live */
.vassoio {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: clamp(12px, 2vw, 22px);
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(255, 106, 31, 0.06), transparent 60%),
    var(--vassoio);
  box-shadow: 0 0 0 1px var(--linea) inset, 0 14px 22px -16px rgba(0, 0, 0, 0.6) inset;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.vassoio.tiene { cursor: grabbing; }
.vassoio__nota {
  position: absolute;
  top: clamp(12px, 2.6vh, 22px);
  left: clamp(10px, 1.8vw, 20px);
  margin: 0;
  font-size: clamp(10px, min(1vw, 1.7vh), 12px);
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.26);
  white-space: nowrap;
  pointer-events: none;
}
.vassoio__ombre,
.vassoio__palle {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ombra {
  position: absolute;
  left: 0;
  top: 0;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  will-change: transform, opacity;
}

/* one ball: the outer element follows the body (JS), the shape squashes, the turn holds the rotating drawing */
.palla {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.palla__forma {
  position: absolute;
  inset: 0;
}
.palla__alone {
  /* the soft shadow that follows the body; it never turns */
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  box-shadow: 0 12px 22px -8px var(--ombra), 0 3px 6px -2px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.palla.presa .palla__alone {
  box-shadow: 0 26px 40px -10px var(--ombra), 0 8px 14px -4px rgba(0, 0, 0, 0.3);
}
.palla__giro,
.palla__luce {
  position: absolute;
  inset: 0;
}
.palla svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.palla__etichetta {
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 640;
  font-stretch: 112%;
  letter-spacing: 1.6px;
}
.palla--disco .palla__icona {
  transition: color 0.3s;
}
@media (hover: hover) {
  .palla--disco:hover .palla__icona { color: var(--accento); }
}

/* a small pill in the corner of the tray: it throws a roll (the autopilot presses it too) */
.lancia {
  position: absolute;
  z-index: 2;
  top: clamp(6px, 1.6vh, 14px);
  right: clamp(6px, 1.6vh, 14px);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.lancia__faccia {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: clamp(5px, 1vh, 8px) clamp(10px, 1.2vw, 14px);
  border-radius: 999px;
  background: rgba(243, 239, 230, 0.07);
  box-shadow: 0 0 0 1px var(--linea) inset;
  color: rgba(243, 239, 230, 0.7);
  font-size: clamp(10px, min(1vw, 1.7vh), 12px);
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.5s cubic-bezier(0.3, 1.8, 0.5, 1), background 0.3s, color 0.3s;
}
.lancia svg { width: 1.1em; height: 1.1em; transition: transform 0.5s cubic-bezier(0.3, 1.8, 0.5, 1); }
.lancia:active .lancia__faccia { transform: scale(0.92); transition-duration: 0.12s; }
.lancia:focus-visible { outline: none; }
.lancia:focus-visible .lancia__faccia { box-shadow: 0 0 0 1px var(--accento) inset; }
@media (hover: hover) {
  .lancia:hover .lancia__faccia { background: rgba(243, 239, 230, 0.12); color: var(--carta); }
  .lancia:hover svg { transform: translateY(-2px) rotate(-12deg); }
}

/* the legal line */
.legale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: clamp(11px, min(1.1vw, 1.9vh), 13px);
  color: var(--tenue);
}
.legale p { margin: 0; }
.legale__voci { display: flex; gap: clamp(12px, 2vw, 24px); }
.voce--piccola { font-size: inherit; color: var(--tenue); }

/* narrow screens: the links go in one line, the newsletter under the title */
@media (max-width: 720px) {
  .piede__cima {
    grid-template-columns: 1fr;
    gap: clamp(6px, 1.6vh, 14px);
  }
  .colonne { grid-template-columns: 1fr; order: 3; }
  .colonna__testa { display: none; }
  .colonna ul { display: flex; flex-wrap: wrap; gap: 2px 16px; }
  .colonne { display: flex; flex-wrap: wrap; gap: 2px 16px; }
  .voce-extra { display: none; }
  .lettera__testa { display: none; }
  .occhiello { display: none; }
}
@media (max-height: 520px) and (min-width: 721px) {
  .lettera__testa { display: none; }
  .voce-extra { display: none; }
}

/* reduced motion: the rolls are already resting, nothing moves */
@media (prefers-reduced-motion: reduce) {
  .voce__nastro,
  .iscriviti__faccia,
  .palla__alone { transition: opacity 0.3s; }
  .vassoio { cursor: default; }
}
.ferma .lancia { display: none; }
