/*
 * Edizione Halloween, quarta versione (27/10/2026): vedi `inc/halloween.php`.
 *
 * Barra nera, cartellini neri col prezzo color zucca, festone, ragnatele e
 * zucche col lumino come nell'area riservata di Fymera. Niente sopra le
 * fotografie delle tende; tutto e' decorazione: nessun clic, niente lettori
 * di schermo.
 */

.st-hw {
  --hw-notte: #15100d;
  --hw-avorio: #f3ece3;
  --hw-avorio-tenue: rgba(243, 236, 227, .72);
  --hw-zucca: #f08a45;
  --hw-ragnatela: rgba(21, 16, 13, .26);
  --hw-filo: rgba(21, 16, 13, .45);
}

/* ------------------------------------------------------- la barra in alto */
.st-hw .st-topbar { background: var(--hw-notte); border-bottom-color: var(--hw-notte); }
.st-hw .st-topbar__item,
.st-hw .st-topbar__item span { color: var(--hw-avorio); }
.st-hw .st-topbar__item svg,
.st-hw .st-topbar__item .st-icon,
.st-hw .st-topbar__aiuto svg { color: var(--hw-zucca); }
.st-hw .st-topbar__aiuto { color: var(--hw-avorio-tenue); }
.st-hw .st-topbar__tel,
.st-hw .st-topbar__tel:hover { color: #fff; }
.st-hw .st-topbar__tel:focus-visible { outline-color: var(--hw-zucca); }
@media (min-width: 781px) {
  /* Una voce in meno per far posto alla scritta. */
  .st-hw .st-topbar__item--secondary { display: none; }
  .st-hw .st-topbar__inner::before {
    content: "Edizione Halloween · fino al 2 novembre";
    padding-right: 28px;
    border-right: 1px solid rgba(243, 236, 227, .18);
    font: 600 .6875rem/1 var(--st-font-body);
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--hw-zucca);
  }
}

/* -------------------------------------------- festone e ragnatele in alto */
.st-hw-festa {
  position: relative;
  z-index: 40;            /* sotto la testata (80), sopra la pagina */
  height: 0;
  pointer-events: none;
  animation: st-hw-arriva .7s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes st-hw-arriva { from { opacity: 0; transform: translateY(-8px); } }
.st-hw-festone { position: absolute; top: 0; left: 0; right: 0; height: 40px; overflow: hidden; }
.st-hw-festone svg { display: block; overflow: visible; }
.st-hw-bandierina {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: st-hw-oscilla 5.2s ease-in-out infinite;
}
@keyframes st-hw-oscilla {
  0%, 100% { rotate: -3deg; }
  50% { rotate: 3.5deg; }
}
.st-hw-ragnatela {
  position: absolute;
  top: 0;
  width: 46px;
  height: 22px;
  color: var(--hw-ragnatela);
}
.st-hw-ragnatela--sx { left: 0; }
.st-hw-ragnatela--dx { right: 0; transform: scaleX(-1); }
@media (min-width: 640px) {
  .st-hw-ragnatela { width: 84px; height: 34px; }
}

/* ------------------------------------------------ i cartellini della vetrina */
.st-hw .n3-cartellino { background: var(--hw-notte); color: var(--hw-avorio-tenue); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.st-hw .n3-cartellino__nome { color: var(--hw-avorio); }
.st-hw .n3-cartellino__tipo,
.st-hw .n3-cartellino__per { color: var(--hw-avorio-tenue); }
.st-hw .n3-cartellino__prezzo,
.st-hw .n3-cartellino__prezzo * { color: var(--hw-zucca); }
.st-hw .n3-cartellino__vai { background: rgba(243, 236, 227, .12); color: var(--hw-avorio); }
.st-hw .n3-cartellino:focus-visible { outline-color: var(--hw-zucca); }

/* ------------------------------------------------- la riga sopra il titolo */
.st-hw-occhiello {
  margin: 0 0 10px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--st-copper-text);
}
@media (max-width: 399px) {
  .st-hw-occhiello__fino { display: block; }
  .st-hw-occhiello__fino > [aria-hidden] { display: none; }
}

/* ------------------------------------------------------------- le zucche */
.st-hw-zucche {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  pointer-events: none;
}
.st-hw-zucche svg { display: block; height: auto; overflow: visible; }
.st-hw-lumino { animation: st-hw-fiamma 3.1s step-end infinite; }
.st-hw-alone { animation: st-hw-respiro 3.1s ease-in-out infinite; }
@keyframes st-hw-fiamma {
  0%, 100% { opacity: 1; } 9% { opacity: .86; } 12% { opacity: 1; }
  41% { opacity: .92; } 44% { opacity: .8; } 47% { opacity: 1; } 73% { opacity: .9; }
}
@keyframes st-hw-respiro { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }

/* Home: ai due capi della riga dei punti, fuori dalle frecce. */
.st-hw .n3-vetrina__comandi { position: relative; }
.st-hw .n3-vetrina__comandi .st-hw-zucche--a { left: 0; bottom: 0; }
.st-hw .n3-vetrina__comandi .st-hw-zucche--b { right: 0; bottom: 0; }
/* Categorie: in basso a destra, sotto la foto. */
.st-hw .n4-testa { position: relative; }
.st-hw .n4-testa > .st-hw-zucche { right: 16px; bottom: 6px; }
/* Piede: appoggiate sul bordo, a sinistra (a destra c'e' WhatsApp). */
.st-hw .st-footer { position: relative; }
.st-hw .st-footer > .st-hw-zucche { left: 16px; top: 0; transform: translateY(-86%); }
@media (max-width: 899px) {
  .st-hw .n4-testa > .st-hw-zucche { display: none; }
}
@media (max-width: 439px) {
  .st-hw .n3-vetrina__comandi .st-hw-zucche--b svg + svg { display: none; }
}
@media (max-width: 359px) {
  .st-hw .n3-vetrina__comandi .st-hw-zucche--a { display: none; }
}
@media (min-width: 900px) {
  /* Accanto alle frecce, lontano dai pulsanti di WhatsApp e dell'aiuto. */
  .st-hw .n3-vetrina__comandi .st-hw-zucche--a { left: auto; right: calc(50% + 132px); }
  .st-hw .n3-vetrina__comandi .st-hw-zucche--b { right: auto; left: calc(50% + 132px); }
  .st-hw .n4-testa > .st-hw-zucche { right: max(var(--st-container-margine, 24px), calc((100% - var(--st-container, 1336px)) / 2)); }
  .st-hw .st-footer > .st-hw-zucche { left: max(24px, calc((100% - var(--st-container, 1336px)) / 2)); }
}

/* =====================================================================
 * LA SECONDA MANO (`body.st-hw-piu`): il piede di notte, con luna,
 * fantasmino e stelle; «Buon Halloween»; il ragno nella ragnatela.
 * ================================================================== */
.st-hw-piu ::selection { background: rgba(240, 138, 69, .32); }

.st-hw-piu .st-footer {
  background: radial-gradient(90% 120% at 82% 0%, #2b1d15 0%, #17110e 48%, #120d0b 100%);
  color: var(--hw-avorio);
  border-top: 0;
}
.st-hw-piu .st-footer > .st-container,
.st-hw-piu .st-footer > .st-footer__nl,
.st-hw-piu .st-footer > .st-footer__bottom { position: relative; z-index: 1; }
.st-hw-piu .st-footer :is(.st-footer__nl, .st-footer__bottom, .st-footer__legal, .st-footer__firma, .st-footer__col, .st-footer__help) { border-color: rgba(243, 236, 227, .12); }
.st-hw-piu .st-footer__nl,
.st-hw-piu .st-footer__bottom { background: transparent; }
.st-hw-piu .st-footer__bottom { background: rgba(0, 0, 0, .22); }
.st-hw-piu .st-nl__titolo { color: var(--hw-avorio); }
.st-hw-piu .st-nl__sotto,
.st-hw-piu .st-nl__consenso,
.st-hw-piu .st-nl__consenso * { color: rgba(243, 236, 227, .72); }
.st-hw-piu .st-nl__consenso a { color: var(--hw-zucca); }
.st-hw-piu .st-nl input[type="email"],
.st-hw-piu .st-nl__campo input {
  background: rgba(243, 236, 227, .06);
  border-color: rgba(243, 236, 227, .24);
  color: var(--hw-avorio);
}
.st-hw-piu .st-nl input::placeholder { color: rgba(243, 236, 227, .5); }
.st-hw-piu .st-footer__desc,
.st-hw-piu .st-footer__brand p { color: rgba(243, 236, 227, .7); }
.st-hw-piu .st-footer__title,
.st-hw-piu .st-footer__col h3,
.st-hw-piu .st-footer__col summary { color: var(--hw-avorio); }
.st-hw-piu .st-footer__col a,
.st-hw-piu .st-footer .st-footer__hours,
.st-hw-piu .st-footer__contacts,
.st-hw-piu .st-footer__contacts a,
.st-hw-piu .st-footer a[href^="tel:"],
.st-hw-piu .st-footer a[href^="mailto:"] { color: rgba(243, 236, 227, .78); }
.st-hw-piu .st-footer__col a:hover,
.st-hw-piu .st-footer__contacts a:hover { color: var(--hw-zucca); }
.st-hw-piu .st-footer .st-icon { color: var(--hw-zucca); }
.st-hw-piu .st-footer__social a { color: var(--hw-avorio); border-color: rgba(243, 236, 227, .24); background: transparent; }
/* Il riquadro dei recapiti c'e' solo sul telefono (`footer.css`). */
@media (max-width: 720px) {
  .st-hw-piu .st-footer__help { background: rgba(243, 236, 227, .05); }
}
.st-hw-piu .st-footer__legal,
.st-hw-piu .st-footer__legal a,
.st-hw-piu .st-footer__legal p,
.st-hw-piu .st-footer__legal span,
.st-hw-piu .st-footer .st-consent-revoke,
.st-hw-piu .st-footer__firma,
.st-hw-piu .st-footer__firma a { color: rgba(243, 236, 227, .64); }
.st-hw-piu .st-footer__legal-mid { color: rgba(243, 236, 227, .8); }
.st-hw-piu .st-footer__legal a:hover,
.st-hw-piu .st-footer__firma a:hover { color: var(--hw-zucca); }
.st-hw-piu .st-footer__brand .st-hw-buon {
  margin: 14px 0 0;
  font: 600 .75rem/1.4 var(--st-font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hw-zucca);
}

/* La scena: dietro il contenuto del piede, ritagliata ai suoi bordi (le
   zucche appoggiate sul bordo stanno fuori, nel piede). */
.st-hw-notte { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.st-hw-luna { position: absolute; top: 30px; right: max(28px, calc((100% - var(--st-container, 1336px)) / 2 + 8px)); width: 92px; height: 92px; }
.st-hw-fantasma {
  position: absolute;
  top: 94px;
  right: max(118px, calc((100% - var(--st-container, 1336px)) / 2 + 100px));
  width: 26px;
  animation: st-hw-fluttua 6.2s ease-in-out infinite;
}
.st-hw-stella { position: absolute; width: 8px; height: 8px; animation: st-hw-scintilla 4.2s ease-in-out infinite; }
@keyframes st-hw-fluttua {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}
@keyframes st-hw-scintilla {
  0%, 100% { opacity: .35; scale: .8; }
  50% { opacity: 1; scale: 1.1; }
}
@media (max-width: 899px) {
  .st-hw-luna { top: 22px; right: 16px; width: 60px; height: 60px; }
  .st-hw-fantasma { display: none; }
}

/* Il ragno che scende dalla ragnatela di sinistra, da computer. */
.st-hw-ragno {
  position: absolute;
  top: 2px;
  left: 26px;
  width: 18px;
  display: none;
  flex-direction: column;
  align-items: center;
  animation: st-hw-ragno 6.5s ease-in-out infinite;
}
.st-hw-ragno i { display: block; width: 1px; height: 64px; background: rgba(21, 16, 13, .4); }
.st-hw-ragno svg { width: 18px; height: 18px; margin-top: -2px; }
@keyframes st-hw-ragno {
  0%, 100% { transform: translateY(-14px); }
  50% { transform: translateY(8px); }
}
@media (min-width: 1024px) {
  .st-hw-ragno { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .st-hw-fantasma, .st-hw-stella, .st-hw-ragno { animation: none; }
  .st-hw-festa, .st-hw-bandierina { animation: none; }
  .st-hw-lumino, .st-hw-alone { animation-duration: 9s; }
}
@media print {
  .st-hw-festa, .st-hw-zucche, .st-hw-notte { display: none; }
}
