/* =========================================================
   HOME
   ========================================================= */

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 30%, rgba(0,0,0,.7) 100%);
}
.hero .fog { z-index: -1; }
.hero__content { padding: 70px 0 200px; text-align: center; pointer-events: none; }
.hero__content > * { pointer-events: auto; }
.hero__title {
  margin: 14px 0 8px;
  line-height: .86;
  font-weight: 400;
  text-shadow: 0 0 40px rgba(233,180,76,.25), 0 4px 0 #000;
}
.hero__title .fraktur {
  display: block;
  font-size: clamp(64px, 15vw, 190px);
  color: var(--bone);
  animation: breathe 6s ease-in-out infinite;
}
.hero__dal {
  display: inline-block;
  margin-top: .15em;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(34px, 6.5vw, 82px);
  color: var(--candle);
  letter-spacing: .02em;
}
@keyframes breathe {
  0%, 100% { text-shadow: 0 0 40px rgba(233,180,76,.22), 0 4px 0 #000; }
  50%      { text-shadow: 0 0 70px rgba(233,180,76,.42), 0 4px 0 #000; }
}
.hero__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .3em .9em;
  margin: 22px 0 30px;
  font-family: var(--type); font-size: clamp(13px, 1.8vw, 17px);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--bone);
}
.hero__meta .sep { color: var(--blood); }

.countdown {
  display: inline-grid; grid-template-columns: repeat(4, auto); gap: 0;
  border: 1px solid rgba(236,227,207,.25);
  background: rgba(11,10,13,.55);
  backdrop-filter: blur(3px);
  margin-bottom: 34px;
}
.countdown div { padding: 12px clamp(12px, 3vw, 26px); border-left: 1px solid rgba(236,227,207,.15); }
.countdown div:first-child { border-left: 0; }
.countdown b {
  display: block;
  font: 400 clamp(28px, 5vw, 46px)/1 var(--type);
  color: var(--candle-hot);
  font-variant-numeric: tabular-nums;
}
.countdown small { font-family: var(--type); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--bone-dim); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* scena animata */
.flick { animation: flicker 3.2s infinite; }
.f2 { animation-duration: 4.1s; animation-delay: -1.3s; }
.f3 { animation-duration: 5s; animation-delay: -2.1s; }
@keyframes flicker {
  0%, 100% { opacity: 1; } 8% { opacity: .82; } 11% { opacity: .95; } 40% { opacity: .9; }
  43% { opacity: .65; } 46% { opacity: 1; } 70% { opacity: .92; } 72% { opacity: .78; }
}
.crypt { animation: c3 9s infinite; }
@keyframes c3 {
  0%, 86%, 100% { fill: #3a0d0b; }
  88% { fill: #ff3b2a; } 89% { fill: #3a0d0b; } 91% { fill: #ff3b2a; } 94% { fill: #3a0d0b; }
}
.stars circle { animation: twinkle 4s ease-in-out infinite; }
.stars circle:nth-child(3n) { animation-delay: -1.5s; }
.stars circle:nth-child(3n+1) { animation-delay: -2.7s; }
@keyframes twinkle { 50% { opacity: .25; } }

.bat { animation: fly 22s linear infinite; }
.b1 { transform: translate(-60px, 120px); }
.b2 { animation-duration: 30s; animation-delay: -12s; }
.b3 { animation-duration: 26s; animation-delay: -5s; }
@keyframes fly {
  0%   { transform: translate(-60px, 160px) scale(.9); }
  25%  { transform: translate(300px, 90px) scale(1, .6); }
  50%  { transform: translate(640px, 140px) scale(1); }
  75%  { transform: translate(940px, 70px) scale(1.1, .6); }
  100% { transform: translate(1280px, 120px) scale(1); }
}

/* ---------- intro ---------- */
.intro {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  padding: 110px 0 90px;
  align-items: start;
}
.intro h2, .leak h2, .enroll h2 {
  margin: 10px 0 22px;
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
}
.intro h2 em { color: var(--candle); }
.intro p { color: #d3c9b4; }
.hand { font-family: var(--hand); font-size: 1.3em; color: var(--candle-hot); line-height: 1.2; }

.info { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #2a2430; }
.info__item { padding: 24px 22px; border: 1px solid #2a2430; margin: -1px 0 0 -1px; background: linear-gradient(180deg, #141118, #0e0c11); }
.info dt { font-family: var(--type); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--blood); margin-bottom: 8px; }
.info dd { margin: 0; font-size: 16px; line-height: 1.45; color: var(--bone-dim); }
.info dd strong { color: var(--bone); font-weight: 400; font-size: 21px; }

/* ---------- leak / files ---------- */
.leak {
  position: relative;
  padding: 110px 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(163,32,26,.16), transparent 70%),
    linear-gradient(180deg, var(--ink), #110d12 50%, var(--ink));
  border-block: 1px solid #221c26;
}
.leak__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.leak h2 .fraktur { font-size: 1.25em; color: var(--candle); }
.leak__text p { color: #d3c9b4; }
.leak__warn {
  border-left: 3px solid var(--blood);
  padding: 4px 0 4px 16px;
  font-family: var(--type); font-size: 14px; line-height: 1.6;
  color: var(--bone-dim) !important;
  margin: 26px 0 30px;
}

.leak__stack { position: relative; display: block; height: 470px; perspective: 1200px; }
.paper {
  position: absolute; left: 50%; top: 50%;
  width: 300px; height: 400px;
  margin: -200px 0 0 -150px;
  padding: 28px 26px;
  background: #ede5d2;
  background-image: radial-gradient(circle at 80% 20%, rgba(120,90,40,.12), transparent 40%), linear-gradient(180deg, #f1ead9, #e1d6bd);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.1);
  color: #222;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.paper__head { font-family: var(--type); font-size: 11px; letter-spacing: .06em; margin-bottom: 18px; border-bottom: 1px solid #999; padding-bottom: 8px; }
.paper i, .paper b { display: block; height: 9px; margin: 13px 0; background: #b7ad97; border-radius: 1px; }
.paper b { background: #111; height: 12px; }
.paper__bates { position: absolute; right: 18px; bottom: 14px; font-family: var(--type); font-size: 10px; color: #6b6355; }
.paper__stamp {
  position: absolute; left: 40px; top: 170px;
  padding: 4px 12px;
  border: 3px solid var(--blood); color: var(--blood);
  font-family: var(--type); font-size: 24px; letter-spacing: .12em; text-transform: uppercase;
  transform: rotate(-14deg); opacity: .82; mix-blend-mode: multiply;
}
.p1 { transform: rotate(-9deg) translate(-70px, 10px); }
.p2 { transform: rotate(5deg) translate(50px, -20px); }
.p3 { transform: rotate(-1deg) translate(-5px, 25px); }
.leak__stack:hover .p1 { transform: rotate(-14deg) translate(-130px, 0); }
.leak__stack:hover .p2 { transform: rotate(10deg) translate(115px, -30px); }
.leak__stack:hover .p3 { transform: rotate(0) translate(-5px, 10px) scale(1.03); }
.leak__stack::after {
  content: '🔒 accesso riservato';
  position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  font-family: var(--type); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone-dim);
}

/* ---------- iscrizione ---------- */
.enroll { padding: 110px 0 120px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.enroll__intro p { color: #d3c9b4; }
.enroll__intro { position: sticky; top: 40px; }

.sheet {
  position: relative;
  padding: 38px clamp(22px, 4vw, 48px) 34px;
  background: #ede5d2;
  background-image:
    radial-gradient(circle at 92% 8%, rgba(110,80,30,.18) 0 34px, transparent 35px),
    radial-gradient(circle at 92% 8%, transparent 37px, rgba(110,80,30,.12) 38px 40px, transparent 41px),
    linear-gradient(180deg, #f2ebdb, #e2d7bf);
  color: #1d1a16;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
  transform: rotate(-.6deg);
}
.sheet::before {
  content: ''; position: absolute; inset: 10px; border: 1px solid rgba(60,40,20,.25); pointer-events: none;
}
.sheet__top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--type); font-size: 11px; letter-spacing: .14em; color: #6b6355; }
.sheet__title { font: 400 italic clamp(24px, 3vw, 32px)/1.2 var(--serif); margin: 14px 0 28px; padding-bottom: 14px; border-bottom: 2px double #6b6355; }
.sheet__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sheet .field label, .sheet .field legend { color: #4d463c; }
.sheet .field input[type=text] { color: #1b2a5c; }
.sheet .field input::placeholder { color: #9c927f; font-size: 18px; }

.choice { border: 0; padding: 0; margin: 4px 0 20px; }
.choice__opts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 8px 0 6px; }
.choice__note { margin: 6px 0 0; font-family: var(--hand); font-size: 21px; line-height: 1.2; color: var(--blood); transform: rotate(-1deg); }

.tick { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 18px; line-height: 1.45; }
.tick input { position: absolute; opacity: 0; pointer-events: none; }
.tick__box {
  flex: none; position: relative;
  width: 22px; height: 22px; margin-top: 2px;
  border: 1.5px solid #3d372f;
}
.tick input[type=radio] + .tick__box { border-radius: 50%; }
.tick input:checked + .tick__box::after {
  content: '✗';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -56%) rotate(-8deg);
  font-family: var(--hand); font-size: 30px; line-height: 1; color: #1b2a5c;
}
.tick input:focus-visible + .tick__box { outline: 2px solid var(--blood); outline-offset: 2px; }

.oath { margin: 26px 0 10px; padding: 18px; border: 1px dashed #8d826f; background: rgba(255,255,255,.25); }
.oath .tick { font-size: 16px; }
.hp { position: absolute; left: -9999px; }
.sheet__privacy { margin: 10px 0 0; font-family: var(--type); font-size: 12px; color: #6b6355; }
.sheet__privacy a { color: #8a1c14; }

.form-error { min-height: 1.4em; margin: 10px 0 0; color: var(--blood); font-family: var(--type); font-size: 14px; }
.sheet__sign { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.sheet .btn--blood { --b: #8a1c14; }
.sheet .btn--blood:hover { color: #fff; }
.sheet__seal {
  display: grid; place-items: center;
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c8352b, #7a140e 70%);
  color: #f6c6bd; font-size: 28px;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,.4), 0 3px 6px rgba(0,0,0,.3);
  transform: rotate(12deg);
}
.sheet.sending { animation: wobble .4s ease-in-out infinite alternate; }
@keyframes wobble { to { transform: rotate(.4deg); } }

.result {
  grid-column: 2;
  position: relative;
  padding: 44px clamp(22px, 4vw, 48px);
  border: 1px solid #3a3040;
  background: linear-gradient(180deg, #17131b, #0f0d12);
  animation: rise .6s cubic-bezier(.2,.8,.2,1);
}
.result h3 { font: 400 clamp(26px, 3.4vw, 38px)/1.15 var(--serif); margin: 6px 0 14px; }
.result p { color: #d3c9b4; }
.result__stamp {
  position: absolute; right: 26px; top: 22px;
  padding: 4px 14px;
  border: 3px solid var(--candle); color: var(--candle);
  font-family: var(--type); font-size: 22px; letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(9deg);
  animation: stamp .5s .2s cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes stamp { from { opacity: 0; transform: rotate(9deg) scale(2.4); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .intro, .leak__grid, .enroll { grid-template-columns: 1fr; gap: 40px; }
  .enroll__intro { position: static; }
  .result { grid-column: 1; }
  .leak__stack { height: 430px; order: -1; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .info { grid-template-columns: 1fr; }
  .sheet__row { grid-template-columns: 1fr; gap: 0; }
  .paper { transform-origin: center; width: 240px; height: 330px; margin: -165px 0 0 -120px; }
  .leak__stack { height: 380px; }
  .p1 { transform: rotate(-9deg) translate(-40px, 10px); }
  .p2 { transform: rotate(5deg) translate(30px, -20px); }
  .hero__content { padding-bottom: 150px; }
  .sheet__seal { width: 54px; height: 54px; font-size: 22px; }
}
