/* ============================================================
   ONE WISH WILLOW — KINO RELICS · landing page
   Palette: rosso #d30000 · beige #f9dbbd
   ============================================================ */

/* --- Aesthet Nova Black ---------------------------------------
   Metti il file del font in questa stessa cartella con UNO di
   questi nomi:  AesthetNova-Black.woff2  /  .otf  /  .ttf
   Finché il file non c'è, parte un fallback simile (Playfair 900).
--------------------------------------------------------------- */
@font-face {
  font-family: "Aesthet Nova";
  src: url("assets/AesthetNova-Black.woff2") format("woff2"),
       url("assets/AesthetNova-Black.otf")  format("opentype"),
       url("assets/AesthetNova-Black.ttf")  format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red:      #d30000;
  --red-deep: #a40000;
  --beige:    #f9dbbd;
  --beige-lt: #ffeed8;
  --cream:    #fff6ea;
  --gold:     #f6b24b;
  --ink:      #211309;

  --display: "Aesthet Nova", "Playfair Display", Georgia, serif;
  --ui: "Fredoka", "Trebuchet MS", system-ui, sans-serif;

  --shadow-soft: 0 18px 40px -18px rgba(120, 20, 0, .45);
  --shadow-btn:  0 10px 0 -2px var(--red-deep), 0 18px 28px -10px rgba(120,20,0,.5);
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--ui);
  color: var(--ink);
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem) 1.25rem;
  position: relative;
  overflow-x: hidden;
}

/* layered background: warm radial glow + paper grain + sparkles */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--beige-lt) 0%, var(--beige) 55%, #f0cba4 100%);
  z-index: -3;
}
body::after {  /* subtle paper grain */
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .06;
  mix-blend-mode: multiply;
  z-index: -2;
  pointer-events: none;
}

/* scattered decorative stars */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky .star {
  position: absolute;
  color: var(--red);
  opacity: .14;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .08; transform: scale(.85) rotate(0deg); }
  50%      { opacity: .22; transform: scale(1.08) rotate(12deg); }
}

/* ---------------- main card ---------------- */
.stage {
  width: min(470px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.1rem, 2.5vw, 1.7rem);
}

.reveal { opacity: 0; transform: translateY(26px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .18s; }
.d3 { animation-delay: .32s; }
.d4 { animation-delay: .46s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* logo */
.logo { width: clamp(190px, 46vw, 290px); height: auto; display: block;
        filter: drop-shadow(0 6px 14px rgba(120,20,0,.18)); }

/* heading */
.buy-now {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.buy-now span { color: var(--red); }
.buy-now::before, .buy-now::after {
  content: "✦";
  color: var(--red);
  font-size: .42em;
  position: absolute;
  top: -.1em;
  opacity: .9;
  animation: twinkle 3s ease-in-out infinite;
}
.buy-now::before { left: -.85em; }
.buy-now::after  { right: -.85em; animation-delay: 1.2s; }

/* ---------------- carousel ---------------- */
.frame {
  position: relative;
  width: 100%;
  border: 6px solid var(--red);
  border-radius: 26px;
  background: var(--cream);
  padding: 14px;
  box-shadow: var(--shadow-soft), inset 0 0 0 2px rgba(255,255,255,.6);
}
.frame::after { /* ticket-style inner outline */
  content: "";
  position: absolute; inset: 7px;
  border: 1.5px dashed rgba(211,0,0,.35);
  border-radius: 18px;
  pointer-events: none;
}

.viewport {
  position: relative;
  width: 100%;
  height: clamp(300px, 46vh, 460px);
  border-radius: 16px;
  overflow: hidden;
  background: #e9e3da;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .55s ease, transform .9s ease;
  pointer-events: none;
}
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }

/* arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px -4px rgba(120,20,0,.55);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), background .2s;
  z-index: 5;
}
.arrow:hover, .arrow:focus-visible {
  background: var(--red-deep);
  transform: translateY(-50%) scale(1.22);
  outline: none;
}
.arrow:active { transform: translateY(-50%) scale(1.05); }
.arrow.prev { left: 4px; }
.arrow.next { right: 4px; }

/* counter + dots */
.dots {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 14px;
}
.dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: transparent;
  padding: 0; cursor: pointer;
  transition: transform .2s, background .2s;
}
.dot:hover { transform: scale(1.25); }
.dot.active { background: var(--red); }

/* ---------------- buttons ---------------- */
.shop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(.7rem, 2vw, 1rem);
  width: 100%;
}
.btn {
  font-family: var(--ui);
  font-weight: 600;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  letter-spacing: .01em;
  color: var(--cream);
  text-decoration: none;
  background: var(--red);
  border-radius: 16px;
  padding: .85em 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  box-shadow: var(--shadow-btn);
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s, background .2s;
  will-change: transform;
}
.btn:hover, .btn:focus-visible {
  transform: scale(1.08) translateY(-2px);
  background: var(--red-deep);
  box-shadow: 0 12px 0 -2px #7d0000, 0 26px 34px -12px rgba(120,20,0,.6);
  outline: none;
}
.btn:active { transform: scale(1.02); }

.btn-wide {
  grid-column: 1 / -1;
  color: var(--gold);
  background: var(--red);
}
.btn-wide:hover, .btn-wide:focus-visible { color: #ffce82; background: var(--red-deep); }

.btn .ico { font-size: 1.05em; }

footer.note {
  font-size: .82rem;
  color: rgba(33,19,9,.55);
  letter-spacing: .04em;
}

@media (max-width: 380px) {
  .shop { grid-template-columns: 1fr; }
  .arrow { width: 42px; height: 42px; font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .sky .star, .buy-now::before, .buy-now::after { animation: none; }
  .slide { transition: opacity .25s ease; }
}
