/*
 * Sito pubblico v2 - pagine funzione (modello e disegni).
 * Si carica dopo site-v2.css e usa le sue variabili. Prefisso: s2f-.
 */

/* ---------- Pagina ---------- */
.s2f-note { max-width: 36ch; }

.s2f-steps .s2-step {
  background: var(--s2-surface); border-radius: var(--s2-r-md); padding: clamp(20px, 3vw, 28px); gap: 10px;
}
.s2f-step__label { font-size: 15px; font-weight: 700; color: var(--s2-link); line-height: 1.3; }
.s2f-steps .s2-step__title { font-size: clamp(19px, 17px + 0.5vw, 22px); }

.s2f-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);
}
.s2f-box--tint { background: var(--s2-tint-2); border-color: var(--s2-tint); }
.s2f-box .s2-text { max-width: none; }
.s2f-pair--single { max-width: 760px; }
@media (min-width: 900px) {
  .s2f-pair.s2f-pair--single { grid-template-columns: minmax(0, 1fr); }
}

.s2f-faq__list { display: flex; flex-direction: column; max-width: 900px; }
.s2f-faq__list .s2-qa:last-child { border-bottom: 1px solid var(--s2-line); }

.s2f-related { text-decoration: none; color: inherit; }
.s2f-related:hover { border-color: var(--s2-blue); color: inherit; }
.s2f-related .s2-card__title { color: var(--s2-text); }

/* ---------- Disegni di funzione ---------- */
.s2f-card { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.s2f-card .s2-rule { margin: 0; }
.s2f-card .s2-line { gap: 12px; }
.s2f-card .s2-line > span:last-child { text-align: right; }
.s2f-card .s2-badge--block { margin-top: 0; }
.s2f-title { font-size: 18px; line-height: 1.35; }
.s2f-strong { font-weight: 700; }
.s2f-normal { font-weight: 400; }
.s2f-small { font-size: 14px; }
.s2f-blue { color: var(--s2-link-strong); }
.s2f-danger { color: var(--s2-danger); }
.s2f-quote {
  border: 1.5px solid var(--s2-blue-line); border-radius: var(--s2-r-sm); padding: 12px; line-height: 1.5;
}
.s2f-btn {
  display: block; background: var(--s2-blue); color: var(--s2-white); border-radius: var(--s2-r-sm);
  padding: 12px; text-align: center; font-weight: 700;
}
.s2f-btn--ghost { background: transparent; border: 1.5px solid var(--s2-blue); color: var(--s2-link); padding: 10px 14px; }
.s2f-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.s2f-actions .s2f-btn { display: inline-block; padding: 9px 14px; font-size: 15px; }
.s2f-actions .s2f-btn--ghost { padding: 7.5px 14px; }

.s2f-tabs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; font-weight: 700; }
.s2f-tab { padding: 6px 10px; border-radius: 6px; color: var(--s2-muted); }
.s2f-tab--on { background: var(--s2-tint); color: var(--s2-link-strong); }

.s2f-meter { height: 8px; border-radius: 4px; background: var(--s2-tint); overflow: hidden; }
.s2f-meter__bar { display: block; width: 64%; height: 100%; background: var(--s2-blue); border-radius: 4px; }

/* L'invito finale non va a capo accanto al titolo */
.s2-cta-final .s2-btn { white-space: nowrap; flex: none; }

/* ---------- Schermata di prodotto ---------- */
.s2-shot { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.s2-shot__frame {
  border: 1px solid var(--s2-line-strong); border-radius: var(--s2-r-lg); background: var(--s2-surface);
  box-shadow: var(--s2-shadow-md); overflow: hidden; min-width: 0;
}
.s2-shot__img { display: block; width: 100%; height: auto; }
.s2-shot__caption { font-size: 14px; color: var(--s2-muted); }

/* Su telefono la schermata intera sarebbe illeggibile: si mostra un ritaglio ingrandito
   (alto ~3:4), senza scorrimento. Il punto di partenza e' --s2-shot-focus. */
@media (max-width: 640px) {
  .s2-shot__frame { aspect-ratio: 4 / 3; }
  .s2-shot__img { width: 260%; max-width: none; margin-left: calc(-2.6 * var(--s2-shot-focus)); }
}
