/* ==========================================================================
   massimoburattin.it — pagina "Società" (/societa/)
   Usa i token e i componenti di style.css; qui solo ciò che è specifico.
   ========================================================================== */

/* ---------- Apertura ---------- */
.sc-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.sc-hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sc-hero-glow {
  position: absolute; right: -6%; top: 6%; width: 62%; height: 84%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(15,107,115,0.32), rgba(9,18,20,0));
}
.sc-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 24px; align-items: end; }
.sc-hero-copy { display: flex; flex-direction: column; gap: 26px; padding-top: 96px; padding-bottom: 80px; }
.sc-hero h1 { font-size: clamp(58px, 9vw, 112px); line-height: 0.86; letter-spacing: -0.01em; }
.sc-hero h1 em { font-style: normal; color: var(--accent-text); }
.sc-hero h1 small { display: block; margin-top: 12px; font-size: 0.62em; line-height: 1; color: var(--text-2); }
.sc-hero-lead { max-width: 520px; font-size: 18px; color: var(--text-2); }
.sc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.sc-hero-figure { position: relative; align-self: stretch; min-height: 640px; margin: 0 -40px 0 0; }
.sc-hero-figure img { position: absolute; right: 4%; bottom: 0; height: 100%; max-height: 760px; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; }
.sc-note { position: absolute; right: 6%; bottom: 14px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Riquadri di dati (stessa pastiglia dell'etichetta in home) */
.chip {
  position: absolute; min-width: 150px; padding: 12px 16px; border-radius: 14px;
  background: rgba(9,18,20,0.78); border: 1px solid rgba(111,211,211,0.32);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.chip-l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.chip-v { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; margin-top: 4px; color: var(--text); }
.chip-s { font-family: var(--font-mono); font-size: 11.5px; margin-top: 4px; color: var(--accent-text); }
.pin {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--accent-text); box-shadow: 0 0 0 6px rgba(111,211,211,0.18), 0 0 24px rgba(111,211,211,0.6);
}
.pin-line { position: absolute; background: rgba(111,211,211,0.45); }

@media (max-width: 960px) {
  .sc-hero-inner { grid-template-columns: 1fr; }
  .sc-hero-copy { padding-top: 64px; padding-bottom: 8px; }
  .sc-hero-figure { min-height: 560px; margin: 0; }
  .sc-hero-figure img { right: 50%; transform: translateX(50%); }
}
@media (max-width: 600px) {
  .sc-hero-figure { min-height: 460px; }
  .sc-hero-figure .chip.is-secondary, .sc-hero-figure .is-secondary-pin { display: none; }
  .sc-hero-actions .btn { width: 100%; }
}

/* ---------- Titoli di sezione con etichetta ---------- */
.sc-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.sc-head .h2 { max-width: 20ch; }
.audience .kicker { font-size: 13px; }
.audience .card-link { margin-top: 6px; }
.sc-aside { margin-top: 26px; color: var(--text-2); }
.sc-aside a { color: var(--accent-text); font-weight: 600; }
.sc-aside a:hover { text-decoration: underline; }

/* ---------- Quattro passi ---------- */
.sc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.sc-steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--ghost); }
.sc-steps .n { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); }
.sc-steps h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.sc-steps p { color: var(--text-2); font-size: 16px; }
@media (max-width: 960px) { .sc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sc-steps { grid-template-columns: 1fr; } }

/* ---------- Cosa ricevete ---------- */
.sc-report { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.sc-report-copy { display: flex; flex-direction: column; gap: 16px; }
.sc-report-copy h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.sc-report-copy .checklist { margin-bottom: 16px; }
.sc-report-copy .muted { font-size: 15.5px; }
.sc-cards { position: relative; }
.sc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
.sc-card + .sc-card { position: relative; margin: -36px 0 0 10%; background: #132529; border-color: var(--ghost); box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.sc-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sc-card-head b { font-weight: 500; color: var(--accent-text); }
.sc-card-title { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; text-transform: uppercase; }
.sc-group { margin: 18px 0 2px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--muted); }
.bar { display: grid; grid-template-columns: minmax(96px, 160px) minmax(40px, 1fr) auto; align-items: center; gap: 12px; margin: 8px 0; }
.bar-l { font-size: 13.5px; color: var(--text-2); }
.bar-t { height: 8px; border-radius: 4px; background: var(--photo-fill); }
.bar-t i { display: block; height: 8px; border-radius: 4px; background: var(--accent-text); }
.bar-t i.mid { background: #2f8f98; }
.bar-t i.low { background: #e0a030; }
.bar-v { font-family: var(--font-mono); font-size: 12.5px; text-align: right; white-space: nowrap; }
.bar-v span { color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--accent-text); }
.legend .mid::before { background: #2f8f98; }
.legend .low::before { background: #e0a030; }
.legend .prev::before { background: var(--ghost); }
.delta { margin: 16px 0 22px; }
.delta-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 15px; margin-bottom: 10px; }
.delta-head span:last-child { font-family: var(--font-mono); font-size: 13px; }
.delta-head em { font-style: normal; color: var(--accent-text); }
.delta-track { position: relative; height: 12px; }
.delta-track::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--border); }
.delta-track .seg { position: absolute; top: 4px; height: 4px; border-radius: 2px; background: var(--accent-text); }
.delta-track .dot { position: absolute; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--accent-text); }
.delta-track .dot.prev { background: var(--ghost); }
.delta-ends { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.sc-card-foot { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .sc-report { grid-template-columns: 1fr; } }

/* ---------- Strumenti ---------- */
.sc-lab { position: relative; overflow: hidden; background: #070f11; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sc-lab::before { content: ""; position: absolute; left: -10%; top: -10%; width: 60%; height: 50%; background: radial-gradient(closest-side, rgba(15,107,115,0.22), rgba(7,15,17,0)); pointer-events: none; }
.page .sc-lab .section { padding-top: 120px; padding-bottom: var(--section-y); }
.sc-lab-head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 72px; }
.sc-lab-head h2 { font-size: clamp(52px, 8vw, 104px); line-height: 0.86; letter-spacing: -0.01em; }
.sc-lab-head h2 em { font-style: normal; color: var(--accent-text); }
.sc-lab-head > p { flex: 0 1 400px; font-size: 18px; color: var(--text-2); }
.tool { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px 56px; align-items: center; }
.tool + .tool { margin-top: 40px; }
.tool.is-flip { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.tool.is-flip .tool-fig { order: -1; }
.tool-idx { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.tool-idx b { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--accent-text); }
.tool-idx span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tool h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: 0.92; text-transform: uppercase; margin-bottom: 14px; }
.tool-copy > p { max-width: 440px; color: var(--text-2); }
.tool .facts { margin-top: 26px; }
.tool .facts dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.tool .facts > div { padding: 13px 0; }
.tool-fig { position: relative; margin: 0 -60px 0 0; }
.tool.is-flip .tool-fig { margin: 0 0 0 -60px; }
.tool-fig img { width: 100%; height: auto; }
.tool-fig.is-narrow { display: flex; justify-content: center; }
.tool-fig.is-narrow img { width: 78%; max-width: 440px; }
.sc-lab .sc-note { position: static; display: block; margin-top: 24px; }
@media (max-width: 900px) {
  .tool, .tool.is-flip { grid-template-columns: 1fr; }
  .tool .tool-fig, .tool.is-flip .tool-fig { order: -1; margin: 0 calc(var(--gutter) * -1); }
  .tool-fig .chip { display: none; }
}

/* ---------- Programmazione ---------- */
.sc-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 720px; margin-top: 40px; }
.sc-modes > div { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--ghost); }
.sc-modes h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.sc-modes p { color: var(--text-2); font-size: 16px; }
.sc-intro { max-width: 620px; color: var(--text-2); }
.sc-strong { margin-top: 34px; font-weight: 600; }
@media (max-width: 600px) { .sc-modes { grid-template-columns: 1fr; } }

/* ---------- Formule ---------- */
.feature .card-title { font-size: 34px; }
.feature-top { min-height: 0; }
.sc-formule-note { margin-top: 26px; color: var(--muted); }

/* ---------- Return to play ---------- */
.sc-rtp { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 24px 48px; align-items: start; padding: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.sc-rtp h2 { font-size: clamp(40px, 5vw, 56px); margin-top: 14px; }
.sc-rtp > p { font-size: 18px; color: var(--text-2); }
@media (max-width: 900px) { .sc-rtp { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- FAQ ---------- */
.sc-faq { max-width: 860px; margin: 0 auto; }
.sc-faq details { border-top: 1px solid var(--border); padding: 20px 0; }
.sc-faq details:last-child { border-bottom: 1px solid var(--border); }
.sc-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 18px; }
.sc-faq summary::-webkit-details-marker { display: none; }
.sc-faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent-text); }
.sc-faq details[open] summary::after { content: "–"; }
.sc-faq details p { margin-top: 12px; color: var(--text-2); }

/* Spaziature: la prima sezione dopo l'apertura riprende il ritmo verticale */
.page .sc-hero + .section { padding-top: var(--section-y); }
.page > .section + .sc-lab { margin-top: 0; }
