/*
 * Theme v1 - SantaClaus.
 *
 * One hand-written stylesheet for everything: the public site, the sign-in
 * pages, the panel and the error pages. No framework, no build step: this
 * file is served as it is written. Every class is prefixed `fx-`; colours,
 * sizes and radii are tokens on :root, so the theme is restyled by changing
 * the tokens first.
 *
 * The brand: a winter night (`--fx-night`), pine green, cream paper, Santa's
 * red and gold. Fraunces for titles, Figtree for text, Caveat for the few
 * handwritten words - all three self-hosted under `../fonts/` (SIL Open Font
 * License, the licence files sit beside the fonts), so no visitor's address
 * is sent to a font provider.
 *
 * Colour scoping: the public site paints whole sections dark or light. A
 * section sets a handful of local custom properties (`--fx-on-*`) and the
 * components inside read them, so the same eyebrow, lead, link or outline
 * button is gold on the night and red on the paper without a second class.
 *
 * Motion: every animation lives inside
 * `@media (prefers-reduced-motion: no-preference)`; with reduced motion the
 * page is still, and nothing waits for an animation to become readable. The
 * scroll reveal (`fx-reveal`) only hides what `js/www/site.js` marks as
 * still below the fold, so a page without its script shows everything.
 *
 * Sections: fonts, tokens, base, layout, typography, buttons, forms, cards
 * and lists, alerts and badges, tables, navigation (tabs, dropdowns), steps,
 * slots, progress, public site (header, decorations, sections, home blocks,
 * inner pages, footer), chat «Chiedi all’elfo Zenzero», sign-in pages, panel,
 * dialogs, notifications, assistant, toasts, legal pages, error pages,
 * motion, utilities.
 */

/* ---- Fonts -------------------------------------------------------------- */

/* The server caches a font for a year (nginx/conf.d/nginx.conf): a font
   file is never changed in place, a new cut takes a new file name here and
   in the preloads of `_parts/_head` and the pages. */

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url("../fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Fraunces";
    font-style: italic;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
}

/* The numbers of the steps (1, 2, 3 and I, II, III...): the same italic of
   Fraunces, cut down to the digits, the letters I, V, X and the space (8 KB
   instead of 80), under a name of its own (`--fx-font-numerals`). A page
   that numbers its steps and quotes nobody in italic never downloads the
   whole italic. The space is not decoration: the browser measures the line
   with the first font of the list that has it, and without it would fetch
   the whole italic just for that. */
@font-face {
    font-family: "Fraunces Numerals";
    font-style: italic;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/fraunces-italic-numerals.woff2") format("woff2");
    unicode-range: U+0020, U+0030-0039, U+0049, U+0056, U+0058;
}

@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/figtree-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/caveat-latin.woff2") format("woff2");
}

/* ---- Tokens ------------------------------------------------------------- */

:root {
    --fx-font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fx-font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --fx-font-numerals: "Fraunces Numerals", "Fraunces", Georgia, "Times New Roman", serif;
    --fx-font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
    --fx-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    /* Three text sizes, and nothing smaller: the running text, the
       secondary text (labels, hints, captions, buttons, menus) and the
       small capitals and micro labels. */
    --fx-text: 17px;
    --fx-text-sm: 16px;
    --fx-text-xs: 14px;

    /* The brand palette. Components use the semantic tokens below; these
       are for the public site's painted sections and illustrations. */
    --fx-night: #0b1a2e;
    --fx-night-2: #10233d;
    --fx-night-3: #16304f;
    --fx-night-deep: #071222;
    --fx-pine: #0f2e25;
    --fx-pine-2: #15392e;
    --fx-pine-3: #1c4a3b;
    --fx-cream: #fbf4e6;
    --fx-paper: #f4e6cc;
    --fx-paper-line: #ead9b8;
    --fx-ink: #2a1a14;
    --fx-ink-2: #5a4434;
    --fx-red: #c8202f;
    --fx-red-2: #a3172a;
    /* The red of the logo only (the accent of the name, Santa's hat): the
       same on light and dark backgrounds. Buttons and links keep --fx-red. */
    --fx-brand-red: #E3121B;
    --fx-brand-line: #c9ae86;
    --fx-gold: #e7be66;
    --fx-gold-2: #c99a3e;
    --fx-holly: #1f7a55;
    --fx-snow: #f8f2e6;
    --fx-snow-2: #d6dde7;
    --fx-frost: #9eabbe;
    --fx-line-gold: rgba(231, 190, 102, 0.22);

    /* Semantic tokens: light surfaces (the panel, the forms, the cards). */
    --fx-color-bg: var(--fx-cream);
    --fx-color-surface: #ffffff;
    --fx-color-surface-alt: #f7eedc;
    --fx-color-text: var(--fx-ink);
    --fx-color-muted: #6a5546;
    --fx-color-brand-accent: var(--fx-brand-red);
    --fx-color-brand-mark-line: var(--fx-brand-line);
    --fx-color-border: #e6d3ae;
    --fx-color-primary: var(--fx-red);
    --fx-color-primary-hover: var(--fx-red-2);
    --fx-color-primary-text: #ffffff;
    --fx-color-primary-soft: #fbe5e3;
    --fx-color-accent: var(--fx-gold-2);
    --fx-color-danger: #b3261e;
    --fx-color-danger-soft: #fce8e6;
    --fx-color-success: #1b6e4c;
    --fx-color-success-soft: #e2f2e9;
    --fx-color-warning: #835400;
    --fx-color-warning-soft: #fff1d2;
    --fx-color-info: #2a4a72;
    --fx-color-info-soft: #eaf0f7;
    /* Solid: a translucent red reads 1.8:1 on the cream and white surfaces,
       below the 3:1 a focus indicator needs (WCAG 1.4.11). */
    --fx-color-focus: #c8202f;
    --fx-color-backdrop: rgba(7, 18, 34, 0.62);

    --fx-radius: 12px;
    --fx-radius-lg: 20px;
    --fx-radius-xl: 26px;
    --fx-radius-pill: 999px;
    --fx-shadow: 0 1px 2px rgba(90, 52, 20, 0.06), 0 10px 28px rgba(90, 52, 20, 0.08);
    --fx-shadow-lg: 0 24px 60px rgba(7, 18, 34, 0.3);
    --fx-shadow-glow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(231, 190, 102, 0.35), 0 0 60px rgba(231, 190, 102, 0.18);

    --fx-space-1: 4px;
    --fx-space-2: 8px;
    --fx-space-3: 12px;
    --fx-space-4: 16px;
    --fx-space-5: 24px;
    --fx-space-6: 32px;
    --fx-space-7: 48px;
    --fx-space-8: 64px;
    --fx-space-9: 100px;

    --fx-container: 1180px;
    --fx-reading: 780px;
    --fx-gutter: 16px;
}

@media (min-width: 720px) {
    :root {
        --fx-gutter: 22px;
    }
}

/* The panel follows the system's dark mode, on the winter night. The public
   site and the error pages keep their own painted look (see below). */
@media (prefers-color-scheme: dark) {
    :root {
        --fx-color-bg: var(--fx-night);
        --fx-color-surface: var(--fx-night-2);
        --fx-color-surface-alt: var(--fx-night-3);
        --fx-color-text: var(--fx-snow);
        --fx-color-muted: var(--fx-frost);
        --fx-color-brand-accent: var(--fx-brand-red);
        --fx-color-brand-mark-line: var(--fx-night);
        --fx-color-border: rgba(231, 190, 102, 0.2);
        --fx-color-primary: #d93242;
        --fx-color-primary-hover: #e65463;
        --fx-color-primary-text: #ffffff;
        --fx-color-primary-soft: rgba(200, 32, 47, 0.2);
        --fx-color-accent: var(--fx-gold);
        --fx-color-danger: #ff8c96;
        --fx-color-danger-soft: rgba(200, 32, 47, 0.18);
        --fx-color-success: #6fd6a4;
        --fx-color-success-soft: rgba(31, 122, 85, 0.24);
        --fx-color-warning: #f2c76b;
        --fx-color-warning-soft: rgba(231, 190, 102, 0.16);
        --fx-color-info: #a9c6ec;
        --fx-color-info-soft: rgba(143, 211, 255, 0.12);
        --fx-color-focus: rgba(231, 190, 102, 0.6);
        --fx-color-backdrop: rgba(0, 0, 0, 0.66);
        --fx-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.25);
        --fx-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    }
}

/* The public site is designed in fixed light and dark sections: its forms
   and cards always use the light tokens, whatever the system prefers. A
   light piece (`.fx-light`, see the public site's colour scoping) takes the
   same tokens, so one shown in the panel - a legal document in its
   full-screen dialog - keeps the paper of the site in the panel's dark mode
   too; on the public site they are the tokens it already has. */
.fx-layout-www,
.fx-light {
    color-scheme: light;
    --fx-color-bg: var(--fx-cream);
    --fx-color-surface: #ffffff;
    --fx-color-surface-alt: #f7eedc;
    --fx-color-text: var(--fx-ink);
    --fx-color-muted: #6a5546;
    --fx-color-border: #e6d3ae;
    --fx-color-primary: var(--fx-red);
    --fx-color-primary-hover: var(--fx-red-2);
    --fx-color-primary-text: #ffffff;
    --fx-color-primary-soft: #fbe5e3;
    --fx-color-danger: #b3261e;
    --fx-color-danger-soft: #fce8e6;
    --fx-color-success: #1b6e4c;
    --fx-color-success-soft: #e2f2e9;
    --fx-color-warning: #835400;
    --fx-color-warning-soft: #fff1d2;
    --fx-color-info: #2a4a72;
    --fx-color-info-soft: #eaf0f7;
    /* Solid: a translucent red reads 1.8:1 on the cream and white surfaces,
       below the 3:1 a focus indicator needs (WCAG 1.4.11). */
    --fx-color-focus: #c8202f;
    --fx-shadow: 0 1px 2px rgba(90, 52, 20, 0.06), 0 10px 28px rgba(90, 52, 20, 0.08);
}

/* ---- Base --------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--fx-font);
    font-size: var(--fx-text);
    line-height: 1.6;
    color: var(--fx-color-text);
    background: var(--fx-color-bg);
}

[hidden] {
    display: none !important;
}

a {
    color: var(--fx-on-link, var(--fx-color-primary));
    text-underline-offset: 3px;
}

a:hover {
    color: var(--fx-on-link-hover, var(--fx-color-primary-hover));
}

img,
svg {
    vertical-align: middle;
}

pre {
    font-family: var(--fx-font-mono);
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
}

:focus-visible {
    outline: 3px solid var(--fx-on-focus, var(--fx-color-focus));
    outline-offset: 2px;
}

/* ---- Layout ------------------------------------------------------------- */

.fx-container {
    width: 100%;
    max-width: var(--fx-container);
    margin: 0 auto;
    padding: 0 var(--fx-gutter);
}

.fx-main {
    flex: 1 0 auto;
    width: 100%;
}

.fx-layout-app .fx-main {
    padding-top: var(--fx-space-5);
    padding-bottom: var(--fx-space-7);
}

.fx-skip-link {
    position: absolute;
    left: var(--fx-space-2);
    top: -100px;
    z-index: 100;
    padding: var(--fx-space-2) var(--fx-space-3);
    color: var(--fx-ink);
    background: #ffffff;
    border-radius: var(--fx-radius);
}

.fx-skip-link:focus {
    top: var(--fx-space-2);
}

.fx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fx-space-3);
}

.fx-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--fx-space-4);
}

@media (min-width: 720px) {
    .fx-grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .fx-field-full {
        grid-column: 1 / -1;
    }
}

/* Two columns that stack on a phone: copy beside a picture, the call beside
   its controls. `fx-split-top` aligns them to the top instead of the middle. */
.fx-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--fx-space-7);
    align-items: center;
}

.fx-split-top {
    align-items: start;
}

@media (min-width: 980px) {
    .fx-split {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
    }

    .fx-split-wide-left {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* ---- Typography --------------------------------------------------------- */

/* Balanced: a title never leaves one word alone on its last line. The
   names that must not break at all («Babbo Natale», «Polo Nord») are joined
   by the server (`App\Services\HeadingTypography`), not here. */
h1,
h2,
h3 {
    font-family: var(--fx-font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
    margin: 0 0 var(--fx-space-3);
}

h1 {
    font-size: 30px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 18px;
}

p {
    margin: 0 0 var(--fx-space-3);
}

p:last-child {
    margin-bottom: 0;
}

.fx-lead {
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--fx-on-lead, var(--fx-color-muted));
}

.fx-muted {
    color: var(--fx-on-muted, var(--fx-color-muted));
}

/* The mark in front of an eyebrow (the red dot, the holly) stands on its
   first line: centred, it hung between the two lines of an eyebrow that
   wraps on a phone. The line box is 1.6em high (the body's line height). */
.fx-eyebrow {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    font-family: var(--fx-font);
    font-size: var(--fx-text-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fx-on-eyebrow, var(--fx-color-primary));
}

.fx-eyebrow > .fx-live-dot {
    margin-top: calc(0.8em - 4px);
}

.fx-eyebrow > .fx-holly {
    margin-top: calc(0.8em - 11px);
}

/* A line icon in front of an eyebrow (the lock of «Privacy e sicurezza»),
   centred on the first line like the dot and the holly. */
.fx-eyebrow > .fx-eyebrow-icon {
    flex: 0 0 auto;
    display: inline-flex;
    width: 16px;
    height: 16px;
    margin-top: calc(0.8em - 8px);
}

.fx-eyebrow-icon svg {
    width: 100%;
    height: 100%;
}

/* The few handwritten words of the site, in Caveat. */
.fx-hand {
    font-family: var(--fx-font-hand);
    font-weight: 700;
    letter-spacing: 0;
    text-wrap: balance;
}

.fx-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--fx-font-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--fx-on-text, var(--fx-color-text));
    text-decoration: none;
    white-space: nowrap;
}

.fx-brand:hover {
    color: var(--fx-on-text, var(--fx-color-text));
}

.fx-brand-mark {
    flex: none;
    width: 34px;
    height: 34px;
}

/* The name: the lead takes the colour of the text around it, the accent is
   always the brand red, the same on a light and on a dark background. */
.fx-brand-accent {
    color: var(--fx-on-brand-accent, var(--fx-color-brand-accent));
}

/* The symbol: the outline of its white shapes follows the background, the
   hat is always the brand red, like the accent of the name. */
.fx-brand-mark-line {
    stroke: var(--fx-on-brand-mark-line, var(--fx-color-brand-mark-line));
}

.fx-brand-mark-hat {
    fill: var(--fx-on-brand-accent, var(--fx-color-brand-accent));
}

/* ---- Buttons ------------------------------------------------------------ */

.fx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--fx-space-2);
    /* 44px: the smallest target a finger hits reliably. */
    min-height: 44px;
    padding: 8px 18px;
    font: inherit;
    font-size: var(--fx-text-sm);
    font-weight: 700;
    line-height: 1.2;
    color: var(--fx-color-text);
    background: var(--fx-color-surface);
    border: 1.5px solid var(--fx-color-border);
    border-radius: var(--fx-radius-pill);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.fx-btn:hover {
    color: var(--fx-color-text);
    background: var(--fx-color-surface-alt);
}

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

.fx-btn:disabled,
.fx-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.fx-btn-primary {
    overflow: hidden;
    color: var(--fx-color-primary-text);
    background: var(--fx-color-primary);
    border-color: var(--fx-color-primary);
    box-shadow: 0 10px 28px rgba(200, 32, 47, 0.28);
}

.fx-btn-primary:hover {
    color: var(--fx-color-primary-text);
    background: var(--fx-color-primary-hover);
    border-color: var(--fx-color-primary-hover);
}

/* The outline button: red on light surfaces, gold on the dark sections. */
.fx-btn-secondary {
    color: var(--fx-on-outline, var(--fx-color-primary));
    background: transparent;
    border-color: currentColor;
}

.fx-btn-secondary:hover {
    color: var(--fx-on-outline, var(--fx-color-primary));
    background: var(--fx-on-outline-hover, var(--fx-color-primary-soft));
}

.fx-btn-danger {
    color: var(--fx-color-danger);
    border-color: var(--fx-color-danger);
    background: transparent;
}

.fx-btn-danger:hover {
    color: var(--fx-color-danger);
    background: var(--fx-color-danger-soft);
}

.fx-btn-ghost {
    color: var(--fx-on-text, var(--fx-color-text));
    background: transparent;
    border-color: transparent;
}

.fx-btn-ghost:hover {
    color: var(--fx-on-text, var(--fx-color-text));
    background: var(--fx-on-ghost-hover, var(--fx-color-surface-alt));
}

.fx-btn-danger-text {
    color: var(--fx-color-danger);
}

.fx-btn-sm {
    min-height: 34px;
    padding: 4px 12px;
    font-size: 15px;
}

/* Under a finger the small button keeps its look but not its height. */
@media (pointer: coarse) {
    .fx-btn-sm {
        min-height: 44px;
    }
}

/* The call to action of the public site. */
.fx-btn-lg {
    min-height: 54px;
    padding: 0 30px;
    font-size: 16px;
}

.fx-btn-icon {
    min-width: 44px;
    padding: 4px;
    font-size: 20px;
}

.fx-btn-block {
    display: flex;
    width: 100%;
}

.fx-btn-icon-left {
    flex: none;
    width: 18px;
    height: 18px;
}

/* The light that sweeps across a primary call to action now and then. */
.fx-btn-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: translateX(-160%) skewX(-20deg);
    pointer-events: none;
}

/* A button waiting for its answer: `aria-busy="true"` draws the spinner. */
.fx-btn[aria-busy="true"]::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

@media (max-width: 639px) {
    .fx-cta-row .fx-btn,
    .fx-btn-stack-mobile {
        width: 100%;
    }
}

/* ---- Forms -------------------------------------------------------------- */

.fx-form {
    margin: 0;
}

/* A form shown one block at a time (the booking form,
   `js/www/booking-form.js`): with the script only the block marked
   `fx-form-step-current` shows - and with it what of the page belongs to
   that block only, marked the same way - and the buttons that move between
   blocks (`fx-form-step-nav`: a row of its own after a block's cards, or a
   button beside the one that sends) close the block. Without the script (no
   `fx-js` on the root element) every block shows, as one long form, and
   those buttons stay hidden. */
.fx-js .fx-form-step:not(.fx-form-step-current) {
    display: none;
}

html:not(.fx-js) .fx-form-step-nav {
    display: none;
}

.fx-actions.fx-form-step-nav {
    margin-bottom: var(--fx-space-5);
}

/* Two buttons sharing the whole row in two equal halves, on a phone as on a
   desktop (the booking form: «Indietro» beside «Avanti», or beside the
   button that sends). Their padding is narrower so both labels fit side by
   side; on the narrowest phones a long label goes on two lines inside its
   button instead of pushing the other one off the row. */
.fx-actions-halves {
    flex-wrap: nowrap;
    width: 100%;
}

.fx-actions-halves > .fx-btn {
    flex: 1 1 0;
    min-width: 0;
    padding-right: var(--fx-space-2);
    padding-left: var(--fx-space-2);
    white-space: normal;
    text-align: center;
}

.fx-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--fx-space-4);
}

.fx-grid-2 .fx-field {
    margin-bottom: 0;
}

.fx-fieldset {
    min-width: 0;
    margin: 0 0 var(--fx-space-4);
    padding: 0;
    border: 0;
}

.fx-fieldset > legend {
    padding: 0;
    margin-bottom: var(--fx-space-2);
}

.fx-label {
    font-size: var(--fx-text-sm);
    font-weight: 700;
}

.fx-label-optional {
    font-weight: 500;
    color: var(--fx-color-muted);
}

.fx-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--fx-space-2);
    font-size: var(--fx-text-sm);
}

/* A field that must be filled in: a red asterisk after its label. The
   control carries `required`, which is what a screen reader announces, so
   the asterisk itself is not read out. */
.fx-label-required::after {
    content: "*";
    content: "*" / "";
    margin-left: 3px;
    font-weight: 700;
    color: var(--fx-color-danger);
}

/* The heading of one child in a children form: a tinted band with the
   title in red, so each child reads as a block of its own among the fields. */
.fx-child-header {
    align-items: center;
    margin-bottom: var(--fx-space-3);
    padding: 12px 16px;
    background: var(--fx-color-primary-soft);
    border-radius: var(--fx-radius-lg);
}

.fx-child-header .fx-card-title {
    margin: 0;
    font-family: var(--fx-font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--fx-color-primary);
}

/* Each child is a panel of an accordion (`<details name>`): the band opens
   it, its plus becomes a minus while it is open (`.fx-icon-plus-bar`), and
   opening one closes the others. */
.fx-child > summary {
    list-style: none;
    cursor: pointer;
}

.fx-child > summary::-webkit-details-marker {
    display: none;
}

.fx-child:not([open]) > .fx-child-header {
    margin-bottom: 0;
}

.fx-child + .fx-child {
    padding-top: 0;
}

/* A child whose panel holds a field that fails a check - the browser's or
   the server's (`FxFormValidation` adds `fx-panel-invalid` to the panel while
   one of its controls carries `aria-invalid`): its band takes a danger
   outline and a red dot before the title, so the error shows with the panel
   closed too. */
.fx-child.fx-panel-invalid > .fx-child-header {
    box-shadow: inset 0 0 0 2px var(--fx-color-danger);
}

.fx-child.fx-panel-invalid > .fx-child-header .fx-card-title::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    vertical-align: middle;
    background: var(--fx-color-danger);
    border-radius: 50%;
}

.fx-child-actions {
    justify-content: flex-end;
    margin-top: var(--fx-space-3);
}

.fx-child-actions:has(> [hidden]:only-child) {
    display: none;
}

/* Text inputs, selects and text areas share one look. */
.fx-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    font: inherit;
    font-size: 16px;
    color: var(--fx-color-text);
    background: var(--fx-color-surface);
    border: 1.5px solid var(--fx-color-border);
    border-radius: var(--fx-radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fx-input::placeholder {
    color: var(--fx-color-muted);
    opacity: 0.8;
}

.fx-input:focus {
    outline: none;
    border-color: var(--fx-color-primary);
    box-shadow: 0 0 0 3px var(--fx-color-focus);
}

.fx-input:disabled {
    color: var(--fx-color-muted);
    background: var(--fx-color-surface-alt);
}

select.fx-input {
    padding-right: 42px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a3172a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    cursor: pointer;
}

textarea.fx-input {
    min-height: 132px;
    resize: vertical;
    line-height: 1.5;
}

.fx-hint {
    margin: 0;
    font-size: var(--fx-text-sm);
    color: var(--fx-color-muted);
}

/* The counter under a long text, «12/500» (`js/ui/char-count.js`): small,
   muted, on the right under the field. */
.fx-char-count {
    margin: 0;
    font-size: var(--fx-text-xs);
    line-height: 1.4;
    text-align: right;
    color: var(--fx-color-muted);
}

/* A label with an «i» button at its end, whose explanation opens in a
   popover under the label (`js/ui/popover.js`). The row is the containing
   block of the popover, which covers the field below it instead of pushing
   it down, as wide as the field. */
.fx-label-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
}

.fx-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin: -2px 0;
    padding: 0;
    color: var(--fx-color-muted);
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.fx-info-button svg {
    width: 18px;
    height: 18px;
}

.fx-info-button:hover,
.fx-info-button[aria-expanded="true"] {
    color: var(--fx-color-primary);
}

/* A finger needs 44px: the button grows, and its negative margins keep the
   row as tall as the label. */
@media (pointer: coarse) {
    .fx-info-button {
        width: 44px;
        height: 44px;
        margin: -10px -8px -10px -6px;
    }
}

.fx-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    width: 100%;
    max-width: 360px;
    margin: 0;
    padding: 10px 14px;
    font-size: var(--fx-text-sm);
    font-weight: 400;
    line-height: 1.5;
    color: var(--fx-color-text);
    background: var(--fx-color-surface);
    border: 1px solid var(--fx-color-border);
    border-radius: var(--fx-radius);
    box-shadow: var(--fx-shadow);
}

/* A message under a field, shown only after a submit attempt
   (`FxFormValidation` adds `fx-was-validated` to the form), or when a module
   marks the field with `fx-field-invalid` for an error the server returned. */
.fx-invalid-feedback {
    display: none;
    margin: 0;
    font-size: var(--fx-text-sm);
    font-weight: 600;
    color: var(--fx-color-danger);
}

.fx-was-validated .fx-input:invalid,
.fx-was-validated .fx-check-input:invalid,
.fx-field-invalid .fx-input {
    border-color: var(--fx-color-danger);
}

.fx-was-validated .fx-field:has(:invalid) > .fx-invalid-feedback,
.fx-field-invalid > .fx-invalid-feedback {
    display: block;
}

/* A field error that refuses what was written rather than its format (the
   check of the children's texts, `FxFieldErrors`): the message under the
   field becomes a box styled like `.fx-alert-danger`, so it is not missed
   in a long form. */
.fx-invalid-feedback.fx-invalid-feedback-alert {
    padding: var(--fx-space-3) var(--fx-space-4);
    line-height: 1.5;
    color: var(--fx-color-danger);
    background: var(--fx-color-danger-soft);
    border-left: 4px solid var(--fx-color-danger);
    border-radius: var(--fx-radius);
}

/* A checkbox or a radio with its label beside it. */
.fx-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: var(--fx-space-2);
    font-size: var(--fx-text-sm);
    line-height: 1.5;
}

/* A box that is a field of its own (the boxes of a purchase): the field
   already spaces it from the next one, so the box adds no margin. */
.fx-field > .fx-check {
    margin-bottom: 0;
}

/* The boxes of a purchase right under its recap (`fx-facts`, the
   «Riepilogo» of the booking and of the gift voucher): set apart from the
   last row. */
.fx-facts + .fx-field {
    margin-top: var(--fx-space-5);
}

/* A label carrying links (the Conditions, the privacy notice): lines a
   little more open - each at least 24px, so two links on two lines are
   never under the same fingertip. The padding enlarges the target without
   moving a word; the box moves down to stay on the first line. */
.fx-check:has(a) {
    line-height: 1.6;
}

.fx-check:has(a) .fx-check-input {
    margin-top: 3px;
}

.fx-check a {
    padding: 4px 0;
}

.fx-check-input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--fx-color-primary);
    cursor: pointer;
}

.fx-was-validated .fx-check-input:invalid {
    outline: 2px solid var(--fx-color-danger);
    outline-offset: 1px;
}

/* A button that reads as a link inside a sentence: «le clausole» of the
   specific approval, which opens the list of the clauses under its box
   (`js/ui/disclosure.js`). The colour and underline of a link, the font of
   the words around it, and the same taller target as the links of a box.
   A browser lays a button out as an inline block whatever its `display`,
   so its padding would make its line taller than the lines of the other
   boxes: the negative margin gives that height back to the line. */
.fx-link-button {
    display: inline;
    margin: -4px 0;
    padding: 4px 0;
    font: inherit;
    line-height: inherit;
    color: var(--fx-on-link, var(--fx-color-primary));
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    border: 0;
    cursor: pointer;
}

.fx-link-button:hover {
    color: var(--fx-on-link-hover, var(--fx-color-primary-hover));
}

/* The text a box opens under its sentence: the list of the clauses of the
   specific approval. */
.fx-check-detail {
    display: block;
    margin-top: var(--fx-space-1);
}

/* Options as cards: a radio or a checkbox inside a bordered label, the
   checked one outlined. `fx-choice-list` lays them out. */
.fx-choice-list {
    display: grid;
    gap: var(--fx-space-3);
}

@media (min-width: 720px) {
    .fx-choice-list-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fx-choice {
    display: flex;
    align-items: flex-start;
    gap: var(--fx-space-3);
    padding: 14px 16px;
    background: var(--fx-color-surface);
    border: 1.5px solid var(--fx-color-border);
    border-radius: var(--fx-radius);
    cursor: pointer;
}

.fx-choice:has(:checked) {
    border-color: var(--fx-color-primary);
    box-shadow: 0 0 0 3px var(--fx-color-primary-soft);
}

.fx-choice:has(:disabled) {
    opacity: 0.55;
    cursor: not-allowed;
}

.fx-choice-title {
    display: block;
    font-weight: 700;
}

.fx-choice-text {
    display: block;
    font-size: var(--fx-text-sm);
    color: var(--fx-color-muted);
}

/* ---- Cards and lists ---------------------------------------------------- */

.fx-card {
    color: var(--fx-color-text);
    background: var(--fx-color-surface);
    border: 1px solid var(--fx-color-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow);
    margin-bottom: var(--fx-space-5);
}

.fx-card-header {
    padding: var(--fx-space-4) var(--fx-space-5);
    border-bottom: 1px solid var(--fx-color-border);
}

.fx-card-title {
    font-size: 19px;
    margin-bottom: var(--fx-space-1);
}

.fx-card-subtitle {
    margin: 0;
    font-size: var(--fx-text-sm);
    color: var(--fx-color-muted);
}

.fx-card-body {
    padding: var(--fx-space-5);
}

.fx-card-footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--fx-space-2);
    padding: var(--fx-space-3) var(--fx-space-5);
    border-top: 1px solid var(--fx-color-border);
}

/* The alert of a form inside its footer (a submit refused for a reason the
   parent must read, such as the check of the children's texts giving no
   verdict): a row of its own above the total and the buttons. */
.fx-card-footer > .fx-alert {
    flex-basis: 100%;
    margin-bottom: 0;
}

/* The total above the button that pays: the amount large, on a line of its
   own, so nobody reaches the payment without seeing it. */
.fx-total {
    flex-basis: 100%;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--fx-space-2);
    margin: 0 0 var(--fx-space-4);
}

.fx-total-label {
    font-size: 17px;
    font-weight: 700;
}

.fx-total-amount {
    font-family: var(--fx-font-display);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--fx-color-primary);
}

/* The cards and wallets accepted, as small framed logos. */
.fx-pay-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: var(--fx-space-2) 0 0;
    padding: 0;
    list-style: none;
}

.fx-pay-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 38px;
    background: #ffffff;
    border: 1px solid var(--fx-color-border);
    border-radius: 8px;
}

.fx-pay-logo img {
    width: 30px;
    height: 30px;
}

/* A card on the warm paper instead of white. */
.fx-card-paper {
    background: var(--fx-paper);
    border-color: var(--fx-paper-line);
}

/* An offer inside the panel - the recording a parent can still add to a
   booked call: the warm paper card (`.fx-card-paper`) with a red ribbon
   along its top edge, so it reads as something to choose and not as one
   more record of the booking. The price is a `.fx-total` above the button,
   as on the payment step of the booking form. */
.fx-card-offer {
    border-top: 4px solid var(--fx-red);
}

.fx-card-offer .fx-card-header {
    border-bottom-color: var(--fx-paper-line);
}

.fx-card-offer .fx-card-footer {
    border-top-color: var(--fx-paper-line);
}

.fx-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fx-list-item {
    display: flex;
    align-items: center;
    gap: var(--fx-space-3);
    padding: var(--fx-space-3) var(--fx-space-5);
    border-bottom: 1px solid var(--fx-color-border);
}

.fx-list-item:last-child {
    border-bottom: 0;
}

.fx-list-item-main {
    flex: 1 1 auto;
    min-width: 0;
}

.fx-list-item-main p {
    margin: 0;
    overflow-wrap: anywhere;
}

.fx-empty {
    text-align: center;
    padding: var(--fx-space-6) var(--fx-space-4);
}

.fx-empty-title {
    font-family: var(--fx-font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--fx-space-2);
}

/* A load the user waits for: the line of text, and the spinner beside it. */
.fx-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--fx-space-2);
    padding: var(--fx-space-3);
    text-align: center;
    color: var(--fx-on-muted, var(--fx-color-muted));
}

.fx-loading::before,
.fx-spinner {
    content: "";
    display: inline-block;
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

/* A list of facts, label and value on one row: «In breve», a booking
   summary. Wrap it in `fx-facts-card` for the white card around it. */
.fx-facts {
    margin: 0;
}

.fx-facts-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 13px 0;
    border-top: 1px solid var(--fx-color-border);
}

.fx-facts-row:first-child {
    border-top: 0;
}

.fx-facts dt {
    font-weight: 700;
}

.fx-facts dd {
    margin: 0;
    color: var(--fx-color-muted);
}

@media (min-width: 640px) {
    .fx-facts-row {
        grid-template-columns: minmax(150px, 1fr) 2fr;
        gap: var(--fx-space-4);
    }
}

.fx-facts-card {
    color: var(--fx-ink);
    background: #ffffff;
    border: 1px solid var(--fx-paper-line);
    border-radius: 22px;
    padding: 28px 30px;
    box-shadow: 0 14px 34px rgba(90, 52, 20, 0.06);
}

.fx-facts-card h2 {
    font-size: 24px;
    font-weight: 800;
}

/* ---- Alerts and badges -------------------------------------------------- */

.fx-alert {
    padding: var(--fx-space-3) var(--fx-space-4);
    margin-bottom: var(--fx-space-4);
    color: var(--fx-color-text);
    background: var(--fx-color-surface-alt);
    border: 1px solid transparent;
    border-left-width: 4px;
    border-radius: var(--fx-radius);
    font-size: var(--fx-text-sm);
}

.fx-alert-success {
    color: var(--fx-color-success);
    background: var(--fx-color-success-soft);
    border-left-color: var(--fx-color-success);
}

.fx-alert-danger {
    color: var(--fx-color-danger);
    background: var(--fx-color-danger-soft);
    border-left-color: var(--fx-color-danger);
}

.fx-alert-warning {
    color: var(--fx-color-warning);
    background: var(--fx-color-warning-soft);
    border-left-color: var(--fx-gold-2);
}

.fx-alert-info {
    color: var(--fx-color-info);
    background: var(--fx-color-info-soft);
    border-left-color: var(--fx-color-info);
}

.fx-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: var(--fx-text-xs);
    font-weight: 700;
    line-height: 1.6;
    color: var(--fx-color-text);
    border-radius: var(--fx-radius-pill);
    background: var(--fx-color-surface-alt);
    white-space: nowrap;
}

.fx-badge-success {
    color: var(--fx-color-success);
    background: var(--fx-color-success-soft);
}

.fx-badge-warning {
    color: var(--fx-color-warning);
    background: var(--fx-color-warning-soft);
}

.fx-badge-danger {
    color: var(--fx-color-danger);
    background: var(--fx-color-danger-soft);
}

.fx-badge-info {
    color: var(--fx-color-info);
    background: var(--fx-color-info-soft);
}

.fx-badge-gold {
    color: var(--fx-ink);
    background: var(--fx-gold);
}

.fx-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    color: #ffffff;
    background: var(--fx-red);
    border-radius: var(--fx-radius-pill);
}

.fx-status-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--fx-color-border);
}

.fx-status-dot-unread {
    background: var(--fx-color-primary);
}

/* ---- Tables ------------------------------------------------------------- */

/* The scrolling container: a table never widens the page on a phone. */
.fx-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fx-text-sm);
}

.fx-table th,
.fx-table td {
    padding: 12px var(--fx-space-4);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--fx-color-border);
}

.fx-table th {
    font-size: var(--fx-text-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fx-color-muted);
    white-space: nowrap;
    background: var(--fx-color-surface-alt);
}

.fx-table tbody tr:last-child td {
    border-bottom: 0;
}

.fx-table tbody tr:hover {
    background: var(--fx-color-surface-alt);
}

/* Figures: right-aligned, with digits of the same width. */
.fx-table .fx-table-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fx-table .fx-table-actions {
    text-align: right;
    white-space: nowrap;
}

/* ---- Navigation: tabs and dropdowns ------------------------------------- */

.fx-tabs {
    display: flex;
    gap: var(--fx-space-1);
    margin-bottom: var(--fx-space-5);
    border-bottom: 1px solid var(--fx-color-border);
    overflow-x: auto;
}

.fx-tabs a,
.fx-tabs button {
    padding: var(--fx-space-2) var(--fx-space-3);
    font: inherit;
    font-size: var(--fx-text-sm);
    font-weight: 700;
    color: var(--fx-color-muted);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.fx-tabs a.active,
.fx-tabs button.active {
    color: var(--fx-color-primary);
    border-bottom-color: var(--fx-color-primary);
}

.fx-tabs-compact {
    margin: 0;
    padding: 0 var(--fx-space-4);
}

/* A menu that opens from a `<details>`: no script needed. */
.fx-dropdown {
    position: relative;
}

.fx-dropdown > summary {
    list-style: none;
}

.fx-dropdown > summary::-webkit-details-marker {
    display: none;
}

.fx-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    min-width: 200px;
    padding: var(--fx-space-1);
    color: var(--fx-color-text);
    background: var(--fx-color-surface);
    border: 1px solid var(--fx-color-border);
    border-radius: var(--fx-radius);
    box-shadow: var(--fx-shadow-lg);
}

.fx-menu-end {
    left: auto;
    right: 0;
}

.fx-menu-item {
    display: block;
    padding: var(--fx-space-2) var(--fx-space-3);
    color: var(--fx-color-text);
    text-decoration: none;
    border-radius: 8px;
}

.fx-menu-item:hover,
.fx-menu-item[aria-current="page"] {
    color: var(--fx-color-text);
    background: var(--fx-color-surface-alt);
}

.fx-menu-text {
    display: flex;
    flex-direction: column;
    padding: var(--fx-space-2) var(--fx-space-3);
    margin: 0 0 var(--fx-space-1);
    font-size: var(--fx-text-sm);
    border-bottom: 1px solid var(--fx-color-border);
    overflow-wrap: anywhere;
}

/* ---- Steps -------------------------------------------------------------- */

/* The steps of a flow (choose, tell, pay): `aria-current="step"` on the one
   being filled in, `fx-stepper-done` on the ones behind it. */
.fx-stepper {
    display: flex;
    gap: var(--fx-space-2);
    margin: 0 0 var(--fx-space-5);
    padding: 0;
    list-style: none;
    counter-reset: fx-stepper;
    overflow-x: auto;
}

.fx-stepper-item {
    display: flex;
    align-items: center;
    gap: var(--fx-space-2);
    flex: 1 1 0;
    min-width: max-content;
    padding: 10px 14px;
    font-size: var(--fx-text-sm);
    font-weight: 700;
    color: var(--fx-color-muted);
    background: var(--fx-color-surface);
    border: 1.5px solid var(--fx-color-border);
    border-radius: var(--fx-radius-pill);
    counter-increment: fx-stepper;
}

.fx-stepper-item::before {
    content: counter(fx-stepper);
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    font-family: var(--fx-font-numerals);
    font-style: italic;
    color: var(--fx-color-muted);
    background: var(--fx-color-surface-alt);
    border-radius: 50%;
}

.fx-stepper-item[aria-current="step"] {
    color: var(--fx-color-text);
    border-color: var(--fx-color-primary);
}

.fx-stepper-item[aria-current="step"]::before {
    color: #ffffff;
    background: var(--fx-color-primary);
}

.fx-stepper-done::before {
    color: #ffffff;
    background: var(--fx-holly);
}

/* ---- Calendar: days and time slots -------------------------------------- */

/* A row of days to pick from, scrolling sideways on a phone. Each day is a
   button; the chosen one carries `aria-pressed="true"`. */
.fx-day-list {
    display: flex;
    gap: var(--fx-space-2);
    margin: 0 0 var(--fx-space-4);
    padding: 2px 2px var(--fx-space-2);
    list-style: none;
    overflow-x: auto;
}

/* The strip of the bookable days: more days than fit, so it scrolls
   sideways, without a scrollbar, between two arrows that move it by the days
   in view (js/ui/day-scroller.js) - on a phone too, where the finger also
   moves it: the arrows are what tells that more days are there. While more
   days wait on the right, its edge fades. */
.fx-day-scroller {
    display: flex;
    align-items: center;
    gap: var(--fx-space-2);
    margin: 0 0 var(--fx-space-4);
}

.fx-day-viewport {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.fx-day-scroller .fx-day-list {
    margin: 0;
    scrollbar-width: none;
}

.fx-day-scroller .fx-day-list::-webkit-scrollbar {
    display: none;
}

.fx-day-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: var(--fx-space-2);
    width: 56px;
    background: linear-gradient(to right, transparent, var(--fx-color-surface));
    pointer-events: none;
    opacity: 0;
}

.fx-day-scroller-more .fx-day-viewport::after {
    opacity: 1;
}

.fx-day-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    margin-bottom: var(--fx-space-2);
    padding: 0;
    color: var(--fx-color-text);
    background: var(--fx-color-surface);
    border: 1.5px solid var(--fx-color-border);
    border-radius: 50%;
    cursor: pointer;
}

.fx-day-arrow:hover:not(:disabled) {
    border-color: var(--fx-color-primary);
    color: var(--fx-color-primary);
}

.fx-day-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

@media (max-width: 639px) {
    .fx-day-arrow {
        width: 34px;
        height: 34px;
    }
}

.fx-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: none;
    min-width: 72px;
    padding: 10px 12px;
    font: inherit;
    color: var(--fx-color-text);
    background: var(--fx-color-surface);
    border: 1.5px solid var(--fx-color-border);
    border-radius: 16px;
    cursor: pointer;
}

.fx-day-weekday {
    font-size: var(--fx-text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fx-color-muted);
}

.fx-day-number {
    font-family: var(--fx-font-display);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
}

.fx-day-month {
    font-size: var(--fx-text-xs);
    color: var(--fx-color-muted);
}

.fx-day[aria-pressed="true"] {
    color: #ffffff;
    background: var(--fx-color-primary);
    border-color: var(--fx-color-primary);
}

.fx-day[aria-pressed="true"] .fx-day-weekday,
.fx-day[aria-pressed="true"] .fx-day-month {
    /* Plain white: the 85% white of the small text read 4.4:1 on the red. */
    color: #ffffff;
}

.fx-day:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* The parts of the day above the times of a day (morning, afternoon,
   evening): the same `.fx-day` buttons, sharing the row so the three fit a
   360px phone without scrolling, never narrower than their words. They need
   a script, so they show only under `fx-js` (set on the root element by the
   layout); without one every time of the day stays listed. The times of the
   other parts carry `.fx-slot-other-part` from the server already, so the
   first paint shows only the part the times open on. */
.fx-day-parts {
    display: none;
}

.fx-js .fx-day-parts {
    display: flex;
}

.fx-day-parts > .fx-day {
    flex: 1 1 0;
    min-width: min-content;
    padding-right: var(--fx-space-2);
    padding-left: var(--fx-space-2);
}

.fx-js .fx-slot-other-part {
    display: none;
}

/* The times of a day: each a radio inside a label. The input is hidden but
   stays focusable; the label shows the time and the seats left. */
.fx-slot-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: var(--fx-space-2);
    margin: 0;
    padding: 0;
    border: 0;
}

.fx-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    background: var(--fx-color-surface);
    border: 1.5px solid var(--fx-color-border);
    border-radius: var(--fx-radius);
    cursor: pointer;
}

.fx-slot-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.fx-slot-time {
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fx-slot-seats {
    font-size: var(--fx-text-xs);
    color: var(--fx-color-muted);
}

.fx-slot:has(.fx-slot-input:checked) {
    color: #ffffff;
    background: var(--fx-color-primary);
    border-color: var(--fx-color-primary);
}

.fx-slot:has(.fx-slot-input:checked) .fx-slot-seats {
    color: #ffffff;
}

.fx-slot:has(.fx-slot-input:focus-visible) {
    outline: 3px solid var(--fx-color-focus);
    outline-offset: 2px;
}

.fx-slot:has(.fx-slot-input:disabled) {
    opacity: 0.45;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* ---- Progress and countdown --------------------------------------------- */

/* A native `<progress>` or `<meter>` in the theme's colours: the level of a
   microphone, the time of a call. */
.fx-progress {
    width: 100%;
    height: 12px;
    appearance: none;
    border: 0;
    border-radius: var(--fx-radius-pill);
    background: var(--fx-color-surface-alt);
    overflow: hidden;
}

.fx-progress::-webkit-progress-bar,
.fx-progress::-webkit-meter-bar {
    background: var(--fx-color-surface-alt);
    border: 0;
    border-radius: var(--fx-radius-pill);
}

.fx-progress::-webkit-progress-value,
.fx-progress::-webkit-meter-optimum-value {
    background: var(--fx-holly);
    border-radius: var(--fx-radius-pill);
}

.fx-progress::-moz-progress-bar,
.fx-progress::-moz-meter-bar {
    background: var(--fx-holly);
    border-radius: var(--fx-radius-pill);
}

/* Big figures counting down to a time: «12:04». */
.fx-countdown {
    font-family: var(--fx-font-display);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* ---- Public site: page and colour scoping -------------------------------- */

.fx-layout-www {
    color: var(--fx-snow);
    background: var(--fx-night);
    overflow-x: hidden;
    --fx-on-text: var(--fx-snow);
    --fx-on-brand-accent: var(--fx-brand-red);
    --fx-on-brand-mark-line: var(--fx-night);
    --fx-on-lead: var(--fx-snow-2);
    --fx-on-muted: var(--fx-frost);
    --fx-on-eyebrow: var(--fx-gold);
    --fx-on-link: var(--fx-gold);
    --fx-on-link-hover: #f2d48f;
    --fx-on-outline: var(--fx-gold);
    --fx-on-outline-hover: rgba(231, 190, 102, 0.12);
    --fx-on-ghost-hover: rgba(255, 255, 255, 0.08);
    --fx-on-focus: rgba(231, 190, 102, 0.75);
    --fx-on-line: var(--fx-line-gold);
}

.fx-layout-www .fx-main {
    position: relative;
}

/* The light pieces inside a dark page: cards, forms, dialogs and menus go
   back to the ink on white. */
.fx-section-paper,
.fx-layout-www .fx-card,
.fx-layout-www .fx-menu,
.fx-layout-www .fx-toast,
.fx-light {
    --fx-on-text: var(--fx-ink);
    --fx-on-brand-accent: var(--fx-brand-red);
    --fx-on-brand-mark-line: var(--fx-brand-line);
    --fx-on-lead: var(--fx-ink-2);
    --fx-on-muted: #6a5546;
    --fx-on-eyebrow: var(--fx-red);
    --fx-on-link: var(--fx-red);
    --fx-on-link-hover: var(--fx-red-2);
    --fx-on-outline: var(--fx-red);
    --fx-on-outline-hover: var(--fx-color-primary-soft);
    --fx-on-ghost-hover: var(--fx-color-surface-alt);
    --fx-on-focus: var(--fx-color-focus);
    --fx-on-line: var(--fx-paper-line);
}

.fx-section {
    position: relative;
    padding: var(--fx-space-8) 0;
}

@media (min-width: 980px) {
    .fx-section {
        padding: var(--fx-space-9) 0;
    }
}

.fx-section-paper {
    color: var(--fx-ink);
    background: var(--fx-cream);
}

.fx-section-pine {
    color: var(--fx-snow);
    background: var(--fx-pine);
}

.fx-section-night {
    color: var(--fx-snow);
    background: var(--fx-night);
}

.fx-section-midnight {
    color: var(--fx-snow);
    background: var(--fx-night-2);
}

/* A section that follows a page head: the illustration overlaps the join. */
.fx-section-flush {
    padding-top: 0;
}

/* A flush section that opens with words, not with an illustration (a guide
   of «Dal Polo Nord»): it keeps the margin of its first heading inside,
   which would otherwise slip out above it and open a band of the page's
   night colour under the head. */
.fx-section-flush-text {
    display: flow-root;
}

/* The head of a section: the title on the left, its line on the right. */
.fx-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: var(--fx-space-5) var(--fx-space-6);
    margin-bottom: 52px;
}

.fx-section-head .fx-lead {
    margin: 0;
}

.fx-section-title {
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 0;
}

.fx-section-title-spaced {
    margin-bottom: 20px;
}

/* A sentence in display italic: a quote of Santa, a closing line. The
   italic face is laid out (and so fetched) only when the quote is about a
   screen and a half away and `site.js` has added `fx-fonts-late` to the
   root: it must not compete with the first paint for a line that is never in
   the first screen. */
.fx-quote {
    margin: 0 0 26px;
    font-family: var(--fx-font-display);
    font-size: clamp(22px, 2vw, 27px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.35;
}

.fx-fonts-late .fx-quote {
    font-style: italic;
}

.fx-note {
    margin: 22px 0 0;
    font-size: var(--fx-text-sm);
    color: var(--fx-on-muted, var(--fx-color-muted));
}

/* The padding makes the link a target a finger can hit; the margin is
   shorter by as much, so the words stay where they were. */
.fx-more-link {
    display: inline-flex;
    margin-top: 26px;
    padding: 8px 0;
    font-weight: 700;
    text-underline-offset: 5px;
}

/* A short reading column for the inner pages. */
.fx-reading {
    max-width: var(--fx-reading);
    margin: 0 auto;
}

/* The text under the home's three steps, as wide as the cards above it
   and aligned on their left edge and on the link below. */
.fx-live-text {
    margin-top: var(--fx-space-6);
}

/* Long text set for reading: the legal pages, the gift page. */
.fx-prose h2 {
    margin-top: var(--fx-space-6);
    font-size: 24px;
    font-weight: 800;
}

.fx-prose h3 {
    margin-top: var(--fx-space-5);
}

.fx-prose ul,
.fx-prose ol {
    margin: 0 0 var(--fx-space-3);
    padding-left: 22px;
}

.fx-prose li {
    margin-bottom: 6px;
}

/* A postal address inside a text (the guide of the letter): its lines one
   under the other, as they go on the envelope, with no bullet. Printed for
   the `address` lines of a section in `www/north_pole_*.php`. */
.fx-postal-address {
    margin: 0 0 var(--fx-space-3);
    padding-left: 16px;
    line-height: 1.5;
    color: var(--fx-ink);
    border-left: 3px solid var(--fx-paper-line);
}

/* ---- Public site: header ------------------------------------------------- */

/* The strip above the header: «Hai ricevuto un buono regalo?». */
.fx-ribbon {
    position: relative;
    z-index: 3;
    padding: 9px var(--fx-gutter);
    font-size: var(--fx-text-sm);
    text-align: center;
    color: #ffffff;
    background: var(--fx-red);
}

.fx-ribbon p {
    margin: 0;
}

/* On a phone the strip takes two even lines, never one word alone. */
@media (max-width: 419px) {
    .fx-ribbon {
        font-size: 15px;
    }

    .fx-ribbon p {
        text-wrap: balance;
    }
}

.fx-ribbon a {
    margin-left: 6px;
    font-weight: 700;
    color: #ffffff;
    text-underline-offset: 4px;
}

.fx-ribbon a:hover {
    color: #ffffff;
}

.fx-site-header {
    position: relative;
    z-index: 4;
    color: var(--fx-snow);
    background: var(--fx-night);
}

.fx-site-header-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--fx-space-3) var(--fx-space-5);
    min-height: 76px;
    padding-top: var(--fx-space-3);
    padding-bottom: var(--fx-space-3);
}

/* At 360px the brand (200px) and the menu button (105px) fit on one row
   only with a narrower gap between them. */
@media (max-width: 479px) {
    .fx-site-header-inner {
        column-gap: var(--fx-space-4);
    }
}

.fx-site-header .fx-brand {
    font-size: 28px;
}

.fx-site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--fx-space-2) 26px;
    margin-left: auto;
    font-size: var(--fx-text-sm);
    font-weight: 500;
}

.fx-site-nav-link {
    position: relative;
    padding: 6px 0;
    color: var(--fx-snow-2);
    text-decoration: none;
}

.fx-site-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: var(--fx-gold);
    transform: scaleX(0);
    transform-origin: left;
}

.fx-site-nav-link:hover,
.fx-site-nav-link[aria-current="page"] {
    color: var(--fx-snow);
}

.fx-site-nav-link:hover::after,
.fx-site-nav-link[aria-current="page"]::after {
    transform: scaleX(1);
}

/* The menu button: shown on a phone, once the script is there to drive it. */
.fx-site-nav-toggle {
    display: none;
    margin-left: auto;
}

@media (max-width: 979px) {
    .fx-js .fx-site-nav-toggle {
        display: inline-flex;
    }

    .fx-js .fx-site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
        padding: var(--fx-space-2) 0 var(--fx-space-4);
        border-top: 1px solid var(--fx-line-gold);
    }

    .fx-js .fx-site-nav.fx-site-nav-open {
        display: flex;
    }

    .fx-js .fx-site-nav-link {
        padding: 12px 0;
        font-size: 17px;
    }

    .fx-js .fx-site-nav-link::after {
        display: none;
    }
}

/* ---- Public site: decorations ------------------------------------------- */

/* The string of lights under the header. */
.fx-lights {
    position: relative;
    z-index: 3;
    height: 44px;
    margin-top: -6px;
    pointer-events: none;
}

.fx-lights-wire {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.fx-bulb {
    position: absolute;
    top: 13px;
    width: 11px;
    height: 16px;
    border-radius: 50% 50% 45% 45%;
    transform: translateX(-50%);
    background: #ff4d5e;
    --fx-glow: rgba(255, 77, 94, 0.85);
    box-shadow: 0 0 10px 2px var(--fx-glow);
}

.fx-bulb::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 2.5px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: #3b4b3f;
}

.fx-bulb:nth-child(4n + 3) {
    background: #ffd36b;
    --fx-glow: rgba(255, 211, 107, 0.85);
}

.fx-bulb:nth-child(4n + 4) {
    background: #4fd48b;
    --fx-glow: rgba(79, 212, 139, 0.8);
}

.fx-bulb:nth-child(4n + 5) {
    background: #8fd3ff;
    --fx-glow: rgba(143, 211, 255, 0.85);
}

/* The wire is the first child: the bulbs are children 2 to 13. */
.fx-bulb:nth-child(2) { left: 4.17%; animation-delay: 0s; }
.fx-bulb:nth-child(3) { left: 12.5%; animation-delay: 0.6s; }
.fx-bulb:nth-child(4) { left: 20.83%; animation-delay: 1.2s; }
.fx-bulb:nth-child(5) { left: 29.17%; animation-delay: 1.8s; }
.fx-bulb:nth-child(6) { left: 37.5%; animation-delay: 0.3s; }
.fx-bulb:nth-child(7) { left: 45.83%; animation-delay: 0.9s; }
.fx-bulb:nth-child(8) { left: 54.17%; animation-delay: 1.5s; }
.fx-bulb:nth-child(9) { left: 62.5%; animation-delay: 2.1s; }
.fx-bulb:nth-child(10) { left: 70.83%; animation-delay: 0.45s; }
.fx-bulb:nth-child(11) { left: 79.17%; animation-delay: 1.05s; }
.fx-bulb:nth-child(12) { left: 87.5%; animation-delay: 1.65s; }
.fx-bulb:nth-child(13) { left: 95.83%; animation-delay: 2.25s; }

/* A light snowfall over the whole page, never in the way of a click. */
.fx-snow {
    position: fixed;
    inset: 0;
    z-index: 50;
    overflow: hidden;
    pointer-events: none;
}

.fx-flake {
    position: absolute;
    top: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0;
}

.fx-flake:nth-child(1) { left: 3%; width: 5px; height: 5px; animation-duration: 13s; animation-delay: -2s; }
.fx-flake:nth-child(2) { left: 9%; width: 3px; height: 3px; animation-duration: 17s; animation-delay: -9s; }
.fx-flake:nth-child(3) { left: 15%; width: 6px; height: 6px; animation-duration: 14s; animation-delay: -5s; }
.fx-flake:nth-child(4) { left: 22%; animation-duration: 19s; animation-delay: -12s; }
.fx-flake:nth-child(5) { left: 29%; width: 3px; height: 3px; animation-duration: 15s; animation-delay: -1s; }
.fx-flake:nth-child(6) { left: 35%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: -7s; }
.fx-flake:nth-child(7) { left: 42%; animation-duration: 20s; animation-delay: -14s; }
.fx-flake:nth-child(8) { left: 48%; width: 6px; height: 6px; animation-duration: 14s; animation-delay: -3s; }
.fx-flake:nth-child(9) { left: 55%; width: 3px; height: 3px; animation-duration: 18s; animation-delay: -10s; }
.fx-flake:nth-child(10) { left: 61%; width: 5px; height: 5px; animation-duration: 15s; animation-delay: -6s; }
.fx-flake:nth-child(11) { left: 67%; animation-duration: 21s; animation-delay: -16s; }
.fx-flake:nth-child(12) { left: 73%; width: 6px; height: 6px; animation-duration: 13s; animation-delay: -4s; }
.fx-flake:nth-child(13) { left: 79%; width: 3px; height: 3px; animation-duration: 17s; animation-delay: -11s; }
.fx-flake:nth-child(14) { left: 85%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: -8s; }
.fx-flake:nth-child(15) { left: 91%; animation-duration: 19s; animation-delay: -13s; }
.fx-flake:nth-child(16) { left: 97%; width: 3px; height: 3px; animation-duration: 15s; animation-delay: -2.5s; }

/* The snow bank that joins a dark section to the paper below it. */
.fx-drift {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 90px;
    pointer-events: none;
}

/* The holly sprig in front of an eyebrow. */
.fx-holly {
    flex: none;
    width: 26px;
    height: 22px;
}

/* The pulsing red dot of «in diretta». */
.fx-live-dot {
    display: inline-block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fx-red);
}

/* ---- Public site: hero ------------------------------------------------- */

/* As the head of an inner page: the plain night at the top, under the
   lights, and the glow fading in below it. */
.fx-hero {
    position: relative;
    overflow-x: clip;
    padding: 40px 0 120px;
    background:
        linear-gradient(180deg, var(--fx-night) 0, rgba(11, 26, 46, 0) 180px),
        radial-gradient(1200px 600px at 75% 30%, rgba(231, 190, 102, 0.1), transparent 60%),
        var(--fx-night);
}

.fx-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--fx-space-7);
    align-items: center;
}

@media (min-width: 980px) {
    .fx-hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 64px;
    }
}

.fx-hero-title {
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
}

.fx-hero-highlight {
    position: relative;
    color: var(--fx-gold);
    /* «Babbo Natale» never breaks over two lines. */
    white-space: nowrap;
}

/* The handwritten line under the hero's h1, outside it: sized on the
   title it follows. */
.fx-hero-hand {
    margin: 10px 0 0;
    font-size: calc(0.62 * clamp(40px, 5vw, 68px));
    line-height: 1.1;
    color: var(--fx-gold);
    transform: rotate(-2deg);
    transform-origin: left;
}

.fx-glint {
    position: absolute;
    right: -22px;
    top: -10px;
    width: 24px;
    height: 24px;
    opacity: 0;
}

.fx-steps-mini {
    display: grid;
    gap: 12px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.fx-steps-mini li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
}

.fx-steps-mini-num {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    font-family: var(--fx-font-numerals);
    font-size: 17px;
    font-style: italic;
    font-weight: 600;
    color: var(--fx-night);
    background: var(--fx-gold);
    border-radius: 50%;
}

.fx-hero-lead {
    max-width: 540px;
    margin: 26px 0 0;
}

.fx-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

/* The three reassurances under the call to action. */
.fx-reassure {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--fx-text-sm);
    color: var(--fx-on-muted, var(--fx-color-muted));
}

.fx-reassure li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.fx-reassure svg {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--fx-gold);
}

/* Santa on a call: the illustration inside a video-call frame. */
.fx-callcard {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

@media (min-width: 980px) {
    .fx-callcard {
        margin: 0 0 0 auto;
    }
}

.fx-callcard-ring {
    position: absolute;
    inset: -18px;
    border: 1.5px solid var(--fx-gold);
    border-radius: 38px;
    opacity: 0;
    pointer-events: none;
}

.fx-callframe {
    position: relative;
    aspect-ratio: 4 / 5;
    border: 6px solid var(--fx-paper);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--fx-shadow-glow);
}

/* A video that answers a click: the hero's sample video turns its sound on
   and off. */
.fx-call-video-toggle {
    cursor: pointer;
}

/* A control over the bottom of the call frame: the sound button of the
   hero's sample video. */
.fx-callframe-action {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.fx-call-live {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: var(--fx-text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--fx-red);
    border-radius: var(--fx-radius-pill);
}

.fx-call-live .fx-live-dot {
    width: 7px;
    height: 7px;
    background: #ffffff;
}

/* «In diretta» over the hero's sample call: on dark glass instead of red, so
   the green dot - on air - reads at once. Clicks go through to the video,
   which turns its sound on. */
.fx-call-live.fx-call-live-on {
    z-index: 1;
    background: rgba(11, 26, 46, 0.72);
    pointer-events: none;
}

.fx-call-live.fx-call-live-on .fx-live-dot {
    background: #34d27b;
    box-shadow: 0 0 0 3px rgba(52, 210, 123, 0.3);
}

.fx-call-timer {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 12px;
    font-size: var(--fx-text-xs);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
    background: rgba(11, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--fx-radius-pill);
}

/* The baubles hanging from the top of the hero. */
.fx-bauble {
    position: absolute;
    top: 0;
    z-index: 1;
    width: 44px;
    transform-origin: 50% 0;
    pointer-events: none;
}

.fx-bauble-1 {
    left: 3%;
}

.fx-bauble-2 {
    left: 9%;
    width: 34px;
}

.fx-bauble-3 {
    right: 2%;
    width: 38px;
}

/* A bauble only where the margin beside the container is wide enough to
   hold it without touching the title: the middle one from 1500px, the
   other two from 1340px. Below that the first one hung over the eyebrow,
   the h1 and its handwritten line (on a tablet, and up to 1339px on the
   first letters of the title), the last one over the call card. */
@media (max-width: 1499px) {
    .fx-bauble-2 {
        display: none;
    }
}

@media (max-width: 1339px) {
    .fx-bauble {
        display: none;
    }
}

/* ---- Public site: home blocks ------------------------------------------- */

/* Three numbered cards: how the service works. */
.fx-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 980px) {
    .fx-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fx-step {
    position: relative;
    padding: 30px 28px;
    color: var(--fx-ink);
    background: #ffffff;
    border: 1px solid var(--fx-paper-line);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(90, 52, 20, 0.08);
}

.fx-step-num,
.fx-timeline-num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    font-family: var(--fx-font-numerals);
    font-size: 19px;
    font-style: italic;
    font-weight: 700;
    color: #ffffff;
    background: var(--fx-red);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--fx-cream), 0 0 0 5.5px var(--fx-gold);
}

.fx-step-num {
    position: absolute;
    top: -20px;
    left: 26px;
}

.fx-step-art {
    display: grid;
    place-items: center;
    height: 120px;
    margin: 10px 0 16px;
    background: var(--fx-paper);
    border-radius: 16px;
}

.fx-step h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.fx-step p {
    margin: 0;
    color: var(--fx-ink-2);
}

/* A letter to Santa, with its wax seal. */
.fx-letter {
    position: relative;
    padding: 40px 40px 36px;
    color: var(--fx-ink);
    background-color: var(--fx-paper);
    background-image: repeating-linear-gradient(transparent 0 33px, rgba(150, 110, 60, 0.22) 33px 34px);
    border-radius: 6px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    transform: rotate(-2.5deg);
}

.fx-letter p {
    margin: 0;
    font-family: var(--fx-font-hand);
    font-size: 27px;
    line-height: 34px;
    color: #3b2a6b;
}

.fx-letter-sign {
    margin-top: 6px;
    text-align: right;
}

.fx-letter-seal {
    position: absolute;
    right: 26px;
    bottom: -22px;
    width: 64px;
    height: 64px;
}

@media (max-width: 639px) {
    .fx-letter {
        padding: 28px 24px 30px;
    }

    .fx-letter p {
        font-size: 23px;
        line-height: 30px;
    }
}

/* Small rounded labels: what the child's card holds. */
.fx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-tag {
    padding: 8px 14px;
    font-size: var(--fx-text-sm);
    color: var(--fx-on-lead, var(--fx-color-muted));
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--fx-on-line, var(--fx-color-border));
    border-radius: var(--fx-radius-pill);
}

.fx-tag-required {
    font-weight: 700;
    color: var(--fx-gold);
    border-color: var(--fx-gold);
}

.fx-tag-avoid {
    color: #ffb3ba;
    border-color: #ff8c96;
}

/* What the service promises the parents: icon, title, line. */
.fx-promises {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 720px) {
    .fx-promises {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 980px) {
    .fx-promises {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* The cards as one row that scrolls sideways on a phone (the other guides
   under a guide), instead of a third of the page stacked: each card 80% of
   the width, so the next one shows at the edge; the row runs to the edges
   of the screen and stops on a card. Every link stays in the page, and
   tabbing to one brings its card into view. The row is the containing block
   of what is positioned inside it: the visually hidden name of each link
   (`fx-visually-hidden`, absolutely positioned) escaped it and widened the
   whole page. */
@media (max-width: 719px) {
    .fx-promises-row {
        position: relative;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 80%;
        margin: 0 calc(-1 * var(--fx-gutter));
        padding: 4px var(--fx-gutter) 16px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--fx-gutter);
    }

    .fx-promises-row > .fx-promise {
        scroll-snap-align: start;
    }
}

.fx-promise {
    padding: 26px;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    border: 1px solid var(--fx-on-line, var(--fx-color-border));
    border-radius: 20px;
}

.fx-promise-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--fx-gold);
    background: rgba(231, 190, 102, 0.12);
    border-radius: 14px;
}

.fx-promise-icon svg {
    width: 24px;
    height: 24px;
}

/* The photograph at the top of a card: a guide of «Dal Polo Nord». */
.fx-promise-photo {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 18px;
    background: var(--fx-night);
    border-radius: 14px;
}

/* The photograph and the title of a guide's card open the guide: the
   photograph as it is, the title in the colour of the text, underlined only
   under the pointer. */
.fx-promise-photo-link {
    display: block;
}

.fx-promise-title-link {
    color: inherit;
    text-decoration: none;
}

.fx-promise-title-link:hover {
    color: inherit;
    text-decoration: underline;
}

.fx-promise h3 {
    font-family: var(--fx-font);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.fx-promise p {
    margin: 0;
    font-size: var(--fx-text);
    color: var(--fx-on-lead, var(--fx-color-muted));
}

.fx-section-paper .fx-promise {
    background: #ffffff;
}

.fx-section-paper .fx-promise-icon {
    color: var(--fx-red);
    background: var(--fx-color-primary-soft);
}

/* The statement that Santa is an AI character (EU AI Act, art. 50). */
.fx-ai-note {
    margin: 30px 0 0;
    padding: 18px 22px;
    font-size: var(--fx-text-sm);
    color: var(--fx-on-lead, var(--fx-color-muted));
    background: rgba(231, 190, 102, 0.08);
    border: 1px dashed rgba(231, 190, 102, 0.45);
    border-radius: 16px;
}

.fx-section-paper .fx-ai-note {
    background: #ffffff;
    border-color: var(--fx-gold-2);
}

/* The stockings with the siblings' names. */
.fx-stockings {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 30px;
}

.fx-stocking {
    width: 110px;
    transform-origin: 50% 0;
}

@media (max-width: 639px) {
    .fx-stocking {
        width: 88px;
    }
}

/* The card of the free demo, target of the `#demo` links: it stops a little
   below the top edge of the screen. */
.fx-demo-card {
    position: relative;
    scroll-margin-top: var(--fx-space-5);
    padding: 38px;
    overflow: hidden;
    color: var(--fx-snow);
    background: var(--fx-night);
    border-radius: var(--fx-radius-xl);
    box-shadow: 0 24px 60px rgba(11, 26, 46, 0.35);
    --fx-on-text: var(--fx-snow);
    --fx-on-lead: var(--fx-snow-2);
    --fx-on-muted: var(--fx-frost);
    --fx-on-eyebrow: var(--fx-gold);
    --fx-on-link: var(--fx-gold);
    --fx-on-outline: var(--fx-gold);
    --fx-on-outline-hover: rgba(231, 190, 102, 0.12);
    --fx-on-focus: rgba(231, 190, 102, 0.75);
}

.fx-demo-card h2 {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 10px;
}

.fx-demo-card p {
    margin: 0 0 24px;
    color: var(--fx-snow-2);
}

@media (max-width: 639px) {
    .fx-demo-card {
        padding: 28px 22px;
    }
}

/* A voice drawn as bars. */
.fx-wave {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 40px;
    margin: 0 0 24px;
}

.fx-wave i {
    width: 5px;
    height: 30%;
    border-radius: 3px;
    background: var(--fx-gold);
}

.fx-wave i:nth-child(2n) { animation-delay: -0.3s; }
.fx-wave i:nth-child(3n) { animation-delay: -0.6s; }
.fx-wave i:nth-child(5n) { animation-delay: -0.8s; }

/* The price as a gift tag, and the gift voucher as a postcard. */
.fx-offer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: stretch;
}

@media (min-width: 980px) {
    .fx-offer {
        grid-template-columns: 1fr 1fr;
    }
}

.fx-price-tag {
    position: relative;
    padding: 44px 38px 36px;
    overflow: hidden;
    color: var(--fx-ink);
    background: var(--fx-cream);
    border-radius: 24px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
    --fx-on-eyebrow: var(--fx-red);
    --fx-on-lead: var(--fx-ink-2);
    --fx-on-link: var(--fx-red);
}

.fx-price-tag-band {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 72px;
    width: 26px;
    background: var(--fx-red);
}

.fx-price-tag-bow {
    position: absolute;
    top: 40px;
    right: 38px;
    width: 96px;
}

/* The body covers the ribbon: only the top of it shows, with the bow. */
.fx-price-tag-body {
    position: relative;
    margin-top: 70px;
    background: var(--fx-cream);
    border-radius: 16px;
}

.fx-price {
    margin: 8px 0 4px;
    font-family: var(--fx-font-display);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: var(--fx-red);
}

/* The price inside a text («Quanto costa?» on the gift page, the page after
   the call): prominent, but at the scale of the words around it. The price
   tag of the offer keeps the large figure. */
.fx-prose .fx-price {
    font-size: 42px;
}

.fx-price-note {
    margin: 0;
    color: var(--fx-ink-2);
}

/* A list with a green tick in front of every line. The tick sits in the
   item's left padding, centred on the first line (1.6em high), so the text
   flows as one paragraph: as a flex item, every link cut it into columns. */
.fx-ticks {
    display: grid;
    gap: 10px;
    margin: 22px 0 28px;
    padding: 0;
    list-style: none;
}

.fx-ticks li {
    position: relative;
    padding-left: 30px;
    color: var(--fx-on-lead, var(--fx-ink-2));
}

.fx-ticks svg {
    position: absolute;
    top: calc(0.8em - 10px);
    left: 0;
    width: 20px;
    height: 20px;
    color: var(--fx-holly);
}

.fx-postcard {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 34px;
    color: var(--fx-ink);
    background-color: var(--fx-paper);
    border-radius: 20px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
    --fx-on-eyebrow: var(--fx-red);
    --fx-on-outline: var(--fx-red);
    --fx-on-outline-hover: var(--fx-color-primary-soft);
    --fx-on-link: var(--fx-red);
    --fx-on-focus: var(--fx-color-focus);
}

@media (min-width: 980px) {
    .fx-postcard {
        background-image: linear-gradient(90deg, transparent calc(58% - 1px), rgba(120, 80, 40, 0.25) calc(58% - 1px), rgba(120, 80, 40, 0.25) 58%, transparent 58%);
    }

    .fx-postcard h3,
    .fx-postcard-text {
        max-width: 55%;
    }
}

.fx-postcard-stamp {
    position: absolute;
    top: 26px;
    right: 26px;
    width: 84px;
}

.fx-postcard-postmark {
    position: absolute;
    top: 60px;
    right: 92px;
    width: 110px;
    opacity: 0.55;
}

@media (max-width: 979px) {
    .fx-postcard-postmark {
        display: none;
    }

    .fx-postcard h3,
    .fx-postcard .fx-eyebrow {
        max-width: calc(100% - 96px);
    }
}

.fx-postcard h3 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
}

/* On a phone the title beside the stamp had room for half a word: the
   card, the stamp and the title shrink, and the title keeps clear of the
   stamp (60px wide, 16px from the edge, 10px of air: 66px past the
   padding). */
@media (max-width: 479px) {
    .fx-postcard {
        padding: 24px 20px;
    }

    .fx-postcard-stamp {
        top: 18px;
        right: 16px;
        width: 60px;
    }

    .fx-postcard h3,
    .fx-postcard .fx-eyebrow {
        max-width: calc(100% - 66px);
    }

    .fx-postcard h3 {
        font-size: 22px;
    }
}

.fx-postcard-text {
    margin: 0 0 18px;
    color: var(--fx-ink-2);
}

.fx-postcard-hand {
    margin: 0 0 14px;
    font-family: var(--fx-font-hand);
    font-size: 26px;
    color: #3b2a6b;
    text-wrap: balance;
}

/* A gift-voucher code as it is printed on the postcard. */
.fx-voucher-code {
    display: inline-block;
    margin-top: auto;
    padding: 10px 14px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    color: var(--fx-red);
    background: #ffffff;
    border: 1.5px dashed var(--fx-red);
    border-radius: 12px;
    overflow-wrap: anywhere;
}

.fx-postcard .fx-btn {
    margin-top: 22px;
}

/* Questions after another block of the column (the rules card of the gift
   page, the pine box of the prices): the space a group title has between
   two groups. Its title is a first child, so it brings no margin of its own. */
.fx-reading > * + .fx-faq {
    margin-top: var(--fx-space-7);
}

.fx-faq-group-title {
    margin: var(--fx-space-7) 0 var(--fx-space-2);
    font-size: 24px;
    font-weight: 800;
}

.fx-faq-group-title:first-child {
    margin-top: 0;
}

.fx-faq-item {
    border-bottom: 1px solid var(--fx-on-line, var(--fx-color-border));
}

.fx-faq-item > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--fx-space-4);
    padding: 22px 0;
    font-size: 18px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

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

/* The question is a heading for the outline, with the look of the row. */
.fx-faq-question {
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.fx-faq-icon {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--fx-on-eyebrow, var(--fx-color-primary));
    transition: transform 0.2s ease;
}

/* The plus of an accordion (the FAQ, the children of a booking): its
   upright bar folds away while the `<details>` is open, leaving a minus. */
.fx-icon-plus-bar {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.2s ease;
}

details[open] > summary .fx-icon-plus-bar {
    transform: scaleY(0);
}

/* The space under an open answer is padding: as the last paragraph of its
   `<details>`, a bottom margin would be zeroed by `p:last-child`. */
.fx-faq-answer {
    margin: 0;
    padding-bottom: 24px;
    color: var(--fx-on-lead, var(--fx-color-muted));
}

/* The closing section: the moon, the sleigh, the village in the snow. */
.fx-final {
    position: relative;
    padding: 130px 0 0;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(180deg, var(--fx-night-deep) 0%, var(--fx-night) 55%, var(--fx-night-2) 100%);
}

.fx-final .fx-container {
    position: relative;
    z-index: 2;
}

.fx-final-title {
    max-width: 820px;
    margin: 0 auto 18px;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* The highlighted words; not a name kept on one line (`fx-nowrap`) in the
   rest of the title. */
.fx-final-title > span:not(.fx-nowrap) {
    color: var(--fx-gold);
}

.fx-final .fx-lead {
    margin: 0 0 32px;
}

.fx-final .fx-cta-row {
    justify-content: center;
}

.fx-moon {
    position: absolute;
    top: 70px;
    right: 12%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #fff6dc, #f4e1a8 60%, #e7c774);
    box-shadow: 0 0 80px 20px rgba(255, 236, 180, 0.25);
}

/* Up to 1399px the end of the title reaches under the moon (on a tablet,
   and on a laptop the last words of both lines): the moon moves up into
   the space above the title and shrinks, its glow with it, so it never
   stands behind the light words; the section opens with the room it needs.
   From 1400px the title is at its largest and ends before the moon. */
@media (max-width: 1399px) {
    .fx-final {
        padding-top: 150px;
    }

    .fx-moon {
        top: 36px;
        right: 8%;
        width: 84px;
        height: 84px;
        box-shadow: 0 0 50px 12px rgba(255, 236, 180, 0.22);
    }
}

@media (max-width: 719px) {
    .fx-final {
        padding-top: 132px;
    }

    .fx-moon {
        top: 28px;
        right: 6%;
        width: 64px;
        height: 64px;
        box-shadow: 0 0 36px 8px rgba(255, 236, 180, 0.2);
    }
}

.fx-sleigh {
    position: absolute;
    top: 96px;
    left: -360px;
    z-index: 1;
    width: 340px;
}

.fx-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fx-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.6;
}

.fx-star:nth-child(1) { left: 6%; top: 60px; }
.fx-star:nth-child(2) { left: 16%; top: 150px; animation-delay: 1s; }
.fx-star:nth-child(3) { left: 26%; top: 40px; animation-delay: 2s; }
.fx-star:nth-child(4) { left: 38%; top: 120px; animation-delay: 0.5s; }
.fx-star:nth-child(5) { left: 52%; top: 50px; animation-delay: 1.6s; }
.fx-star:nth-child(6) { left: 62%; top: 170px; animation-delay: 2.4s; }
.fx-star:nth-child(7) { left: 72%; top: 36px; animation-delay: 0.8s; }
.fx-star:nth-child(8) { left: 94%; top: 140px; animation-delay: 1.2s; }

/* The village keeps the proportions of its drawing (1440 by 180) on a wide
   screen, so the roofs and the treetops are never sliced off the top; on a
   narrow one it stays 180px high and loses its sides instead. */
.fx-village {
    position: relative;
    height: max(180px, 12.5vw);
    margin-top: 80px;
}

.fx-village svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fx-window-late {
    animation-delay: 1s;
}

.fx-window-later {
    animation-delay: 1.8s;
}

/* ---- Public site: inner pages ------------------------------------------- */

/* The night head of an inner page: eyebrow, title, line, and the snow bank
   into the paper below. Its top is the plain night of the header and of the
   string of lights above it, and the warm glow only fades in further down:
   one sky from the top of the page, with no edge under the lights. */
.fx-page-head {
    position: relative;
    padding: 56px 0 110px;
    text-align: center;
    color: var(--fx-snow);
    background:
        linear-gradient(180deg, var(--fx-night) 0, rgba(11, 26, 46, 0) 160px),
        radial-gradient(900px 460px at 50% 35%, rgba(231, 190, 102, 0.09), transparent 65%),
        var(--fx-night);
}

.fx-page-head-title {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* The handwritten line under the h1 of an inner page, outside it. */
.fx-page-head-hand {
    max-width: 900px;
    margin: 8px auto 0;
    font-size: calc(0.6 * clamp(34px, 4.6vw, 58px));
    line-height: 1.12;
    color: var(--fx-gold);
}

.fx-page-head-lead {
    max-width: 900px;
    margin: 20px auto 0;
}

/* Six to nine centred lines on a phone are hard to follow: the lead is
   read from a straight left edge there. */
@media (max-width: 479px) {
    .fx-page-head-lead {
        text-align: left;
    }
}

.fx-page-head-meta {
    margin: 14px 0 0;
    font-size: var(--fx-text-xs);
    color: var(--fx-frost);
}

/* Sharing the site, in the night head of the page after the call
   (`_parts/www/share-site.html`): «oppure» between two thin lines, the
   question, the phone's share button (shown by js/www/share.js where the
   phone has a share sheet) and a row of round icons in the colours of each
   app, with its name under it. */
.fx-share {
    margin-top: 26px;
}

.fx-share-or {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 360px;
    margin: 0 auto 10px;
    font-size: var(--fx-text-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fx-frost);
}

.fx-share-or::before,
.fx-share-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.fx-share-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--fx-snow);
}

.fx-share-native {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    margin: 0 0 18px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    color: var(--fx-ink);
    background: var(--fx-snow);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.fx-share-native[hidden] {
    display: none;
}

.fx-share-native svg {
    width: 22px;
    height: 22px;
    color: var(--fx-red);
}

.fx-share-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 20px;
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.fx-share-list > li[hidden] {
    display: none;
}

.fx-share-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: 76px;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: var(--fx-text-xs);
    font-weight: 600;
    color: var(--fx-snow);
    text-decoration: none;
    background: none;
    cursor: pointer;
}

.fx-share-link:hover {
    color: #ffffff;
}

.fx-share-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease;
}

.fx-share-link:hover .fx-share-icon {
    transform: translateY(-2px);
}

.fx-share-icon svg {
    width: 27px;
    height: 27px;
}

.fx-share-whatsapp { background: #25d366; }
.fx-share-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.fx-share-facebook { background: #1877f2; }
.fx-share-telegram { background: #29a9eb; }
.fx-share-email { background: var(--fx-red); }
.fx-share-copy { background: #5a4434; }

/* The illustration under a page head («Come funziona»): under the snow bank,
   with room above it, not climbing over the head's words. */
.fx-scene {
    position: relative;
    z-index: 2;
    margin: 8px 0 56px;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: #0f1b33;
    border: 6px solid #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(90, 52, 20, 0.18);
}

.fx-scene > svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* A photograph of an editorial page («Dal Polo Nord»): the picture with
   rounded corners, and an optional caption under it. The night colour
   fills the frame while the file loads. */
.fx-figure {
    margin: var(--fx-space-4) 0 var(--fx-space-5);
}

.fx-figure img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--fx-night);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(90, 52, 20, 0.08);
}

.fx-figure figcaption {
    margin-top: 10px;
    font-size: var(--fx-text-sm);
    color: var(--fx-color-muted);
}

/* A page head over a photograph (the opening one of a guide of «Dal Polo
   Nord»): taller than a plain head, the words centred in it. Three layers,
   in this order: the picture filling the head, a night veil that darkens
   it - more in the middle, where the words are - and in front the words
   and the snow bank. `isolation` keeps the layers inside the head. */
.fx-page-head-photo {
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(460px, 70vh, 700px);
}

.fx-page-head-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fx-page-head-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 60% 55% at 50% 50%, rgba(11, 26, 46, 0.45), transparent 75%),
        linear-gradient(180deg, var(--fx-night) 0, rgba(11, 26, 46, 0.78) 150px, rgba(11, 26, 46, 0.66) 55%, rgba(11, 26, 46, 0.80) 100%);
}

.fx-page-head-photo > .fx-container {
    position: relative;
    z-index: 2;
    width: 100%;
    text-shadow: 0 2px 16px rgba(11, 26, 46, 0.7);
}

.fx-page-head-photo > .fx-drift {
    z-index: 2;
}

/* A vertical timeline of numbered steps. */
.fx-timeline {
    position: relative;
    margin: 64px 0 0;
    padding: 0;
    list-style: none;
}

.fx-timeline::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: repeating-linear-gradient(var(--fx-red) 0 10px, transparent 10px 18px);
}

.fx-timeline-item {
    position: relative;
    padding: 0 0 46px 76px;
}

.fx-timeline-num {
    position: absolute;
    top: -4px;
    left: 0;
    width: 48px;
    height: 48px;
}

.fx-timeline-item h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
}

/* The words of a step, and its bulleted list. The boxes of the tips
   (`.fx-tips`) are not a bulleted list: they keep the left edge of the
   text and their own spacing. */
.fx-timeline-item p,
.fx-timeline-item ul:not(.fx-tips) {
    margin: 0 0 10px;
    color: var(--fx-ink-2);
}

.fx-timeline-item ul:not(.fx-tips) {
    margin-top: 8px;
    padding-left: 18px;
}

@media (max-width: 639px) {
    .fx-timeline-item {
        padding-left: 64px;
    }

    .fx-timeline-item h2 {
        font-size: 22px;
    }
}

/* Small practical advice, two by two. */
.fx-tips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .fx-tips {
        grid-template-columns: 1fr 1fr;
    }
}

.fx-tip {
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--fx-paper-line);
    border-radius: 16px;
}

.fx-tip-title {
    display: block;
    font-weight: 700;
    color: var(--fx-ink);
}

.fx-tip-text {
    display: block;
    font-size: var(--fx-text);
    color: var(--fx-ink-2);
}

/* A pine box on the paper: who answers, what is kept. */
.fx-callout {
    margin-top: 24px;
    padding: 34px;
    color: var(--fx-snow);
    background: var(--fx-pine);
    border-radius: 24px;
    --fx-on-text: var(--fx-snow);
    --fx-on-lead: var(--fx-snow-2);
    --fx-on-muted: var(--fx-frost);
    --fx-on-eyebrow: var(--fx-gold);
    --fx-on-link: var(--fx-gold);
    --fx-on-link-hover: #f2d48f;
    --fx-on-outline: var(--fx-gold);
    --fx-on-focus: rgba(231, 190, 102, 0.75);
    --fx-on-line: var(--fx-line-gold);
}

.fx-callout h2 {
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 800;
}

.fx-callout p {
    margin: 0 0 10px;
    color: var(--fx-snow-2);
}

.fx-callout p:last-child {
    margin-bottom: 0;
}

@media (max-width: 639px) {
    .fx-callout {
        padding: 26px 22px;
    }
}

/* The dashed box with a last call to action. */
.fx-cta-box {
    margin: 40px 0 0;
    padding: 40px 24px;
    text-align: center;
    border: 2px dashed var(--fx-gold-2);
    border-radius: 24px;
}

.fx-cta-box-title {
    margin: 0 0 20px;
    font-family: var(--fx-font-display);
    font-size: 26px;
    font-weight: 700;
}

.fx-cta-box .fx-cta-row {
    justify-content: center;
    margin-top: 0;
}

/* A block of a page that its own module fills (the booking form, the
   voucher purchase): it keeps its place in the reading column. */
.fx-page-region {
    margin-top: var(--fx-space-6);
}

/* A reading column whose form comes first on a phone (the booking page:
   the form before «Cosa comprende»). Only the order on screen changes: the
   block that moves holds no control, so the order of the keyboard does
   not. The column spaces its blocks itself there. */
@media (max-width: 639px) {
    .fx-form-first {
        display: flex;
        flex-direction: column;
        gap: var(--fx-space-6);
    }

    .fx-form-first > * {
        margin-top: 0;
    }

    .fx-form-first > .fx-page-region {
        order: -1;
    }
}

/* ---- Public site: footer ------------------------------------------------- */

.fx-site-footer {
    padding: 60px 0 40px;
    font-size: 16px;
    color: var(--fx-snow-2);
    background: var(--fx-pine);
    --fx-on-link: var(--fx-snow-2);
    --fx-on-link-hover: var(--fx-gold);
}

.fx-site-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 980px) {
    .fx-site-footer-grid {
        grid-template-columns: 1.2fr 2fr;
        gap: 48px;
    }
}

.fx-footer-tagline {
    max-width: 320px;
    margin: 12px 0 0;
}

.fx-footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

@media (min-width: 720px) {
    .fx-footer-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fx-footer-heading {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--fx-snow);
}

/* Each link is a target a finger can hit (its padding), and the padding
   takes the place of the gap between the items. */
.fx-footer-nav {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-footer-nav a {
    display: inline-block;
    padding: 8px 0;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.fx-footer-nav a:hover {
    text-decoration: underline;
}

.fx-footer-legal {
    margin: 44px 0 0;
    padding-top: 22px;
    font-size: var(--fx-text-sm);
    color: #a9bfb4;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fx-footer-legal p {
    margin: 0 0 6px;
}

/* ---- Chat «Chiedi all’elfo Zenzero» ---------------------------------------- */

/* Zenzero's face, round: on the floating button and in the chat header. */
.fx-santa-avatar {
    display: inline-block;
    flex: none;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--fx-paper);
}

.fx-santa-avatar svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* The floating button, bottom right of every public page. */
.fx-santa-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 55;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px 0 8px;
    font: inherit;
    font-weight: 700;
    color: var(--fx-gold);
    background: var(--fx-night);
    border: 1.5px solid var(--fx-gold);
    border-radius: var(--fx-radius-pill);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.fx-santa-launcher:hover {
    background: var(--fx-night-3);
}

/* The launcher while the chat is being loaded (`aria-busy`, set by
   js/www/on-demand.js on the first tap): the spinner of a busy button, as a
   ring on the edge of the face, on a phone too. */
.fx-santa-launcher[aria-busy="true"] {
    cursor: progress;
}

.fx-santa-launcher[aria-busy="true"] .fx-santa-avatar {
    position: relative;
}

.fx-santa-launcher[aria-busy="true"] .fx-santa-avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}

/* On a phone only the face, 48px, close to the corner and clear of the
   rounded edges and the home bar (the safe-area insets): it covers as
   little of the page passing under it as it can. */
@media (max-width: 639px) {
    .fx-santa-launcher {
        right: calc(12px + env(safe-area-inset-right, 0px));
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        justify-content: center;
        width: 48px;
        height: 48px;
        min-height: 48px;
        padding: 0;
    }

    .fx-santa-launcher-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

/* The chat itself: floating above the page, or inline on the support page
   (`fx-santa-chat-inline`). The inside is always ink on white. */
.fx-santa-chat {
    display: flex;
    flex-direction: column;
    min-height: 0;
    color: var(--fx-ink);
    background: #ffffff;
    border: 1px solid var(--fx-paper-line);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-lg);
    overflow: hidden;
    --fx-on-text: var(--fx-ink);
    --fx-on-lead: var(--fx-ink-2);
    --fx-on-muted: #6a5546;
    --fx-on-eyebrow: var(--fx-red);
    --fx-on-link: var(--fx-red);
    --fx-on-link-hover: var(--fx-red-2);
    --fx-on-outline: var(--fx-red);
    --fx-on-outline-hover: var(--fx-color-primary-soft);
    --fx-on-ghost-hover: var(--fx-color-surface-alt);
    --fx-on-focus: var(--fx-color-focus);
    --fx-on-line: var(--fx-paper-line);
}

.fx-santa-chat-floating {
    position: fixed;
    right: 22px;
    bottom: 88px;
    z-index: 56;
    width: min(420px, calc(100vw - 44px));
    height: min(640px, calc(100vh - 120px));
}

@media (max-width: 639px) {
    .fx-santa-chat-floating {
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
    }
}

.fx-santa-chat-inline {
    height: min(680px, 80vh);
    min-height: 480px;
}

.fx-santa-chat-header {
    display: flex;
    align-items: center;
    gap: var(--fx-space-3);
    padding: 14px 16px;
    color: var(--fx-snow);
    background: var(--fx-night);
    --fx-on-text: var(--fx-snow);
    --fx-on-ghost-hover: rgba(255, 255, 255, 0.1);
    --fx-on-focus: rgba(231, 190, 102, 0.75);
}

.fx-santa-chat-heading {
    flex: 1 1 auto;
    min-width: 0;
}

.fx-santa-chat-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--fx-gold);
}

.fx-santa-chat-subtitle {
    margin: 0;
    font-size: var(--fx-text-xs);
    color: var(--fx-snow-2);
}

.fx-santa-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    padding: var(--fx-space-4);
    overflow-y: auto;
    background: var(--fx-cream);
}

.fx-santa-chat-intro {
    padding: var(--fx-space-3) var(--fx-space-2);
}

.fx-santa-chat-intro-title {
    margin-bottom: var(--fx-space-2);
    font-family: var(--fx-font-display);
    font-size: 19px;
    font-weight: 700;
}

.fx-santa-chat-footer {
    border-top: 1px solid var(--fx-paper-line);
}

.fx-santa-chat-footer .fx-alert {
    margin: var(--fx-space-3) var(--fx-space-4) 0;
}

.fx-santa-chat-note {
    margin: 0;
    padding: 0 var(--fx-space-4) var(--fx-space-3);
    font-size: var(--fx-text-xs);
    color: #6a5546;
}

/* The support form as a card inside the conversation, or on its own on the
   support page. */
.fx-support-card {
    align-self: stretch;
    padding: var(--fx-space-4);
    color: var(--fx-ink);
    background: #ffffff;
    border: 1px solid var(--fx-paper-line);
    border-left: 4px solid var(--fx-red);
    border-radius: var(--fx-radius);
}

.fx-support-card-title {
    margin-bottom: var(--fx-space-1);
    font-size: 18px;
}

.fx-support-card .fx-field:last-of-type {
    margin-bottom: var(--fx-space-3);
}

.fx-support-sent {
    margin: 0;
}

.fx-support-reference {
    font-family: var(--fx-font-mono);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.fx-turnstile {
    min-height: 65px;
    margin-bottom: var(--fx-space-3);
}

/* ---- Sign-in pages ------------------------------------------------------ */

.fx-layout-auth {
    background: radial-gradient(900px 480px at 50% 0%, rgba(231, 190, 102, 0.12), transparent 65%), var(--fx-color-bg);
}

.fx-auth-header {
    display: flex;
    justify-content: center;
    padding: var(--fx-space-6) var(--fx-gutter) var(--fx-space-4);
}

.fx-auth-main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 0 var(--fx-gutter) var(--fx-space-7);
}

.fx-auth-title {
    font-size: 26px;
    margin-bottom: var(--fx-space-2);
}

.fx-auth-card {
    border-top: 4px solid var(--fx-color-primary);
}

.fx-auth-card .fx-card-body > .fx-muted {
    margin-bottom: var(--fx-space-5);
}

.fx-auth-alt {
    text-align: center;
    font-size: var(--fx-text-sm);
}

/* ---- Panel -------------------------------------------------------------- */

.fx-app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    color: var(--fx-snow);
    background: var(--fx-night);
    border-bottom: 3px solid var(--fx-red);
    --fx-on-text: var(--fx-snow);
    --fx-on-ghost-hover: rgba(255, 255, 255, 0.1);
    --fx-on-focus: rgba(231, 190, 102, 0.75);
}

.fx-app-header-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--fx-space-3);
    min-height: 64px;
}

.fx-app-nav {
    display: flex;
    gap: var(--fx-space-1);
    order: 3;
    width: 100%;
    overflow-x: auto;
}

.fx-app-nav a {
    padding: var(--fx-space-2) var(--fx-space-3);
    font-size: var(--fx-text-sm);
    font-weight: 700;
    color: var(--fx-snow-2);
    text-decoration: none;
    border-radius: var(--fx-radius-pill);
    white-space: nowrap;
}

.fx-app-nav a:hover {
    color: var(--fx-snow);
    background: rgba(255, 255, 255, 0.08);
}

.fx-app-nav a.active {
    color: var(--fx-night);
    background: var(--fx-gold);
}

.fx-app-actions {
    display: flex;
    align-items: center;
    gap: var(--fx-space-1);
    margin-left: auto;
}

.fx-user-menu-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 720px) {
    .fx-app-header-inner {
        flex-wrap: nowrap;
    }

    .fx-app-nav {
        order: 0;
        width: auto;
        margin-left: var(--fx-space-4);
    }
}

.fx-page-header {
    margin-bottom: var(--fx-space-5);
}

/* A row of actions at the top of a page, above its first card (the staff
   area's «Regala una videochiamata»): the same gap a card keeps below. */
.fx-page-actions {
    margin-bottom: var(--fx-space-5);
}

.fx-page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: var(--fx-space-1);
}

.fx-page-subtitle {
    color: var(--fx-color-muted);
}

/* ---- Dialogs ------------------------------------------------------------ */

.fx-dialog {
    width: min(640px, calc(100vw - 2 * var(--fx-gutter)));
    max-height: calc(100vh - 2 * var(--fx-gutter));
    padding: 0;
    color: var(--fx-color-text);
    background: var(--fx-color-surface);
    border: 1px solid var(--fx-color-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-lg);
}

.fx-dialog[open] {
    display: flex;
    flex-direction: column;
}

.fx-dialog::backdrop {
    background: var(--fx-color-backdrop);
}

.fx-dialog-header {
    display: flex;
    align-items: center;
    gap: var(--fx-space-2);
    padding: var(--fx-space-3) var(--fx-space-4);
    border-bottom: 1px solid var(--fx-color-border);
}

.fx-dialog-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 18px;
}

.fx-dialog-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: var(--fx-space-3) var(--fx-space-4);
}

/* The drawer: a dialog pinned to the right edge, the whole height. */
.fx-drawer {
    margin: 0 0 0 auto;
    width: min(420px, 100vw);
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border-width: 0 0 0 1px;
}

/* The large dialog: a page read without leaving the one underneath (the
   legal documents a form asks to accept, `_parts/_legal-dialogs.html`).
   Wide and tall on a computer, with the frame of every dialog; the whole
   viewport on a phone, with no frame. The header stays in place and the
   body scrolls; `dvh` follows the phone's browser bars as they come and go,
   `vh` is the fallback of a browser without it. The scroll stays inside the
   body instead of moving the page behind at its ends. */
.fx-dialog.fx-dialog-large {
    width: min(960px, calc(100vw - 2 * var(--fx-gutter)));
    height: calc(100vh - 2 * var(--fx-gutter));
    height: calc(100dvh - 2 * var(--fx-gutter));
}

.fx-dialog-large .fx-dialog-body {
    padding: var(--fx-space-5) var(--fx-space-6) var(--fx-space-7);
    overscroll-behavior: contain;
}

@media (max-width: 719px) {
    .fx-dialog.fx-dialog-large {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .fx-dialog-large .fx-dialog-body {
        padding: var(--fx-space-5) var(--fx-gutter) var(--fx-space-7);
    }
}

/* ---- Notifications ------------------------------------------------------ */

.fx-notification {
    display: flex;
    gap: var(--fx-space-3);
    padding: var(--fx-space-3) 0;
    border-bottom: 1px solid var(--fx-color-border);
}

.fx-notification p {
    margin: 0;
    font-size: var(--fx-text-sm);
}

.fx-notification-title {
    font-size: var(--fx-text-sm);
}

/* ---- Assistant ---------------------------------------------------------- */

.fx-chat {
    width: min(900px, calc(100vw - 2 * var(--fx-gutter)));
    height: min(720px, calc(100vh - 2 * var(--fx-gutter)));
}

@media (max-width: 719px) {
    .fx-chat {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
}

/* On a narrow phone the header of the assistant takes two lines: the title
   with the two round buttons (reduce, close) on the first, the conversation
   buttons on the second, so the close button never leaves the screen. */
@media (max-width: 479px) {
    .fx-chat .fx-dialog-header {
        flex-wrap: wrap;
    }

    .fx-chat .fx-dialog-title {
        order: -2;
        flex: 1 1 calc(100% - 120px);
    }

    .fx-chat .fx-dialog-header > .fx-btn-icon {
        order: -1;
    }
}

.fx-chat-layout {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.fx-chat-history {
    flex: 0 0 260px;
    padding: var(--fx-space-3);
    overflow-y: auto;
    border-right: 1px solid var(--fx-color-border);
    background: var(--fx-color-surface-alt);
}

@media (max-width: 719px) {
    .fx-chat-history {
        flex-basis: 100%;
        border-right: 0;
    }

    .fx-chat-history:not([hidden]) + .fx-chat-main {
        display: none;
    }
}

.fx-chat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fx-chat-list-item {
    display: flex;
    align-items: center;
    gap: var(--fx-space-1);
    border-radius: var(--fx-radius);
}

.fx-chat-list-item[aria-current="true"] {
    background: var(--fx-color-primary-soft);
}

.fx-chat-list-open {
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--fx-space-2);
    font: inherit;
    font-size: var(--fx-text-sm);
    text-align: left;
    color: var(--fx-color-text);
    background: none;
    border: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.fx-chat-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.fx-chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: var(--fx-space-4);
}

.fx-chat-thread {
    display: flex;
    flex-direction: column;
    gap: var(--fx-space-3);
}

.fx-chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    overflow-wrap: anywhere;
}

.fx-chat-bubble p,
.fx-chat-bubble ul,
.fx-chat-bubble ol {
    margin: 0 0 var(--fx-space-2);
}

.fx-chat-bubble > div > :last-child {
    margin-bottom: 0;
}

.fx-chat-bubble-user {
    align-self: flex-end;
    color: var(--fx-color-primary-text);
    background: var(--fx-color-primary);
    border-bottom-right-radius: 6px;
}

.fx-chat-bubble-user a {
    color: inherit;
}

.fx-chat-bubble-assistant {
    align-self: flex-start;
    color: var(--fx-color-text);
    background: var(--fx-color-surface-alt);
    border-bottom-left-radius: 6px;
}

.fx-santa-chat .fx-chat-bubble-assistant {
    color: var(--fx-ink);
    background: #ffffff;
    border: 1px solid var(--fx-paper-line);
}

.fx-chat-main > .fx-alert {
    margin: 0 var(--fx-space-4) var(--fx-space-3);
}

.fx-chat-composer {
    display: flex;
    gap: var(--fx-space-2);
    padding: var(--fx-space-3) var(--fx-space-4);
    border-top: 1px solid var(--fx-color-border);
}

.fx-santa-chat .fx-chat-composer {
    border-top: 0;
}

.fx-chat-launcher {
    position: fixed;
    right: var(--fx-space-5);
    bottom: var(--fx-space-5);
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: var(--fx-gold);
    background: var(--fx-night);
    border: 1.5px solid var(--fx-gold);
    border-radius: 50%;
    box-shadow: var(--fx-shadow-lg);
    cursor: pointer;
}

/* ---- Toasts ------------------------------------------------------------- */

.fx-toasts {
    position: fixed;
    right: var(--fx-space-4);
    bottom: var(--fx-space-4);
    left: var(--fx-space-4);
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--fx-space-2);
    pointer-events: none;
}

.fx-toast {
    display: flex;
    align-items: flex-start;
    gap: var(--fx-space-3);
    width: 100%;
    max-width: 380px;
    padding: var(--fx-space-3) var(--fx-space-4);
    font-size: var(--fx-text-sm);
    color: var(--fx-color-text);
    background: var(--fx-color-surface);
    border: 1px solid var(--fx-color-border);
    border-left: 4px solid var(--fx-color-primary);
    border-radius: var(--fx-radius);
    box-shadow: var(--fx-shadow-lg);
    pointer-events: auto;
}

.fx-toast-success {
    border-left-color: var(--fx-holly);
}

.fx-toast-danger {
    border-left-color: var(--fx-color-danger);
}

.fx-toast-message {
    flex: 1 1 auto;
    margin: 0;
}

.fx-toast-close {
    padding: 0 4px;
    font-size: 18px;
    line-height: 1;
    color: var(--fx-color-muted);
    background: none;
    border: 0;
    cursor: pointer;
}

/* ---- Legal pages -------------------------------------------------------- */

.fx-legal-body {
    max-width: 820px;
    margin: 0 auto;
}

.fx-legal-operator,
.fx-legal-toc {
    margin-bottom: var(--fx-space-5);
}

.fx-legal-operator p {
    margin-bottom: 4px;
}

.fx-legal-toc {
    padding: var(--fx-space-5);
    background: #ffffff;
    border: 1px solid var(--fx-paper-line);
    border-radius: var(--fx-radius-lg);
}

/* Every entry already starts with the number of its section («01 · …»):
   the list adds none of its own. Each link is a target a finger can hit,
   its padding taking the place of the space between the entries. */
.fx-legal-toc ol {
    margin: 0;
    padding-left: 0;
    list-style: none;
    columns: 1;
}

@media (min-width: 720px) {
    .fx-legal-toc ol {
        columns: 2;
        column-gap: var(--fx-space-6);
    }
}

.fx-legal-toc li {
    break-inside: avoid;
}

.fx-legal-toc a {
    display: inline-block;
    padding: 8px 0;
}

.fx-legal-section {
    margin-bottom: var(--fx-space-6);
    scroll-margin-top: var(--fx-space-5);
}

.fx-legal-section h2 {
    font-size: 23px;
    font-weight: 800;
}

.fx-legal-section ul {
    margin: 0 0 var(--fx-space-3);
    padding-left: 22px;
}

.fx-legal-related {
    padding-top: var(--fx-space-4);
    border-top: 1px solid var(--fx-paper-line);
}

/* ---- Error pages -------------------------------------------------------- */

/* The error pages paint the winter night whatever the host and the system
   preference: they carry no header and no script, and stay readable. */
.fx-layout-clean {
    color: var(--fx-snow);
    background: radial-gradient(900px 480px at 50% 0%, rgba(231, 190, 102, 0.1), transparent 65%), var(--fx-night);
    --fx-on-text: var(--fx-snow);
    --fx-on-lead: var(--fx-snow-2);
    --fx-on-muted: var(--fx-frost);
    --fx-on-eyebrow: var(--fx-gold);
    --fx-on-link: var(--fx-gold);
    --fx-on-link-hover: #f2d48f;
    --fx-on-focus: rgba(231, 190, 102, 0.75);
}

.fx-clean-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--fx-space-6) var(--fx-gutter);
}

.fx-error-page {
    max-width: 560px;
    text-align: center;
}

.fx-error-brand {
    display: flex;
    justify-content: center;
    margin-bottom: var(--fx-space-5);
    font-family: var(--fx-font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--fx-snow);
    --fx-on-brand-accent: var(--fx-brand-red);
    --fx-on-brand-mark-line: var(--fx-night);
}

.fx-error-brand .fx-brand-mark {
    margin-right: 10px;
}

.fx-error-art {
    display: block;
    width: 150px;
    height: auto;
    margin: 0 auto var(--fx-space-5);
}

.fx-error-code {
    font-size: var(--fx-text-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fx-gold);
}

.fx-error-page h1 {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
}

.fx-error-page .fx-muted {
    margin-bottom: var(--fx-space-5);
}

.fx-debug-page {
    width: 100%;
    max-width: var(--fx-container);
    color: var(--fx-ink);
    text-align: left;
}

.fx-debug {
    margin: var(--fx-space-4) var(--fx-gutter);
    padding: var(--fx-space-3);
    font-size: 13px;
    color: var(--fx-ink);
    background: var(--fx-color-warning-soft);
    border-radius: var(--fx-radius);
}

/* ---- Motion ------------------------------------------------------------- */

/* Every movement of the theme, and nothing outside this block moves: with
   `prefers-reduced-motion: reduce` the page is still and complete. */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

    .fx-site-nav-link::after {
        transition: transform 0.24s ease;
    }

    .fx-bulb {
        animation: fx-twinkle 2.4s ease-in-out infinite;
    }

    .fx-flake {
        animation-name: fx-fall;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }

    .fx-glint {
        animation: fx-glint 5.5s ease-in-out infinite;
    }

    .fx-live-dot {
        animation: fx-pulse 1.8s ease-in-out infinite;
    }

    .fx-btn-shine {
        animation: fx-shine 6s ease-in-out infinite;
    }

    .fx-callcard-ring {
        animation: fx-ring 4.2s ease-out infinite;
    }

    .fx-callcard-ring-late {
        animation-delay: 2.1s;
    }

    .fx-bauble {
        animation: fx-swing 4.5s ease-in-out infinite;
    }

    .fx-bauble-2,
    .fx-bauble-3 {
        animation-duration: 6s;
        animation-delay: -1.5s;
    }

    .fx-stocking {
        animation: fx-swing 5s ease-in-out infinite;
    }

    .fx-stocking:nth-child(2) {
        animation-delay: -1.6s;
    }

    .fx-stocking:nth-child(3) {
        animation-delay: -3.2s;
    }

    .fx-wave i {
        animation: fx-wave 1.1s ease-in-out infinite;
    }

    /* The call room: the red dot of «In diretta», the ring around «Entra
       nella chiamata», the sound bars of «Babbo Natale ti ascolta». */
    .fx-call-badge-dot {
        animation: fx-call-dot 1.6s ease-in-out infinite;
    }

    .fx-call-enter::before {
        animation: fx-call-ring 1.8s ease-out infinite;
    }

    .fx-call-waves i {
        animation: fx-wave 1.1s ease-in-out infinite;
    }

    .fx-call-waves i:nth-child(2) { animation-delay: 0.12s; }
    .fx-call-waves i:nth-child(3) { animation-delay: 0.24s; }
    .fx-call-waves i:nth-child(4) { animation-delay: 0.36s; }
    .fx-call-waves i:nth-child(5) { animation-delay: 0.48s; }

    .fx-sleigh {
        animation: fx-fly 18s linear infinite;
    }

    .fx-star {
        animation: fx-star 3.4s ease-in-out infinite;
    }

    .fx-village-window {
        animation: fx-window 3.5s ease-in-out infinite;
    }

    .fx-btn[aria-busy="true"]::after,
    .fx-santa-launcher[aria-busy="true"] .fx-santa-avatar::after,
    .fx-loading::before,
    .fx-spinner {
        animation: fx-spin 0.8s linear infinite;
    }

    /* The scroll reveal: `js/www/site.js` marks as pending only what is
       still below the fold, and reveals it as it scrolls into view. */
    .fx-js .fx-reveal-pending {
        opacity: 0;
        transform: translateY(26px);
        transition: opacity 0.9s ease, transform 0.9s ease;
    }

    .fx-js .fx-reveal-pending.fx-revealed {
        opacity: 1;
        transform: none;
    }

    /* The demo card is reached by a link while it still waits below the
       fold, shifted by the 26px of the reveal: the browser stops on the
       shifted card, so its margin adds the shift it is about to lose. */
    .fx-js .fx-demo-card.fx-reveal-pending {
        scroll-margin-top: calc(var(--fx-space-5) + 26px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-snow {
        display: none;
    }

    .fx-glint {
        display: none;
    }
}

@keyframes fx-twinkle {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px 3px var(--fx-glow); }
    50% { opacity: 0.45; box-shadow: 0 0 2px 0 var(--fx-glow); }
}

@keyframes fx-fall {
    0% { transform: translate(0, -10px); opacity: 0; }
    8% { opacity: 0.85; }
    100% { transform: translate(40px, 105vh); opacity: 0.2; }
}

@keyframes fx-glint {
    0%, 80%, 100% { transform: scale(0) rotate(0); opacity: 0; }
    87% { transform: scale(1) rotate(45deg); opacity: 1; }
    94% { transform: scale(0.2) rotate(90deg); opacity: 0; }
}

@keyframes fx-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 32, 47, 0.7); }
    50% { box-shadow: 0 0 0 7px rgba(200, 32, 47, 0); }
}

@keyframes fx-shine {
    0%, 78% { transform: translateX(-160%) skewX(-20deg); }
    96%, 100% { transform: translateX(280%) skewX(-20deg); }
}

@keyframes fx-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 0; }
}

@keyframes fx-call-dot {
    50% { box-shadow: 0 0 0 7px rgba(255, 77, 94, 0); }
}

@keyframes fx-call-ring {
    0% { transform: scale(0.96); opacity: 1; }
    100% { transform: scale(1.08); opacity: 0; }
}

@keyframes fx-swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes fx-wave {
    0%, 100% { height: 25%; }
    50% { height: 95%; }
}

@keyframes fx-fly {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(calc(50vw + 180px)) translateY(-18px); }
    100% { transform: translateX(calc(100vw + 380px)) translateY(10px); }
}

@keyframes fx-star {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}

@keyframes fx-window {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes fx-spin {
    to { transform: rotate(360deg); }
}

/* ---- Utilities ---------------------------------------------------------- */

.fx-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fx-pre {
    margin: 0;
    padding: var(--fx-space-3);
    background: var(--fx-color-surface-alt);
    border-radius: var(--fx-radius);
}

.fx-text-center {
    text-align: center;
}

/* Words that never break over two lines: printed by the server around the
   names of `www.heading_unbreakable_phrases` in the titles of the public
   site (`App\Services\HeadingTypography`). */
.fx-nowrap {
    white-space: nowrap;
}

/* ==== Admin pages and reviews (block of the admin and reviews work) ======
   What the theme had no component for: the rating as five stars a person
   chooses (the review page), the stars a published review shows, and the
   review cards of the home. Nothing above this block depends on it. */

/* A table wider than a phone scrolls inside its wrap, but a visually hidden
   label in one of its cells (`fx-visually-hidden` is absolutely positioned)
   escaped the wrap and widened the whole page at 390px: the wrap is now the
   containing block of what is positioned inside it. */
.fx-table-wrap {
    position: relative;
}

/* The rating: five radio inputs, each drawn by its label as a star. The
   inputs stay focusable (hidden visually only); the stars up to the checked
   one are filled, and so are the stars up to the one under the pointer. */
.fx-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fx-rating-star {
    display: inline-flex;
    padding: 4px;
    color: var(--fx-paper-line);
    border-radius: var(--fx-radius);
    cursor: pointer;
}

.fx-rating-star svg {
    fill: currentColor;
    stroke: var(--fx-gold-2);
    stroke-width: 1;
}

.fx-rating-input:focus-visible + .fx-rating-star {
    outline: 3px solid var(--fx-color-primary);
    outline-offset: 2px;
}

.fx-rating:has(.fx-rating-input[value="1"]:checked) .fx-rating-star:nth-of-type(-n+1),
.fx-rating:has(.fx-rating-input[value="2"]:checked) .fx-rating-star:nth-of-type(-n+2),
.fx-rating:has(.fx-rating-input[value="3"]:checked) .fx-rating-star:nth-of-type(-n+3),
.fx-rating:has(.fx-rating-input[value="4"]:checked) .fx-rating-star:nth-of-type(-n+4),
.fx-rating:has(.fx-rating-input[value="5"]:checked) .fx-rating-star:nth-of-type(-n+5),
.fx-rating-star:hover,
.fx-rating-star:has(~ .fx-rating-star:hover) {
    color: var(--fx-gold);
}

.fx-was-validated .fx-rating:has(.fx-rating-input:invalid) .fx-rating-star svg {
    stroke: var(--fx-color-danger);
}

/* The stars of a published review: as many filled as its rating. */
.fx-review-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--fx-gold);
}

.fx-review-stars svg {
    fill: currentColor;
}

.fx-review-stars .fx-review-star-off {
    color: var(--fx-paper-line);
}

/* The published reviews of the home: the average, then the cards. */
.fx-review-average {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 30px;
}

.fx-review-average-value {
    font-family: var(--fx-font-display);
    font-size: 28px;
    font-weight: 700;
}

.fx-review-grid {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 720px) {
    .fx-review-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fx-review-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    margin: 0;
    padding: 26px 24px;
    color: var(--fx-ink);
    background: #ffffff;
    border: 1px solid var(--fx-paper-line);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(90, 52, 20, 0.08);
}

.fx-review-card blockquote {
    margin: 0;
    overflow-wrap: anywhere;
}

.fx-review-card figcaption {
    margin-top: auto;
    font-weight: 700;
}

/* ==== Call room ==============================================================
   The call page (/<lang>/chiamata/<token>), the page a child looks at, and
   the free demo of the home, which puts a real <video> into the frame of the
   hero (`fx-callframe`).

   The call page is immersive (`fx-layout-immersive`): a night sky with
   stars and snow, the string of lights and the logo, nothing else around
   the room. The room is one frame - the window of Santa's workshop, a gold
   border and a warm glow - with the words for the child above it, in
   Caveat, and the light card «Per il genitore» under it. The root says
   which phase is shown (`data-fx-call-shown`, kept up to date by
   js/www/call-room.js) and the layout follows: on a phone one column, as
   the approved mockup draws it; on a computer the frame on the left and the
   words on the right, except during the call, when Santa takes the whole
   width in the landscape shape of the stream. ============================== */

/* The stream of a call (the room and the demo): the whole frame, under what
   is laid over it. */
.fx-call-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--fx-night);
}

.fx-demo-card .fx-call-live,
.fx-demo-card .fx-call-timer {
    z-index: 2;
}

/* The demo's frame: the video inside the night card of the home. */
.fx-demo-card .fx-callframe {
    margin: 0 0 24px;
    aspect-ratio: 4 / 3;
    background: var(--fx-night);
}

/* -- The immersive layout ------------------------------------------------- */

/* The sky behind an immersive page, fixed while the page scrolls: the glow
   of the workshop at the top (`--fx-immersive-glow`, which a phase may
   change) and, over it, a few stars. */
.fx-layout-immersive::before,
.fx-layout-immersive::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.fx-layout-immersive::before {
    background: var(--fx-immersive-glow, radial-gradient(130% 55% at 50% 0%, #1d3a63 0%, var(--fx-night-2) 48%, var(--fx-night) 100%));
}

.fx-layout-immersive::after {
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.53) 50%, transparent 51%),
        radial-gradient(1px 1px at 30% 8%, rgba(255, 255, 255, 0.47) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 74% 14%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
        radial-gradient(1px 1px at 88% 26%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
        radial-gradient(1px 1px at 52% 22%, rgba(255, 255, 255, 0.33) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 6% 40%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
        radial-gradient(1px 1px at 94% 48%, rgba(255, 255, 255, 0.4) 50%, transparent 51%);
    background-size: 420px 520px;
}

/* The string of lights at the very top, and the logo under it. */
.fx-immersive-head {
    position: relative;
    z-index: 3;
    padding-bottom: 9px;
}

.fx-immersive-head .fx-lights {
    margin-top: 0;
}

/* The logo is not a link: nothing on an immersive page leads away. */
.fx-immersive-brand {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 22px;
}

.fx-immersive-brand .fx-brand-mark {
    width: 28px;
    height: 28px;
}

/* -- The room: one column on a phone --------------------------------------- */

.fx-call-room {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    min-height: calc(100vh - 88px);
    min-height: calc(100svh - 88px);
    margin: 0 auto;
    padding: 0 20px 24px;
    color: var(--fx-snow);
    text-align: center;
}

.fx-call-head {
    width: 100%;
}

.fx-call-foot {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    width: 100%;
    padding-top: 16px;
}

/* The words for the child: a handwritten line, a line under it, and the
   big countdown. */
.fx-call-room .fx-call-hand {
    margin: 0;
    font-size: 38px;
    line-height: 1.1;
    color: var(--fx-gold);
}

.fx-call-room .fx-call-line {
    margin: 4px 0 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--fx-snow);
}

.fx-call-room .fx-call-countdown {
    margin: 6px 0 14px;
    font-family: var(--fx-font-display);
    font-size: 62px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
    text-shadow: 0 0 24px rgba(231, 190, 102, 0.45);
}

.fx-call-intro-early .fx-call-hand {
    margin-top: 10px;
}

.fx-call-intro-check .fx-call-hand {
    margin-top: 8px;
    font-size: 34px;
}

.fx-call-room .fx-call-intro-check .fx-call-countdown {
    font-size: 46px;
    margin-bottom: 10px;
}

.fx-call-intro-ready .fx-call-hand {
    margin-top: 12px;
    font-size: 40px;
}

.fx-call-room .fx-call-intro-ready .fx-call-line {
    margin-bottom: 18px;
}

/* A line written one way on a phone and another on a computer: «Ti sta
   aspettando nel suo laboratorio» gains the children's names where it
   has the room. */
.fx-call-wide {
    display: none;
}

/* The window of the workshop: a gold frame with a warm glow, and inside it
   the stream under the film of the phase. */
.fx-call-frame {
    position: relative;
    width: 100%;
    height: 300px;
    padding: 7px;
    border-radius: 30px;
    background: linear-gradient(160deg, #f3d58e 0%, var(--fx-gold) 35%, #b8862f 100%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 70px rgba(231, 190, 102, 0.22);
}

.fx-call-frame-in {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: #2a140f;
    isolation: isolate;
}

/* Santa's face stays in the middle of a tall frame. */
.fx-call-room .fx-call-video {
    object-position: 50% 30%;
}

.fx-call-films {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.fx-call-film {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
}

.fx-call-film-montage {
    object-position: 50% 50%;
}

/* Santa waves with his left hand, at a third of the width of the film: a
   narrow frame keeps the hand in view, and the face. */
.fx-call-film-waving {
    object-position: 38% 30%;
}

/* The frame of each phase on a phone. */
.fx-call-room[data-fx-call-shown="too_early"] .fx-call-frame {
    height: 330px;
}

.fx-call-room[data-fx-call-shown="waiting_room"] .fx-call-frame {
    height: 400px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 110px rgba(231, 190, 102, 0.45);
}

.fx-call-room[data-fx-call-shown="ended"] .fx-call-frame {
    height: 380px;
    margin-top: 18px;
}

/* What is laid over the film: a shade where words stand, the badges, the
   clock and the bar of the call, the goodbye, the line on the connection. */
.fx-call-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.fx-call-veil-top {
    background: linear-gradient(180deg, rgba(11, 26, 46, 0.35) 0%, transparent 25%);
}

.fx-call-veil-bottom {
    background: linear-gradient(180deg, transparent 45%, rgba(11, 26, 46, 0.85));
}

.fx-call-room .fx-call-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 28px);
    margin: 0;
    padding: 6px 12px;
    font-size: var(--fx-text-xs);
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    color: #ffffff;
    background: rgba(11, 26, 46, 0.72);
    border-radius: var(--fx-radius-pill);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.fx-call-room .fx-call-badge-live {
    padding: 8px 14px;
}

.fx-call-badge-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d5e;
    box-shadow: 0 0 0 4px rgba(255, 77, 94, 0.25);
}

.fx-call-room .fx-call-clock {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    margin: 0;
    padding: 7px 14px;
    font-family: var(--fx-font-display);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
    background: rgba(11, 26, 46, 0.72);
    border-radius: var(--fx-radius-pill);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* The bar of the call: the part of the time already gone. */
.fx-call-bar {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 3;
    width: calc(100% - 32px);
    height: 6px;
    appearance: none;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.fx-call-bar::-webkit-progress-bar {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.fx-call-bar::-webkit-progress-value {
    background: linear-gradient(90deg, var(--fx-gold), #ffd98a);
    border-radius: 3px;
}

.fx-call-bar::-moz-progress-bar {
    background: linear-gradient(90deg, var(--fx-gold), #ffd98a);
    border-radius: 3px;
}

.fx-call-room .fx-call-goodbye {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 22px;
    z-index: 3;
    margin: 0;
    font-size: 36px;
    line-height: 1.1;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* The line on the connection («Collegamento con il Polo Nord in corso.»),
   over the bottom of the frame and above the bar; hidden while it has
   nothing to say, and at the end, where the page says it already. */
.fx-call-room .fx-call-status {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 34px;
    z-index: 3;
    width: fit-content;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 8px 14px;
    font-size: var(--fx-text-xs);
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    background: rgba(11, 26, 46, 0.78);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.fx-call-room .fx-call-status:empty,
.fx-call-room[data-fx-call-shown="ended"] .fx-call-status {
    display: none;
}

/* The light card for the parent, at the bottom of the screen. */
.fx-call-room .fx-call-parent {
    margin: auto -6px 0;
    padding: 16px 18px;
    text-align: left;
    color: var(--fx-ink);
    background: var(--fx-cream);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.fx-call-room .fx-call-parent .fx-eyebrow {
    margin-bottom: 6px;
    font-size: var(--fx-text-xs);
    line-height: 1.6;
    color: var(--fx-on-eyebrow);
}

.fx-call-room .fx-call-parent p {
    font-size: var(--fx-text-sm);
    line-height: 1.5;
    color: var(--fx-ink-2);
}

.fx-call-room .fx-call-parent .fx-call-parent-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: var(--fx-ink);
}

/* The device check in the parent's card: one box per check - icon, name,
   status, action. */
.fx-call-room .fx-call-device-check {
    padding: 14px 14px 12px;
}

.fx-call-device-check .fx-alert {
    margin: 8px 0 0;
}

.fx-call-checks {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.fx-call-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #efe3cc;
    border-radius: 16px;
}

.fx-call-check-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--fx-ink);
    background: var(--fx-paper);
    border-radius: 12px;
}

.fx-call-check-icon svg {
    width: 19px;
    height: 19px;
}

.fx-call-check-body {
    flex: 1 1 auto;
    min-width: 0;
}

.fx-call-room .fx-call-check .fx-call-check-title {
    margin: 0;
    font-size: var(--fx-text-sm);
    font-weight: 700;
    line-height: 1.3;
    color: var(--fx-ink);
}

.fx-call-room .fx-call-check .fx-call-check-status {
    margin: 2px 0 0;
    font-size: var(--fx-text-xs);
    line-height: 1.4;
    color: var(--fx-ink-2);
}

.fx-call-room .fx-call-check .fx-call-check-status:empty {
    display: none;
}

.fx-call-check > .fx-btn {
    flex: none;
}

/* The tick of a check that is fine. */
.fx-call-check-ok {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #ffffff;
    background: var(--fx-holly);
    border-radius: 50%;
}

.fx-call-check-ok svg {
    width: 15px;
    height: 15px;
}

/* The level of the microphone: as many bars lit as the voice is loud. */
.fx-call-meter {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    margin-top: 4px;
}

.fx-call-meter i {
    width: 5px;
    height: 4px;
    border-radius: 2px;
    background: #d9cdb6;
}

.fx-call-meter i.fx-call-meter-lit {
    background: var(--fx-holly);
}

.fx-call-meter i.fx-call-meter-lit:nth-child(1) { height: 6px; }
.fx-call-meter i.fx-call-meter-lit:nth-child(2) { height: 8px; }
.fx-call-meter i.fx-call-meter-lit:nth-child(3) { height: 10px; }
.fx-call-meter i.fx-call-meter-lit:nth-child(4) { height: 12px; }
.fx-call-meter i.fx-call-meter-lit:nth-child(5) { height: 14px; }
.fx-call-meter i.fx-call-meter-lit:nth-child(6) { height: 16px; }
.fx-call-meter i.fx-call-meter-lit:nth-child(7) { height: 18px; }

/* The one big button of the room: «Entra nella chiamata», red, with a ring
   that pulses around it. */
.fx-call-room .fx-call-enter {
    overflow: visible;
    min-height: 64px;
    gap: 10px;
    padding: 0 24px;
    font-size: 19px;
    background: linear-gradient(180deg, #e0303f, var(--fx-red) 60%, var(--fx-red-2));
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(200, 32, 47, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.fx-call-room .fx-call-enter:hover {
    background: linear-gradient(180deg, #e8404e, #d02535 60%, var(--fx-red-2));
    border-color: transparent;
}

.fx-call-enter::before {
    content: "";
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(255, 90, 100, 0.55);
    border-radius: var(--fx-radius-pill);
    pointer-events: none;
}

.fx-call-enter:disabled::before {
    display: none;
}

.fx-call-room .fx-call-enter .fx-btn-icon-left {
    width: 20px;
    height: 20px;
}

.fx-call-entry {
    margin-top: 10px;
}

.fx-call-room .fx-call-until {
    margin: 14px 0 0;
    font-size: var(--fx-text-xs);
    color: var(--fx-frost);
}

/* During the call: «Babbo Natale ti ascolta» with its sound bars, and the
   quiet button that asks before ending. */
.fx-call-live-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: -2px;
}

.fx-call-listen {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
}

.fx-call-waves {
    flex: none;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 26px;
}

.fx-call-waves i {
    width: 5px;
    height: 50%;
    border-radius: 3px;
    background: var(--fx-gold);
}

.fx-call-room .fx-call-listen-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    line-height: 1.35;
}

.fx-call-listen-text strong {
    font-size: var(--fx-text-sm);
    font-weight: 700;
    color: var(--fx-snow);
}

.fx-call-listen-text span {
    font-size: var(--fx-text-xs);
    color: var(--fx-frost);
}

.fx-call-room .fx-call-hangup {
    padding: 0 18px;
    color: var(--fx-snow);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.fx-call-room .fx-call-hangup:hover {
    color: var(--fx-snow);
    background: rgba(255, 255, 255, 0.14);
}

/* The live call on a phone: Santa takes the screen, under him only the
   listening line and the button; no lights, no logo, no stars. */
.fx-call-room[data-fx-call-shown="live"] {
    min-height: 100vh;
    min-height: 100svh;
    padding: 14px 12px 20px;
}

.fx-call-room[data-fx-call-shown="live"] .fx-call-frame {
    height: max(320px, calc(100vh - 204px));
    height: max(320px, calc(100svh - 204px));
    padding: 6px;
    border-radius: 34px;
}

.fx-call-room[data-fx-call-shown="live"] .fx-call-frame-in {
    border-radius: 28px;
}

@media (max-width: 979px) {
    .fx-layout-immersive:has(.fx-call-room[data-fx-call-shown="live"]) .fx-immersive-head,
    .fx-layout-immersive:has(.fx-call-room[data-fx-call-shown="live"]) .fx-snow,
    .fx-layout-immersive:has(.fx-call-room[data-fx-call-shown="live"])::after {
        display: none;
    }

    .fx-layout-immersive:has(.fx-call-room[data-fx-call-shown="live"]) {
        --fx-immersive-glow: var(--fx-night);
    }

    /* The waiting room on a phone is the button: the device check stays
       on a computer, under it. */
    .fx-call-room[data-fx-call-shown="waiting_room"] .fx-call-device-check {
        display: none;
    }
}

/* Santa ready, a brighter sky behind him. */
.fx-layout-immersive:has(.fx-call-room[data-fx-call-shown="waiting_room"]) {
    --fx-immersive-glow: radial-gradient(120% 60% at 50% 30%, #2a4a78 0%, var(--fx-night-2) 50%, var(--fx-night) 100%);
}

/* The interruption, the call taken over elsewhere: the words on the night,
   then the button that enters again. */
.fx-call-room .fx-call-message .fx-call-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

.fx-call-room .fx-call-message p {
    margin: 0 0 18px;
    font-size: var(--fx-text-sm);
    line-height: 1.5;
    color: var(--fx-snow-2);
}

.fx-call-message .fx-call-enter {
    margin-bottom: 16px;
}

/* The end: thanks under the frame, the card at the bottom. */
.fx-call-outro {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.fx-call-room .fx-call-outro .fx-call-hand {
    margin-top: 6px;
    font-size: 27px;
    line-height: 1.15;
}

.fx-call-room .fx-call-outro .fx-call-line {
    margin-bottom: 20px;
    font-size: var(--fx-text-sm);
    font-weight: 500;
    color: var(--fx-frost);
}

/* «Vuoi chiudere la chiamata?»: a sheet from the bottom on a phone, a card
   in the middle on a computer. The dialog itself has no padding, so a tap
   on the backdrop is the only tap whose target is the dialog. */
.fx-dialog.fx-call-confirm {
    width: calc(100% - 28px);
    max-width: 480px;
    margin: auto auto 14px;
    padding: 0;
    text-align: center;
    color: var(--fx-ink);
    background: var(--fx-cream);
    border: 0;
    border-radius: 28px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}

.fx-call-confirm::backdrop {
    background: rgba(5, 12, 24, 0.62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.fx-call-confirm-body {
    padding: 24px 20px 20px;
}

.fx-call-confirm .fx-call-confirm-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--fx-ink);
}

.fx-call-confirm-body p {
    margin: 0 0 18px;
    font-size: var(--fx-text-sm);
    line-height: 1.5;
    color: var(--fx-ink-2);
}

.fx-call-confirm .fx-btn {
    min-height: 54px;
    font-size: 17px;
}

.fx-call-confirm .fx-call-stay {
    color: #ffffff;
    background: var(--fx-holly);
    border-color: var(--fx-holly);
    box-shadow: 0 8px 20px rgba(31, 122, 85, 0.35);
}

.fx-call-confirm .fx-call-stay:hover {
    color: #ffffff;
    background: #186446;
    border-color: #186446;
}

.fx-call-confirm .fx-call-end {
    margin-top: 10px;
    color: var(--fx-red);
    background: transparent;
    border: 2px solid #e9c9c4;
}

.fx-call-confirm .fx-call-end:hover {
    color: var(--fx-red-2);
    background: rgba(200, 32, 47, 0.06);
}

/* -- The room on a computer: the frame left, the words right --------------- */

@media (min-width: 980px) {
    .fx-immersive-brand {
        font-size: 26px;
    }

    .fx-immersive-brand .fx-brand-mark {
        width: 34px;
        height: 34px;
    }

    .fx-call-narrow {
        display: none;
    }

    .fx-call-wide {
        display: inline;
    }

    /* Two columns: the frame spans the four rows, the words sit in the two
       middle ones, centred against it. A landscape frame by default - Santa
       waiting, waving, the interruption, the rooms closed - and a portrait
       one for the house of Santa before the start. */
    .fx-call-room {
        display: grid;
        grid-template-columns: minmax(0, 760px) minmax(0, 440px);
        grid-template-rows: 1fr auto auto 1fr;
        grid-template-areas: "frame ." "frame head" "frame foot" "frame .";
        column-gap: 56px;
        justify-content: center;
        align-content: center;
        max-width: none;
        min-height: calc(100vh - 96px);
        min-height: calc(100svh - 96px);
        padding: 0 var(--fx-gutter) 60px;
        text-align: left;
    }

    .fx-call-room[data-fx-call-shown="too_early"],
    .fx-call-room[data-fx-call-shown="tech_check"] {
        grid-template-columns: minmax(0, 520px) minmax(0, 520px);
        column-gap: 72px;
    }

    .fx-call-head {
        grid-area: head;
    }

    .fx-call-foot {
        grid-area: foot;
        padding-top: 0;
    }

    .fx-call-room .fx-call-frame,
    .fx-call-room[data-fx-call-shown] .fx-call-frame {
        grid-area: frame;
        align-self: center;
        height: auto;
        max-height: calc(100vh - 160px);
        max-height: calc(100svh - 160px);
        margin-top: 0;
        aspect-ratio: 760 / 520;
    }

    .fx-call-room[data-fx-call-shown="too_early"] .fx-call-frame,
    .fx-call-room[data-fx-call-shown="tech_check"] .fx-call-frame {
        aspect-ratio: 520 / 660;
    }

    .fx-call-room[data-fx-call-shown="waiting_room"] .fx-call-frame {
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 140px rgba(231, 190, 102, 0.35);
    }

    .fx-call-room .fx-call-hand,
    .fx-call-intro-early .fx-call-hand {
        margin-top: 0;
        font-size: 60px;
    }

    .fx-call-intro-check .fx-call-hand {
        margin-top: 0;
        font-size: 56px;
    }

    .fx-call-intro-ready .fx-call-hand {
        margin-top: 0;
        font-size: 54px;
        white-space: nowrap;
    }

    .fx-call-room .fx-call-line {
        margin: 6px 0 4px;
        font-size: 24px;
    }

    .fx-call-room .fx-call-intro-ready .fx-call-line {
        margin: 10px 0 28px;
        font-size: 21px;
    }

    .fx-call-room .fx-call-countdown {
        margin: 0 0 34px;
        font-size: 96px;
    }

    .fx-call-room .fx-call-intro-check .fx-call-countdown {
        margin-bottom: 28px;
        font-size: 80px;
    }

    .fx-call-room .fx-call-parent {
        margin: 0;
        padding: 20px 22px;
    }

    .fx-call-room .fx-call-parent p {
        line-height: 1.55;
    }

    .fx-call-room .fx-call-device-check {
        padding: 18px 20px;
    }

    .fx-call-entry {
        margin-top: 0;
    }

    .fx-call-room .fx-call-enter {
        min-height: 72px;
        font-size: 21px;
    }

    .fx-call-room .fx-call-until {
        margin: 14px 0 30px;
        font-size: var(--fx-text-sm);
    }

    .fx-call-room .fx-call-message .fx-call-title {
        font-size: 30px;
    }

    .fx-call-room .fx-call-message p {
        margin-bottom: 26px;
        font-size: 18px;
    }

    .fx-call-message .fx-call-enter {
        margin-bottom: 30px;
    }

    .fx-call-room .fx-call-outro .fx-call-hand {
        margin-top: 0;
        font-size: 50px;
        line-height: 1.12;
    }

    .fx-call-room .fx-call-outro .fx-call-line {
        margin: 14px 0 30px;
        font-size: 20px;
    }

    /* The live call: Santa in the landscape shape of the stream, as large as
       the screen allows, the listening line and the button under him. */
    .fx-call-room[data-fx-call-shown="live"] {
        --fx-call-live-width: min(1020px, 100%, calc((100vh - 190px) * 1.5));
        --fx-call-live-width: min(1020px, 100%, calc((100svh - 190px) * 1.5));
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        grid-template-areas: "head" "frame" "foot";
        align-content: start;
        min-height: 0;
        padding: 0 var(--fx-gutter) 40px;
    }

    .fx-call-room[data-fx-call-shown="live"] .fx-call-frame {
        justify-self: center;
        width: var(--fx-call-live-width);
        height: auto;
        max-height: none;
        aspect-ratio: 3 / 2;
        padding: 7px;
    }

    .fx-call-room[data-fx-call-shown="live"] .fx-call-video {
        object-position: 50% 50%;
    }

    .fx-call-room[data-fx-call-shown="live"] .fx-call-foot {
        justify-self: center;
        width: var(--fx-call-live-width);
    }

    .fx-call-live-bar {
        flex-direction: row;
        gap: 16px;
        margin-top: 18px;
    }

    .fx-call-listen-text strong {
        font-size: 17px;
    }

    .fx-call-room .fx-call-hangup {
        min-height: 54px;
        padding: 0 24px;
    }

    .fx-call-room[data-fx-call-shown="live"] .fx-call-badge {
        top: 18px;
        left: 18px;
        font-size: 15px;
    }

    .fx-call-room[data-fx-call-shown="live"] .fx-call-clock {
        top: 18px;
        right: 18px;
        font-size: 24px;
    }

    .fx-call-room[data-fx-call-shown="live"] .fx-call-bar {
        left: 22px;
        bottom: 20px;
        width: calc(100% - 44px);
    }

    .fx-dialog.fx-call-confirm {
        max-width: 440px;
        margin: auto;
        box-shadow: var(--fx-shadow-lg);
    }
}

/* ==== End of the call room ================================================= */
