/* El Ciappo - stili comuni a tutte le pagine (il resto è dentro ogni pagina) */
input, button, textarea { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { max-width: 100%; }
[hidden] { display: none !important; }
#iscriviti, #posto { scroll-margin-top: 16px; }

/* bottoni delle risposte nel modulo */
.opt { transition: background-color .15s, color .15s, border-color .15s; }
.opt[aria-pressed="true"] { background: #121212 !important; color: #ffffff !important; border-color: #121212 !important; }

/* campi più comodi da telefono: 16px evita lo zoom automatico di iPhone */
input[type="text"], input[type="tel"], input[type="email"] { font-size: 16px !important; width: 100%; }

/* ---- schermata di caricamento ---- */
html.ec-loading, html.ec-loading body { overflow: hidden; }
.ec-loader {
  position: fixed; inset: 0; z-index: 9999; background: #fdf6ec;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s ease;
}
.ec-loader--via { opacity: 0; pointer-events: none; }
.ec-loader__logo { position: relative; width: min(240px, 56vw); aspect-ratio: 636 / 448; transform: scale(.965); }
.ec-loader__logo--via { transform: scale(1); transition: transform 1.5s cubic-bezier(.2,.7,.2,1); }
.ec-loader__logo img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.ec-loader__logo img.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.ec-loader__logo img.finale { transition: opacity .22s ease-in-out; }

/* ---- ritocchi da smartphone ---- */
@media (max-width: 640px) {
  .m-cta { padding-bottom: env(safe-area-inset-bottom); }
}

/* ---- errore del modulo ---- */
.ec-errore { margin: 12px 0 0; font-weight: 700; font-size: 14px; color: #c0261b; }

/* ---- banner dei cookie ---- */
.ck { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin: 0 auto; background: #ffffff; border: 2.5px solid #121212; border-radius: 20px; box-shadow: 6px 6px 0 #121212; padding: 18px; display: grid; gap: 12px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: #121212; }
.ck p { margin: 0; font-size: 15px; line-height: 1.5; }
.ck p a { color: #b0560d; font-weight: 700; }
.ck-b { display: flex; gap: 10px; }
.ck-b button { flex: 1; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 2px solid #121212; background: #ffffff; color: #121212; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.ck-b button:hover { background: #fdf0e5; }

/* ---- Gino mentre la pagina carica (js/gino.js) ---- */
.ec-gino { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; transition: opacity .35s ease; }
.ec-gino--chiaro { background: #F6F1EB; }
.ec-gino--scuro { background: #1A1414; }
.ec-gino img { width: min(416px, 80vw); height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
.ec-gino--via { opacity: 0; pointer-events: none; }
html.ec-gino-attivo { overflow: hidden; }
