/*
 * Sito pubblico v2 - pagine con moduli e pagine di testo (contatti, ingresso al Salone,
 * Portale Editori, Neurons, stampa, pagine legali). Si carica dopo site-v2.css
 * e usa le sue variabili. Prefisso: s2s-.
 */

[hidden] { display: none !important; }

/* ---------- Pagine con modulo ---------- */
.s2s-top { align-items: start; }
.s2s-top .s2-hero__text { padding-top: 12px; }
.s2s-card { max-width: 560px; justify-self: end; }
.s2s-card > div { display: flex; flex-direction: column; gap: 22px; }

.s2s-contacts {
  display: flex; flex-direction: column; gap: 14px; font-size: 18px; line-height: 1.5;
  border-top: 1px solid var(--s2-line); padding-top: 24px; max-width: 540px;
}
.s2s-contacts dt { font-weight: 700; }
.s2s-contacts dd { margin: 0; color: var(--s2-muted); overflow-wrap: anywhere; }

.s2s-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.s2s-fieldset legend { padding: 0; margin-bottom: 8px; }
.s2s-pair { display: grid; gap: 20px; }
@media (min-width: 700px) {
  .s2s-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.s2s-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.s2s-choice { position: relative; display: inline-flex; }
.s2s-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.s2s-choice span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 8px 16px;
  border: 1.5px solid var(--s2-line-strong); border-radius: var(--s2-r-sm); background: var(--s2-surface);
  font-weight: 700; font-size: 16px; line-height: 1.3;
}
.s2s-choice input:checked + span { border-color: var(--s2-blue); background: var(--s2-tint); color: var(--s2-link-strong); }
.s2s-choice input:focus-visible + span { outline: 3px solid var(--s2-hl); outline-offset: 2px; border-color: var(--s2-blue); }

.s2s-alert {
  background: var(--s2-danger-bg); border: 1px solid var(--s2-danger-border); color: var(--s2-danger-text); border-radius: var(--s2-r-sm);
  padding: 12px 16px; font-size: 16px; line-height: 1.45;
}
.s2s-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.s2s-result { display: flex; flex-direction: column; gap: 12px; padding-block: 12px; }
.s2s-result:focus { outline: 0; }

/* Giorni: striscia che scorre dentro il proprio contenitore */
.s2s-card .s2-days { scroll-snap-type: x proximity; }
.s2s-card .s2-day { scroll-snap-align: start; min-height: 76px; gap: 0; cursor: pointer; }
.s2s-day__wd { font-size: 13px; font-weight: 500; }
.s2s-day__num { font-size: 22px; font-weight: 800; line-height: 1.2; }
.s2s-day__mo { font-size: 13px; font-weight: 500; }
.s2s-card .s2-slot { cursor: pointer; }
.s2s-card .s2-day:focus-visible, .s2s-card .s2-slot:focus-visible { outline: 3px solid var(--s2-hl); outline-offset: 2px; }

/* Passi della richiesta d'ingresso */
.s2s-steps { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; max-width: 540px; }
.s2s-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; line-height: 1.45; }
.s2s-steps li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.s2s-steps .s2-step__num { flex: none; width: 30px; height: 30px; font-size: 16px; }

/* ---------- Pagine informative (Portale Editori, Neurons) ---------- */
.s2s-steps3 .s2-step { background: var(--s2-surface); border-radius: var(--s2-r-md); padding: clamp(20px, 3vw, 28px); gap: 10px; }
.s2s-step__label { font-size: 15px; font-weight: 700; color: var(--s2-link); line-height: 1.3; }
.s2s-steps3 .s2-step__title { font-size: clamp(19px, 17px + 0.5vw, 22px); }
.s2s-box {
  display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--s2-line);
  border-radius: var(--s2-r-lg); padding: clamp(22px, 4vw, 36px); max-width: 760px;
}
.s2s-box .s2-text { max-width: none; }
.s2s-faq { display: flex; flex-direction: column; max-width: 900px; }
.s2s-faq .s2-qa:last-child { border-bottom: 1px solid var(--s2-line); }

.s2s-fragcard { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.s2s-fragcard .s2-rule { margin: 0; }
.s2s-fragcard .s2-line { gap: 12px; }
.s2s-fragcard .s2-line > span:last-child { text-align: right; }
.s2s-fragcard .s2-badge--block { margin-top: 0; }
.s2s-fragtitle { font-size: 18px; line-height: 1.35; }

/* ---------- Stampa ---------- */
.s2s-press { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.s2s-press__item { gap: 10px; padding: 22px 24px; }
.s2s-press__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 15px; }
@media (min-width: 900px) {
  .s2s-press { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Pagine legali ---------- */
.s2s-legal-hero .s2-lead { max-width: 70ch; }
.s2s-legal { display: grid; gap: 32px; align-items: start; }
.s2s-legal > * { min-width: 0; }
.s2s-legal__toc { background: var(--s2-bg); border-radius: var(--s2-r-md); padding: 18px 20px; }
.s2s-legal__toc-title { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--s2-link); margin-bottom: 10px; }
.s2s-legal__toc ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.s2s-legal__toc a { display: block; padding: 8px 0; font-size: 16px; line-height: 1.35; text-decoration: none; }
.s2s-legal__toc a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .s2s-legal { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; }
  .s2s-legal__toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
}

.s2s-legal__body { max-width: 70ch; font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.s2s-legal__body h2 {
  font-size: clamp(24px, 20px + 0.8vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  margin: 2.2em 0 0.6em; scroll-margin-top: 24px;
}
.s2s-legal__body h2:first-child { margin-top: 0; }
.s2s-legal__body h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 1.6em 0 0.5em; }
.s2s-legal__body h4 { font-size: 17px; font-weight: 700; margin: 1.3em 0 0.4em; }
.s2s-legal__body p { margin: 0 0 1em; }
.s2s-legal__body ul, .s2s-legal__body ol { margin: 0 0 1em; padding-left: 1.4em; }
.s2s-legal__body ul { list-style: disc; }
.s2s-legal__body ol { list-style: decimal; }
.s2s-legal__body li { margin-bottom: 0.45em; padding-left: 0.2em; }
.s2s-legal__body strong { color: var(--s2-ink); }
.s2s-legal__body .highlight-box {
  background: var(--s2-tint-2); border: 1px solid var(--s2-tint); border-left: 4px solid var(--s2-blue);
  border-radius: var(--s2-r-sm); padding: 16px 20px; margin: 0 0 1.2em;
}
.s2s-legal__body .highlight-box p { margin: 0; }
.s2s-legal__body code {
  font-family: var(--s2-mono); font-size: 0.88em; background: var(--s2-panel);
  border-radius: 4px; padding: 1px 6px;
}
.s2s-legal__body table {
  display: block; width: 100%; max-width: 100%; overflow-x: auto; margin: 0 0 1.4em;
  border-collapse: collapse; font-size: 15px; line-height: 1.5;
}
.s2s-legal__body th, .s2s-legal__body td {
  padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--s2-line);
}
.s2s-legal__body th { background: var(--s2-bg); font-weight: 700; white-space: nowrap; }
.s2s-legal__body td { min-width: 120px; }
.s2s-legal__body .cookie-badge {
  display: inline-block; border-radius: 6px; padding: 2px 10px; font-size: 14px; font-weight: 700;
}
.s2s-legal__body .cookie-badge-necessary { background: #d4edda; color: #155724; }
.s2s-legal__body .cookie-badge-analytics { background: #fff3cd; color: #6b4e00; }
.s2s-legal__body .cookie-badge-functional { background: #cce5ff; color: #003a7a; }
.s2s-legal__body .cookie-badge-marketing { background: #f8d7da; color: #721c24; }
.s2s-legal__body .cookie-badge-thirdparty { background: #e2e3e5; color: #383d41; }
