/* =========================================================
   CAPODANNO DAL PRETE — stile condiviso
   ========================================================= */
@font-face { font-family: 'Fraktur'; src: url(fonts/unifraktur.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Typewriter'; src: url(fonts/specialelite.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Hand'; src: url(fonts/caveat.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fell'; src: url(fonts/imfell.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Fell'; src: url(fonts/imfell-italic.woff2) format('woff2'); font-style: italic; font-display: swap; }

:root {
  --ink: #0b0a0d;
  --ink-2: #131118;
  --ink-3: #1c1922;
  --bone: #ece3cf;
  --bone-dim: #a99f8c;
  --candle: #e9b44c;
  --candle-hot: #ffd98a;
  --blood: #a3201a;
  --blood-dark: #6d130e;
  --mist: rgba(200, 190, 220, .07);
  --serif: 'Fell', Georgia, 'Times New Roman', serif;
  --fraktur: 'Fraktur', 'Fell', serif;
  --type: 'Typewriter', 'Courier New', monospace;
  --hand: 'Hand', 'Segoe Print', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--candle); }
::selection { background: var(--blood); color: var(--bone); }

/* grana da pellicola su tutto */
body::after {
  content: '';
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .07;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.eyebrow {
  font-family: var(--type);
  font-size: 13px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--candle);
}
.fraktur { font-family: var(--fraktur); font-weight: 400; }

/* ---------- ticker "breaking" ---------- */
.ticker {
  position: relative; z-index: 5;
  background: var(--blood);
  color: #fff3e6;
  font-family: var(--type);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid #000;
}
.ticker__label {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; padding: 0 14px;
  background: #000; color: var(--candle);
}
.ticker__track { display: inline-block; padding: 8px 0 8px 100%; animation: tick 48s linear infinite; }
.ticker__track span { margin-right: 3.5em; }
.ticker__track span::before { content: '✝'; margin-right: 1em; opacity: .7; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- bottoni ---------- */
.btn {
  --b: var(--candle);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 28px;
  border: 1px solid var(--b);
  background: transparent;
  color: var(--b);
  font-family: var(--type);
  font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, box-shadow .25s, transform .15s;
}
.btn:hover { background: var(--b); color: var(--ink); box-shadow: 0 0 34px -6px var(--b); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--candle); color: var(--ink); }
.btn--solid:hover { background: var(--candle-hot); }
.btn--blood { --b: #e2453b; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- nebbia ---------- */
.fog { position: absolute; inset: auto 0 0 0; height: 60%; pointer-events: none; overflow: hidden; }
.fog i {
  position: absolute; bottom: -10%; left: 0;
  width: 300%; height: 100%;
  background:
    radial-gradient(ellipse 18% 40% at 10% 70%, rgba(190,180,210,.16), transparent 70%),
    radial-gradient(ellipse 22% 35% at 35% 80%, rgba(190,180,210,.12), transparent 70%),
    radial-gradient(ellipse 16% 30% at 60% 75%, rgba(190,180,210,.15), transparent 70%),
    radial-gradient(ellipse 25% 45% at 85% 80%, rgba(190,180,210,.12), transparent 70%);
  animation: fog 60s linear infinite;
}
.fog i:nth-child(2) { animation-duration: 95s; animation-direction: reverse; bottom: -25%; opacity: .8; }
@keyframes fog { to { transform: translateX(-66.66%); } }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid #241f29;
  padding: 40px 0 60px;
  color: var(--bone-dim);
  font-size: 15px;
  text-align: center;
}
.foot .fraktur { font-size: 28px; color: var(--bone); display: block; margin-bottom: 6px; }
.foot a { color: var(--bone-dim); }

/* ---------- campi form ---------- */
.field { display: grid; gap: 6px; margin-bottom: 20px; }
.field label, .field legend {
  font-family: var(--type); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
}
.field input[type=text], .field textarea {
  width: 100%;
  padding: 10px 2px;
  border: 0; border-bottom: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  font: 22px/1.3 var(--hand);
  outline: none;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 60px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--blood); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  transform: translate(-50%, 140%);
  background: #000; color: var(--bone);
  border: 1px solid var(--candle);
  padding: 12px 20px;
  font-family: var(--type); font-size: 14px; letter-spacing: .05em;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3), opacity .25s, visibility 0s .35s;
  max-width: calc(100% - 40px);
  opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .35s cubic-bezier(.2,.9,.3,1.3), opacity .25s; }

/* ---------- box pagamento ---------- */
.pay {
  margin-top: 30px;
  padding: 22px 22px 18px;
  border: 1px solid #4a3c22;
  background: linear-gradient(180deg, rgba(233,180,76,.08), rgba(233,180,76,.02));
  text-align: left;
}
.pay__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px dashed #4a3c22; padding-bottom: 10px; margin-bottom: 12px; }
.pay__label { font-family: var(--type); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--candle); }
.pay__amount { font: 400 34px/1 var(--fraktur); color: var(--candle-hot); }
.pay__txt { font-size: 16px; color: #d3c9b4; margin: 0 0 16px; }
.pay__txt em { color: var(--bone); }
.pay__links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pay__btn {
  padding: 9px 16px;
  border: 1px solid var(--candle); color: var(--candle);
  font-family: var(--type); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, color .2s;
}
.pay__btn:hover { background: var(--candle); color: var(--ink); }
.pay__iban { display: grid; gap: 8px; font-size: 15px; }
.pay__iban small { display: block; font-family: var(--type); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); }
.pay__iban code { font-family: var(--type); font-size: 15px; color: var(--bone); word-break: break-all; }
.pay__copy { margin-left: 6px; background: none; border: 1px solid #4a3c22; color: var(--bone-dim); font: 11px var(--type); padding: 2px 8px; cursor: pointer; }
.pay__copy:hover { color: var(--candle); border-color: var(--candle); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; }
}
