/* video-hero.css — apertura con video (Secondo Cervello Operativo) */
.scm-video { margin: 0 auto; max-width: max(560px, min(1180px, calc((100vh - 400px) * 16 / 9))); --sc-ink: #faf7f1; --sc-ac: #d1a329; }
.scm-video[data-tema="ffd"] { --sc-ac: #D4A853; --sc-ink: #faf6ee; }
.scm-vstage { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0d1930; box-shadow: 0 24px 60px rgba(0, 0, 0, .38); border: 1px solid rgba(255, 255, 255, .1); }
.scm-video[data-tema="ffd"] .scm-vstage { background: #0f2a1a; }
.scm-poster, .scm-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.scm-vid { opacity: 0; transition: opacity .35s ease; z-index: 1; }
.scm-vid.scm-pronto { opacity: 1; }
.scm-video .scm-pausa, .scm-video .scm-audio { position: absolute; z-index: 3; border: 1px solid rgba(255, 255, 255, .45); background: rgba(8, 14, 26, .68); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); padding: 0; font-family: inherit; }
.scm-video .scm-pausa { top: .7rem; right: .7rem; width: 44px; height: 44px; border-radius: 50%; font-size: .8rem; }
.scm-video .scm-audio { left: .7rem; bottom: .7rem; min-height: 44px; padding: 0 .95rem; border-radius: 22px; gap: .45rem; font-size: .9rem; font-weight: 600; line-height: 1; }
.scm-video .scm-pausa:hover, .scm-video .scm-pausa:focus-visible, .scm-video .scm-audio:hover, .scm-video .scm-audio:focus-visible { background: rgba(8, 14, 26, .92); outline: 2px solid var(--sc-ac); outline-offset: 2px; }
.scm-video .scm-audio[aria-pressed="true"] { border-color: var(--sc-ac); }
.scm-video.scm-inattivo .scm-pausa { width: 64px; height: 64px; top: 50%; right: 50%; transform: translate(50%, -50%); font-size: 1.1rem; }
.scm-video .scm-cap { min-height: 0; margin: .9rem auto 0; max-width: 40rem; text-align: center; font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.2rem); line-height: 1.4; color: var(--sc-ink); }

/* Le due funzioni, sotto il video */
.scm-funzioni { max-width: 1100px; margin: 2rem auto 0; text-align: left; color: #eceef2; }
.scm-funzioni h2 { text-wrap: balance; margin: 0 auto 1.1rem; text-align: center; max-width: 40rem; font-family: var(--serif, inherit); font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 600; line-height: 1.25; color: #fff; }
.scm-funzioni-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.scm-funzioni-lista li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 1.25rem 1.35rem; }
.scm-funzioni-lista h3 { margin: 0 0 .5rem; font-family: var(--serif, inherit); font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: var(--sc-ac, #e8c766); }
.scm-funzioni-lista p { margin: 0; font-size: 1rem; line-height: 1.6; color: #eceef2; max-width: none; }
.scm-funzioni-lista p + p { margin-top: .5rem; font-size: .92rem; color: #cfd5de; }
.scm-funzioni-chiusa { text-wrap: balance; margin: 1.1rem auto 0; max-width: 40rem; text-align: center; font-weight: 700; font-size: 1.08rem; line-height: 1.45; color: #fff; }
@media (max-width: 720px) { .scm-funzioni-lista { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .scm-video { max-width: 520px; } .scm-vstage { border-radius: 14px; } .scm-video .scm-audio { left: .5rem; bottom: .5rem; font-size: .85rem; } .scm-video .scm-pausa { top: .5rem; right: .5rem; } }
@media print { .scm-video .scm-pausa, .scm-video .scm-audio { display: none; } }

/* Sottotitoli e testo del video */
.scm-video .scm-sub { min-height: 3.1em; margin: .75rem auto 0; max-width: 40rem; text-align: center; font-size: clamp(1rem, 2.6vw, 1.15rem); line-height: 1.45; color: var(--sc-ink); }
.scm-video .scm-sub:empty::before { content: "\00a0"; }
.scm-testo { max-width: 40rem; margin: .6rem auto 0; text-align: left; color: #d9dde5; font-size: .92rem; line-height: 1.5; }
.scm-testo summary { cursor: pointer; text-align: center; color: var(--sc-ac, #e8c766); font-weight: 600; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.scm-testo summary:focus-visible { outline: 2px solid var(--sc-ac, #e8c766); outline-offset: 2px; }
.scm-testo p { margin: .3rem 0; max-width: none; }
.scm-testo ol { margin: .3rem 0 .6rem 1.4rem; padding: 0; }
@media print { .scm-video .scm-sub { display: none; } }
details.scm-testo { border: 0; background: transparent; box-shadow: none; padding: 0; }
details.scm-testo summary { padding: 0 .5rem; color: var(--sc-ac, #e8c766); font-weight: 600; font-size: .95rem; list-style: none; }
details.scm-testo summary::-webkit-details-marker { display: none; }
details.scm-testo summary::before { content: "\25B8\00a0"; }
details.scm-testo[open] summary::before { content: "\25BE\00a0"; }
details.scm-testo summary::after { content: none; float: none; }
details.scm-testo p, details.scm-testo li { padding: 0; margin: .3rem 0; color: #d9dde5; }
details.scm-testo ol { padding: 0 0 0 1.4rem; margin: .3rem 0 .6rem; }
