/* ==========================================================================
   PIZZZLAND — custom layer (2026-08-21)
   Contiene: overflow lock mobile, utility a11y, banner Bizionist Consent,
   sezione richiesta eventi. Il resto dello styling vive in index.html.
   ========================================================================== */

/* === Overflow lock mobile (regola Bizionist: mai scroll laterale) === */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100vw;
}
body { touch-action: pan-y; }

/* === Altezza header (compensazione sub-page sotto header fixed) === */
:root { --header-h: 70px; }
@media (max-width: 1024px) { :root { --header-h: 62px; } }

/* === Utility a11y === */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Bizionist Consent — banner ===
   Garante 2024: "Accetta tutti" e "Rifiuta tutti" IDENTICI per peso visivo
   (stesso sfondo, stesso colore, stessa dimensione). X = rifiuto totale. */
[data-cookie-banner] {
  position: fixed;
  top: 7.5rem; bottom: auto; left: 16px; right: 16px;
  max-width: 620px; margin: 0 auto;
  background: var(--verde-dark, #152e2a);
  color: var(--bianco, #faf8f5);
  border: 1px solid rgba(250, 248, 245, 0.12);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 100000;
  font-size: 15px;
  line-height: 1.55;
}
[data-cookie-banner] h3 {
  margin: 0 0 6px 0;
  font-size: 17px;
  font-weight: 700;
}
[data-cookie-banner] p { margin: 0 0 16px 0; }
[data-cookie-banner] a {
  color: var(--bianco, #faf8f5);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cb-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 50px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.cb-btn:hover { transform: translateY(-1px); }
/* Accetta e Rifiuta: STESSO stile, di proposito (niente dark pattern) */
.cb-btn-accept,
.cb-btn-reject {
  background: var(--rosso, #ce1b23);
  color: #ffffff;
}
.cb-btn-customize {
  background: transparent;
  color: var(--bianco, #faf8f5);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-left: 6px;
  padding-right: 6px;
}
.cb-close {
  position: absolute;
  top: 10px; right: 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px;
  color: var(--bianco, #faf8f5);
  opacity: 0.7;
}
.cb-close:hover { opacity: 1; }

/* === Bizionist Consent — modal preferenze === */
[data-cookie-modal] {
  position: fixed; inset: 0;
  background: rgba(13, 27, 25, 0.65);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cbm-box {
  background: var(--bianco, #faf8f5);
  color: var(--nero, #0d1b19);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}
.cbm-box h2 { margin: 0 0 4px 0; font-size: 20px; }
.cbm-sub { margin: 0 0 18px 0; font-size: 14px; opacity: 0.75; }
.cbm-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(13, 27, 25, 0.1);
  cursor: pointer;
}
.cbm-row input { margin-top: 4px; width: 16px; height: 16px; }
.cbm-row em { font-style: normal; font-size: 12px; opacity: 0.6; }
.cbm-row small { display: block; margin-top: 3px; font-size: 13px; opacity: 0.8; line-height: 1.5; }
.cbm-actions { display: flex; gap: 10px; margin-top: 20px; }
.cb-btn-save { flex: 1; background: var(--verde, #1f423c); color: #ffffff; }
.cb-btn-cancel { background: transparent; color: var(--nero, #0d1b19); border: 1px solid rgba(13, 27, 25, 0.35); }

@media (max-width: 480px) {
  [data-cookie-banner] { top: 7.5rem; left: 8px; right: 8px; padding: 18px; }
  .cb-actions { flex-direction: column; align-items: stretch; }
  .cb-btn { width: 100%; text-align: center; }
  .cb-btn-customize { order: 3; }
}

/* === Sezione richiesta feste & eventi (form → /api/lead) === */
.richiesta-eventi {
  background: var(--verde);
  color: var(--bianco);
  padding: clamp(72px, 10vw, 140px) 0;
}
.richiesta-eventi .section-title { color: var(--bianco); }
.richiesta-eventi-sub {
  font-family: var(--font-body, 'Satoshi', sans-serif);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  opacity: 0.9;
  max-width: 560px;
  margin-top: 16px;
}
.eventi-form {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 760px;
  font-family: var(--font-body, 'Satoshi', sans-serif);
}
@media (min-width: 640px) {
  .eventi-form { grid-template-columns: 1fr 1fr; }
}
.eventi-campo--full { grid-column: 1 / -1; }
.eventi-campo { display: flex; flex-direction: column; gap: 8px; }
.eventi-campo label,
.eventi-hp label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.85);
}
.eventi-form input:not([type="checkbox"]),
.eventi-form select,
.eventi-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--nero);
  background: var(--bianco);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s ease;
}
.eventi-form textarea { resize: vertical; min-height: 120px; }
.eventi-form ::placeholder { color: rgba(13, 27, 25, 0.45); }
.eventi-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231f423c' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.eventi-form input:focus-visible,
.eventi-form select:focus-visible,
.eventi-form textarea:focus-visible {
  outline: 3px solid var(--giallo);
  outline-offset: 2px;
  border-color: var(--giallo);
}
/* Honeypot: fuori schermo, mai display:none (i bot piu' furbi lo saltano) */
.eventi-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eventi-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.eventi-privacy input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--rosso);
}
.eventi-privacy input:focus-visible { outline: 3px solid var(--giallo); outline-offset: 2px; }
.eventi-privacy a { color: var(--giallo); text-decoration: underline; }
.eventi-form .cta-rosso { margin-top: 8px; border: none; cursor: pointer; }
.eventi-form .cta-rosso:hover { background: #e02030; color: #ffffff; }
.form-status {
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 500;
  margin: 4px 0 0;
}
.form-status--errore {
  background: var(--rosso);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
}
.form-success {
  margin-top: 40px;
  max-width: 560px;
  background: var(--bianco);
  color: var(--verde);
  border-radius: 16px;
  padding: 32px;
}
.form-success h3 {
  font-family: var(--font-display, 'GenoBold', sans-serif);
  font-size: 28px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.form-success p { margin: 0; font-size: 16px; line-height: 1.6; font-family: var(--font-body, 'Satoshi', sans-serif); }



