Files
rpigroupplay/css/style.css
T
alexspeakerandClaude Fable 5.1 ffb04a96a7 Rollback alla 3.0.0 (24391c4)
Ripristinato per intero lo stato del commit 24391c4, che sull'iPhone
con l'icona installata si vedeva correttamente. Le modifiche dei commit
successivi restano nella storia per essere riprese una per volta.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-06 16:08:48 +01:00

2375 lines
48 KiB
CSS

/* ==========================================================================
RPIGroup Play - Sistema di design dell'app
Stesso linguaggio del tema RPIGroup Radio Theme (siti Astro): i due colori del marchio (--brand, --accent)
generano tutta la palette con color-mix(); Bricolage Grotesque per i titoli, Plus Jakarta Sans per il testo.
Tema scuro fisso: le pagine delle radio incorporate (contentrpigplay) sono scure e l'app le avvolge senza stacchi.
Struttura: 1. Token 2. Base 3. Guscio (sidebar, topbar, tab bar, contenuto) 4. Componenti condivisi
5. Home 6. Griglie (radio, tv, podcast) 7. Viste a tutta altezza (player, tv, puntata)
8. Dock del player 9. Pagine di testo 10. PWA e offline 11. Movimento
========================================================================== */
/* --------------------------------------------------------------------------
0. Caratteri (variabili, solo alfabeto latino; licenza OFL in css/fonts)
-------------------------------------------------------------------------- */
@font-face {
font-family: "Plus Jakarta Sans";
font-style: normal;
font-weight: 200 800;
font-display: swap;
src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
font-family: "Bricolage Grotesque";
font-style: normal;
font-weight: 200 800;
font-display: swap;
src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
}
/* --------------------------------------------------------------------------
1. Token
-------------------------------------------------------------------------- */
:root {
color-scheme: dark;
/* Marchio */
--brand: #2a377d;
--accent: #f7b835;
/* Sfumature del marchio */
--brand-600: color-mix(in srgb, var(--brand) 86%, black);
--brand-700: color-mix(in srgb, var(--brand) 68%, black);
--brand-900: color-mix(in srgb, var(--brand) 37%, black);
--brand-300: color-mix(in srgb, var(--brand) 75%, #6b7fff);
--accent-600: color-mix(in srgb, var(--accent) 90%, black);
--accent-300: color-mix(in srgb, var(--accent) 80%, white);
--on-accent: color-mix(in srgb, var(--accent) 12%, black);
--live: #d42a3e;
--live-on-dark: #ff8a95;
/* Superfici e testo */
--bg: color-mix(in srgb, var(--brand) 26%, black);
--surface: color-mix(in srgb, var(--brand) 42%, black);
--surface-2: color-mix(in srgb, var(--brand) 57%, black);
--text: #eef0fa;
--text-muted: color-mix(in srgb, var(--brand) 40%, white);
--border: rgba(255, 255, 255, 0.1);
--link: color-mix(in srgb, var(--brand) 30%, white);
--eyebrow: var(--accent);
--glass: color-mix(in srgb, var(--brand-900) 80%, transparent);
--glass-border: rgba(255, 255, 255, 0.1);
/* Sezioni scure del brand (apertura, intestazioni) */
--ink: var(--brand-900);
--on-ink: #f3f4fb;
--on-ink-muted: rgba(243, 244, 251, 0.72);
--brand-gradient: radial-gradient(120% 140% at 0% 0%, var(--brand-300) 0%, transparent 55%),
radial-gradient(90% 120% at 100% 100%, var(--brand-700) 0%, transparent 60%),
linear-gradient(135deg, color-mix(in srgb, var(--brand) 88%, black) 0%, color-mix(in srgb, var(--brand) 55%, black) 100%);
/* Forme e ombre */
--radius-sm: 10px;
--radius: 16px;
--radius-lg: 24px;
--radius-full: 999px;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
--shadow-md: 0 8px 28px rgba(0, 0, 0, 0.35);
--shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
--shadow-accent: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent);
/* Tipografia */
--font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-display: "Bricolage Grotesque", var(--font-sans);
--fs-display: clamp(2.1rem, 1.3rem + 3.2vw, 4rem);
--fs-h1: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
--fs-h2: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem);
--fs-h3: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
/* Layout dell'app */
--container: 1240px;
--gutter: clamp(16px, 3vw, 32px);
--sidebar-w: 264px;
--topbar-h: 64px;
--tabbar-h: 62px;
--player-h: 72px;
--safe-bottom: env(safe-area-inset-bottom, 0px);
--safe-top: env(safe-area-inset-top, 0px);
/* Spazio da lasciare in fondo alle pagine quando il dock del player è visibile (lo imposta body.has-player) */
--dock-space: 0px;
--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.has-player {
--dock-space: var(--player-h);
}
@media (max-width: 899px) {
:root {
--player-h: 64px;
}
}
/* --------------------------------------------------------------------------
2. Base
-------------------------------------------------------------------------- */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
height: 100%;
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
overscroll-behavior: none;
}
body {
margin: 0;
height: 100%;
overflow: hidden;
font-family: var(--font-sans);
font-size: 1rem;
line-height: 1.55;
background: var(--bg);
color: var(--text);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
user-select: none;
}
h1,
h2,
h3,
h4 {
font-family: var(--font-display);
font-weight: 700;
line-height: 1.12;
letter-spacing: -0.02em;
margin: 0 0 0.5em;
color: inherit;
text-wrap: balance;
}
p {
margin: 0 0 1em;
text-wrap: pretty;
}
img,
svg,
video {
display: block;
max-width: 100%;
}
a {
color: var(--link);
text-decoration: none;
transition: color 0.2s var(--ease);
}
a:hover {
color: var(--accent);
}
button {
font: inherit;
color: inherit;
}
:focus-visible {
outline: 3px solid var(--accent);
outline-offset: 3px;
}
::selection {
background: var(--accent);
color: var(--on-accent);
}
[hidden] {
display: none !important;
}
.visually-hidden {
position: absolute !important;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.icon {
flex: none;
}
/* Barre di scorrimento sottili, in tinta (computer) */
@media (pointer: fine) {
* {
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
*::-webkit-scrollbar {
width: 8px;
height: 8px;
}
*::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.18);
border-radius: 8px;
}
*::-webkit-scrollbar-track {
background: transparent;
}
}
/* --------------------------------------------------------------------------
3. Guscio dell'app
Telefono: topbar, contenuto, tab bar (righe). Computer: sidebar e contenuto (colonne).
Solo il contenuto scorre: il resto resta fermo come in un'app.
-------------------------------------------------------------------------- */
.app-shell {
height: 100vh;
height: 100dvh;
display: grid;
grid-template-rows: auto minmax(0, 1fr) auto;
grid-template-areas: "top" "main" "tab";
background: var(--bg);
}
.content {
grid-area: main;
position: relative;
display: flex;
flex-direction: column;
min-height: 0;
overflow-y: auto;
overflow-x: clip;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
outline: none;
}
/* Le pagine hanno la loro altezza; le viste "fill-view" (player, tv, puntata) riempiono l'area */
.content > * {
flex: 0 0 auto;
}
.content > .fill-view,
.content > .podcast-page.is-detail {
flex: 1 0 auto;
display: flex;
flex-direction: column;
min-height: 0;
}
/* Topbar (telefono) */
.topbar {
grid-area: top;
display: flex;
align-items: center;
justify-content: center;
position: relative;
height: calc(var(--topbar-h) + var(--safe-top));
padding: var(--safe-top) var(--gutter) 0;
background: var(--brand-700);
color: #fff;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 30px color-mix(in srgb, var(--brand-900) 25%, transparent);
z-index: 20;
}
.topbar-brand img {
height: 44px;
width: auto;
}
.topbar-install {
position: absolute;
right: calc(var(--gutter) - 6px);
top: calc(var(--safe-top) + (var(--topbar-h) - 40px) / 2);
color: var(--accent);
}
/* Tab bar (telefono) */
.tabbar {
grid-area: tab;
display: grid;
grid-template-columns: repeat(4, 1fr);
height: calc(var(--tabbar-h) + var(--safe-bottom));
padding: 0 0.5rem var(--safe-bottom);
background: color-mix(in srgb, var(--brand-900) 92%, black);
border-top: 1px solid rgba(255, 255, 255, 0.08);
z-index: 30;
}
.tab-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
color: rgba(255, 255, 255, 0.6);
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.02em;
transition: color 0.2s var(--ease);
}
.tab-item .icon {
transition: transform 0.25s var(--ease);
}
.tab-item:hover {
color: #fff;
}
.tab-item.is-active {
color: var(--accent);
}
.tab-item.is-active .icon {
transform: translateY(-1px);
}
/* Sidebar (computer) */
.sidebar {
display: none;
grid-area: side;
flex-direction: column;
gap: 1.5rem;
padding: 1.5rem 1rem 1.25rem;
background: color-mix(in srgb, var(--brand-900) 85%, black);
border-right: 1px solid rgba(255, 255, 255, 0.07);
color: #fff;
overflow-y: auto;
}
.sidebar-brand {
display: block;
padding: 0.25rem 0.75rem;
}
.sidebar-brand img {
height: 44px;
width: auto;
transition: transform 0.4s var(--ease);
}
.sidebar-brand:hover img {
transform: scale(1.03);
}
.sidebar-nav {
display: grid;
gap: 0.25rem;
}
.nav-item {
display: flex;
align-items: center;
gap: 0.85rem;
padding: 0.7rem 0.85rem;
border-radius: var(--radius-sm);
color: rgba(255, 255, 255, 0.72);
font-weight: 700;
font-size: 0.95rem;
transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-icon {
display: grid;
place-items: center;
width: 36px;
height: 36px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.06);
color: inherit;
transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-item:hover {
color: #fff;
background: rgba(255, 255, 255, 0.06);
}
.nav-item.is-active {
color: #fff;
background: rgba(255, 255, 255, 0.1);
}
.nav-item.is-active .nav-icon {
background: var(--accent);
color: var(--on-accent);
}
.sidebar-foot {
margin-top: auto;
display: grid;
gap: 1rem;
padding: 0 0.5rem;
}
.sidebar-foot .install-btn {
width: 100%;
}
.legal-links {
display: flex;
flex-wrap: wrap;
gap: 0.35rem 0.9rem;
font-size: 0.78rem;
font-weight: 600;
}
.legal-links a {
color: rgba(255, 255, 255, 0.6);
}
.legal-links a:hover {
color: var(--accent);
}
.sidebar-copy {
margin: 0;
font-size: 0.72rem;
line-height: 1.5;
color: rgba(255, 255, 255, 0.45);
}
@media (min-width: 900px) {
.app-shell {
grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr);
grid-template-areas: "side main";
}
.sidebar {
display: flex;
}
.topbar,
.tabbar {
display: none;
}
}
/* Barra di avanzamento durante il cambio pagina */
.route-progress {
position: fixed;
top: 0;
left: 0;
height: 3px;
width: 0;
z-index: 3000;
background: linear-gradient(90deg, var(--accent), var(--accent-300));
box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
opacity: 0;
transition: width 0.25s var(--ease), opacity 0.3s ease;
}
.route-progress.is-loading {
opacity: 1;
width: 75%;
transition: width 2.5s cubic-bezier(0.1, 0.6, 0.2, 1), opacity 0.1s;
}
.route-progress.is-done {
opacity: 0;
width: 100%;
transition: width 0.2s var(--ease), opacity 0.4s ease 0.15s;
}
@media (min-width: 900px) {
.route-progress {
left: var(--sidebar-w);
}
}
/* --------------------------------------------------------------------------
4. Componenti condivisi
-------------------------------------------------------------------------- */
.container {
width: 100%;
max-width: var(--container);
margin-inline: auto;
padding-inline: var(--gutter);
}
.container.narrow {
max-width: 860px;
}
/* Area di una pagina: spazio in basso per tab bar... no, quella è fuori dallo scroll; solo per il dock del player */
.page {
padding: clamp(1.25rem, 1rem + 1vw, 2rem) 0 calc(1.5rem + var(--dock-space));
}
.section-sm {
margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
}
.section-head {
display: flex;
align-items: end;
justify-content: space-between;
gap: 0.75rem 1.5rem;
flex-wrap: wrap;
margin-bottom: clamp(1rem, 0.75rem + 0.8vw, 1.5rem);
}
.section-head h2 {
font-size: var(--fs-h2);
margin: 0.3rem 0 0;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-size: 0.74rem;
font-weight: 800;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--eyebrow);
}
.eyebrow::before {
content: "";
width: 18px;
height: 3px;
border-radius: 3px;
background: currentColor;
}
/* Pulsanti */
.btn {
--btn-bg: var(--surface-2);
--btn-fg: var(--text);
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
min-height: 44px;
padding: 0.6rem 1.25rem;
border: 1px solid transparent;
border-radius: var(--radius-full);
background: var(--btn-bg);
color: var(--btn-fg);
font-weight: 700;
font-size: 0.92rem;
line-height: 1;
cursor: pointer;
white-space: nowrap;
text-decoration: none;
transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover {
color: var(--btn-fg);
transform: translateY(-1px);
}
.btn:active {
transform: translateY(0) scale(0.98);
}
.btn-lg {
min-height: 54px;
padding-inline: 1.5rem;
font-size: 1rem;
}
.btn-sm {
min-height: 36px;
padding: 0.35rem 0.9rem;
font-size: 0.8rem;
}
.btn-accent {
--btn-bg: var(--accent);
--btn-fg: var(--on-accent);
box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
--btn-bg: var(--accent-300);
}
.btn-brand {
--btn-bg: var(--brand);
--btn-fg: #fff;
}
.btn-brand:hover {
--btn-bg: var(--brand-600);
}
.btn-ghost {
--btn-bg: transparent;
--btn-fg: var(--text);
border-color: var(--border);
}
.btn-ghost:hover {
--btn-bg: var(--surface-2);
}
.btn-glass {
--btn-bg: rgba(255, 255, 255, 0.1);
--btn-fg: #fff;
border-color: rgba(255, 255, 255, 0.22);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover {
--btn-bg: rgba(255, 255, 255, 0.18);
}
.icon-btn {
display: grid;
place-items: center;
width: 40px;
height: 40px;
padding: 0;
border: 0;
border-radius: 50%;
background: transparent;
color: inherit;
cursor: pointer;
transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover {
background: rgba(255, 255, 255, 0.1);
}
.icon-btn .icon {
grid-area: 1 / 1;
}
/* Pillola "torna a" sopra sfondi scuri */
.back-pill {
display: inline-flex;
width: fit-content;
align-items: center;
gap: 0.4rem;
min-height: 38px;
padding: 0.35rem 0.95rem 0.35rem 0.7rem;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: var(--radius-full);
background: rgba(255, 255, 255, 0.08);
color: var(--on-ink);
font-weight: 700;
font-size: 0.86rem;
cursor: pointer;
white-space: nowrap;
-webkit-backdrop-filter: saturate(160%) blur(12px);
backdrop-filter: saturate(160%) blur(12px);
transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.back-pill .icon {
transition: transform 0.2s var(--ease);
}
.back-pill:hover {
color: var(--accent);
background: rgba(255, 255, 255, 0.14);
}
.back-pill:hover .icon {
transform: translateX(-3px);
}
/* Etichette */
.chip {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.3rem 0.7rem;
border-radius: var(--radius-full);
font-size: 0.7rem;
font-weight: 800;
letter-spacing: 0.06em;
text-transform: uppercase;
background: var(--surface-2);
color: var(--text-muted);
white-space: nowrap;
}
.chip-accent {
background: var(--accent);
color: var(--on-accent);
}
.chip-brand {
background: var(--brand);
color: #fff;
}
.chip-live {
background: var(--live);
color: #fff;
}
.source-rdl {
background: color-mix(in srgb, var(--brand-300) 35%, var(--surface-2));
color: #fff;
}
.source-rc105 {
background: color-mix(in srgb, #e65100 45%, var(--surface-2));
color: #fff;
}
/* Puntino "in diretta" che pulsa */
.live-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: currentColor;
box-shadow: 0 0 0 0 currentColor;
animation: live-pulse 1.8s infinite;
}
@keyframes live-pulse {
0% {
box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent);
}
70% {
box-shadow: 0 0 0 8px transparent;
}
100% {
box-shadow: 0 0 0 0 transparent;
}
}
/* Barre dell'equalizzatore (in riproduzione) */
.eq {
display: inline-flex;
align-items: flex-end;
gap: 2px;
height: 14px;
}
.eq span {
width: 3px;
height: 30%;
border-radius: 2px;
background: currentColor;
}
.is-playing .eq span {
animation: eq 0.9s ease-in-out infinite;
}
.is-playing .eq span:nth-child(2) {
animation-delay: 0.2s;
}
.is-playing .eq span:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes eq {
0%,
100% {
height: 30%;
}
50% {
height: 100%;
}
}
/* Card */
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
}
.card-link {
display: flex;
flex-direction: column;
color: inherit;
overflow: hidden;
cursor: pointer;
transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card-link:hover,
.card-link:focus-visible {
color: inherit;
transform: translateY(-3px);
box-shadow: var(--shadow-md);
border-color: color-mix(in srgb, var(--brand-300) 45%, var(--border));
}
.card-link:active {
transform: translateY(0) scale(0.99);
}
/* Motivo grafico: anelli bianchi quasi trasparenti sulle sezioni scure */
.motivo {
stroke: rgba(255, 255, 255, 0.07);
stroke-width: 1.5;
pointer-events: none;
}
/* Macchie di colore sfocate dietro le aperture */
.blob {
position: absolute;
border-radius: 50%;
filter: blur(70px);
opacity: 0.55;
pointer-events: none;
}
.blob-a {
width: 460px;
height: 460px;
right: -120px;
top: -160px;
background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 65%);
animation: float 14s ease-in-out infinite alternate;
}
.blob-b {
width: 560px;
height: 560px;
left: -220px;
bottom: -320px;
background: radial-gradient(circle, color-mix(in srgb, var(--brand-300) 70%, transparent), transparent 65%);
animation: float 18s ease-in-out infinite alternate-reverse;
}
@keyframes float {
to {
transform: translate(-40px, 30px) scale(1.08);
}
}
/* Intestazione delle pagine interne */
.page-head {
position: relative;
overflow: hidden;
isolation: isolate;
background: var(--brand-gradient);
color: var(--on-ink);
padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem) 0 clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
}
.page-head-glow {
position: absolute;
z-index: -1;
width: 520px;
height: 520px;
right: -140px;
top: -220px;
border-radius: 50%;
background: radial-gradient(circle, color-mix(in srgb, var(--accent) 32%, transparent), transparent 65%);
filter: blur(20px);
pointer-events: none;
}
.page-head-motivo {
position: absolute;
z-index: -1;
right: -12%;
bottom: -60%;
width: min(620px, 110vw);
}
.page-head-inner {
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.page-head .back-pill {
margin-bottom: 1rem;
}
.page-head h1 {
font-size: var(--fs-h1);
font-weight: 800;
letter-spacing: -0.03em;
margin: 0.5rem 0 0;
color: #fff;
max-width: 22ch;
}
.page-head .subtitle {
margin: 0.8rem 0 0;
font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
color: var(--on-ink-muted);
max-width: 60ch;
}
/* Testo lungo */
.prose {
user-select: text;
-webkit-user-select: text;
font-size: 1rem;
line-height: 1.7;
color: var(--text);
}
.prose h2 {
font-size: var(--fs-h2);
margin: 1.8em 0 0.5em;
}
.prose h3 {
font-size: var(--fs-h3);
margin: 1.4em 0 0.3em;
}
.prose h2:first-child,
.prose h3:first-child,
.prose p:first-child {
margin-top: 0;
}
.prose p:last-child {
margin-bottom: 0;
}
.prose a {
color: var(--accent);
text-decoration: underline;
text-underline-offset: 3px;
}
.prose a.btn {
text-decoration: none;
color: var(--on-accent);
}
.prose b,
.prose strong {
color: #fff;
}
.prose hr {
border: 0;
border-top: 1px solid var(--border);
margin: 1.25rem 0;
}
.prose-card {
padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
}
.empty-state {
display: grid;
justify-items: center;
gap: 0.75rem;
text-align: center;
color: var(--text-muted);
padding: 3rem 1rem;
border: 1px dashed var(--border);
border-radius: var(--radius-lg);
}
.empty-state p {
margin: 0;
}
/* --------------------------------------------------------------------------
5. Home
-------------------------------------------------------------------------- */
.hero {
position: relative;
isolation: isolate;
overflow: hidden;
background: var(--brand-gradient);
color: var(--on-ink);
padding: clamp(2rem, 1.5rem + 3vw, 4.5rem) 0 clamp(4.5rem, 3.5rem + 4vw, 7rem);
}
.hero-bg {
position: absolute;
inset: 0;
z-index: -1;
pointer-events: none;
}
.hero-motivo {
position: absolute;
width: min(760px, 120vw);
right: -18%;
top: 50%;
transform: translateY(-50%);
}
.hero-inner {
position: relative;
}
.hero-chip {
margin-bottom: 1.25rem;
box-shadow: 0 6px 20px color-mix(in srgb, var(--live) 35%, transparent);
}
.hero-title {
font-size: var(--fs-display);
font-weight: 800;
line-height: 1.02;
letter-spacing: -0.035em;
max-width: 18ch;
margin: 0 0 1.1rem;
color: #fff;
}
.hero-title .hl {
display: block;
color: var(--accent);
}
.hero-lead {
font-size: clamp(0.98rem, 0.95rem + 0.3vw, 1.15rem);
color: var(--on-ink-muted);
max-width: 50ch;
margin-bottom: 0;
}
.hero-cta {
display: flex;
flex-wrap: wrap;
gap: 0.7rem;
}
@media (max-width: 520px) {
.hero-cta .btn {
width: 100%;
}
}
/* Le tre sezioni, sovrapposte al fondo dell'apertura */
.home-page {
padding-top: 0;
}
.tiles {
position: relative;
z-index: 2;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.9rem;
margin-top: clamp(-3rem, -2rem - 1.5vw, -2.5rem);
}
.tile {
flex-direction: row;
align-items: center;
gap: 0.9rem;
padding: 1rem 1.1rem;
box-shadow: var(--shadow-lg);
}
.tile-icon,
.shortcut-icon {
display: grid;
place-items: center;
flex: none;
width: 48px;
height: 48px;
border-radius: 14px;
background: linear-gradient(145deg, var(--accent-300), var(--accent) 55%, var(--accent-600));
color: var(--on-accent);
box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent);
transition: transform 0.3s var(--ease);
}
.tile:hover .tile-icon {
transform: scale(1.06) rotate(-4deg);
}
.tile-text {
display: grid;
gap: 0.1rem;
min-width: 0;
}
.tile-text strong {
font-family: var(--font-display);
font-size: 1.1rem;
color: #fff;
}
.tile-text span {
font-size: 0.85rem;
color: var(--text-muted);
}
.tile-arrow {
margin-left: auto;
color: var(--text-muted);
transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.tile:hover .tile-arrow {
transform: translateX(3px);
color: var(--accent);
}
/* Telefono: una riga per sezione, a tutta larghezza, con descrizione e freccia */
@media (max-width: 640px) {
.tiles {
grid-template-columns: 1fr;
gap: 0.6rem;
margin-top: -2rem;
}
.tile {
gap: 0.85rem;
padding: 0.8rem 0.9rem 0.8rem 0.8rem;
border-radius: var(--radius);
}
.tile-icon {
width: 46px;
height: 46px;
border-radius: 12px;
}
.tile-text strong {
font-size: 1.02rem;
}
.tile-text span {
font-size: 0.82rem;
}
}
/* Collegamenti rapidi (informazioni, 404) */
.shortcut-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
gap: 0.9rem;
}
.shortcut {
position: relative;
gap: 0.25rem;
padding: 1.2rem 3rem 1.2rem 1.25rem;
}
.shortcut .shortcut-icon {
width: 42px;
height: 42px;
margin-bottom: 0.6rem;
background: rgba(255, 255, 255, 0.07);
color: var(--accent);
box-shadow: none;
}
.shortcut:hover .shortcut-icon {
background: var(--accent);
color: var(--on-accent);
}
.shortcut strong {
font-family: var(--font-display);
font-size: 1.05rem;
color: #fff;
}
.shortcut > span:not(.shortcut-icon) {
font-size: 0.88rem;
color: var(--text-muted);
}
.shortcut-arrow {
position: absolute;
right: 1.1rem;
top: 1.3rem;
color: var(--text-muted);
transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.shortcut:hover .shortcut-arrow {
transform: translateX(3px);
color: var(--accent);
}
/* Partner e feedback */
.partner-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
gap: 0.9rem;
}
.partner-card,
.feedback-card {
gap: 0.6rem;
padding: 1.4rem;
}
.partner-card {
align-items: flex-start;
background: linear-gradient(140deg, var(--brand) 0%, var(--brand-700) 70%, var(--brand-900) 100%);
}
.partner-card img {
width: min(100%, 300px);
height: auto;
margin: 0.5rem 0;
filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}
.feedback-card strong {
font-family: var(--font-display);
font-size: 1.1rem;
color: #fff;
}
.feedback-card > span:not(.shortcut-icon):not(.partner-link) {
color: var(--text-muted);
font-size: 0.92rem;
}
.partner-link {
display: inline-flex;
align-items: center;
gap: 0.35rem;
margin-top: auto;
font-size: 0.85rem;
font-weight: 800;
color: var(--accent);
}
.mobile-footer {
margin-top: 2.5rem;
padding-top: 1.25rem;
border-top: 1px solid var(--border);
display: grid;
gap: 0.6rem;
font-size: 0.75rem;
color: var(--text-muted);
}
.mobile-footer p {
margin: 0;
line-height: 1.5;
}
.mobile-footer .legal-links a {
color: var(--text-muted);
}
@media (min-width: 900px) {
.mobile-footer {
display: none;
}
}
/* --------------------------------------------------------------------------
6. Griglie: radio, tv, podcast
-------------------------------------------------------------------------- */
.station-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
gap: 0.9rem;
}
@media (min-width: 640px) {
.station-grid {
grid-template-columns: repeat(auto-fill, minmax(190px, 230px));
}
}
/* Le TV hanno la copertina 16:9 (anteprima del canale): colonne più larghe delle radio, una sola su telefono */
.tv-grid {
grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
@media (min-width: 640px) {
.tv-grid {
grid-template-columns: repeat(auto-fill, minmax(300px, 400px));
}
}
.station-card .cover {
position: relative;
display: block;
aspect-ratio: 1;
overflow: hidden;
background: var(--brand-700);
}
.station-card.is-tv .cover {
aspect-ratio: 16 / 9;
}
.station-card .cover img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s var(--ease);
}
.station-card:hover .cover img {
transform: scale(1.05);
}
.station-card .play,
.podcast-card .play {
position: absolute;
right: 12px;
bottom: 12px;
display: grid;
place-items: center;
width: 44px;
height: 44px;
padding-left: 2px;
border-radius: 50%;
background: var(--accent);
color: var(--brand-900);
box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-900) 45%, transparent);
transform: translateY(6px);
opacity: 0.92;
transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.station-card:hover .play,
.podcast-card:hover .play {
transform: none;
opacity: 1;
}
.station-card .thematic,
.station-card .tv-chip {
position: absolute;
left: 10px;
top: 10px;
font-size: 0.62rem;
padding: 0.22rem 0.55rem;
}
.station-card .body {
display: grid;
gap: 0.15rem;
padding: 0.9rem 1rem 1rem;
}
.station-card h3 {
font-size: 1rem;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.station-card p {
margin: 0;
font-size: 0.82rem;
color: var(--text-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Podcast */
.podcast-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
gap: 1rem;
}
.podcast-card .cover {
position: relative;
aspect-ratio: 16 / 9;
overflow: hidden;
background: linear-gradient(140deg, var(--brand) 0%, var(--brand-700) 70%, var(--brand-900) 100%);
}
.podcast-card .cover img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s var(--ease);
}
.podcast-card:hover .cover img {
transform: scale(1.05);
}
.cover-fallback {
position: absolute;
inset: 0;
display: grid;
place-items: center;
color: rgba(255, 255, 255, 0.35);
}
.podcast-card .body {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
padding: 1rem 1.1rem 1.1rem;
flex: 1;
}
.podcast-card .chips {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.podcast-card .chips .chip {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
.podcast-card h3 {
font-size: var(--fs-h3);
margin: 0.1rem 0 0;
}
.podcast-card time {
display: inline-flex;
align-items: center;
gap: 0.35rem;
margin-top: auto;
font-size: 0.82rem;
color: var(--text-muted);
}
.podcast-card time .icon {
color: var(--accent);
}
/* --------------------------------------------------------------------------
7. Viste a tutta altezza: radio (iframe o scheda), tv, puntata podcast
-------------------------------------------------------------------------- */
.fill-view {
padding-bottom: var(--dock-space);
}
.view-bar {
display: flex;
align-items: center;
gap: 0.85rem;
padding: 0.75rem var(--gutter);
background: var(--brand-700);
color: #fff;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
flex: none;
position: relative;
z-index: 2;
}
.view-title {
flex: 1;
min-width: 0;
display: grid;
line-height: 1.25;
}
.view-title strong {
font-family: var(--font-display);
font-size: 1.05rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.view-title span {
font-size: 0.78rem;
color: rgba(255, 255, 255, 0.65);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@media (max-width: 479px) {
.view-bar {
gap: 0.6rem;
}
.view-bar .back-pill {
padding-right: 0.7rem;
}
}
/* Contenuti incorporati (pagina della radio, puntata): l'iframe riempie lo spazio che resta */
iframe.contentplayer {
flex: 1 1 auto;
min-height: 0;
width: 100%;
height: auto;
border: 0;
background: var(--bg);
}
/* Scheda della radio senza pagina incorporata: logo, brano in onda */
.station-static {
position: relative;
isolation: isolate;
overflow: hidden;
flex: 1 1 auto;
min-height: 0;
display: grid;
place-items: center;
padding: clamp(1.5rem, 1rem + 2vw, 3rem) var(--gutter);
background: var(--brand-gradient);
color: var(--on-ink);
}
.station-static-bg {
position: absolute;
inset: 0;
z-index: -1;
}
.station-static-motivo {
position: absolute;
width: min(700px, 120vw);
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.station-static-card {
display: grid;
justify-items: center;
gap: 0.75rem;
text-align: center;
max-width: 460px;
}
.static-cover {
width: clamp(160px, 40vw, 220px);
aspect-ratio: 1;
object-fit: cover;
border-radius: var(--radius-lg);
background: var(--brand-700);
box-shadow: var(--shadow-lg);
margin-bottom: 0.5rem;
}
.station-static-card h2 {
font-size: var(--fs-h2);
margin: 0.25rem 0 0;
color: #fff;
overflow-wrap: anywhere;
}
.station-static-card p {
margin: 0;
color: var(--on-ink-muted);
}
/* TV */
.tv-stage {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1rem;
padding: clamp(0.75rem, 0.5rem + 1vw, 1.75rem) var(--gutter);
}
.tv-player {
position: relative;
width: min(100%, calc((100vh - 240px) * 16 / 9), 1180px);
aspect-ratio: 16 / 9;
overflow: hidden;
border-radius: var(--radius);
background: #000;
border: 1px solid rgba(255, 255, 255, 0.12);
box-shadow: 0 16px 40px color-mix(in srgb, var(--brand-900) 60%, transparent);
}
.tv-player video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
background: #000;
}
.tv-error {
position: absolute;
left: 50%;
top: 50%;
width: min(90%, 36ch);
margin: 0;
padding: 0.9rem 1.1rem;
border-radius: var(--radius-sm);
background: rgba(13, 19, 48, 0.9);
color: #fff;
text-align: center;
font-weight: 600;
translate: -50% -50%;
z-index: 2;
}
.tv-caption {
display: flex;
align-items: center;
gap: 0.85rem;
width: min(100%, 1180px);
color: var(--text-muted);
font-size: 0.88rem;
}
.tv-caption img {
width: 40px;
height: 40px;
border-radius: 10px;
object-fit: cover;
flex: none;
}
.tv-caption div {
display: grid;
}
.tv-caption strong {
color: #fff;
}
/* Puntata podcast aperta */
.podcast-page {
display: flex;
flex-direction: column;
}
.podcast-detail {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
padding-bottom: var(--dock-space);
}
/* --------------------------------------------------------------------------
8. Dock del player: fisso in basso, sopra la tab bar su telefono, a destra della sidebar su computer
-------------------------------------------------------------------------- */
/* Barra a tutta larghezza, agganciata in basso: sopra la tab bar su telefono, accanto alla sidebar su computer */
.player-dock {
position: fixed;
left: 0;
right: 0;
bottom: calc(var(--tabbar-h) + var(--safe-bottom));
z-index: 950;
animation: dock-in 0.35s var(--ease) both;
}
@keyframes dock-in {
from {
opacity: 0;
translate: 0 100%;
}
}
.player-inner {
display: flex;
align-items: center;
gap: 0.7rem;
height: var(--player-h);
padding: 0 var(--gutter) 0 calc(var(--gutter) - 4px);
background: color-mix(in srgb, var(--brand-900) 92%, transparent);
color: #fff;
border-top: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 -10px 40px color-mix(in srgb, var(--brand-900) 45%, transparent);
-webkit-backdrop-filter: saturate(160%) blur(18px);
backdrop-filter: saturate(160%) blur(18px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
.player-inner {
background: var(--brand-900);
}
}
.play-btn {
position: relative;
display: grid;
place-items: center;
flex: none;
width: 48px;
height: 48px;
border: 0;
border-radius: 50%;
background: var(--accent);
color: var(--brand-900);
cursor: pointer;
box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent);
transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.play-btn:hover {
transform: scale(1.05);
background: var(--accent-300);
}
.play-btn:active {
transform: scale(0.96);
}
.play-btn .icon,
.play-btn .spinner {
grid-area: 1 / 1;
}
.play-btn .i-play {
margin-left: 2px;
}
.i-pause,
.spinner,
.is-playing .i-play,
.is-buffering .i-play,
.is-buffering .i-pause {
display: none;
}
.is-playing .i-pause {
display: block;
}
.is-buffering .spinner {
display: block;
width: 22px;
height: 22px;
border-radius: 50%;
border: 3px solid color-mix(in srgb, var(--brand-900) 25%, transparent);
border-top-color: var(--brand-900);
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.dock-cover-link {
flex: none;
line-height: 0;
}
.player-dock .cover {
width: 44px;
height: 44px;
border-radius: 12px;
object-fit: cover;
background: var(--brand-700);
}
.track-details {
flex: 1;
min-width: 0;
line-height: 1.25;
}
.live-tag {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 0.64rem;
font-weight: 800;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--live-on-dark);
}
.live-tag .eq {
display: none;
height: 10px;
color: var(--accent);
}
.is-playing .live-tag .eq {
display: inline-flex;
}
.is-error .live-tag {
color: var(--on-ink-muted);
}
.track-title,
.track-artist {
margin: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.track-title {
font-weight: 700;
font-size: 0.95rem;
margin-top: 2px;
}
.track-artist {
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.65);
}
.format-chip {
flex: none;
min-width: 44px;
padding: 0.3rem 0.55rem;
border: 1px solid rgba(255, 255, 255, 0.25);
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, 0.08);
color: #fff;
font-size: 0.68rem;
font-weight: 800;
letter-spacing: 0.08em;
cursor: pointer;
transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.format-chip:hover {
background: rgba(255, 255, 255, 0.16);
border-color: rgba(255, 255, 255, 0.4);
}
.volume-container {
display: none;
align-items: center;
gap: 0.4rem;
flex: none;
}
.i-mute,
.is-muted .i-vol {
display: none;
}
.is-muted .i-mute {
display: block;
}
.vol-slider {
--val: 100%;
width: 100px;
height: 4px;
appearance: none;
-webkit-appearance: none;
border-radius: 4px;
background: linear-gradient(to right, var(--accent) var(--val), rgba(255, 255, 255, 0.2) var(--val));
cursor: pointer;
}
.vol-slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 14px;
height: 14px;
border-radius: 50%;
background: #fff;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.vol-slider::-moz-range-thumb {
width: 14px;
height: 14px;
border: 0;
border-radius: 50%;
background: #fff;
}
.dock-close {
flex: none;
width: 36px;
height: 36px;
color: rgba(255, 255, 255, 0.7);
}
@media (min-width: 900px) {
.player-dock {
left: var(--sidebar-w);
right: 0;
bottom: 0;
}
.player-inner {
gap: 0.9rem;
}
.play-btn {
width: 52px;
height: 52px;
}
.player-dock .cover {
width: 48px;
height: 48px;
}
.volume-container {
display: flex;
}
}
/* --------------------------------------------------------------------------
9. Pagine di testo: changelog, 404
-------------------------------------------------------------------------- */
.changelog-repo {
display: flex;
align-items: center;
gap: 0.45rem;
margin: 0 0 1.25rem;
font-size: 0.88rem;
color: var(--text-muted);
}
.changelog-repo a {
color: var(--accent);
font-weight: 700;
}
.changelog-list {
display: grid;
gap: 0.9rem;
}
.changelog-entry {
padding: 1.2rem 1.3rem;
user-select: text;
-webkit-user-select: text;
}
.changelog-head {
display: flex;
align-items: center;
gap: 0.7rem;
margin-bottom: 0.8rem;
}
.changelog-current {
font-size: 0.75rem;
font-weight: 700;
color: var(--text-muted);
}
.changelog-entry ul {
margin: 0;
padding-left: 1.2rem;
display: grid;
gap: 0.35rem;
font-size: 0.95rem;
line-height: 1.55;
}
.changelog-entry li::marker {
color: var(--accent);
}
.changelog-empty {
margin: 0;
font-style: italic;
color: var(--text-muted);
}
/* 404: "404" con la lancetta di una radio che cerca la frequenza */
.not-found .page-head-inner {
align-items: center;
text-align: center;
}
.not-found h1 {
max-width: none;
}
.not-found .subtitle {
margin-inline: auto;
max-width: 52ch;
}
.not-found .hero-cta {
justify-content: center;
margin-top: 1.5rem;
}
.code {
display: inline-flex;
align-items: center;
gap: 0.4rem;
margin-bottom: 1rem;
font-family: var(--font-display);
font-size: clamp(3.5rem, 2.5rem + 5vw, 6rem);
font-weight: 800;
line-height: 1;
letter-spacing: -0.04em;
color: #fff;
}
.dial {
position: relative;
display: inline-block;
width: 0.9em;
height: 0.9em;
border-radius: 50%;
border: 0.08em solid rgba(255, 255, 255, 0.35);
background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}
.needle {
position: absolute;
left: 50%;
bottom: 50%;
width: 0.06em;
height: 0.4em;
margin-left: -0.03em;
border-radius: 0.03em;
background: var(--accent);
transform-origin: bottom center;
animation: needle 3s ease-in-out infinite alternate;
}
@keyframes needle {
from {
transform: rotate(-60deg);
}
to {
transform: rotate(60deg);
}
}
/* --------------------------------------------------------------------------
10. PWA (banner, istruzioni) e offline
-------------------------------------------------------------------------- */
@media (display-mode: standalone) {
.pwa-install-banner,
[data-pwa-install] {
display: none !important;
}
}
.pwa-install-banner {
position: fixed;
left: 8px;
right: 8px;
bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
z-index: 100000;
padding: 0.85rem;
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.15);
background: color-mix(in srgb, var(--brand-700) 94%, transparent);
-webkit-backdrop-filter: blur(15px);
backdrop-filter: blur(15px);
box-shadow: var(--shadow-lg);
color: #fff;
transform: translateY(120px);
opacity: 0;
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}
.pwa-install-banner.show {
transform: none;
opacity: 1;
}
/* Con il dock del player visibile il banner sale sopra di esso */
body.has-player .pwa-install-banner {
bottom: calc(var(--tabbar-h) + var(--safe-bottom) + var(--player-h) + 8px);
}
.pwa-banner-content {
display: flex;
align-items: center;
gap: 0.75rem;
}
.pwa-banner-logo {
width: 48px;
height: 48px;
border-radius: 12px;
flex: none;
}
.pwa-banner-text {
flex: 1;
min-width: 0;
}
.pwa-banner-title {
font-weight: 700;
font-size: 0.95rem;
}
.pwa-banner-desc {
font-size: 0.75rem;
color: rgba(255, 255, 255, 0.8);
line-height: 1.3;
}
.pwa-banner-actions {
display: flex;
align-items: center;
gap: 0.25rem;
flex: none;
}
.pwa-modal-overlay {
position: fixed;
inset: 0;
z-index: 110000;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
background: rgba(0, 0, 0, 0.6);
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
opacity: 0;
transition: opacity 0.3s ease;
}
.pwa-modal-overlay.show {
opacity: 1;
}
.pwa-modal-content {
width: min(100%, 440px);
border-radius: var(--radius-lg);
border: 1px solid rgba(255, 255, 255, 0.15);
background: var(--surface);
color: #fff;
box-shadow: var(--shadow-lg);
transform: scale(0.94);
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
overflow: hidden;
}
.pwa-modal-overlay.show .pwa-modal-content {
transform: scale(1);
}
.pwa-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 1rem 1rem 1.25rem;
border-bottom: 1px solid var(--border);
}
.pwa-modal-header h3 {
font-size: 1.1rem;
margin: 0;
}
.pwa-modal-body {
padding: 1.25rem;
}
.pwa-modal-app-info {
display: flex;
align-items: center;
gap: 0.85rem;
margin-bottom: 1.25rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border);
}
.pwa-modal-app-info h4 {
margin: 0;
font-size: 1rem;
}
.pwa-modal-app-info p {
margin: 2px 0 0;
font-size: 0.8rem;
color: var(--text-muted);
}
.pwa-modal-logo {
width: 52px;
height: 52px;
border-radius: 12px;
flex: none;
}
.pwa-modal-steps {
display: grid;
gap: 1rem;
}
.pwa-step {
display: flex;
gap: 0.75rem;
align-items: flex-start;
}
.pwa-step-num {
display: grid;
place-items: center;
width: 24px;
height: 24px;
border-radius: 50%;
background: var(--accent);
color: var(--on-accent);
font-weight: 800;
font-size: 0.8rem;
flex: none;
}
.pwa-step-text {
font-size: 0.9rem;
line-height: 1.45;
color: var(--text);
}
.pwa-step-text strong {
color: var(--accent);
}
.pwa-inline-icon {
display: inline-grid;
place-items: center;
vertical-align: middle;
margin: 0 2px;
padding: 2px 4px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.12);
color: var(--accent);
}
/* Offline */
.offline-overlay {
position: fixed;
inset: 0;
z-index: 999999;
display: flex;
justify-content: center;
align-items: center;
padding: 1.5rem;
background: color-mix(in srgb, var(--brand-900) 94%, transparent);
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
opacity: 0;
visibility: hidden;
transition: opacity 0.4s ease, visibility 0.4s ease;
}
.offline-overlay.active {
opacity: 1;
visibility: visible;
}
.offline-content {
display: grid;
justify-items: center;
gap: 0.75rem;
text-align: center;
color: #fff;
max-width: 400px;
}
.offline-icon {
color: var(--live-on-dark);
animation: pulse-offline 2s infinite ease-in-out;
}
.offline-title {
font-size: 1.7rem;
margin: 0.5rem 0 0;
}
.offline-desc {
color: var(--on-ink-muted);
margin-bottom: 0.75rem;
}
.offline-btn .icon.is-spinning {
animation: spin 1s linear infinite;
}
@keyframes pulse-offline {
0%,
100% {
transform: scale(1);
opacity: 0.8;
}
50% {
transform: scale(1.08);
opacity: 1;
}
}
/* Errore di caricamento di una pagina */
.load-error {
margin: 2rem auto;
max-width: 480px;
text-align: center;
padding: 2rem 1.5rem;
}
.load-error h2 {
font-size: var(--fs-h2);
}
.load-error p {
color: var(--text-muted);
}
/* --------------------------------------------------------------------------
11. Movimento
-------------------------------------------------------------------------- */
/* Il contenuto nuovo compare dal basso con una dissolvenza */
.content.is-entering > * {
animation: page-in 0.35s var(--ease) both;
}
@keyframes page-in {
from {
opacity: 0;
translate: 0 10px;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}