/* public/assets/css/app.css | 2026-05-31 | V.3.0 — layout full-bleed app-style */

/* =============================================================================
   PRIMA NOTA — CSS mobile-only
   Palette: template editorial B (petrol + crimson + cream)
   Vincoli: ZERO media query desktop. Colonna fissa max 480px centrata.
   Vedi MOBILE-ONLY.md e PROJECT_SPEC.md §5.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Custom properties — palette unica
   ----------------------------------------------------------------------------- */
:root {
    /* Petrol brand */
    --petrol:       #066785;
    --petrol-dark:  #034a64;
    --petrol-deep:  #012a3a;
    --petrol-light: #d6e8ef;
    --petrol-tint:  #eef5f8;
    --petrol-glow:  #5fb2c9;
    /* Crimson accent */
    --crimson:      #c90931;
    --crimson-deep: #9b0726;
    --crimson-tint: #fbe3ea;
    /* Azzurro Savoia — usato per i bottoni primary (sostituisce petrol "gasolio") */
    --savoia:       #0033a0;
    --savoia-dark:  #002780;
    /* Neutri */
    --cream:        #f4eee4;
    --ink:          #1a1a1a;          /* nero pieno per leggibilita' Wikipedia-style */
    --muted:        #54595d;          /* solo metadati, non corpo testo */
    --border:       #e2e6ea;
    --bg:           #f7f9fb;
    --white:        #ffffff;
    --link:         #3366cc;          /* blu wikipedia-style */
    --link-visited: #795cb2;

    /* Tipografia — system stack (San Francisco su iOS, Roboto su Android)
       Serif riservato a logo/wordmark e qualche hero. NON usare per body. */
    --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;

    /* Spaziature */
    --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;  --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;  --sp-10: 40px;

    /* Componenti */
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 14px rgba(1,42,58,0.10);
    --shadow-lg: 0 8px 24px rgba(1,42,58,0.18);

    /* Layout — mobile-only, larghezza telefono ~390px (rif iPhone Pro) */
    --col-w: 420px;
    --nav-h: 72px;
}

/* -----------------------------------------------------------------------------
   Reset essenziale
   ----------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
    -webkit-text-size-adjust: 100%;
    font-size: 22px;                  /* VINCOLO: minimo 22px ovunque */
    line-height: 1.6;
}
body {
    font-family: var(--font-sans);
    background: var(--cream);             /* sfondo caldo "app-like" */
    color: var(--ink);
    min-height: 100dvh;
    overscroll-behavior-y: contain;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a {
    color: var(--link);
    text-decoration: underline;       /* link sottolineati come Wikipedia */
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
a:visited { color: var(--link-visited); }
p { margin: 0 0 16px; }                /* spazio tra paragrafi tipo Wikipedia */

/* -----------------------------------------------------------------------------
   App container — full-bleed mobile, sfondo trasparente (eredita body cream).
   Niente piu' colonna bianca: lo schermo intero del telefono e' "l'app".
   ----------------------------------------------------------------------------- */
.app {
    max-width: var(--col-w);
    margin: 0 auto;
    min-height: 100dvh;
    background: transparent;
    /* Padding-top: safe-area (notch) + 8px di respiro, dato che non c'e' app-bar */
    padding-top: calc(env(safe-area-inset-top) + 8px);
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
    position: relative;
}
/* Variante senza bottom-nav (landing, login, quick) */
.app--nonav { padding-bottom: env(safe-area-inset-bottom); }

/* -----------------------------------------------------------------------------
   Top app bar (con hamburger) — trasparente, eredita lo sfondo body
   ----------------------------------------------------------------------------- */
.appbar {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 var(--sp-4);
    background: var(--cream);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.appbar__title {
    flex: 1;
    font-family: var(--font-serif);   /* logo wordmark resta decorativo serif */
    font-size: 20px;
    font-weight: 700;
    color: var(--petrol-dark);
    margin: 0 0 0 var(--sp-3);
    letter-spacing: -0.01em;
}
.appbar__title em {
    color: var(--crimson);
    font-style: italic;
    font-weight: 700;
}
.appbar__btn {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: transparent;
    border: none;
    color: var(--petrol-dark);
    cursor: pointer;
    border-radius: var(--radius-sm);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.appbar__btn:active { background: var(--petrol-tint); }

/* -----------------------------------------------------------------------------
   Drawer laterale (apre via hamburger)
   ----------------------------------------------------------------------------- */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
}
.drawer[aria-hidden="false"] {
    pointer-events: auto;
    visibility: visible;
}
.drawer__scrim {
    position: absolute; inset: 0;
    background: rgba(1,42,58,0.4);
    opacity: 0;
    transition: opacity 200ms ease;
}
.drawer__panel {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 80%; max-width: 320px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 200ms ease;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
    overflow-y: auto;
}
.drawer[aria-hidden="false"] .drawer__scrim { opacity: 1; }
.drawer[aria-hidden="false"] .drawer__panel { transform: translateX(0); }
.drawer__header {
    padding: var(--sp-6) var(--sp-4) var(--sp-4);
    border-bottom: 1px solid var(--border);
}
.drawer__brand {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--petrol-dark);
}
.drawer__brand em { color: var(--crimson); font-style: italic; }
.drawer__user {
    margin-top: var(--sp-2);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.drawer__list {
    list-style: none;
    margin: 0;
    padding: var(--sp-2) 0;
}
.drawer__group-title {
    padding: var(--sp-4) var(--sp-4) var(--sp-1);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.drawer__list a, .drawer__list button {
    display: block;
    width: 100%;
    padding: 18px 20px;
    color: var(--ink);
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 22px;
    line-height: 1.6;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
}
.drawer__list a:active, .drawer__list button:active { background: var(--petrol-tint); }
.drawer__list svg { color: var(--petrol); flex-shrink: 0; }

/* -----------------------------------------------------------------------------
   Bottom navigation — full-width sul telefono (occupa tutto lo schermo)
   ----------------------------------------------------------------------------- */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 100;
    box-shadow: 0 -2px 14px rgba(1,42,58,0.06);
}
.bottom-nav a, .bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    font-family: inherit;
    color: var(--muted);
    font-size: 14px;                  /* MIN ASSOLUTO: 14px (eccezione nav fissa) */
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    padding: 6px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav .nav-icon { width: 28px; height: 28px; }
.bottom-nav a.is-active, .bottom-nav button.is-active {
    color: var(--petrol-dark);
    font-weight: 600;
}
/* override icon size definito sopra in .bottom-nav .nav-icon */

/* -----------------------------------------------------------------------------
   Tipografia — Wikipedia mobile puro.
   TUTTO sans-serif system. Niente serif decorativo in titoli o body.
   Serif riservato ESCLUSIVAMENTE al logo "Prima nota" (.brand-inline, .accent).
   ----------------------------------------------------------------------------- */
.h1, .h2, .h3 {
    font-family: var(--font-sans);
    color: var(--ink);
    margin: 0 0 16px;
    line-height: 1.3;                  /* leggermente piu' stretto sui titoli */
    font-weight: 700;
    letter-spacing: -0.01em;
}
.h1 { font-size: 34px; line-height: 1.2; }
.h2 { font-size: 28px; line-height: 1.25; }
.h3 { font-size: 24px; }

/* Kicker = label di sezione, minimo 16px per leggibilita' */
.kicker {
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.4;
}

/* "Sezione bar": brand sopra, kicker sotto. Layout VERTICALE (no flex orizzontale). */
.section-bar {
    padding: 8px 20px 16px;
}
.section-bar .brand-inline {
    display: block;
    margin-bottom: 4px;
}

/* Logo wordmark — UNICO elemento serif (come "W Wikipedia" su wiki) */
.brand-inline {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--petrol-dark);
    letter-spacing: -0.01em;
    line-height: 1.4;
}
.brand-inline em { color: var(--crimson); font-style: italic; }

.lead {
    margin-top: 12px;
    font-size: 22px;
    line-height: 1.6;
    color: var(--ink);
    font-weight: 400;
}

/* .accent: usato SOLO dentro il wordmark "Prima nota".
   NON usare nei titoli — Wikipedia non mescola font in un titolo. */
.accent {
    color: var(--crimson);
    font-style: italic;
    font-weight: 700;
    font-family: var(--font-serif);
}

/* -----------------------------------------------------------------------------
   Bottoni
   ----------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    min-height: 60px;
    padding: 16px 24px;
    font-family: var(--font-sans);
    font-size: 22px;                   /* VINCOLO: minimo 22px */
    line-height: 1.6;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: opacity 150ms ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}
.btn:active { opacity: 0.85; }

/* ⚠ FIX: i bottoni-link <a class="btn"> erediterebbero color link/visited.
   Forziamo qui per ogni variante. Nessun :hover (mobile-only, no touch hover). */
.btn--primary,
a.btn--primary,
.btn--primary:visited,
.btn--primary:active {
    background: var(--savoia);
    color: var(--white);
    text-decoration: none;
}
.btn--accent,
a.btn--accent,
.btn--accent:visited,
.btn--accent:active {
    background: var(--crimson);
    color: var(--white);
    text-decoration: none;
}
.btn--ghost,
a.btn--ghost,
.btn--ghost:visited,
.btn--ghost:active {
    background: var(--white);
    color: var(--petrol-dark);
    text-decoration: none;
    border: 1px solid var(--border);
}
.btn--block { width: 100%; }
.btn--lg { min-height: 64px; font-size: 24px; padding: 18px 26px; }
.btn--sm { min-height: 56px; font-size: 22px; padding: 14px 20px; }  /* "sm" comunque >= 22px */

/* -----------------------------------------------------------------------------
   Form — campi grandi, pieni, ben distanziati. Tipo app iOS Settings.
   ----------------------------------------------------------------------------- */
.form { padding: 16px 20px; }
.field { margin-bottom: 24px; }
.field__label {
    display: block;
    font-size: 22px;                  /* VINCOLO: minimo 22px */
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.6;
}
.input, .select, .textarea {
    width: 100%;
    font-family: inherit;
    font-size: 22px;                  /* VINCOLO: minimo 22px */
    line-height: 1.6;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    color: var(--ink);
    appearance: none;
    -webkit-appearance: none;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    box-shadow: 0 1px 2px rgba(1,42,58,0.05), inset 0 0 0 2px var(--petrol);
}
.textarea { min-height: 80px; resize: vertical; }
.select {
    background-image: linear-gradient(45deg, transparent 50%, var(--petrol-dark) 50%),
                      linear-gradient(135deg, var(--petrol-dark) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}
.field__hint { margin-top: var(--sp-1); font-size: 12px; color: var(--muted); }
.field__error { margin-top: var(--sp-1); font-size: 12px; color: var(--crimson); }

/* Entrata/Uscita — VERTICALE: due bottoni radio uno sotto l'altro */
.segmented {
    display: block;
}
.segmented label {
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px;
    border-radius: 14px;
    font-size: 22px;
    line-height: 1.6;
    font-weight: 600;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--border);
    margin-bottom: 10px;
    cursor: pointer;
    touch-action: manipulation;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented input:checked + label {
    background: var(--savoia);
    color: var(--white);
    border-color: var(--savoia);
}

/* -----------------------------------------------------------------------------
   Card e liste — pochi blocchi grandi per schermata, padding generoso
   ----------------------------------------------------------------------------- */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 0 16px 12px;
    box-shadow: none;
}
.card--accent { background: var(--cream); }
.card--petrol { background: linear-gradient(135deg, var(--petrol-light), var(--petrol-tint)); }

/* Voce movimento — VERTICALE: data, importo, descrizione, meta tutti su righe loro */
.entry {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 0 16px 12px;
}
/* Entry cliccabile: tutta la card porta al dettaglio /h/{id}/v */
.entry--link {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 150ms ease;
}
.entry--link:visited { color: inherit; }
.entry--link:active { background: var(--petrol-tint); }

.entry__date    { font-size: 22px; color: var(--muted); font-weight: 500; line-height: 1.6; }
.entry__amount  {
    font-size: 28px; font-weight: 700; line-height: 1.4;
    font-variant-numeric: tabular-nums;
    margin: 4px 0 8px;
}
.entry__desc    { font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.6; margin-bottom: 6px; }
.entry__meta    { font-size: 22px; color: var(--muted); line-height: 1.6; }
.entry__amount--in  { color: var(--petrol); }
.entry__amount--out { color: var(--crimson); }
.entry__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    background: var(--crimson-tint);
    color: var(--crimson-deep);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Stats KPI — VERTICALE: 3 righe (Entrate, Uscite, Saldo) una sotto l'altra */
.kpi-row {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin: 0 16px 16px;
}
.kpi-row > div {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.kpi-row > div:last-child { border-bottom: none; }
.kpi__n {
    font-size: 28px;
    font-weight: 700;
    color: var(--petrol-dark);
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}
.kpi__n--neg { color: var(--crimson); }
.kpi__l {
    margin-top: 4px;
    font-size: 22px;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.6;
}

/* Stats breakdown — VERTICALE: label sopra, valore sotto */
.row-stats {
    display: block;
    padding: 16px 20px;
    background: var(--white);
    margin: 0 16px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
}
.row-stats__label { font-size: 22px; color: var(--ink); line-height: 1.6; margin-bottom: 4px; }
.row-stats__value {
    font-size: 26px;
    font-weight: 700;
    color: var(--petrol-dark);
    font-variant-numeric: tabular-nums;
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   Hero (landing)
   ----------------------------------------------------------------------------- */
.hero {
    padding: var(--sp-6) var(--sp-5) 0;
}
.hero__img {
    margin: var(--sp-5) calc(-1 * var(--sp-5)) 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--petrol-light), var(--cream));
    display: grid;
    place-items: center;
}
.hero__img svg { width: 50%; height: 50%; opacity: 0.6; }

/* Feature — VERTICALE: numero sopra (col bordo solo top primo), titolo, body */
.feature {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.feature:first-child { border-top: 1px solid var(--border); }
.feature__n {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--savoia);
    line-height: 1.6;
    margin-bottom: 4px;
}
.feature__title { font-weight: 700; font-size: 24px; margin: 0 0 8px; line-height: 1.4; color: var(--ink); }
.feature__body  { font-size: 22px; color: var(--ink); line-height: 1.6; margin: 0; }

.testimonial {
    padding: var(--sp-8) var(--sp-6);
    background: linear-gradient(135deg, #daecf9 0%, #a0d1ec 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: var(--sp-6);
}
.testimonial__quote {
    font-family: var(--font-sans);
    font-size: 22px;
    line-height: 1.6;
    font-style: normal;
    color: var(--ink);
    margin: 12px 0 0;
}
.testimonial__author {
    margin-top: 16px;
    font-size: 22px;
    color: var(--muted);
    line-height: 1.6;
}
.testimonial__bigquote {
    font-family: var(--font-sans);
    font-size: 48px;
    line-height: 1;
    color: var(--crimson);
    font-weight: 700;
}

/* Sticky CTA bar (landing) — VERTICALE: testo sopra, bottone sotto full-width */
.sticky-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-width: var(--col-w);
    margin: 0 auto;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
    display: block;
    z-index: 90;
}
.sticky-cta__text { margin-bottom: 10px; }
.sticky-cta .btn { width: 100%; }
.sticky-cta__sup  { font-size: 22px; color: var(--muted); line-height: 1.6; }
.sticky-cta__main { font-size: 22px; font-weight: 600; color: var(--ink); margin-top: 4px; line-height: 1.6; }

/* -----------------------------------------------------------------------------
   Alert / messaggi
   ----------------------------------------------------------------------------- */
.alert {
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 22px;
    line-height: 1.6;
    margin: 16px;
}
.alert--error    { background: var(--crimson-tint); color: var(--crimson-deep); }
.alert--info     { background: var(--petrol-tint);  color: var(--petrol-dark); }
.alert--success  { background: #d1f0d7; color: #1e6f37; }

/* -----------------------------------------------------------------------------
   Quick capture (modalita' full-screen senza nav)
   ----------------------------------------------------------------------------- */
.quick-hero {
    background: linear-gradient(165deg, var(--petrol-deep) 0%, var(--petrol-dark) 100%);
    color: var(--white);
    padding: calc(var(--sp-8) + env(safe-area-inset-top)) var(--sp-5) var(--sp-6);
}
.quick-hero__kicker {
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}
.quick-hero__title {
    font-family: var(--font-serif);
    font-size: 26px;
    margin: var(--sp-2) 0 0;
    line-height: 1.2;
}
.quick-hero__user {
    margin-top: var(--sp-2);
    font-size: 13px;
    color: var(--petrol-glow);
}

/* -----------------------------------------------------------------------------
   Foto picker (preview ricevute scattate)
   ----------------------------------------------------------------------------- */
.photo-picker {
    margin-bottom: var(--sp-4);
}
/* Photo picker — VERTICALE: due bottoni uno sotto l'altro */
.photo-picker__row {
    display: block;
}
.photo-picker__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 72px;
    background: var(--petrol-tint);
    border: 2px dashed var(--petrol);
    border-radius: 14px;
    color: var(--petrol-dark);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.6;
    cursor: pointer;
    touch-action: manipulation;
    text-align: center;
    margin-bottom: 10px;
}
.photo-picker__btn:active { background: var(--petrol-light); }
.photo-picker__input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.photo-picker__thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2);
    margin-top: var(--sp-3);
}
.photo-picker__thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--petrol-tint);
    position: relative;
}
.photo-picker__thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-picker__thumb .remove {
    position: absolute; top: 4px; right: 4px;
    width: 24px; height: 24px;
    background: rgba(0,0,0,0.6); color: white;
    border: none; border-radius: 50%;
    cursor: pointer; font-size: 14px;
    display: grid; place-items: center;
}
.photo-picker__progress {
    margin-top: var(--sp-2);
    font-size: 12px;
    color: var(--muted);
}

/* -----------------------------------------------------------------------------
   Filter chips — VERTICALE: ogni voce full-width come una list-item Wikipedia
   ----------------------------------------------------------------------------- */
.chips {
    display: block;
    padding: 12px 16px;
}
.chip {
    display: block;
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    font-size: 22px;
    line-height: 1.6;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    touch-action: manipulation;
    margin-bottom: 8px;
}
.chip:visited { color: var(--ink); }
.chip.is-active {
    background: var(--savoia);
    color: var(--white);
    font-weight: 600;
    border-color: var(--savoia);
}
/* -----------------------------------------------------------------------------
   Section header (riusato in dashboard, stats, lookups)
   ----------------------------------------------------------------------------- */
/* Sezione: titolo sopra, link "vai a" sotto (VERTICALE) */
.section-head {
    padding: 28px 20px 12px;
}
.section-head h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.section-head a {
    display: inline-block;
    font-size: 22px;
    color: var(--link);
    font-weight: 500;
    line-height: 1.6;
}
