/**
 * Styles of the guide pages the Worker renders (src/layout.js).
 *
 * Why the app's light theme and not the home's night green: these pages are read and scanned,
 * like a TV guide or a newspaper article, and the app's primary theme («Neve»: snow-white page,
 * white cards, ink text, holly red for the one action) is the one built for that. The dark theme
 * («Notte») follows the system, as the app does. The header and footer keep the home's night
 * green, so the site is one. Tokens, type styles and components are the design system's
 * (design_handoff_filmnatale/ds: tokens.json, components/bundle.css): TvSlot for the guide rows,
 * Chip for days and slots, Badge, ProviderChip, VideoCard, DailyHighlight for the app's card.
 *
 * Layout: overview pages (oggi, feste) group by channel, like a printed guide; timelines (the
 * week, a channel) by slot, like the app; articles (streaming, lists, film pages) run in one
 * readable column. Side margins 16/24/32 by width, as the app.
 */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/Fraunces-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Figtree';
  src: url('fonts/Figtree-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens (design system, «Neve») ---------- */

:root {
  --neve: #fbf7f0;
  --carta: #ffffff;
  --bruma: #f4ede2;
  --linea: #e7ddcf;
  --inchiostro: #1c2620;
  --inchiostro-tenue: #5c665f;
  --rosso: #a8192b;
  --rosso-testo: #a8192b;
  --rosso-tenue: #f9e6e3;
  --su-rosso: #ffffff;
  --abete: #1e5038;
  --abete-testo: #1e5038;
  --abete-tenue: #e3eee6;
  --oro: #b08326;
  --oro-testo: #7a5710;
  --oro-tenue: #f6ecd4;
  --notte: #143023;
  --notte-fonda: #0e2419;
  --su-notte: #f7f1e6;
  --su-notte-tenue: #bfcbc2;
  --oro-notte: #e2be6a;
  --marchio-notte: #fff2dd;
  --ombra-sm: 0 1px 2px #1c26200f, 0 2px 6px #1c262014;
  --ombra-lg: 0 2px 6px #1c262014, 0 12px 28px -4px #1c262029;
  --anello: 0 0 0 2px var(--neve), 0 0 0 4px var(--abete-testo);

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --page: 1120px;
  --prose: 700px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light dark;
}

/* «Notte», the app's dark theme, when the system is dark */
@media (prefers-color-scheme: dark) {
  :root {
    --neve: #0f1a14;
    --carta: #17251d;
    --bruma: #0a130e;
    --linea: #2a3b31;
    --inchiostro: #f6f0e5;
    --inchiostro-tenue: #a9b4ac;
    --rosso: #cb3344;
    --rosso-testo: #ff8f92;
    --rosso-tenue: #3b1519;
    --abete: #2e7d57;
    --abete-testo: #86cfa4;
    --abete-tenue: #163225;
    --oro: #e2be6a;
    --oro-testo: #ebcb80;
    --oro-tenue: #33290f;
    --notte: #143023;
    --ombra-sm: 0 1px 3px #00000099;
    --ombra-lg: 0 12px 28px -4px #000000cc;
  }
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--neve);
  color: var(--inchiostro);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--oro-tenue);
  color: var(--inchiostro);
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--rosso-testo);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--anello);
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- buttons (design system: Button) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: var(--rosso);
  color: var(--su-rosso);
  font: 600 15px/20px var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background: color-mix(in srgb, var(--rosso) 88%, #fff);
  color: var(--su-rosso);
}

.btn:active {
  transform: scale(0.98);
}

.btn--small {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn--secondary {
  background: var(--carta);
  border-color: var(--linea);
  color: var(--inchiostro);
}

.btn--secondary:hover {
  background: var(--bruma);
  color: var(--inchiostro);
}

/* ---------- header: the home's night green ---------- */

.top {
  background: var(--notte);
  color: var(--su-notte);
}

.top__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'brand nav cta';
  align-items: center;
  gap: 8px 24px;
  max-width: var(--page);
  min-height: 64px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) var(--gutter) 0;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--marchio-notte);
  text-decoration: none;
}

.brand:hover {
  color: var(--marchio-notte);
}

.brand img {
  width: 30px;
  height: auto;
}

.brand span {
  font: 600 20px/1 var(--serif);
  letter-spacing: -0.01em;
}

.top .btn {
  grid-area: cta;
}

.top__nav {
  grid-area: nav;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top__nav::-webkit-scrollbar {
  display: none;
}

.top__nav a {
  flex: none;
  padding: 8px 12px;
  border-radius: 9999px;
  color: var(--su-notte-tenue);
  font: 600 15px/20px var(--sans);
  text-decoration: none;
}

.top__nav a:hover {
  color: var(--su-notte);
  background: rgba(247, 241, 230, 0.08);
}

.top__nav a[aria-current='page'] {
  color: var(--notte);
  background: var(--su-notte);
}

@media (max-width: 899px) {
  .top__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'brand cta' 'nav nav';
    padding-bottom: 10px;
  }

  .top__nav {
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
  }
}

/* ---------- page frame ---------- */

.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  padding: 16px 0 0;
  font: 500 13px/18px var(--sans);
  color: var(--inchiostro-tenue);
}

.crumbs li:not(:last-child)::after {
  content: '›';
  margin: 0 8px;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.head {
  max-width: 820px;
  padding: 20px 0 8px;
}

.head h1 {
  font: 600 34px/40px var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.head__date {
  margin-top: 8px;
  font: 600 15px/20px var(--sans);
  color: var(--inchiostro-tenue);
}

.head__date time {
  color: inherit;
}

.lead {
  margin-top: 14px;
  font: 400 18px/28px var(--sans);
  text-wrap: pretty;
}

.lead strong {
  font-weight: 600;
}

@media (min-width: 900px) {
  .head h1 {
    font-size: 46px;
    line-height: 52px;
  }

  .lead {
    font-size: 19px;
    line-height: 30px;
  }
}

/* sections: generous above, tight below the heading */

.sect {
  margin-top: 48px;
}

.sect__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sect__head h2,
.sect > h2 {
  font: 600 24px/30px var(--serif);
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.sect > h2 {
  margin-bottom: 12px;
}

.sect__sub {
  margin: -8px 0 16px;
  font: 500 14px/20px var(--sans);
  color: var(--inchiostro-tenue);
}

.sect__more,
.more a {
  font: 600 14px/20px var(--sans);
  color: var(--rosso-testo);
  text-decoration: none;
  white-space: nowrap;
}

.sect__more:hover,
.more a:hover {
  text-decoration: underline;
}

.more {
  margin-top: 14px;
}

.more a::after,
.sect__more::after {
  content: ' ›';
}

@media (min-width: 900px) {
  .sect__head h2,
  .sect > h2 {
    font-size: 28px;
    line-height: 34px;
  }
}

/* ---------- chips: days and slots (design system: Chip), sticky ---------- */

.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 16px calc(var(--gutter) * -1) 0;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--neve) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}

.tabs ul {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs ul::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--linea);
  border-radius: 9999px;
  background: var(--carta);
  color: var(--inchiostro);
  font: 600 14px/20px var(--sans);
  text-decoration: none;
  white-space: nowrap;
}

.chip:hover {
  color: var(--inchiostro);
  border-color: var(--inchiostro-tenue);
}

.chip.is-selected {
  background: var(--abete);
  border-color: var(--abete);
  color: #fff;
}

.chip__count {
  font-weight: 500;
  opacity: 0.7;
}

.chip--empty {
  color: var(--inchiostro-tenue);
}

/* ---------- a TV row (design system: TvSlot) ---------- */

.label {
  margin: 28px 0 8px;
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--inchiostro-tenue);
}

.label:first-child {
  margin-top: 0;
}

.rows {
  overflow: hidden;
  border: 1px solid var(--linea);
  border-radius: 20px;
  background: var(--carta);
}

.row + .row {
  border-top: 1px solid var(--linea);
}

.row summary {
  display: grid;
  grid-template-columns: 60px 1fr 20px;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.row summary::-webkit-details-marker {
  display: none;
}

.row summary:hover {
  background: color-mix(in srgb, var(--bruma) 55%, transparent);
}

.row summary:focus-visible {
  border-radius: 0;
  box-shadow: inset 0 0 0 2px var(--abete-testo);
}

/* the chevron: down when closed, up when open */
.row summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin: 8px 0 0 4px;
  border-right: 2px solid var(--inchiostro-tenue);
  border-bottom: 2px solid var(--inchiostro-tenue);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease-out);
}

.row details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 12px;
}

.row__time {
  font: 600 22px/26px var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  padding-top: 1px;
}

.row__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.row__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-height: 20px;
}

.row__channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--inchiostro-tenue);
}

.row__title {
  font: 600 17px/22px var(--serif);
  text-wrap: pretty;
}

.row__title a {
  text-decoration: none;
}

.row__title a:hover {
  text-decoration: underline;
}

.row__meta {
  font: 500 13px/18px var(--sans);
  color: var(--inchiostro-tenue);
}

.row__more {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 0 16px 16px 88px;
}

.row__more p {
  font-size: 15px;
  line-height: 22px;
}

.row__more p + p {
  margin-top: 8px;
}

.row__stream {
  color: var(--abete-testo);
  font-weight: 600;
}

@media (max-width: 479px) {
  .row__more {
    padding-left: 16px;
  }
}

/* set by guide.js from the airing's start and end */
.row.is-live .row__time,
.pick.is-live .pick__time {
  color: var(--rosso-testo);
}

.row.is-over .row__time,
.row.is-over .row__body {
  opacity: 0.6;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 9999px;
  font: 600 12px/16px var(--sans);
  white-space: nowrap;
}

.badge--live {
  background: var(--rosso);
  color: #fff;
}

.badge--live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--abete {
  background: var(--abete-tenue);
  color: var(--abete-testo);
}

.badge--oro {
  background: var(--oro-tenue);
  color: var(--oro-testo);
}

/* ---------- channel logos ---------- */

/* the logo files are drawn for dark backgrounds: a dark tile, the same in both themes */
.logo {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 38px;
  padding: 5px 7px;
  border-radius: 8px;
  background: #1c2620;
}

.logo--light {
  background: #fff;
  box-shadow: inset 0 0 0 1px #e7ddcf;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo--text {
  color: #f7f1e6;
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.02em;
}

.logo--mini {
  width: 40px;
  height: 26px;
  padding: 3px 4px;
  border-radius: 6px;
}

/* ---------- channel by channel (the overview) ---------- */

.channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  align-items: start;
}

.ch {
  overflow: hidden;
  border: 1px solid var(--linea);
  border-radius: 20px;
  background: var(--carta);
}

.ch__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bruma);
  border-bottom: 1px solid var(--linea);
}

.ch__name {
  font: 600 17px/22px var(--sans);
}

.ch__name a {
  text-decoration: none;
}

.ch__lcn {
  margin-left: auto;
  font: 600 13px/18px var(--sans);
  color: var(--inchiostro-tenue);
  font-variant-numeric: tabular-nums;
}

.ch .rows {
  border: 0;
  border-radius: 0;
}

/* ---------- tonight: films with their poster (superguidatv's «Film stasera») ---------- */

.picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.pick {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--linea);
  border-radius: 20px;
  background: var(--carta);
}

.pick__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pick__channel {
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--inchiostro-tenue);
}

.pick__time {
  font: 600 26px/30px var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}

.pick__end {
  margin-left: 6px;
  font: 500 13px/18px var(--sans);
  color: var(--inchiostro-tenue);
}

.pick__title {
  margin-top: 6px;
  font: 600 20px/25px var(--serif);
  text-wrap: pretty;
}

.pick__title a {
  text-decoration: none;
}

.pick__title a:hover {
  text-decoration: underline;
}

.pick__meta {
  margin-top: 4px;
  font: 500 13px/18px var(--sans);
  color: var(--inchiostro-tenue);
}

.pick__plot {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  font-size: 15px;
  line-height: 22px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.pick__stream {
  margin-top: 8px;
  font: 600 14px/20px var(--sans);
  color: var(--abete-testo);
}

/* ---------- posters (design system: Poster) ---------- */

.poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: var(--bruma);
  object-fit: cover;
  box-shadow: var(--ombra-sm);
}

/* no artwork: the design system's typographic placeholder, in the film's tone */
.poster--ph {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  overflow: hidden;
  font: 600 14px/1.2 var(--serif);
  overflow-wrap: anywhere;
}

.poster--ph::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid currentColor;
  border-radius: 8px;
  opacity: 0.3;
}

.poster--rosso { background: #a8192b; color: #fff; }
.poster--abete { background: #1e5038; color: #fff; }
.poster--notte { background: #143023; color: #f7f1e6; }
.poster--oro { background: #b08326; color: #1c2620; }

/* ---------- a poster shelf and grid (design system: FilmCard) ---------- */

.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 136px;
  gap: 12px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.shelf::-webkit-scrollbar {
  display: none;
}

.shelf > li {
  scroll-snap-align: start;
}

.films {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 24px 16px;
}

.film__media {
  display: block;
  margin-bottom: 8px;
}

.film__title {
  font: 600 17px/22px var(--serif);
  text-wrap: pretty;
}

.film__title a {
  text-decoration: none;
}

.film__title a:hover {
  text-decoration: underline;
}

.film__meta {
  margin-top: 2px;
  font: 500 13px/18px var(--sans);
  color: var(--inchiostro-tenue);
}

.film__stream {
  margin-top: 4px;
  font: 600 13px/18px var(--sans);
  color: var(--abete-testo);
}

.film__tv {
  margin-top: 4px;
  font: 600 13px/18px var(--sans);
  color: var(--rosso-testo);
}

@media (max-width: 479px) {
  .films {
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px;
  }
}

/* ---------- article (Movieplayer, Fanpage): one readable column ---------- */

.article {
  max-width: var(--prose);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--linea);
  font: 500 14px/20px var(--sans);
  color: var(--inchiostro-tenue);
}

.byline strong {
  color: var(--inchiostro);
  font-weight: 600;
}

/* the opening image of a list: the films' posters fanned out, like a shelf at the video store */
.cover {
  display: flex;
  justify-content: center;
  margin: 24px 0 8px;
  padding: 28px 16px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 50% 0%, #24533c 0%, var(--notte) 55%, var(--notte-fonda) 100%);
}

.cover li {
  flex: none;
  width: min(26%, 150px);
  margin: 0 -3%;
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
}

.cover li:nth-child(1) { --r: -9deg; --y: 14px; }
.cover li:nth-child(2) { --r: -4deg; --y: 4px; z-index: 1; }
.cover li:nth-child(3) { --r: 0deg; --y: 0; z-index: 2; }
.cover li:nth-child(4) { --r: 4deg; --y: 4px; z-index: 1; }
.cover li:nth-child(5) { --r: 9deg; --y: 14px; }

.cover .poster {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.prose p {
  font: 400 17px/28px var(--sans);
  text-wrap: pretty;
}

.prose p + p {
  margin-top: 16px;
}

.prose strong {
  font-weight: 600;
}

/* «Indice»: the article's sections, as Fanpage puts them on top */
.toc {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--linea);
  border-radius: 16px;
  background: var(--carta);
}

.toc__title {
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--inchiostro-tenue);
}

.toc ol {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.toc a {
  display: block;
  padding: 5px 0;
  font: 600 15px/20px var(--sans);
  text-decoration: none;
}

.toc a:hover {
  color: var(--rosso-testo);
}

/* a film in an article: poster, title, the editor's lines, where and when */
.entries {
  display: grid;
}

.entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--linea);
}

.entry:first-child {
  padding-top: 8px;
}

.entry__title {
  font: 600 22px/28px var(--serif);
  text-wrap: balance;
}

.entry__title a {
  text-decoration: none;
}

.entry__title a:hover {
  text-decoration: underline;
}

.entry__meta {
  margin-top: 4px;
  font: 500 14px/20px var(--sans);
  color: var(--inchiostro-tenue);
}

.entry__extra {
  margin-top: 8px;
}

.entry__text {
  margin-top: 10px;
  font: 400 16px/25px var(--sans);
}

.entry__facts {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font: 500 15px/21px var(--sans);
}

.entry__facts dt {
  display: inline;
  font-weight: 700;
}

.entry__facts dd {
  display: inline;
}

.entry__facts .is-tv dd {
  color: var(--rosso-testo);
  font-weight: 600;
}

.entry__facts .is-stream dd {
  color: var(--abete-testo);
  font-weight: 600;
}

@media (max-width: 479px) {
  .entry {
    grid-template-columns: 92px 1fr;
    gap: 14px;
  }

  .entry__title {
    font-size: 19px;
    line-height: 24px;
  }
}

/* ---------- «Leggi anche» (Movieplayer) ---------- */

.readmore {
  margin: 32px 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--bruma);
}

.readmore__title {
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rosso-testo);
}

.readmore ul {
  margin-top: 6px;
}

.readmore a {
  display: block;
  padding: 6px 0;
  font: 600 17px/23px var(--serif);
  text-decoration: none;
}

.readmore a:hover {
  text-decoration: underline;
}

/* ---------- the answer box of a film page ---------- */

.answer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: center;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--linea);
  border-radius: 20px;
  background: var(--carta);
  box-shadow: var(--ombra-sm);
}

.answer__label {
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rosso-testo);
}

.answer__when {
  margin-top: 6px;
  font: 600 24px/30px var(--serif);
  text-wrap: balance;
}

.answer__note {
  margin-top: 6px;
  font: 400 15px/22px var(--sans);
  color: var(--inchiostro-tenue);
}

.answer .logo {
  width: 84px;
  height: 54px;
}

@media (max-width: 479px) {
  .answer {
    grid-template-columns: 1fr;
  }

  .answer .logo {
    grid-row: 1;
  }
}

.film-top {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.facts {
  display: grid;
  gap: 12px;
}

.facts dt {
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--inchiostro-tenue);
}

.facts dd {
  margin-top: 2px;
  font: 500 16px/23px var(--sans);
}

@media (max-width: 599px) {
  .film-top {
    grid-template-columns: 120px 1fr;
    gap: 16px;
  }

  .facts dd {
    font-size: 15px;
    line-height: 21px;
  }
}

/* ---------- where to watch (design system: ProviderChip) ---------- */

.providers {
  display: grid;
  gap: 16px;
}

.providers__kind {
  margin-bottom: 8px;
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--inchiostro-tenue);
}

.providers ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--linea);
  border-radius: 12px;
  background: var(--carta);
  font: 600 15px/20px var(--sans);
}

.provider img,
.provider__mono {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.provider__mono {
  display: grid;
  place-items: center;
  background: var(--bruma);
  font: 700 13px/1 var(--sans);
}

.provider--free {
  border-color: var(--abete-tenue);
  background: var(--abete-tenue);
  color: var(--abete-testo);
}

.source {
  margin-top: 12px;
  font: 500 13px/18px var(--sans);
  color: var(--inchiostro-tenue);
}

/* ---------- free films: the app plays them (design system: VideoCard) ---------- */

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 28px 20px;
}

.video__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--notte);
  box-shadow: var(--ombra-sm);
  cursor: pointer;
}

.video__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.video__media:hover img {
  transform: scale(1.03);
}

.video__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 26, 18, 0.88) 100%);
}

.video__cta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font: 600 15px/20px var(--sans);
  text-align: left;
}

.video__play {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--su-notte);
  color: #a8192b;
}

.video__play svg {
  width: 16px;
  height: 16px;
  margin-left: 3px;
  fill: currentColor;
}

.video__duration {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(28, 38, 32, 0.8);
  color: #fff;
  font: 600 12px/16px var(--sans);
}

.video__title {
  margin-top: 12px;
  font: 600 19px/24px var(--serif);
}

.video__title a {
  text-decoration: none;
}

.video__meta {
  margin-top: 2px;
  font: 500 13px/18px var(--sans);
  color: var(--inchiostro-tenue);
}

.video__plot {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  font-size: 15px;
  line-height: 22px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* the trailer of a film page, which does play here */
.trailer {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--notte);
  cursor: pointer;
}

.trailer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trailer .video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  box-shadow: var(--ombra-lg);
}

.trailer .video__play svg {
  width: 22px;
  height: 22px;
}

.trailer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- the calendar: one card per day ---------- */

.days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  align-items: start;
}

.day {
  overflow: hidden;
  border: 1px solid var(--linea);
  border-radius: 20px;
  background: var(--carta);
}

.day__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--linea);
}

.day__date {
  font: 600 20px/26px var(--serif);
}

.day__holiday {
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rosso-testo);
  white-space: nowrap;
}

.day__wait {
  padding: 14px 16px 4px;
  font: 500 14px/20px var(--sans);
  color: var(--inchiostro-tenue);
}

.day__past {
  padding: 4px 16px 16px;
}

.day__past li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 6px 0;
  font: 500 15px/21px var(--sans);
}

.day__past .t {
  font: 600 15px/21px var(--serif);
  font-variant-numeric: tabular-nums;
  color: var(--inchiostro-tenue);
}

.day__past .c {
  color: var(--inchiostro-tenue);
  font-size: 13px;
}

.day .rows {
  border: 0;
  border-radius: 0;
}

.day__link {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid var(--linea);
  font: 600 14px/20px var(--sans);
  color: var(--rosso-testo);
  text-decoration: none;
}

.day__link::after {
  content: ' ›';
}

.day__link:hover {
  background: var(--bruma);
}

/* ---------- last year and announced airings ---------- */

.history .row summary {
  cursor: default;
}

.history .row summary::after {
  content: none;
}

.history .row summary {
  grid-template-columns: 60px 1fr;
}

/* ---------- notices and empty states ---------- */

.empty {
  padding: 20px;
  border: 1px dashed var(--linea);
  border-radius: 20px;
  background: var(--carta);
  font: italic 400 18px/26px var(--serif);
  color: var(--inchiostro-tenue);
}

.empty a {
  font-style: normal;
}

/* ---------- questions ---------- */

.faq {
  max-width: var(--prose);
}

.faq__list {
  overflow: hidden;
  border: 1px solid var(--linea);
  border-radius: 20px;
  background: var(--carta);
}

.faq details + details {
  border-top: 1px solid var(--linea);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--inchiostro-tenue);
  border-bottom: 2px solid var(--inchiostro-tenue);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq summary h3 {
  font: 600 16px/22px var(--sans);
}

.faq details p {
  padding: 0 20px 18px;
  font: 400 16px/25px var(--sans);
}

/* ---------- the app (design system: DailyHighlight) ---------- */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px 20px;
  align-items: center;
  margin-top: 56px;
  padding: 24px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--notte);
  color: var(--su-notte);
}

.cta__icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.cta__title {
  font: 600 24px/30px var(--serif);
  color: var(--marchio-notte);
}

.cta__text {
  margin-top: 4px;
  font: 400 15px/22px var(--sans);
  color: var(--su-notte-tenue);
}

.cta .btn {
  background: #c42a3b;
}

@media (max-width: 599px) {
  .cta {
    grid-template-columns: 56px 1fr;
    padding: 20px;
  }

  .cta__icon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
  }

  .cta .btn {
    grid-column: 1 / -1;
  }
}

/* ---------- links to the next pages ---------- */

.related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--linea);
  border-radius: 9999px;
  background: var(--carta);
  font: 600 14px/20px var(--sans);
  text-decoration: none;
}

.related a:hover {
  color: var(--inchiostro);
  border-color: var(--inchiostro-tenue);
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 8px;
}

.links a,
.links__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--linea);
  border-radius: 14px;
  background: var(--carta);
  font: 600 15px/20px var(--sans);
  text-decoration: none;
}

.links a:hover {
  color: var(--inchiostro);
  border-color: var(--inchiostro-tenue);
}

.links__logo {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.links__count {
  margin-left: auto;
  font: 600 13px/18px var(--sans);
  color: var(--inchiostro-tenue);
  white-space: nowrap;
}

/* ---------- footer: the home's night green ---------- */

.foot {
  padding: 48px var(--gutter) max(20px, env(safe-area-inset-bottom));
  background: var(--notte-fonda);
  color: var(--su-notte-tenue);
  font-size: 14px;
}

.map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px 24px;
  max-width: var(--page);
  margin: 0 auto;
}

.map__title {
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oro-notte);
}

.map ul {
  display: grid;
  margin-top: 8px;
}

.map a {
  display: block;
  padding: 6px 0;
  color: var(--su-notte-tenue);
  text-decoration: none;
}

.map a:hover {
  color: var(--su-notte);
}

.foot__sources {
  max-width: var(--page);
  margin: 32px auto 0;
  font-size: 13px;
}

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--page);
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 242, 221, 0.08);
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot__brand img {
  width: 26px;
  height: auto;
}

.foot__name {
  font: 600 17px/1 var(--serif);
  color: var(--marchio-notte);
}

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.foot__legal a {
  padding: 12px 0;
  color: var(--su-notte);
  font-weight: 500;
  text-decoration: none;
}

.foot__legal a:hover {
  color: var(--oro-notte);
}

/* ---------- the download banner (src/promo.js, 10 Nov 2026) ---------- */

/*
 * Above the breadcrumbs of every guide page: slides that rotate (public/guide.js), each with one
 * reason to get the app, shown rather than told (a reminder on a lock screen, the guide in a
 * phone, the posters with their service), and one red button. Night green like the header, in
 * both themes; on a computer a QR code on the right. The phone and the posters sit in the right
 * column and may run off the edge on a phone, so the words keep the width they need.
 */

.promo {
  --art: 96px;
  --phone: 132px;
  --promo-ms: 6500ms;
  position: relative;
  display: grid;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--notte-fonda);
  color: #f7f1e6;
  box-shadow: 0 2px 6px #0e241926, 0 18px 40px -14px #0e241973;
  isolation: isolate;
}

@media (prefers-color-scheme: dark) {
  .promo {
    box-shadow: 0 0 0 1px #e2be6a33, 0 18px 40px -14px #000000cc;
  }
}

.promo__stage {
  position: relative;
  min-width: 0;
  touch-action: pan-y;
}

/* snow, two layers at two speeds, over everything and under nothing you can touch */
.promo__stage::before,
.promo__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18px 24px, #ffffffd9 1.4px, transparent 2px),
    radial-gradient(circle at 92px 70px, #ffffffb3 1.1px, transparent 1.6px),
    radial-gradient(circle at 140px 132px, #ffffffcc 1.6px, transparent 2.2px),
    radial-gradient(circle at 54px 150px, #ffffff99 1px, transparent 1.5px);
  background-size: 170px 170px;
  animation: promo-snow 11s linear infinite;
}

.promo__stage::after {
  background-size: 230px 230px;
  opacity: 0.6;
  animation-duration: 17s;
  animation-direction: normal;
  background-position: 60px 40px;
}

@keyframes promo-snow {
  from { background-position: 0 0; }
  to { background-position: 40px 170px; }
}

.promo__slides {
  display: grid;
}

.promo__slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--art);
  gap: 12px;
  min-height: 240px;
  padding: 36px 14px 20px 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #1a3d2c 0%, #0e2419 72%);
  visibility: hidden;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.45s ease, transform 0.7s var(--ease-out), visibility 0s linear 0.7s;
}

.promo__slide.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.7s var(--ease-out), visibility 0s;
}

.promo[data-dir='back'] .promo__slide:not(.is-active) {
  transform: translateX(-28px);
}

/* the backgrounds: night green, the guide's deeper green with a gold glow, holly red, the photo */
.promo__slide--avviso {
  background:
    radial-gradient(70% 90% at 92% 18%, #e2be6a3d 0%, transparent 60%),
    linear-gradient(160deg, #1d4632 0%, #0e2419 75%);
}

.promo__slide--guida {
  background:
    radial-gradient(80% 90% at 95% 100%, #b0832659 0%, transparent 62%),
    linear-gradient(150deg, #143023 0%, #0a1a12 80%);
}

.promo__slide--streaming {
  background:
    radial-gradient(90% 100% at 92% 15%, #e0475b 0%, transparent 60%),
    linear-gradient(150deg, #b01d30 0%, #5c0b17 85%);
}

.promo__slide--gratis {
  background:
    radial-gradient(70% 90% at 88% 60%, #e2be6a4d 0%, transparent 62%),
    linear-gradient(150deg, #3d1119 0%, #0e2419 80%);
}

.promo__slide--famiglia {
  grid-template-columns: minmax(0, 1fr);
  background: #0e2419;
}

.promo__slide--famiglia::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #0e2419f5 0%, #0e2419d9 42%, #0e241966 78%, #0e241926 100%);
}

.promo__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 40%;
}

.promo__slide--famiglia .promo__copy {
  max-width: 300px;
}

/* ---------- the words ---------- */

.promo__copy {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  min-width: 0;
}

.promo__eyebrow {
  font: 700 13px/17px var(--sans);
  color: #f1d58f;
  text-wrap: balance;
}

.promo__slide--avviso .promo__eyebrow::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: #ff6b6b;
  box-shadow: 0 0 0 0 #ff6b6b99;
  animation: promo-dot 1.8s ease-out infinite;
}

@keyframes promo-dot {
  70% { box-shadow: 0 0 0 7px #ff6b6b00; }
  100% { box-shadow: 0 0 0 0 #ff6b6b00; }
}

.promo__slide--streaming .promo__eyebrow {
  color: #ffe2b0;
}

.promo__title {
  font: 600 24px/1.1 var(--serif);
  letter-spacing: -0.012em;
  color: #fff2dd;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.promo__text {
  font: 400 14px/1.4 var(--sans);
  color: #d6dfd8;
  text-wrap: pretty;
}

.promo__slide--streaming .promo__text {
  color: #ffe4e4;
}

.promo__actions {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: 4px;
}

.promo__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px 0 20px;
  overflow: hidden;
  border-radius: 9999px;
  background: #d22f42;
  color: #ffffff;
  font: 700 15px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px -8px #d22f42cc, inset 0 1px 0 #ffffff40;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.promo__cta:hover {
  background: #e03b4e;
  color: #ffffff;
}

.promo__cta:active {
  transform: scale(0.97);
}

/* the arrow */
.promo__cta::after {
  content: '';
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

/* the shine that crosses the button every few seconds */
.promo__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, #ffffff66 50%, transparent 70%);
  transform: translateX(-130%);
  animation: promo-shine 3.6s ease-in-out 1.4s infinite;
}

@keyframes promo-shine {
  0%, 60% { transform: translateX(-130%); }
  90%, 100% { transform: translateX(130%); }
}

.promo__slide--streaming .promo__cta {
  background: #fff2dd;
  color: #a8192b;
  box-shadow: 0 10px 22px -8px #00000080;
}

.promo__store {
  font: 500 12px/16px var(--sans);
  color: #bfcbc2;
}

.promo__slide--streaming .promo__store {
  color: #ffd6d6;
}

/* the words arrive one after the other */
.promo__slide.is-active .promo__copy > * {
  animation: promo-rise 0.7s var(--ease-out) both;
}

.promo__slide.is-active .promo__copy > :nth-child(2) { animation-delay: 0.07s; }
.promo__slide.is-active .promo__copy > :nth-child(3) { animation-delay: 0.14s; }
.promo__slide.is-active .promo__copy > :nth-child(4) { animation-delay: 0.21s; }

@keyframes promo-rise {
  from { opacity: 0; transform: translateY(12px); }
}

/* ---------- the right column: phones, posters, popcorn ---------- */

.promo__art {
  position: static;
}

.promo__phone {
  position: absolute;
  z-index: 2;
  top: 34px;
  right: -12px;
  width: var(--phone);
  aspect-ratio: 9 / 19.5;
  padding: calc(var(--phone) * 0.04);
  border-radius: calc(var(--phone) * 0.2);
  background: linear-gradient(145deg, #4a504c, #151917 60%, #2c312e);
  box-shadow: 0 0 0 1px #ffffff26, 0 28px 50px -12px #000000cc;
  font-size: calc(var(--phone) / 15);
  transform: rotate(5deg);
}

.promo__slide.is-active .promo__phone {
  animation: promo-phone 0.9s var(--ease-out) both;
}

@keyframes promo-phone {
  from { opacity: 0; transform: translateY(40px) rotate(9deg); }
}

.promo__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--phone) * 0.165);
  background: #0b1712;
}

/* the island */
.promo__screen::before {
  content: '';
  position: absolute;
  z-index: 5;
  top: 0.55em;
  left: 50%;
  width: 34%;
  height: 1.1em;
  border-radius: 1em;
  background: #000;
  transform: translateX(-50%);
}

/* lock screen: the film's poster as wallpaper, the clock 30 minutes before, the reminder */
.promo__phone--lock .poster,
.promo__wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  object-fit: cover;
  filter: brightness(0.72) saturate(1.1);
}

.promo__wall {
  background: radial-gradient(80% 60% at 50% 30%, #2a5a42, #0e2419);
}

.promo__phone--lock .poster--ph {
  display: grid;
  place-items: center;
  padding: 1em;
  font-size: 1.4em;
}

.promo__lock {
  position: relative;
  z-index: 2;
  padding-top: 2.6em;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 1px 10px #00000080;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.promo__date {
  font-size: 0.95em;
  font-weight: 600;
}

.promo__clock {
  font-size: 3.4em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.promo__notif {
  position: absolute;
  z-index: 3;
  top: 48%;
  left: 0.6em;
  right: 0.6em;
  display: grid;
  grid-template-columns: 2.1em minmax(0, 1fr);
  gap: 0.6em;
  padding: 0.75em;
  border-radius: 1.3em;
  background: #f5f2edd9;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #111;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.25;
  box-shadow: 0 0.6em 1.6em #00000066;
}

.promo__slide.is-active .promo__notif {
  animation: promo-notif 0.75s var(--ease-out) 0.6s both;
}

@keyframes promo-notif {
  from { opacity: 0; transform: translateY(-1.8em) scale(0.92); }
}

.promo__icon {
  width: 2.1em;
  height: 2.1em;
  border-radius: 0.5em;
}

.promo__notif-top {
  display: flex;
  justify-content: space-between;
  gap: 0.4em;
  font-size: 0.82em;
  color: #555;
}

.promo__notif-top b {
  font-weight: 600;
  color: #333;
}

.promo__notif-title {
  font-size: 0.95em;
  font-weight: 700;
}

.promo__notif-body {
  font-size: 0.95em;
}

/* the gold bell by the phone, ringing */
.promo__bell {
  position: absolute;
  z-index: 3;
  top: 46px;
  right: calc(var(--phone) - 30px);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6dd9a, #c99a36);
  box-shadow: 0 8px 18px -4px #000000b3, 0 0 0 3px #0e241966;
}

.promo__bell svg {
  width: 20px;
  height: 20px;
  fill: #5a3d05;
}

.promo__slide.is-active .promo__bell {
  animation: promo-pop 0.5s var(--ease-out) 0.9s both;
}

.promo__slide.is-active .promo__bell svg {
  animation: promo-ring 2.4s ease-in-out 1.4s infinite;
  transform-origin: 50% 10%;
}

@keyframes promo-pop {
  from { opacity: 0; transform: scale(0.4); }
}

@keyframes promo-ring {
  0%, 40%, 100% { transform: rotate(0); }
  5% { transform: rotate(16deg); }
  12% { transform: rotate(-14deg); }
  19% { transform: rotate(10deg); }
  26% { transform: rotate(-8deg); }
  33% { transform: rotate(4deg); }
}

/* the guide in the phone: the app's light theme, today's rows */
.promo__app {
  height: 100%;
  padding: 2.4em 0.6em 0;
  background: #fbf7f0;
  color: #1c2620;
}

.promo__app-title {
  margin: 0 0.2em;
  font: 600 1.7em/1.1 var(--serif);
}

.promo__app-day {
  margin: 0.1em 0.25em 0.2em;
  font: 700 0.85em/1.2 var(--sans);
  color: #a8192b;
}

.promo__rows li {
  display: grid;
  grid-template-columns: 3.3em minmax(0, 1fr);
  gap: 0.4em;
  align-items: start;
  margin-top: 0.5em;
  padding: 0.6em 0.55em;
  border-radius: 0.8em;
  background: #ffffff;
  box-shadow: 0 0.1em 0.4em #1c26201a;
  font-family: var(--sans);
}

.promo__rows li:first-child {
  box-shadow: inset 0.22em 0 0 #a8192b, 0 0.1em 0.4em #1c26201a;
}

.promo__rows b {
  font: 600 1.1em/1.1 var(--serif);
}

.promo__rows span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.promo__rows small {
  display: block;
  font-size: 0.8em;
  font-weight: 700;
  color: #a8192b;
}

.promo__rows .is-empty {
  height: 3.4em;
  background: #f4ede2;
}

.promo__slide.is-active .promo__rows li {
  animation: promo-row 0.6s var(--ease-out) both;
}

.promo__slide.is-active .promo__rows li:nth-child(1) { animation-delay: 0.45s; }
.promo__slide.is-active .promo__rows li:nth-child(2) { animation-delay: 0.55s; }
.promo__slide.is-active .promo__rows li:nth-child(3) { animation-delay: 0.65s; }
.promo__slide.is-active .promo__rows li:nth-child(4) { animation-delay: 0.75s; }

@keyframes promo-row {
  from { opacity: 0; transform: translateX(1.5em); }
}

/* the posters, fanned, each with its service */
.promo__fan {
  --card: 60%;
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -10px;
  width: calc(var(--art) + 30px);
  height: 144px;
  transform: translateY(-40%);
}

.promo__card {
  position: absolute;
  top: 6%;
  width: var(--card);
  margin: 0;
  filter: drop-shadow(0 14px 18px #00000080);
}

.promo__card .poster {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 0 1px #ffffff26;
}

.promo__card figcaption {
  position: absolute;
  left: 50%;
  bottom: -9px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: #fff2dd;
  color: #5c0b17;
  font: 700 10.5px/14px var(--sans);
  white-space: nowrap;
  transform: translateX(-50%);
}

.promo__card:nth-child(1) { left: 0; transform: rotate(-11deg) translateY(6%); }
.promo__card:nth-child(2) { left: 19%; z-index: 2; transform: rotate(-1deg) translateY(-6%); }
.promo__card:nth-child(3) { left: 40%; z-index: 1; transform: rotate(10deg) translateY(8%); }

/* on a phone only the front poster says its service: three labels would overlap */
@media (max-width: 599px) {
  .promo__card:not(:nth-child(2)) figcaption {
    display: none;
  }
}

.promo__slide.is-active .promo__card {
  animation: promo-card 0.8s var(--ease-out) both;
}

.promo__slide.is-active .promo__card:nth-child(2) { animation-delay: 0.1s; }
.promo__slide.is-active .promo__card:nth-child(3) { animation-delay: 0.2s; }

@keyframes promo-card {
  from { opacity: 0; translate: 0 30px; rotate: 8deg; }
}

.promo__chips {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 16px;
  display: grid;
  gap: 8px;
  justify-items: end;
  transform: translateY(-50%);
}

.promo__chips span {
  padding: 6px 12px;
  border-radius: 9999px;
  background: #fff2dd;
  color: #5c0b17;
  font: 700 13px/16px var(--sans);
}

/* the popcorn of the home */
.promo__popcorn {
  position: absolute;
  z-index: 2;
  right: -18px;
  bottom: -26px;
  width: calc(var(--art) + 36px);
  height: auto;
  transform: rotate(8deg);
}

.promo__slide.is-active .promo__popcorn {
  animation: promo-phone 0.9s var(--ease-out) both, promo-float 5s ease-in-out 1s infinite;
}

@keyframes promo-float {
  50% { translate: 0 -8px; }
}

.promo__slide--famiglia.is-active .promo__photo {
  animation: promo-zoom 9s ease-out both;
}

@keyframes promo-zoom {
  from { scale: 1.12; }
}

/* ---------- the progress bars and the pause (guide.js builds them) ---------- */

.promo__nav {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 20px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.promo__dot {
  flex: 1;
  display: grid;
  align-items: center;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.promo__dot span {
  position: relative;
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: #ffffff40;
}

.promo__dot span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff2dd;
  transform: scaleX(0);
  transform-origin: left;
}

.promo__dot.is-done span::after {
  transform: none;
}

.promo__dot.is-active span::after {
  animation: promo-fill var(--promo-ms) linear forwards;
}

@keyframes promo-fill {
  to { transform: none; }
}

/* «reduce motion»: no autoplay, the active bar simply full */
.promo.is-static .promo__dot.is-active span::after {
  animation: none;
  transform: none;
}

.promo.is-paused .promo__dot.is-active span::after,
.promo:hover .promo__dot.is-active span::after,
.promo:focus-within .promo__dot.is-active span::after {
  animation-play-state: paused;
}

.promo__pause {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #00000040;
  color: #fff2dd;
  cursor: pointer;
}

.promo__pause svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.promo__pause .is-play,
.promo.is-paused .promo__pause .is-pause {
  display: none;
}

.promo.is-paused .promo__pause .is-play {
  display: block;
}

/* ---------- the QR code (computers) ---------- */

.promo__qr {
  display: none;
}

@media (min-width: 600px) {
  .promo {
    --art: 200px;
    --phone: 164px;
  }

  .promo__slide {
    min-height: 272px;
    padding: 40px 24px 26px 32px;
    gap: 24px;
  }

  .promo__title {
    font-size: 30px;
  }

  .promo__text {
    max-width: 40ch;
    font-size: 15px;
  }

  .promo__phone {
    right: 28px;
  }

  .promo__bell {
    right: calc(var(--phone) + 6px);
  }

  .promo__nav {
    left: 32px;
    right: 14px;
  }

  .promo__card figcaption {
    font-size: 12px;
  }

  .promo__popcorn {
    right: 10px;
    bottom: -40px;
    width: calc(var(--art) - 10px);
  }

  .promo__fan {
    --card: 52%;
    right: 8px;
    height: 224px;
  }

  .promo__slide--famiglia .promo__copy {
    max-width: 420px;
  }
}

@media (min-width: 900px) {
  .promo {
    --art: 280px;
    --phone: 178px;
    grid-template-columns: minmax(0, 1fr) 196px;
  }

  .promo__slide {
    min-height: 292px;
    padding-left: 40px;
  }

  .promo__title {
    font-size: 38px;
  }

  .promo__text {
    font-size: 16px;
  }

  .promo__phone {
    right: 52px;
  }

  .promo__fan {
    --card: 46%;
    right: 36px;
    height: 262px;
  }

  .promo__nav {
    left: 40px;
  }

  .promo__qr {
    position: relative;
    z-index: 5;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-left: 1px solid #ffffff1f;
    background: #0b1d14;
    text-align: center;
  }

  .promo__qr img {
    width: 124px;
    height: 124px;
    padding: 6px;
    border-radius: 14px;
    background: #fff8ee;
  }

  .promo__qr p {
    font: 400 13px/18px var(--sans);
    color: #bfcbc2;
  }

  .promo__qr b {
    display: block;
    font-weight: 700;
    color: #fff2dd;
  }

  /* an iPad is a phone here: it downloads on itself */
  [data-platform='ios'] .promo,
  [data-platform='android'] .promo {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-platform='ios'] .promo__qr,
  [data-platform='android'] .promo__qr {
    display: none;
  }
}

/* the QR code in the store sheet: computers only, like the banner's */
.qr {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 20px 0 0;
}

.qr img {
  width: 132px;
  height: 132px;
  padding: 6px;
  border-radius: 14px;
  background: #fff8ee;
}

.qr figcaption {
  font-size: 14px;
  color: #bfcbc2;
}

[data-platform='ios'] .qr,
[data-platform='android'] .qr {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .promo__stage::before,
  .promo__stage::after,
  .promo__cta::before,
  .promo__slide--avviso .promo__eyebrow::before,
  .promo__slide.is-active *,
  .promo__slide.is-active .promo__photo,
  .promo__slide.is-active .promo__bell svg {
    animation: none;
  }

  .promo__slide,
  .promo__slide.is-active {
    transform: none;
    transition: opacity 0.2s ease, visibility 0s;
  }
}

/* ---------- download sheet (as on the home) ---------- */

.sheet {
  width: min(420px, 100% - 2 * var(--gutter));
  padding: 32px 28px 28px;
  border: 1px solid #2c4a3a;
  border-radius: 24px;
  background: #1d3a2b;
  color: #f7f1e6;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.sheet::backdrop {
  background: rgba(5, 12, 8, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.sheet[open] {
  animation: sheet-in 0.35s var(--ease-out);
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
}

.sheet__close-form {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
}

.sheet__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #bfcbc2;
  cursor: pointer;
}

.sheet__close:hover {
  background: rgba(255, 242, 221, 0.08);
  color: #f7f1e6;
}

.sheet__close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.sheet__icon {
  width: 72px;
  height: 72px;
  border-radius: 17px;
}

.sheet__title {
  margin-top: 16px;
  font: 600 26px/1.15 var(--serif);
  color: #fff2dd;
}

.sheet__text {
  margin-top: 8px;
  color: #bfcbc2;
}

.sheet__stores {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.store {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid #2c4a3a;
  border-radius: 16px;
  background: #0e2419;
  color: #f7f1e6;
  text-decoration: none;
  transition: border-color 0.2s;
}

.store:hover {
  border-color: #e2be6a;
  color: #f7f1e6;
}

.store__small {
  font-size: 13px;
  color: #bfcbc2;
}

.store__name {
  font: 600 19px/1.2 var(--sans);
}

.store[aria-disabled='true'] {
  pointer-events: none;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .sheet[open],
  .video__media img,
  .row summary::after,
  .faq summary::after {
    animation: none;
    transition: none;
  }
}
