/* The «how it works» videos (apps/sito/how_videos.py; sito/_how_videos.html, sito/_how_video_box.html), on the pages
   that do not load the sheet of the new pages: the home, the guarantee of today, the account. */

/* the box of the guides, word for word as in new-layout.css (a test compares the two) */
.nl-guide-video { max-width: 920px; margin: 32px auto 0; }
.nl-guide-video-box { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #0d1e34; }
.nl-guide-video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nl-guide-video-play { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; color: #fff; cursor: pointer; font: inherit; background: #0d1e34; -webkit-appearance: none; appearance: none; }
.nl-guide-video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nl-guide-video-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 30, 52, 0) 45%, rgba(13, 30, 52, .82) 100%); }
.nl-guide-video-icon { position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: #e89820; transition: transform .15s ease; }
.nl-guide-video-icon::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #0d1e34; }
.nl-guide-video-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; font-weight: 600; line-height: 1.35; text-align: left; }
.nl-guide-video-play:hover .nl-guide-video-icon, .nl-guide-video-play:focus-visible .nl-guide-video-icon { transform: scale(1.08); }
.nl-guide-video-play:focus-visible { outline: 3px solid #e89820; outline-offset: -3px; }
.nl-guide-video-link { margin: 10px 0 0; }
.nl-guide-video-link a { display: inline-block; padding: 10px 0; color: #0d1e34; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* the block of the home, under the steps of «Come funziona»: the title, the box, the other titles as a plain list */
.itl-how-videos { padding: 0 0 56px; background: #fff; }
.itl-how-videos-wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.itl-how-videos-title { margin: 0; color: #0d1e34; font-size: 1.25rem; font-weight: 600; line-height: 1.3; text-align: center; }
.itl-how-videos .nl-guide-video { margin-top: 18px; }
.itl-how-videos-more-title { margin: 26px 0 4px; color: #0d1e34; font-size: 1rem; font-weight: 600; }
.itl-how-videos-more { margin: 0; padding: 0; list-style: none; }
.itl-how-videos-more li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e3e7ee; }
.itl-how-videos-more a { flex: 1; padding: 13px 0; color: #0d1e34; line-height: 1.35; text-decoration: underline; text-underline-offset: 3px; }
.itl-how-videos-more span { color: #5b6677; font-size: .9rem; white-space: nowrap; }

/* one video alone (the guarantee, the account) */
.itl-how-video-one { max-width: 952px; margin: 0 auto; padding: 0 16px 8px; }
