/* AssistedReader — il foglio della pagina pubblica.
   Nessun framework e nessuna build, come /admin/ e /account/: un file solo, servito da wwwroot.
   I caratteri viaggiano con la pagina (cartella fonts/, licenze OFL accanto): il sito non li
   chiede alla rete, per la stessa ragione per cui non li chiede l'app.
   Le tinte sono quelle di shell.css e di ReadingStyle: chi arriva qui e poi installa l'APK deve
   riconoscere lo stesso posto. */

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('fonts/space-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('fonts/space-grotesk-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --page: #efe6d3;
    --card: #fffdf8;
    --pale: #f7f0e1;
    --sand: #f2ead9;
    --band: #e9dfcb;

    --ink: #1c1a17;
    --body: #3d3830;
    --murmur: #6e6659;
    --faint: #8d8577;

    --rule: #ded6c4;
    --line: #c9c0b1;

    --amber: #c8802c;
    --amber-ink: #a26a27;
    --amber-pale: #f0e0c8;
    --on-amber: #2a1b08;

    --green: #2b7564;
    --green-pale: #dbe2d3;

    --night: #17130e;
    --night-2: #1f1a13;
    --night-line: #4a3f31;
    --night-ink: #f6ecd8;
    --night-body: #cbbfae;
    --night-faint: #9d907f;
    --night-amber: #e0a95a;

    --gold-a: #d8b169;
    --gold-b: #b78a3f;
    --gold-c: #e2c68d;

    --ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --num: 'Space Grotesk', var(--ui);
    --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;

    /* Il margine laterale della pagina. Cambia una volta sola, e con lui ogni sezione. */
    --pad: 120px;
    /* Quanto la carta della dimostrazione risale sopra il bordo dell'illustrazione. */
    --dock: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--ui);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* height:auto non e' decorativo: con gli attributi width/height nel markup, max-width da solo
   restringe la larghezza e lascia l'altezza dell'attributo — cioe' schiaccia l'immagine.
   Chi ha bisogno di un'altezza sua se la dichiara, e allora dichiara anche object-fit. */
img { display: block; max-width: 100%; height: auto; }

a { color: var(--amber-ink); text-decoration: none; }
a:hover { color: var(--amber); }
a:focus-visible,
.btn:focus-visible { outline: 2px solid var(--amber-ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }

h1 {
    font-size: clamp(2.3rem, 5.4vw, 3.9rem);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -0.032em;
}

h2 {
    font-size: clamp(1.62rem, 3vw, 2.15rem);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

p { margin: 0; text-wrap: pretty; }

.num { font-family: var(--num); font-variant-numeric: tabular-nums; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }

.sec { padding-top: 84px; }
.sec-tight { padding-top: 64px; }

.eyebrow {
    font-family: var(--num);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber-ink);
}

.lede {
    margin-top: 14px;
    max-width: 34em;
    font-size: 1.02rem;
    line-height: 1.62;
    color: var(--body);
}

.note {
    margin-top: 16px;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--murmur);
}

.card {
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 1px 3px rgba(28, 26, 23, 0.08);
}

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Due colonne asimmetriche: stanno in una classe e non in uno stile in riga, o le media query
   qui sotto non potrebbero raddrizzarle — uno stile in riga le batte tutte. */
.g2.wide { grid-template-columns: 1.16fr 1fr; }
.g2.cal-split { grid-template-columns: 1.3fr 1fr; }
/* Tre caselle da un'icona e due parole: restano in riga anche sul telefono, perche' sono una
   striscia sola e impilate diventerebbero tre carte alte per niente. */
.g3.keep, .g3.keep.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Un bersaglio non scende sotto i 44px, qualunque cosa faccia il testo dentro. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--amber);
    color: var(--on-amber);
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}
.btn:hover { background: #d68e38; color: var(--on-amber); }

.btn-2 {
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 700;
}
.btn-2:hover { background: var(--card); color: var(--ink); border-color: var(--murmur); }

.btn-dark {
    background: rgba(240, 224, 200, 0.06);
    border: 1px solid var(--night-line);
    color: var(--night-ink);
    font-weight: 700;
}
.btn-dark:hover { background: rgba(240, 224, 200, 0.12); color: var(--night-ink); }

.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.88rem; }

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    background: var(--pale);
    color: var(--murmur);
    font-size: 0.78rem;
    font-weight: 600;
}
.pill-on { background: var(--amber-pale); color: #7a5312; font-weight: 700; }

.dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    border-radius: 50%;
    background: var(--green-pale);
    color: var(--green);
    font-weight: 800;
}

/* ------------------------------------------------------------------ la prima schermata */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--night);
    color: var(--night-ink);
}

.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }

/* Tre veli, e nessuno dei tre inventa il buio: l'illustrazione ha il terzo sinistro vuoto
   per costruzione, questi lo accompagnano. */
.veil-x, .veil-t, .veil-b { position: absolute; }
.veil-x {
    inset: 0;
    background: linear-gradient(90deg, rgba(23, 19, 14, 0.97) 0%, rgba(23, 19, 14, 0.94) 22%, rgba(23, 19, 14, 0.68) 42%, rgba(23, 19, 14, 0.18) 66%, rgba(23, 19, 14, 0) 100%);
}
.veil-t {
    left: 0; right: 0; top: 0; height: 210px;
    background: linear-gradient(180deg, rgba(23, 19, 14, 0.86) 0%, rgba(23, 19, 14, 0.24) 56%, rgba(23, 19, 14, 0) 100%);
}
.veil-b {
    left: 0; right: 0; bottom: 0; height: 150px;
    background: linear-gradient(180deg, rgba(23, 19, 14, 0) 0%, rgba(23, 19, 14, 0.72) 100%);
}

.hero > .wrap { position: relative; }

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 76px;
}
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: 20px; font-size: 0.86rem; }
.nav-links a { color: var(--night-body); }
.nav-links a:hover { color: var(--night-ink); }
.nav-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.mark { display: flex; align-items: center; gap: 10px; }
.mark svg { width: 30px; height: 30px; flex: none; }
.mark span { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }

.hero-copy { width: 660px; max-width: 100%; padding: 76px 0 var(--dock); }
.hero h1 { color: var(--night-ink); }
.hero h1 em { font-style: italic; font-weight: 700; color: var(--night-amber); }
.hero-copy > p { margin-top: 24px; max-width: 27em; font-size: 1.08rem; line-height: 1.62; color: var(--night-body); }
.hero-copy .note { color: var(--night-faint); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid var(--night-line);
    background: rgba(240, 224, 200, 0.08);
    color: #e0b878;
    font-family: var(--num);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------ la dimostrazione */

.demo-dock { position: relative; z-index: 2; margin-top: calc(0px - var(--dock)); }

.demo {
    display: flex;
    border-radius: 20px;
    border: 1px solid #cfc7bb;
    background: #fbf6ea;
    box-shadow: 0 26px 60px rgba(23, 19, 14, 0.34);
    overflow: hidden;
}

.demo-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-bottom: 1px solid #cfc7bb;
    background: #f3ecdb;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7a7266;
}
.demo-head .hint { margin-left: auto; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); }

.prose {
    padding: 32px 30px 30px;
    font-family: var(--serif);
    font-size: 1.08rem;
    line-height: 2.2;
    color: var(--ink);
}

.demo-panel {
    flex: none;
    width: 430px;
    padding: 24px 26px 26px;
    border-left: 1px solid #cfc7bb;
    background: var(--card);
}

.lbl {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--murmur);
}

.caption { margin-top: 14px; text-align: center; font-size: 0.78rem; color: var(--murmur); }

/* La fotografia in testa a una carta. L'altezza fissa sta qui e non in riga, o le media query
   non potrebbero rilassarla quando la carta diventa larga quanto lo schermo — e un 3:2 in una
   fascia da 268px su 852 di larghezza non e' piu' una fotografia, e' una fessura. */
.card-photo { width: 100%; height: 268px; object-fit: cover; }

/* La glossa vive sopra la parola, come nell'app: il testo sotto non si sposta.
   Qui è un inline-block e non il token vero, quindi l'interlinea è misurata in pixel,
   non copiata dal numero di reading.css. */
.g { position: relative; display: inline-block; }
.g > i {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 1px;
    font-family: var(--ui);
    font-size: 0.6em;
    font-style: normal;
    line-height: 1;
    white-space: nowrap;
    color: #7a7266;
}
.sel { background: #f6e2a8; }
.ent { border-bottom: 1px dotted var(--amber-ink); }

/* ------------------------------------------------------------------ fasce */

.band-pale {
    margin-top: 88px;
    padding: 74px 0 78px;
    background: var(--pale);
    border-top: 1px solid #e2d9c6;
    border-bottom: 1px solid #e2d9c6;
}

.band-sand { margin-top: 84px; padding: 44px 0 46px; background: var(--band); }

.band-night {
    margin-top: 84px;
    padding: 64px 0 68px;
    background: var(--night);
    color: #f0e7d8;
}
.band-night h2 { color: #f0e7d8; }
.band-night .eyebrow { color: #c8a45c; }
.band-night .lede { color: var(--night-body); }

.split { display: flex; gap: 56px; align-items: center; }
.split > .half { flex: 1 1 0; min-width: 0; }

/* ------------------------------------------------------------------ il calendario */

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.dow { font-family: var(--num); font-size: 0.68rem; font-weight: 600; color: var(--faint); text-align: center; }

.cell { position: relative; height: 96px; border-radius: 7px; overflow: hidden; }
.cell > b {
    position: absolute;
    top: 5px;
    left: 6px;
    z-index: 2;
    font-family: var(--num);
    font-size: 0.64rem;
    font-weight: 600;
}
.cell.nil { background: transparent; }
.cell.off { background: #f4ecdb; border: 1px dashed var(--rule); }
.cell.off > b { color: #b9ae99; }
.cell.on > b { color: rgba(255, 253, 248, 0.94); text-shadow: 0 1px 3px rgba(28, 26, 23, 0.65); }
/* Le due righe accennate sono la tipografia di una copertina vista da lontano. */
.cell.on::before,
.cell.on::after {
    content: '';
    position: absolute;
    border-radius: 2px;
    background: rgba(255, 253, 248, 0.55);
}
.cell.on::before { left: 10px; right: 10px; bottom: 24px; height: 3px; }
.cell.on::after { left: 10px; right: 26px; bottom: 15px; height: 2px; background: rgba(255, 253, 248, 0.34); }

.bA { background: linear-gradient(160deg, #7c8f73 0%, #566448 100%); }
.bB { background: linear-gradient(160deg, #b08a4e 0%, #7c552c 100%); }
.bC { background: linear-gradient(160deg, #5b6879 0%, #3b4352 100%); }
.bD { background: linear-gradient(160deg, #9a625a 0%, #6d4038 100%); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; padding-top: 15px; border-top: 1px solid #ece3d0; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--body); }
.legend i { display: block; width: 11px; height: 15px; border-radius: 2px; }

/* ------------------------------------------------------------------ figurine, album, quiz */

.sticker { width: 212px; flex: none; }
.sticker-frame {
    padding: 8px 8px 0;
    border-radius: 14px;
    background: linear-gradient(160deg, var(--gold-a) 0%, var(--gold-b) 48%, var(--gold-c) 100%);
    box-shadow: 0 8px 22px rgba(28, 26, 23, 0.18);
}
.sticker-frame img { width: 100%; height: 296px; object-fit: cover; border-radius: 9px; }
.sticker-name { padding: 9px 4px 11px; text-align: center; }
.sticker-name b { display: block; font-family: var(--num); font-size: 0.86rem; font-weight: 700; color: var(--on-amber); }
.sticker-name span { display: block; margin-top: 2px; font-size: 0.68rem; font-weight: 600; color: #6b4d1c; }

.album { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.album div { height: 66px; border-radius: 8px; }
.album .empty { border: 1px dashed #cfc5b2; background: #f4ecdb; }

.answer {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 8px 13px;
    border-radius: 11px;
    border: 1px solid var(--rule);
    background: var(--card);
    font-size: 0.9rem;
    color: var(--body);
}
.answer b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--sand);
    color: var(--faint);
    font-family: var(--num);
    font-size: 0.7rem;
    font-weight: 700;
}
.answer.right { border-color: #a9c0a0; background: #e6efe1; color: var(--ink); font-weight: 700; }
.answer.right b { background: var(--green); color: #f0f6ee; }
.answer svg { flex: none; width: 19px; height: 19px; margin-left: auto; }

.platinum {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px 7px 10px;
    border-radius: 5px;
    background: linear-gradient(150deg, #e4e7ea, #b9c1c8);
    color: #2f3336;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.05rem;
}

.bar { height: 8px; border-radius: 999px; background: #e2d9c6; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--amber); }

/* ------------------------------------------------------------------ prezzi */

.price { position: relative; padding: 30px 26px 28px; text-align: center; }
.price.best { border: 2px solid var(--amber); }
.price .amount { font-family: var(--num); font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price .unit { margin-top: 6px; font-size: 0.86rem; color: var(--murmur); }
.price .euro { margin-top: 16px; font-family: var(--num); font-size: 1.3rem; font-weight: 700; }
.price .who { margin-top: 12px; font-size: 0.86rem; line-height: 1.5; color: var(--murmur); }
.price .btn { width: 100%; margin-top: 20px; }

.flag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--amber);
    color: var(--on-amber);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tariff { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; }
.tariff:last-of-type { border-bottom: 0; }
.tariff b { margin-left: auto; font-family: var(--num); font-weight: 700; }

/* ------------------------------------------------------------------ copertine tipografiche */

.cover {
    display: flex;
    flex-direction: column;
    flex: none;
    width: 92px;
    height: 138px;
    padding: 13px 10px;
    border-radius: 3px 7px 7px 3px;
    box-shadow: 0 7px 18px rgba(28, 26, 23, 0.24), 2px 0 0 rgba(255, 253, 248, 0.16) inset;
}
.cover b { font-family: var(--serif); font-size: 0.64rem; line-height: 1.24; font-weight: 700; color: #f4ecdb; }
.cover span { margin-top: auto; font-size: 0.5rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(244, 236, 219, 0.72); }

/* ------------------------------------------------------------------ domande e piede */

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 34px; }
.faq > div { padding-top: 20px; border-top: 1px solid var(--line); }
.faq h3 { font-size: 1.02rem; }
.faq p { margin-top: 9px; font-size: 0.9rem; line-height: 1.6; color: var(--body); }

.frame { padding: 20px 22px 22px; border-radius: 18px; border: 1px solid var(--line); }

.close {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 72px;
    padding: 44px;
    border-radius: 22px;
    background: var(--night);
    color: #f0e7d8;
}
.close h2 { color: #f0e7d8; max-width: 15em; }
.close p { margin-top: 14px; max-width: 34em; font-size: 1rem; line-height: 1.6; color: var(--night-body); }
.close img { flex: none; width: 324px; height: 243px; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }

footer { padding-top: 56px; padding-bottom: 44px; }
.foot { display: flex; gap: 64px; align-items: flex-start; padding-top: 30px; border-top: 1px solid var(--line); }
.foot-cols { display: flex; gap: 56px; margin-left: auto; font-size: 0.85rem; }
.foot-cols div { display: flex; flex-direction: column; gap: 9px; }
.foot-cols b { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--murmur); }
.foot-cols a { color: var(--body); display: inline-flex; align-items: center; min-height: 40px; }

/* Un collegamento che sul telefono è l'unica navigazione deve restare premibile. */
.tap { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.fine { margin-top: 26px; font-size: 0.78rem; color: var(--murmur); }

/* ================================================================== il tablet */

@media (max-width: 1180px) {
    :root { --pad: 56px; --dock: 72px; }

    .hero-copy { width: 60%; min-width: 420px; padding-top: 60px; }
    .demo-panel { width: 360px; }
    .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { gap: 36px; }
    .close img { width: 260px; height: 195px; }
    .foot-cols { gap: 36px; }
}

/* ================================================================== il telefono */

@media (max-width: 900px) {
    :root { --pad: 24px; --dock: 104px; }

    /* L'illustrazione smette di stare dietro al titolo e ci si mette sopra: a questa larghezza
       il terzo vuoto non c'è più, e il testo sul disegno non si legge. */
    .hero-art { inset: 0 0 auto 0; height: 300px; }
    .hero-art img { object-position: 58% center; }
    .veil-x { display: none; }
    .veil-t { height: 130px; }
    .veil-b {
        height: 140px;
        background: linear-gradient(180deg, rgba(23, 19, 14, 0) 0%, rgba(23, 19, 14, 0.9) 78%, var(--night) 100%);
    }
    .hero-copy { width: auto; min-width: 0; padding: 250px 0 var(--dock); }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }

    .nav-links { display: none; }
    .nav { gap: 12px; height: 60px; }

    .demo { flex-direction: column; }
    .demo-panel { width: auto; border-left: 0; border-top: 1px solid #cfc7bb; }
    .prose { padding: 26px 20px 22px; font-size: 1rem; }

    .sec { padding-top: 48px; }
    .sec-tight { padding-top: 40px; }
    .band-pale { margin-top: 48px; padding: 44px 0 46px; }
    .band-sand { margin-top: 48px; }
    .band-night { margin-top: 48px; padding: 44px 0 48px; }

    .split { flex-direction: column; align-items: stretch; gap: 22px; }
    .split.flip { flex-direction: column-reverse; }

    .grid { gap: 14px; }
    .g2, .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Le due carte composite (album + quiz, calendario + scaffale) a met&agrave; schermo non ci stanno. */
    .g2.wide, .g2.cal-split { grid-template-columns: minmax(0, 1fr); }

    .cell { height: 62px; }
    .cell > b { font-size: 0.58rem; top: 3px; left: 4px; }
    .cell.on::before { bottom: 16px; height: 2px; left: 7px; right: 7px; }
    .cell.on::after { bottom: 9px; left: 7px; right: 16px; }
    .cal { gap: 5px; }

    .album { grid-template-columns: repeat(6, 1fr); gap: 6px; }
    .album div { height: 56px; }

    .close { flex-direction: column-reverse; align-items: stretch; padding: 0 0 32px; overflow: hidden; text-align: center; }
    .close > div { padding: 0 22px; }
    .close img { width: 100%; height: auto; border-radius: 0; box-shadow: none; margin-bottom: 24px; }
    .card-photo { height: auto; }
    .close p { margin-left: auto; margin-right: auto; }
    .close .hero-cta { justify-content: center; }

    .foot { flex-direction: column; gap: 26px; }
    .foot-cols { margin-left: 0; flex-wrap: wrap; gap: 22px 36px; }
}

/* Sotto questa larghezza il richiamo nella barra non ci sta accanto ad «Accedi», e andrebbe
   a capo dentro la pastiglia. Non serve: lo stesso bottone e' duecento pixel piu' sotto. */
@media (max-width: 760px) {
    .nav-end .btn { display: none; }
}

@media (max-width: 620px) {
    :root { --pad: 20px; }

    .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
    .faq { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .faq > div { margin-top: 16px; padding-top: 16px; }

    .sticker { width: 122px; }
    .sticker-frame img { height: 160px; }
    .sticker-name b { font-size: 0.7rem; }

    .price .amount { font-size: 2.4rem; }
}
