/* Slide generate: canvas fisso 1920x1080, scalato dal contenitore .stage */
.s {
  --red: #d12031;
  --red-dark: #c00000;
  --gray: #c8c8c8;
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: #fff;
  color: #111;
  font-family: Arial, "Liberation Sans", Helvetica, sans-serif;
}
.s *, .s *::before, .s *::after { box-sizing: border-box; }
.s img { display: block; }
.s h1, .s p, .s figure { margin: 0; }

/* cornice comune */
.s-logo { position: absolute; left: 36px; bottom: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.s-logo img { height: 54px; }
.s-logo span { background: var(--red); color: #fff; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 4px; letter-spacing: .5px; }
.s-corner, .s-corner2 { position: absolute; width: 170px; height: 170px; border-radius: 42px; }
.s-corner2 { right: -18px; bottom: -18px; background: #e4e4e4; }
.s-corner { right: -52px; bottom: -52px; background: var(--red); }

/* barra rossa in alto con ombra grigia */
.s-topbar { position: absolute; left: 0; top: 34px; width: 1000px; height: 54px; background: var(--red); border-radius: 0 27px 27px 0; }
.s-topbar::after { content: ""; position: absolute; left: 0; top: 64px; width: 940px; height: 14px; background: #dcdcdc; border-radius: 0 7px 7px 0; }
.s-sixty { position: absolute; left: 1016px; top: 8px; display: flex; align-items: center; gap: 24px; }
.s-sixty img { height: 118px; }
.s-sixty span { color: var(--red); font-weight: 700; font-size: 36px; line-height: 1.08; }

/* scheda membro / ospite */
.s-card .s-photo { position: absolute; left: 250px; top: 190px; width: 640px; height: 720px; display: flex; align-items: center; justify-content: center; }
.s-card .s-photo img { max-width: 100%; max-height: 100%; box-shadow: 0 14px 40px rgba(0, 0, 0, .2); border-radius: 6px; }
.s-initials { width: 440px; height: 440px; border-radius: 50%; background: var(--red); color: #fff; font-size: 180px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.s-card-text { position: absolute; left: 960px; right: 110px; top: 170px; bottom: 170px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.s-name { color: var(--red-dark); font-weight: 700; font-size: 78px; line-height: 1.1; }
.s-rule { width: 80%; height: 5px; background: var(--red); margin: 20px 0 26px; flex: none; }
.s-prof { font-style: italic; font-size: 64px; line-height: 1.2; }
.s-sub { margin-top: 44px; font-size: 40px; color: #555; }
.s-kicker { font-size: 40px; text-transform: uppercase; letter-spacing: 6px; color: #777; margin-bottom: 14px; }

/* slide titolo di sezione */
.s-title-block { position: absolute; left: 0; top: 150px; bottom: 190px; max-width: 1560px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 44px; }
.s-title.has-side .s-title-block { max-width: 1160px; }
.s-title-bar { background: var(--red); border-radius: 0 100px 100px 0; padding: 36px 110px 40px 130px; box-shadow: 0 18px 0 -4px #dcdcdc; }
.s-title h1 { color: #fff; font-size: 108px; font-weight: 800; line-height: 1.04; }
.s-title-sub { padding-left: 130px; font-size: 54px; line-height: 1.25; color: #444; }
.s-title-sixty { position: absolute; right: 170px; top: 50%; height: 400px; margin-top: -250px; }
.s-people { position: absolute; right: 90px; top: 150px; bottom: 190px; width: 640px; display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.s-people figure { display: flex; align-items: center; gap: 30px; }
.s-people figcaption { display: flex; flex-direction: column; font-size: 34px; color: #444; }
.s-people figcaption b { color: var(--red-dark); font-size: 42px; }

.s-ring { flex: none; width: 300px; height: 300px; border-radius: 50%; border: 12px solid var(--red); overflow: hidden; background: #f1f1f1; display: flex; align-items: center; justify-content: center; }
.s-ring.big { width: 520px; height: 520px; border-width: 16px; }
.s-ring img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.s-ring span { font-size: 130px; font-weight: 700; color: var(--red); }
.s-ring.big span { font-size: 200px; }

/* intestazione per report, premi, tabelle */
.s-headbar { position: absolute; left: 0; top: 60px; display: flex; flex-direction: column; align-items: flex-start; }
.s-headbar h1 { background: var(--red); color: #fff; font-size: 74px; font-weight: 800; padding: 18px 100px 22px 110px; border-radius: 0 64px 64px 0; }
.s-headbar span { margin: 22px 0 0 110px; font-size: 44px; color: #555; }

/* numeri */
.s-kpis { position: absolute; left: 110px; right: 110px; top: 330px; bottom: 190px; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 36px; }
.s-kpi { border: 3px solid #eee; border-radius: 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, .07); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.s-kpi b { color: var(--red); font-size: 104px; line-height: 1; }
.s-kpi span { margin-top: 16px; font-size: 38px; color: #555; text-transform: uppercase; letter-spacing: 2px; }
.s-kpis.single { grid-template-columns: 1fr; }
.s-kpis.single .s-kpi { border: 0; box-shadow: none; }
.s-kpis.single .s-kpi b { font-size: 260px; }
.s-kpis.single .s-kpi span { font-size: 56px; }

/* membro in evidenza */
.s-spot-body { position: absolute; left: 180px; right: 160px; top: 290px; bottom: 170px; display: flex; align-items: center; gap: 90px; }
.s-spot-text { display: flex; flex-direction: column; gap: 10px; }
.s-spot-text .s-name { font-size: 86px; }
.s-caption { margin-top: 30px; font-size: 52px; color: #333; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; }
.s-value { font-size: 200px; font-weight: 800; color: var(--red); line-height: 1; }

/* tabella */
.s-table table { position: absolute; left: 110px; right: 110px; top: 320px; width: calc(100% - 220px); border-collapse: collapse; font-size: 42px; }
.s-table th { text-align: left; color: var(--red); border-bottom: 5px solid var(--red); padding: 12px 24px; font-size: 36px; text-transform: uppercase; letter-spacing: 2px; }
.s-table td { padding: 14px 24px; border-bottom: 2px solid #e6e6e6; }
.s-table tr:nth-child(even) td { background: #f8f8f8; }

/* copertina */
.s-cover-logo { position: absolute; top: 110px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 40px; }
.s-cover-logo img { height: 230px; }
.s-cover-logo div { width: 520px; color: #808080; font-size: 56px; line-height: 1.02; letter-spacing: 12px; text-transform: uppercase; }
.s-cover-bar { position: absolute; top: 470px; left: 90px; right: 90px; height: 124px; background: var(--red); border-radius: 30px; color: #fff; font-size: 80px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 18px 22px 0 #dcdcdc; }
.s-cover-year { position: absolute; top: 640px; width: 100%; text-align: center; font-size: 210px; font-weight: 800; color: var(--gray); line-height: 1; }
.s-cover-date { position: absolute; top: 860px; width: 100%; text-align: center; font-size: 54px; font-weight: 700; color: #333; }
.s-cover-sub { position: absolute; top: 940px; width: 100%; text-align: center; font-size: 38px; color: #666; }

/* slide multimediali (foto/video caricati) */
.s-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* team di gestione */
.s-team-grid { position: absolute; left: 110px; right: 110px; top: 240px; bottom: 160px; display: grid; grid-template-columns: repeat(3, 1fr);
  align-content: center; justify-items: center; gap: 34px 40px; }
.s-team.n1 .s-team-grid { grid-template-columns: 1fr; }
.s-team.n2 .s-team-grid, .s-team.n4 .s-team-grid { grid-template-columns: repeat(2, 1fr); }
.s-team figure { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.s-team figcaption { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.s-team figcaption b { color: var(--red-dark); font-size: 44px; line-height: 1.1; }
.s-pill { background: var(--red); color: #fff; font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 6px 20px; border-radius: 999px; }
.s-team.n1 .s-ring { width: 440px; height: 440px; }
.s-team.n4 .s-ring, .s-team.n5 .s-ring, .s-team.n6 .s-ring { width: 210px; height: 210px; border-width: 10px; }
.s-team.n4 figure, .s-team.n5 figure, .s-team.n6 figure { gap: 10px; }
.s-team.n4 figcaption b, .s-team.n5 figcaption b, .s-team.n6 figcaption b { font-size: 36px; }
.s-team.n4 .s-pill, .s-team.n5 .s-pill, .s-team.n6 .s-pill { font-size: 22px; }
.s-team.n2 .s-ring, .s-team.n3 .s-ring { width: 360px; height: 360px; }
.s-team.n2 figcaption b, .s-team.n3 figcaption b { font-size: 50px; }
