/* Caratteri (11 novembre 2026): Bricolage Grotesque per tutto il sito (titoli e testo, variabile 400–800 con dimensione ottica),
   Kalam per le note scritte a mano. Ospitati qui (licenza SIL OFL, file OFL-*.txt). I vecchi nomi (Inter, Fraunces, Fraunces Logo)
   puntano allo stesso file, così le regole e le classi che li citano ancora prendono il carattere nuovo. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/bricolage-latin.woff) format('woff'); 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: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/bricolage-latin.woff) format('woff'); 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: 'Fraunces'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/bricolage-latin.woff) format('woff'); 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: 'Fraunces Logo'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/bricolage-latin.woff) format('woff'); 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: 'Dogologo Titoli'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-cond-latin.woff) format('woff'); 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: 'Kalam'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/kalam-bold-latin.woff) format('woff'); 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; }
/* Dogologo: il foglio condiviso dell'app (index.html e copie) e del portale statico (content/sapere/build.mjs e le pagina.mjs delle guide).
   Token del marchio, componenti dg-* e poche correzioni mirate alle classi Tailwind che stonano.
   Nell'app è caricato dopo il CSS di Tailwind, così vince senza ricompilarlo; nel portale è inserito in linea da head().
   Regola: i tre accenti del marchio (caramello, giallo, corallo) sono superfici, mai colore del testo su fondo chiaro. */

:root {
    /* Colori del marchio */
    --dg-ink: #1B2A41; --dg-ink-700: #24375A;
    --dg-mint: #0F766E; --dg-mint-100: #E3F5EA; --dg-mint-50: #F0FBF5; --dg-mint-line: #BFE3D0;
    --dg-caramel: #D9A66A; --dg-caramel-dark: #A8783F; --dg-caramel-100: #F6E6D1;
    --dg-cream: #FFF1CC; --dg-yellow: #F5B82E; --dg-yellow-ink: #8A5A13;
    --dg-coral: #E8735A; --dg-coral-ink: #A93F28; --dg-coral-100: #FDE8E4; --dg-coral-line: #F6C9BD;
    --dg-paper: #F4F7F5; --dg-white: #fff; --dg-line: #DCE7E2; --dg-line-strong: #C4D1CC;
    --dg-text: #1F2D29; --dg-text-2: #56655F; /* 5,7:1 su carta, 6,1:1 su bianco */
    /* Stati */
    --dg-danger: #B42318; --dg-danger-100: #FDE8E4; --dg-danger-line: #F6C9BD;
    --dg-warn: #8F5400; --dg-warn-100: #FFF1CC; --dg-warn-line: #F3DFA3;
    --dg-ok: #0F766E; --dg-ok-100: #E3F5EA;
    /* Quattro accenti di famiglia (al posto dei 13 temi): --acc superficie/icona, --acc-ink testo, --acc-bg fondo, --acc-line bordo */
    --dg-area-behavior: #0F766E; --dg-area-behavior-ink: #0F766E; --dg-area-behavior-bg: #E3F5EA; --dg-area-behavior-line: #BFE3D0;
    --dg-area-health: #E8735A; --dg-area-health-ink: #A93F28; --dg-area-health-bg: #FDE8E4; --dg-area-health-line: #F6C9BD;
    --dg-area-life: #D9A66A; --dg-area-life-ink: #8A5A13; --dg-area-life-bg: #FFF1CC; --dg-area-life-line: #F3DFA3;
    --dg-area-together: #2B8CA6; --dg-area-together-ink: #16697A; --dg-area-together-bg: #E0F2F6; --dg-area-together-line: #B9E0E8;
    /* Tipografia */
    --dg-font-display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --dg-font-text: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --dg-font-hand: 'Kalam', 'Segoe Print', 'Bradley Hand', cursive; --dg-font-claim: 'Dogologo Titoli', 'Bricolage Grotesque', system-ui, sans-serif;
    --dg-fs-xs: 12px; --dg-fs-sm: 13px; --dg-fs-md: 15px; --dg-fs-body: 16px; --dg-fs-lg: 18px;
    --dg-fs-h3: 21px; --dg-fs-h2: 26px; --dg-fs-h1: clamp(30px, 6vw, 44px); --dg-fs-hero: clamp(30px, 7vw, 52px);
    --dg-lh-tight: 1.15; --dg-lh-snug: 1.3; --dg-lh-text: 1.6;
    /* Raggi: tre valori più la pillola */
    --dg-r-sm: 10px; --dg-r-md: 16px; --dg-r-lg: 22px; --dg-r-pill: 9999px;
    /* Ombre: due */
    --dg-shadow-card: 0 10px 30px -14px rgba(27, 42, 65, .16);
    --dg-shadow-float: 0 18px 40px -12px rgba(27, 42, 65, .35);
    /* Spazio: scala a 4 px */
    --dg-s-1: 4px; --dg-s-2: 8px; --dg-s-3: 12px; --dg-s-4: 16px; --dg-s-5: 24px; --dg-s-6: 32px; --dg-s-7: 48px;
    --dg-tap: 44px; --dg-container: 760px; --dg-container-wide: 1040px;
    /* Altezza degli elementi fissi in fondo (barra ospite, cookie): la impostano l'app e il footer */
    --dg-bottom-stack: 0px;
}

/* ---------- Temi: le 13 chiavi restano come API, ma valgono quattro accenti ---------- */
[data-theme] { --btn: var(--dg-ink); --btn-text: #fff; --btn-sub: rgba(255, 255, 255, .82); }
[data-theme="green"], [data-theme="lime"], [data-theme="emerald"] { --acc: var(--dg-area-behavior); --acc-ink: var(--dg-area-behavior-ink); --acc-bg: var(--dg-area-behavior-bg); --acc-line: var(--dg-area-behavior-line); }
[data-theme="red"], [data-theme="pink"], [data-theme="fuchsia"] { --acc: var(--dg-area-health); --acc-ink: var(--dg-area-health-ink); --acc-bg: var(--dg-area-health-bg); --acc-line: var(--dg-area-health-line); }
[data-theme="orange"], [data-theme="amber"], [data-theme="sand"] { --acc: var(--dg-area-life); --acc-ink: var(--dg-area-life-ink); --acc-bg: var(--dg-area-life-bg); --acc-line: var(--dg-area-life-line); }
[data-theme="teal"], [data-theme="cyan"], [data-theme="blue"], [data-theme="indigo"] { --acc: var(--dg-area-together); --acc-ink: var(--dg-area-together-ink); --acc-bg: var(--dg-area-together-bg); --acc-line: var(--dg-area-together-line); }
[data-theme="violet"], [data-theme="ink"] { --acc: var(--dg-ink); --acc-ink: var(--dg-ink); --acc-bg: #E7EFEC; --acc-line: #C9D9D3; }

/* ---------- Base ---------- */
/* Niente scorrimento orizzontale: un elemento troppo largo viene tagliato, non allarga la pagina. */
html, body { overflow-x: clip; }
/* Le ancore (#tappe, #storia, il risultato) e il focus da tastiera non finiscono sotto la testata fissa né sotto la barra in basso. */
html { scroll-padding-top: 68px; scroll-padding-bottom: calc(var(--dg-bottom-stack, 0px) + 12px); }
@media (min-width: 640px) { html { scroll-padding-top: 76px; } }
@media (min-width: 1024px) { html { scroll-padding-top: 136px; } }
body { background-color: var(--dg-paper); color: var(--dg-text); font-family: var(--dg-font-text); -webkit-font-smoothing: antialiased; }
/* Il testo non scende mai sotto i 12 px: le classi Tailwind arbitrarie più piccole vengono alzate qui. */
.text-\[7px\], .text-\[9px\], .text-\[10px\], .text-\[10\.5px\], .text-\[11px\], .text-\[11\.5px\] { font-size: 13px; }
small { font-size: max(12px, 80%); }
/* Fuoco visibile ovunque (al posto dei 54 focus:outline-none): anello menta, anche sui campi. */
:is(a, button, [tabindex], summary, input, select, textarea, [role="button"]):focus-visible { outline: 3px solid var(--dg-mint) !important; outline-offset: 2px !important; }
/* Chi ha chiesto meno movimento: niente pulsazioni, dissolvenze, ping né scorrimento animato. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Pulsanti: tre tipi in tutto il sito. Primario giallo con testo inchiostro (7:1), secondario a contorno inchiostro,
   urgenza corallo scuro solo nelle zone d'emergenza (più l'accento giallo storico e il discreto, che restano). ---------- */
.dg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--dg-r-pill); border: 1.5px solid transparent; font: 600 15px/1.2 var(--dg-font-text); color: var(--dg-ink); background: transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.dg-btn--primary { background: var(--dg-yellow); border-color: var(--dg-yellow); color: var(--dg-ink); font-weight: 800; box-shadow: 0 10px 20px -12px rgba(27, 42, 65, .45); }
.dg-btn--primary:hover { background: #FFC94A; border-color: #FFC94A; color: var(--dg-ink); }
/* Urgenza: solo nelle pagine e nei riquadri d'emergenza (corallo scuro, 6:1 con il bianco). */
.dg-btn--urgent { background: #A8432C; border-color: #A8432C; color: #fff; font-weight: 800; }
.dg-btn--urgent:hover { background: #8F3722; border-color: #8F3722; color: #fff; }
.dg-btn--secondary { border-color: var(--dg-ink); color: var(--dg-ink); background: transparent; }
.dg-btn--secondary:hover { background: #fff; }
.dg-btn--accent { background: var(--dg-yellow); border-color: var(--dg-yellow); color: var(--dg-ink); font-weight: 800; }
.dg-btn--accent:hover { background: #F7C24A; border-color: #F7C24A; }
.dg-btn--quiet { color: var(--dg-ink); padding: 0 12px; }
.dg-btn--quiet:hover { background: #fff; }
.dg-btn--sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.dg-btn--block { display: flex; width: 100%; }
.dg-btn[disabled], .dg-btn:disabled { opacity: .55; cursor: default; }
.dg-btn .dg-icon { width: 20px; height: 20px; }

/* ---------- Card ---------- */
.dg-card { background: #fff; border: 1px solid var(--dg-line); border-radius: var(--dg-r-lg); padding: var(--dg-s-4); box-shadow: var(--dg-shadow-card); }
@media (min-width: 640px) { .dg-card { padding: var(--dg-s-5); } }
.dg-card--flat { box-shadow: none; }
/* Un solo modo di segnare la famiglia: bordo in alto del colore di famiglia e sfumatura tenue. */
.dg-card--accent { border-color: var(--acc-line, var(--dg-line)); border-top: 5px solid var(--acc, var(--dg-mint)); background-image: linear-gradient(180deg, var(--acc-bg, var(--dg-mint-100)) 0, #fff 120px); }

/* ---------- Chip (pillola 40 px) ---------- */
.dg-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--dg-r-pill); border: 1px solid var(--dg-line); background: #fff; color: var(--dg-ink); font: 600 13.5px/1.2 var(--dg-font-text); text-decoration: none; cursor: pointer; }
.dg-chip:hover { border-color: var(--dg-mint); }
.dg-chip[aria-pressed="true"], .dg-chip.on { background: var(--dg-ink); border-color: var(--dg-ink); color: #fff; }
.dg-chip--soft { background: var(--acc-bg, var(--dg-mint-100)); border-color: var(--acc-line, var(--dg-mint-line)); }

/* ---------- Occhiello e titolo di sezione ---------- */
.dg-eyebrow { font: 700 13px/1.2 var(--dg-font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--dg-mint); }
.dg-eyebrow--pill { display: inline-block; padding: 4px 12px; border-radius: var(--dg-r-pill); background: var(--acc-bg, var(--dg-mint-100)); color: var(--acc-ink, var(--dg-mint)); }
.dg-title { font-family: var(--dg-font-display); font-weight: 600; font-size: var(--dg-fs-h2); line-height: var(--dg-lh-tight); color: var(--dg-ink); letter-spacing: -.012em; margin: 0; }
.dg-h1 { font-family: var(--dg-font-display); font-weight: 600; font-size: var(--dg-fs-h1); line-height: 1.1; color: var(--dg-ink); letter-spacing: -.012em; }
.dg-h3 { font-family: var(--dg-font-display); font-weight: 600; font-size: var(--dg-fs-h3); line-height: var(--dg-lh-tight); color: var(--dg-ink); }
.dg-sub { font-size: 13.5px; line-height: 1.45; color: var(--dg-text-2); }

/* ---------- Avvisi ---------- */
.dg-callout { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--dg-r-md); padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--dg-ink); background: var(--dg-mint-50); border: 1px solid var(--dg-mint-line); border-left: 4px solid var(--dg-mint); }
.dg-callout--warning { background: var(--dg-warn-100); border-color: var(--dg-warn-line); border-left-color: var(--dg-yellow); }
.dg-callout--warning b, .dg-callout--warning strong { color: var(--dg-warn); }
.dg-callout--danger { background: var(--dg-danger-100); border-color: var(--dg-danger-line); border-left-color: var(--dg-danger); }
.dg-callout--danger b, .dg-callout--danger strong { color: var(--dg-danger); }
.dg-callout--info { background: #fff; border-color: var(--dg-line); border-left-color: var(--dg-mint); }
.dg-callout > .dg-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.dg-callout p { margin: 0; }

/* ---------- Passi numerati (il badge giallo della lettura rapida) ---------- */
.dg-steps { list-style: none; margin: 0; padding: 0; counter-reset: dg-step; }
.dg-steps > li { counter-increment: dg-step; position: relative; display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #EEF3F0; font-size: 14px; line-height: 1.45; color: var(--dg-text); }
.dg-steps > li:first-child { border-top: 0; }
.dg-steps > li::before { content: counter(dg-step); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--dg-yellow); color: var(--dg-ink); font: 800 13px/28px var(--dg-font-text); text-align: center; }
.dg-steps b, .dg-steps strong { display: block; font-size: 15px; color: var(--dg-ink); }

/* ---------- La bolla di Dogologo (voce in prima persona, con la mascotte) ---------- */
.dg-bubble { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
.dg-bubble .dg-bubble-dog { width: 56px; height: 56px; }
.dg-bubble .dg-bubble-dog img, .dg-bubble .dg-bubble-dog svg { width: 100%; height: 100%; display: block; }
.dg-bubble .dg-bubble-body { position: relative; background: #fff; border: 1px solid var(--dg-line); border-radius: var(--dg-r-lg); padding: 14px 16px; box-shadow: var(--dg-shadow-card); font-family: var(--dg-font-display); font-style: italic; font-size: 18px; line-height: 1.4; color: var(--dg-ink); }
.dg-bubble .dg-bubble-body::before { content: ""; position: absolute; left: -8px; top: 22px; width: 14px; height: 14px; background: #fff; border-left: 1px solid var(--dg-line); border-bottom: 1px solid var(--dg-line); transform: rotate(45deg); }
.dg-bubble .dg-bubble-note { grid-column: 2; font: 500 13px/1.4 var(--dg-font-text); color: var(--dg-text-2); margin: 0; }

/* ---------- "Torna all'analisi" nelle voci dell'Etogramma aperte da un risultato (intervento 22) ---------- */
.rx-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--dg-ink); text-decoration: underline; }

/* ---------- Piega (details) per FAQ e Fonti ---------- */
.dg-fold { border-top: 1px solid var(--dg-line); }
.dg-fold:last-of-type { border-bottom: 1px solid var(--dg-line); }
.dg-fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 8px 2px; font: 600 15px/1.3 var(--dg-font-text); color: var(--dg-ink); }
.dg-fold > summary::-webkit-details-marker { display: none; }
.dg-fold > summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--dg-mint-100); background-image: linear-gradient(var(--dg-mint), var(--dg-mint)), linear-gradient(var(--dg-mint), var(--dg-mint)); background-size: 10px 2px, 2px 10px; background-position: center; background-repeat: no-repeat; }
.dg-fold[open] > summary::after { background-size: 10px 2px, 0 0; }
.dg-fold > :not(summary) { padding-bottom: 14px; }
.dg-fold > summary h2, .dg-fold > summary h3 { font: inherit; margin: 0; color: inherit; }
.dg-fold--group > summary { font-family: var(--dg-font-display); font-size: var(--dg-fs-h2); font-weight: 600; min-height: 60px; }

/* ---------- Testata: una sola, per l'app e per il portale (content/shared/chrome.mjs) ---------- */
.dg-header { position: sticky; top: 0; z-index: 40; background: rgba(244, 247, 245, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--dg-line); padding-top: env(safe-area-inset-top); }
.dg-header-in { width: fit-content; min-width: min(100%, var(--dg-container-wide)); max-width: 100%; margin: 0 auto; padding: 0 10px; min-height: 56px; display: flex; align-items: center; gap: 4px; min-width: 0; }
@media (min-width: 640px) { .dg-header-in { min-height: 64px; padding: 0 20px; gap: 10px; } }
.dg-brand { display: inline-flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; min-height: 44px; text-decoration: none; color: var(--dg-ink); font-family: var(--dg-font-display); font-weight: 600; font-size: 19px; letter-spacing: -.012em; }
.dg-brand img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.dg-brand .brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 640px) { .dg-brand { font-size: 21px; } .dg-brand img { width: 40px; height: 40px; } }
.dg-nav { display: flex; align-items: center; gap: 2px; margin-left: 2px; min-width: 0; }
.dg-nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: var(--dg-r-pill); border: 0; background: none; color: var(--dg-ink); font: 600 14px/1.2 var(--dg-font-text); text-decoration: none; white-space: nowrap; cursor: pointer; }
.dg-nav-link:hover { background: #fff; }
.dg-nav-link[aria-current="page"] { background: var(--dg-mint-100); color: var(--dg-mint); box-shadow: inset 0 0 0 1px var(--dg-mint-line); }
.dg-nav-link .dg-icon { width: 18px; height: 18px; }
.dg-nav-link span { display: none; }
@media (min-width: 640px) { .dg-nav-link span { display: inline; } }
.hdr-wide { display: none; }
@media (min-width: 1024px) { .dg-nav-link.hdr-wide { display: inline-flex; } }
body.signed-in #btnPlansHdr { display: none !important; }
.dg-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: none; }
@media (min-width: 640px) { .dg-actions { gap: 8px; } }
.dg-iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--dg-ink); cursor: pointer; text-decoration: none; }
.dg-iconbtn:hover { background: #fff; }
.dg-iconbtn .dg-icon { width: 22px; height: 22px; }
.dg-dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--dg-yellow); border: 2px solid var(--dg-paper); }
.dg-dot::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--dg-yellow); opacity: .6; animation: dgPing 1.2s cubic-bezier(0, 0, .2, 1) infinite; }
.dg-dot.hidden { display: none; }
@keyframes dgPing { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.dg-lang { display: flex; align-items: center; padding: 0; border: 1px solid var(--dg-line); border-radius: var(--dg-r-pill); background: #fff; flex: none; }
.dg-lang > a, .dg-lang > button { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 44px; padding: 0 8px; border: 0; border-radius: var(--dg-r-pill); background: none; font: 700 13px/1 var(--dg-font-text); text-decoration: none; cursor: pointer; }
.lang-active { background: var(--dg-ink) !important; color: #fff !important; }
.lang-inactive { color: var(--dg-text-2); }
.lang-inactive:hover { color: var(--dg-ink); background: #ECF1EE; }
.dg-auth { display: flex; align-items: center; flex: none; }
.dg-header .dg-btn--sm { min-height: 44px; padding: 0 14px; gap: 6px; }
.dg-header .dg-btn--primary { box-shadow: none; }
#loginBtn .dg-icon { width: 18px; height: 18px; }
/* Telefono: restano logo, "?", lingua, Accedi (solo icona) e Analizza. Schermi strettissimi: senza il nome. */
@media (max-width: 439px) {
    /* Sul telefono resta solo «Impara» (icona del libro): Sapere, Etogramma e Storia del cane sono lì dentro. */
    .dg-nav { margin-left: 0; }
    .dg-nav-link { display: none; }
    .dg-nav-link#btnSapereHdr { display: inline-flex; padding: 0 8px; gap: 5px; font-size: 13px; }
    .dg-nav-link#btnSapereHdr span { display: inline; }
    .dg-header-in { padding: 0 8px; }
    .dg-actions { gap: 2px; }
    .dg-brand { font-size: 18px; gap: 6px; }
    .dg-lang > a, .dg-lang > button { min-width: 34px; padding: 0 6px; }
    #loginBtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    #loginBtn { width: 44px; padding: 0; }
    .dg-header .dg-btn--primary { padding: 0 12px; }
}
/* Iscritto sul telefono: il diario ha solo l'icona con il contatore; Piani, abbonamento e lingua stanno nel Menu e nel profilo. */
@media (max-width: 639px) {
    .signed-in .brand-name { display: none; }
    .signed-in #btnUpgradeHeader, .signed-in #btnManageSub, .signed-in #badgePremiumActive span, .signed-in #badgeProActive span { display: none !important; }
    .signed-in #userProfile { gap: 4px; }
    .signed-in #userProfile > button { padding-left: 8px; padding-right: 8px; }
    .signed-in #headerStreakBadge { display: none !important; }
}
@media (max-width: 439px) { .signed-in .dg-lang { display: none; } .signed-in .dg-brand img { width: 32px; height: 32px; } }
@media (max-width: 379px) { .brand-name { display: none; } .dg-actions { gap: 2px; } .dg-header .dg-btn--sm { padding: 0 10px; } }
/* "Accedi" nascosto da iscritti: .dg-btn lo rimetteva visibile sopra la classe hidden. */
#loginBtn.hidden { display: none !important; }
/* Tablet e portatili piccoli da iscritti: il marchio non si schiaccia, le sezioni e l'abbonamento restano solo icona. */
@media (min-width: 640px) { .dg-brand { flex: none; } .dg-nav { flex: none; } }
@media (min-width: 640px) and (max-width: 1099px) { .signed-in .dg-nav-link span { display: none; } .signed-in .dg-nav-link { padding: 0 9px; } }
@media (min-width: 640px) and (max-width: 1279px) { .signed-in #txtManageSub { display: none; } .signed-in .dg-nav-link.hdr-wide { display: none; } }
@media (min-width: 640px) and (max-width: 899px) {
    .dg-nav-link span { display: none; }
    .dg-nav-link { padding: 0 9px; }
    .signed-in .brand-name, .signed-in #txtDiaryHeader, .signed-in #badgePremiumActive span, .signed-in #badgeProActive span { display: none !important; }
    .dg-actions { gap: 4px; }
}
/* Sotto i 640 px "Analizza" è al centro della barra in basso: in testata non si ripete (resta sopra i 640 px). */
@media (max-width: 639px) { body.s-bnavx #btnAnalyzeHdr { display: none; } }

/* ---------- Footer: uno solo, verde inchiostro ---------- */
.dg-footer { width: 100%; background: var(--dg-ink); color: rgba(255, 255, 255, .82); font-size: 14px; margin-top: var(--dg-s-7); }
.dg-footer a { color: inherit; }
.sf-wrap { max-width: var(--dg-container-wide); margin: 0 auto; padding: 36px 16px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
.sf-cols { display: contents; }
.sf-brand { grid-column: 1 / -1; }
.sf-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; text-decoration: none; font-family: var(--dg-font-display); font-size: 24px; font-weight: 600; }
.sf-logo img { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 3px; }
.sf-brand p { margin: 10px 0 0; line-height: 1.5; max-width: 34ch; }
.sf-mail { color: var(--dg-yellow); font-weight: 700; display: inline-block; padding: 12px 0; }
.sf-lang { display: flex; align-items: center; gap: 8px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.sf-lang a, .sf-lang button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none; color: rgba(255, 255, 255, .85); font: inherit; cursor: pointer; text-decoration: none; }
.sf-lang a:hover, .sf-lang button:hover, .sf-col a:hover, .sf-bottom a:hover, .sf-bottom button:hover { color: #fff; text-decoration: underline; }
.sf-social { display: flex; align-items: center; gap: 6px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.sf-social span { margin-right: 4px; }
.sf-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); transition: background .15s, color .15s; }
.sf-social a:hover { background: var(--dg-yellow); color: var(--dg-ink); }
.sf-social svg { width: 20px; height: 20px; }
.sf-install { margin-top: 12px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: var(--dg-r-pill); background: var(--dg-yellow); color: var(--dg-ink); font: 800 13px/1.2 var(--dg-font-text); cursor: pointer; }
.sf-col .sf-h { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; color: #fff; font: 800 13px/1.3 var(--dg-font-text); letter-spacing: .06em; text-transform: uppercase; }
.sf-col .sf-h a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.sf-col .sf-h a:hover { text-decoration: underline; }
.sf-col .sf-h::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--acc, var(--dg-yellow)); flex: none; }
.sf-col[data-theme="ink"] :is(h4, .sf-h)::before { background: var(--dg-yellow); }
.sf-col[data-theme="violet"] :is(h4, .sf-h)::before { background: var(--dg-caramel); }
.sf-col ul { list-style: none; margin: 10px 0 0; padding: 0; }
.sf-col li { display: block; margin: 0; line-height: 1.35; }
.sf-col li > a:first-child { display: inline; padding: 7px 0; color: rgba(255, 255, 255, .84); text-decoration: none; }
.sf-col li + li { margin-top: 8px; }
.sf-col .sf-all, .sf-col li > a.sf-all:first-child { color: var(--dg-yellow); font-weight: 700; }
.sf-col li:has(.sf-all) { margin-top: 12px; }
.sf-col li:has(.sf-all) + li:has(.sf-all) { margin-top: 6px; }
/* "guida": una pillola accanto al nome, mai da sola su una riga */
.sf-col .sf-guide { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid rgba(245, 184, 46, .55); border-radius: var(--dg-r-pill); font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--dg-yellow); text-decoration: none; white-space: nowrap; vertical-align: 1px; }
.sf-col .sf-guide:hover { background: rgba(245, 184, 46, .15); text-decoration: none; }
/* Sul tocco le voci restano facili da colpire: righe più alte. */
@media (pointer: coarse) { .sf-col li + li { margin-top: 4px; } .sf-col li > a:first-child { display: inline-block; padding: 10px 0; } .sf-col .sf-guide { padding: 6px 10px; } }
.sf-bottom { border-top: 1px solid rgba(255, 255, 255, .12); max-width: var(--dg-container-wide); margin: 0 auto; padding: 12px 16px calc(24px + var(--dg-bottom-stack) + env(safe-area-inset-bottom)); font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .7); text-align: center; }
.sf-bottom a, .sf-bottom button { display: inline-block; padding: 13px 2px; border: 0; background: none; color: rgba(255, 255, 255, .85); font: inherit; text-decoration: underline; cursor: pointer; }
@media (min-width: 640px) { .sf-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; } }
/* Telefono: colonne a fisarmonica (script FOOTER_JS in content/shared/chrome.mjs) */
.sf-tog { display: none; }
@media (max-width: 639px) {
    .sf-js .sf-wrap { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
    .sf-js .sf-brand { padding-bottom: 18px; }
    .sf-js .sf-col { border-top: 1px solid rgba(255, 255, 255, .12); }
    .sf-js .sf-col .sf-h { position: relative; min-height: 52px; padding-right: 52px; }
    .sf-js .sf-col .sf-h a { position: relative; z-index: 1; padding: 14px 0; }
    .sf-js .sf-tog { display: block; position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; }
    .sf-js .sf-tog::after { content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; border-right: 2px solid rgba(255, 255, 255, .8); border-bottom: 2px solid rgba(255, 255, 255, .8); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
    .sf-js .sf-open .sf-tog::after { transform: translateY(-30%) rotate(-135deg); }
    .sf-js .sf-col ul { display: none; margin: 0 0 14px; }
    .sf-js .sf-col.sf-open ul { display: block; }
}
/* Da 900 px: in alto il marchio su una riga (logo, frase, contatto, lingua, app), sotto le colonne in una griglia regolare. */
@media (min-width: 900px) {
    .sf-wrap { padding-top: 44px; }
    .sf-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .sf-brand p { margin: 0; max-width: none; }
    .sf-brand > p:nth-of-type(2) { grid-column: 2; }
    .sf-brand .sf-lang, .sf-brand #installFooterWrap { grid-column: 3; justify-self: end; }
    .sf-brand .sf-lang { grid-row: 1; }
    .sf-brand #installFooterWrap { grid-row: 2; }
    .sf-brand .sf-install { margin-top: 0; }
    .sf-logo { grid-row: 1 / span 3; }
    .sf-brand .sf-social { grid-column: 2; grid-row: 3; }
}
/* Anche su schermi larghi tre colonne per riga: i nomi e le pillole «guida» restano su una riga. */
@media (min-width: 1200px) { .sf-wrap { gap: 36px 48px; } }


/* ---------- Barra in basso sul telefono (intervento 16, content/shared/chrome.mjs dgBottomNav) ----------
   Cinque voci sempre visibili sotto i 640 px, in tutte le pagine con il footer; sopra i 640 px non c'è (resta il tasto Menu).
   --dg-bnav-h è la sua altezza senza l'area di sistema (0 quando è nascosta: tastiera aperta, finestra aperta):
   gli altri elementi fissi in basso (barra ospite, cookie, glossario, fogli) si appoggiano sopra di lei. */
:root { --dg-bnav-h: 0px; }
.dg-bnav, .dg-sheet { display: none; }
@media (max-width: 639px) {
    body.s-bnav { --dg-bnav-h: 64px; --dg-bottom-stack: 64px; }
    .dg-bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 48; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch;
        height: calc(64px + env(safe-area-inset-bottom)); padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
        background: var(--dg-paper); border-top: 1px solid var(--dg-line); box-shadow: 0 -8px 20px -14px rgba(27, 42, 65, .28);
        transition: transform .2s ease, opacity .2s ease, visibility 0s linear 0s; }
    .dg-bnav.bn-hidden { transform: translateY(105%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s; }
    /* Etichette sulla stessa linea in fondo; icone sopra (il cerchio di Analizza è più alto delle altre). */
    .dg-bnav-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-width: 44px; min-height: 56px; margin: 0; padding: 0 2px 7px;
        border: 0; background: none; color: var(--dg-text-2); font: 600 13px/1.15 var(--dg-font-text); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .dg-bnav-item .bn-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 30px; border-radius: var(--dg-r-pill); transition: background-color .15s ease; }
    .dg-bnav-item .dg-icon { width: 23px; height: 23px; }
    .dg-bnav-item .bn-lb { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    @media (hover: hover) { .dg-bnav-item:hover .bn-ic { background: #fff; } .dg-bnav-main:hover .bn-ic { background: var(--dg-ink-700); } }
    /* Voce corrente (pagina o foglio aperto): pillola menta dietro l'icona, testo inchiostro. */
    .dg-bnav-item[aria-current="page"], .dg-bnav-item[aria-expanded="true"] { color: var(--dg-ink); font-weight: 700; }
    .dg-bnav-item[aria-current="page"] .bn-ic, .dg-bnav-item[aria-expanded="true"] .bn-ic { background: var(--dg-mint-100); box-shadow: inset 0 0 0 1px var(--dg-mint-line); }
    /* Analizza: l'azione, al centro, in un cerchio inchiostro con l'icona gialla e l'ombra menta; resta dentro la barra,
       così niente di ciò che si appoggia sopra (barra ospite, cookie, fogli) viene coperto. */
    .dg-bnav-main { gap: 2px; color: var(--dg-ink); font-weight: 700; }
    .dg-bnav-main .bn-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--dg-ink); color: var(--dg-yellow); box-shadow: 0 6px 14px -6px rgba(15, 118, 110, .75); }
    .dg-bnav-main .dg-icon { width: 24px; height: 24px; stroke-width: 2.1; }
    .dg-bnav-main[aria-current="page"] .bn-ic { background: var(--dg-ink-700); box-shadow: 0 0 0 2px var(--dg-mint-line), 0 6px 14px -6px rgba(15, 118, 110, .75); }
    /* Il foglio sopra la barra: "Impara" (e, nell'app, il Menu degli strumenti #toolsMenu con la stessa geometria). */
    .dg-sheet:not([hidden]) { position: fixed; left: 8px; right: 8px; bottom: calc(var(--dg-bnav-h) + env(safe-area-inset-bottom) + 8px); z-index: 62; display: flex; flex-direction: column; gap: 6px;
        padding: 8px; background: #fff; border: 1px solid var(--dg-line); border-radius: 20px; box-shadow: var(--dg-shadow-float); }
    .dg-sheet a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; border-radius: 14px; background: var(--dg-mint-50); color: var(--dg-ink); font: 700 15px/1.25 var(--dg-font-text); text-decoration: none; }
    .dg-sheet a:hover { background: var(--dg-mint-100); }
    .dg-sheet a.sh-all { min-height: 44px; background: none; justify-content: center; color: var(--dg-mint); }
    .dg-sheet .sh-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--dg-ink); color: #fff; }
    .dg-sheet .sh-ic .dg-icon { width: 22px; height: 22px; }
    .dg-sheet small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--dg-text-2); }
}
@media (max-width: 359px) { .dg-bnav-item { font-size: 13px; } .dg-bnav-item:not(.dg-bnav-main) .bn-ic { width: 44px; } }

/* ---------- Bersagli di tocco: almeno 44 px per link, pulsanti e summary ---------- */
/* Le pieghe: altezza minima e testo centrato (il segno nativo resta dove non c'è un segno disegnato). */
summary { min-height: 44px; padding-block: 12px; box-sizing: border-box; cursor: pointer; }
input[type="range"] { min-height: 44px; }
/* Link nel testo: il padding verticale allarga l'area toccabile senza cambiare l'interlinea. */
a.underline, button.underline, .underline a, article p a, article li a, article .note a, .sources a, .crumbs a, .byline, .eto-rights a, .disclaimer a, .ai-note a, .eto-abo a, main > p > a, .legal p a, .legal li a { padding-block: 16px; }

/* ---------- Icone in linea ---------- */
/* Un solo set per l'interfaccia (intervento 28): lo sprite /icons/dg-sprite.svg, 24 px a tratto, colore del testo.
   .dg-icon ha la misura fissa (testata, barra in basso, callout); .dg-i segue il corpo del testo come un carattere
   (dgi() nell'app, al posto di Font Awesome). Il livello "illustrato" sono le icone 48 px di marca (BRAND_ICONS). */
.dg-icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; fill: none; flex: none; }
.dg-i { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.22em; stroke-width: 2; overflow: visible; }
.dg-i--lead { margin-right: .35em; }
.dg-spin { animation: dgSpin .9s linear infinite; transform-origin: 50% 50%; }
@keyframes dgSpin { to { transform: rotate(360deg); } }
/* Urgenza e stati: un pallino colorato più il testo (al posto delle emoji 🟢🟡🔴, che cambiano disegno da telefono a telefono). */
.dg-urg { display: inline-block; flex: none; width: .72em; height: .72em; border-radius: 50%; vertical-align: .02em; background: var(--dg-urg, var(--dg-mint)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dg-urg, var(--dg-mint)) 22%, transparent); }
.dg-urg--green { --dg-urg: #1F9D6B; }
.dg-urg--yellow { --dg-urg: var(--dg-yellow); }
.dg-urg--orange { --dg-urg: var(--dg-coral); }
.dg-urg--red { --dg-urg: var(--dg-danger); }
.dg-urg--blue { --dg-urg: var(--dg-area-together); }
.dg-urg--violet { --dg-urg: #7A5AA6; }

/* ---------- Illustrazioni: un solo involucro (intervento 29) ----------
   .dg-art: fondo menta (o crema, carta), angoli arrotondati; l'immagine si fonde con il fondo (multiply), così il
   bianco delle tavole diventa il colore dell'involucro. .dg-art--sign aggiunge la firma: Dogologo in un tondo nell'angolo. */
.dg-art { position: relative; display: block; background: var(--dg-mint-50); border-radius: var(--dg-r-lg); isolation: isolate; }
.dg-art > img { display: block; width: 100%; height: auto; border-radius: inherit; mix-blend-mode: multiply; }
.dg-art--cream { background: var(--dg-cream); }
.dg-art--paper { background: var(--dg-paper); }
.dg-art--mint { background: var(--dg-mint-100); }
.dg-art--round { border-radius: 50%; }
.dg-art--fit > img { height: 100%; object-fit: contain; }
.dg-art--sign::after { content: ""; position: absolute; right: 6px; bottom: 6px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: #fff url("/icons/mark.svg") center / 24px no-repeat; box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgba(27, 42, 65, .45); pointer-events: none; }
.dg-art--round.dg-art--sign::after { right: 2px; bottom: 2px; }

/* ---------- Tailwind: le poche classi che stonano con il marchio (amber, rose, purple, slate-400/500) ---------- */
.text-slate-500, .text-slate-400, .hover\:text-slate-600:hover { color: var(--dg-text-2); }
.text-slate-300 { color: #8FA19B; }
.placeholder-slate-400::placeholder { color: var(--dg-text-2); opacity: .8; }
.text-amber-500, .text-amber-600, .text-amber-700, .text-amber-800, .text-amber-900, .text-amber-950 { color: var(--dg-warn); }
.bg-amber-500, .bg-amber-400, .hover\:bg-amber-400:hover { background-color: var(--dg-yellow); color: var(--dg-ink); }
.bg-amber-50, .bg-amber-100, .from-amber-50, .hover\:bg-amber-100:hover, .hover\:bg-amber-100\/70:hover { background-color: var(--dg-warn-100); }
.border-amber-200, .border-amber-300, .border-amber-200\/90 { border-color: var(--dg-warn-line); }
.text-rose-300, .text-rose-400, .text-rose-500, .text-rose-600, .text-rose-600\/80, .text-rose-700, .text-rose-800, .text-rose-900, .text-rose-950, .text-red-700, .hover\:text-rose-600:hover, .hover\:text-rose-700:hover, .hover\:text-rose-800:hover { color: var(--dg-danger); }
.bg-rose-50, .hover\:bg-rose-50:hover { background-color: var(--dg-danger-100); }
.border-rose-100, .border-rose-200, .border-rose-300, .border-rose-400, .hover\:border-rose-300:hover { border-color: var(--dg-danger-line); }
.bg-purple-500, .bg-purple-600, .bg-purple-700, .hover\:bg-purple-600:hover, .from-purple-500, .from-purple-600, .from-purple-700 { background-color: var(--dg-mint); --tw-gradient-from: var(--dg-mint) var(--tw-gradient-from-position); }
.text-purple-400, .text-purple-500, .text-purple-600 { color: var(--dg-mint); }
.text-purple-700, .text-purple-800, .text-purple-900, .text-purple-950, .hover\:text-purple-700:hover, .hover\:text-purple-900:hover { color: var(--dg-ink); }
.bg-purple-50, .bg-purple-100, .from-purple-50, .to-purple-50, .to-purple-50\/40, .hover\:bg-purple-100:hover, .hover\:bg-purple-100\/70:hover { background-color: var(--dg-mint-50); }
.border-purple-100, .border-purple-200, .border-purple-200\/70, .border-purple-400, .border-purple-400\/30, .focus\:border-purple-400:focus { border-color: var(--dg-mint-line); }
.text-blue-700, .text-blue-900, .text-blue-950 { color: var(--dg-area-together-ink); }
.border-blue-200 { border-color: var(--dg-area-together-line); }
.hover\:bg-blue-100\/70:hover { background-color: var(--dg-area-together-bg); }

/* ---------- Home: fasce alternate chiare e più scure per separare le sezioni ----------
   Fascia a tutta larghezza con box-shadow + clip-path (nessun elemento in più, nessuno scorrimento orizzontale).
   Ordine: in alto chiaro · Cosa ricevi scuro · Chi c'è dietro chiaro · Chi è Dogologo + Come funziona scuro ·
   Tutto Dogologo chiaro · Altri strumenti scuro · Letture chiaro · Piani scuro. */
body[data-page="home"] { --dg-band: #E4EFEA; }
body[data-page="home"] :is(#examplePreview, #manifesto, #howItWorks, #moreTools, #homePlans) {
    background: var(--dg-band);
    box-shadow: 0 0 0 100vmax var(--dg-band);
    clip-path: inset(0 -100vmax);
    padding-top: 44px; padding-bottom: 44px;
}
body[data-page="home"] :is(#examplePreview, #manifesto, #moreTools, #homePlans) { margin-top: 48px; }
body[data-page="home"] #howItWorks { margin-top: 0; padding-top: 8px; }
body[data-page="home"] #manifesto { padding-bottom: 20px; }
body[data-page="home"] :is(#whyDogologo, #areas, .home-read) { margin-top: 0; padding-top: 48px; padding-bottom: 8px; }
body[data-page="home"] :is(#examplePreview, #manifesto, #howItWorks, #moreTools, #homePlans) .dg-card,
body[data-page="home"] :is(#examplePreview, #manifesto, #howItWorks, #moreTools, #homePlans) .card { background: #fff; }
@media (max-width: 639px) {
    body[data-page="home"] :is(#examplePreview, #manifesto, #moreTools, #homePlans) { padding-top: 32px; padding-bottom: 32px; margin-top: 36px; }
    body[data-page="home"] :is(#whyDogologo, #areas, .home-read) { padding-top: 36px; }
}

/* ---------- Colori pieni (3 novembre 2026): il portale come la home ----------
   Apertura della pagina in verde inchiostro (.page-hero, aggiunta dalla build), card e riquadri dello strumento in colori pieni. */
.page-hero { position: relative; background: var(--dg-ink); color: var(--dg-cream); box-shadow: 0 0 0 100vmax var(--dg-ink); clip-path: inset(0 -100vmax); margin: -22px 0 30px; padding: 18px 0 30px; }
.page-hero::after { content: ""; display: block; clear: both; }
.page-hero .crumbs, .page-hero .crumbs a { color: #B9D8CC; }
.page-hero .crumbs b { color: var(--dg-cream); }
/* Briciole uguali ovunque (5 novembre 2026): Dogologo › Impara › Sapere › Famiglia › Titolo. Su una riga sola l’ultimo pezzo si accorcia con i puntini. */
.crumbs p { margin: 1em 0; }
.crumbs b { display: inline-block; max-width: min(100%, 40ch); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.page-hero .pill { background: var(--dg-yellow); color: var(--dg-ink); }
.page-hero h1 { color: var(--dg-cream); }
.page-hero .meta, .page-hero .eto-term { color: #CFE5DC; }
.page-hero .eto-term b { color: var(--dg-cream); }
.page-hero .lead { color: #E3F1EB; margin-bottom: 0; }
.page-hero a { color: var(--dg-yellow); }
.page-hero .byline { border-bottom: 0; text-decoration: underline; text-decoration-color: rgba(245, 184, 46, .55); text-underline-offset: 3px; }
.page-hero .rx-back { color: var(--dg-yellow); }
.page-hero .art-badge { background: var(--dg-cream); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5); }
/* Card del portale: il colore della famiglia pieno, non più la sfumatura */
.cards .card { background: color-mix(in srgb, var(--acc, #0F766E) 30%, #fff); background-image: none; border-color: transparent; border-top-color: var(--acc, #0F766E); }
.cards .card span { color: #2C4A43; }
.cards .card em { color: var(--dg-ink); }
/* Riquadro dello strumento dentro guide e articoli: giallo pieno, è l'invito più importante della pagina */
a.tool { background: #FFD866; border-color: #FFD866; border-top-color: var(--dg-ink); background-image: none; }
a.tool small { color: var(--dg-ink); }
a.tool span:not(.btn) { color: #2C4A43; }

/* ---------- Testata e barra in basso, nuova veste (3 novembre 2026) ----------
   Testata in verde inchiostro: si unisce all'apertura scura delle pagine; "Chiedi a Dogologo" giallo, sezione corrente in giallo.
   Barra in basso inchiostro con "Chiedi" al centro in un cerchio giallo rialzato. */
.dg-header { background: var(--dg-ink); border-bottom: 1px solid rgba(255, 255, 255, .08); -webkit-backdrop-filter: none; backdrop-filter: none; }
.dg-header .dg-brand { color: var(--dg-yellow); }
.dg-header .dg-brand img { background: var(--dg-cream); border-radius: 50%; padding: 3px; }
.dg-header .dg-nav-link { color: #E3F1EB; }
.dg-header .dg-nav-link:hover { background: rgba(255, 255, 255, .1); }
.dg-header .dg-nav-link[aria-current="page"] { background: var(--dg-yellow); color: var(--dg-ink); box-shadow: none; }
.dg-header .dg-iconbtn { color: var(--dg-cream); }
.dg-header .dg-iconbtn:hover { background: rgba(255, 255, 255, .1); }
.dg-header .dg-dot { border-color: var(--dg-ink); }
.dg-header .dg-lang { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.dg-header .lang-active { background: var(--dg-cream) !important; color: var(--dg-ink) !important; }
.dg-header .lang-inactive { color: #B9D8CC; }
.dg-header .lang-inactive:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.dg-header #loginBtn { border-color: rgba(255, 241, 204, .55); color: var(--dg-cream); background: transparent; }
.dg-header #loginBtn:hover { background: rgba(255, 255, 255, .1); }
.dg-header #btnAnalyzeHdr { background: var(--dg-yellow); border-color: var(--dg-yellow); color: var(--dg-ink); font-weight: 800; }
.dg-header #btnAnalyzeHdr:hover { background: #FFC94A; border-color: #FFC94A; }

/* ---------- Barra delle famiglie in testata (desktop, da 1024 px; content/shared/chrome.mjs, famBar) ----------
   Seconda riga chiara con le quattro famiglie; al passaggio del mouse o al tocco si apre il pannello con tutti gli strumenti. */
.dg-fams { display: none; }
.dg-fam[data-fam="behavior"] { --f-band: #9FE1BC; --f-bg: #E3F5EA; --f-dark: #0F766E; }
.dg-fam[data-fam="health"] { --f-band: #F8B4A4; --f-bg: #FDE8E4; --f-dark: #A8432C; }
.dg-fam[data-fam="life"] { --f-band: #FFD866; --f-bg: #FFF1CC; --f-dark: #8A5A00; }
.dg-fam[data-fam="together"] { --f-band: #A8DDE9; --f-bg: #E4F4F8; --f-dark: #1F6F86; }
@media (min-width: 1024px) {
    .dg-header #btnToolsHdr { display: none !important; }
    .dg-fams { display: block; position: relative; background: #fff; border-bottom: 1px solid var(--dg-line); }
    .dg-fams-in { list-style: none; margin: 0 auto; padding: 0 20px; max-width: calc(var(--dg-container-wide) + 40px); display: flex; align-items: stretch; gap: 4px; }
    .dg-fam { position: static; }
    .dg-fam-tab, .dg-fam-more > a { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--dg-ink); font: 700 15px/1.2 var(--dg-font-text); text-decoration: none; white-space: nowrap; cursor: pointer; }
    .dg-fam-ic { display: inline-flex; flex: none; width: 34px; height: 34px; border-radius: 10px; overflow: hidden; }
    .dg-fam-ic svg { width: 100%; height: 100%; display: block; }
    .dg-fam-chev { width: 14px; height: 14px; color: #6B7F78; transition: transform .2s; }
    .dg-fam:hover .dg-fam-tab, .dg-fam:focus-within .dg-fam-tab { background: var(--f-bg); border-bottom-color: var(--f-dark); }
    .dg-fam:hover .dg-fam-chev, .dg-fam:focus-within .dg-fam-chev { transform: rotate(180deg); }
    .dg-fam-more { margin-left: auto; }
    .dg-fam-more > a { color: #0F766E; font-size: 14px; }
    .dg-fam-more > a:hover { text-decoration: underline; }
    .dg-fam-more .dg-icon { width: 18px; height: 18px; }
    .dg-fam-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 41; background: #fff; border-top: 4px solid var(--f-band); box-shadow: 0 24px 40px -18px rgba(27, 42, 65, .35);
        visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .15s ease .25s, transform .15s ease .25s, visibility 0s linear .4s; }
    /* Col mouse il pannello si apre dopo 0,3 s e si chiude dopo 0,25 s (niente lampeggi passando sopra la barra); da tastiera subito. */
    .dg-fam:hover > .dg-fam-panel { visibility: visible; opacity: 1; transform: none; transition-delay: .3s, .3s, .3s; }
    .dg-fam:focus-within > .dg-fam-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s, 0s, 0s; }
    .dg-fams.is-shut .dg-fam-panel { visibility: hidden; opacity: 0; transition-delay: 0s; }
    .dg-fams.is-shut .dg-fam-tab { background: none; border-bottom-color: transparent; }
    .dg-fams.is-shut .dg-fam-chev { transform: none; }
    .dg-fam-in { max-width: var(--dg-container-wide); margin: 0 auto; padding: 24px 0 28px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; }
    .dg-fam-intro { background: var(--f-bg); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; }
    .dg-fam-ic--lg { width: 52px; height: 52px; border-radius: 14px; }
    .dg-fam-name { margin: 12px 0 0; font: 600 22px/1.15 var(--dg-font-display); color: var(--dg-ink); }
    .dg-fam-goal { margin: 4px 0 0; font-size: 15px; color: #2C4A43; line-height: 1.4; }
    .dg-fam-n { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--f-dark); }
    .dg-fam-all { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 700; color: var(--f-dark); text-decoration: none; }
    .dg-fam-all:hover { text-decoration: underline; }
    .dg-fam-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; align-content: start; }
    .dg-fam-list a { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--dg-ink); text-decoration: none; }
    .dg-fam-list a:hover, .dg-fam-list a:focus-visible { background: var(--f-bg); }
    .dg-fam-ti { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--f-bg); color: var(--f-dark); }
    .dg-fam-list a:hover .dg-fam-ti { background: #fff; }
    .dg-fam-list a[data-sos] .dg-fam-ti { background: #A8432C; color: #fff; }
    .dg-fam-ti .dg-icon { width: 21px; height: 21px; }
    .dg-fam-tt { display: flex; flex-direction: column; min-width: 0; }
    .dg-fam-tt b { font-size: 15px; font-weight: 700; line-height: 1.3; }
    .dg-fam-tt b em { font-style: normal; font-size: 13px; font-weight: 700; padding: 2px 7px; border-radius: 9999px; background: #E4EFEA; vertical-align: 1px; margin-left: 4px; white-space: nowrap; }
    .dg-fam-tt small { margin-top: 2px; font-size: 13.5px; color: #4A5D57; line-height: 1.35; }
    .dg-fam-tab:focus-visible, .dg-fam-list a:focus-visible, .dg-fam-more > a:focus-visible { outline: 2px solid #3FC77F; outline-offset: -2px; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) { .dg-fam-panel { transition: none; transform: none; } }
@media (max-width: 639px) {
    .dg-bnav { background: var(--dg-ink); border-top: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 26px -12px rgba(0, 0, 0, .45); }
    .dg-bnav-item { color: #B9D8CC; font-weight: 600; }
    .dg-bnav-item[aria-current="page"], .dg-bnav-item[aria-expanded="true"] { color: var(--dg-yellow); }
    .dg-bnav-item[aria-current="page"] .bn-ic, .dg-bnav-item[aria-expanded="true"] .bn-ic { background: rgba(245, 184, 46, .16); box-shadow: none; }
    @media (hover: hover) { .dg-bnav-item:hover .bn-ic { background: rgba(255, 255, 255, .1); } }
    .dg-bnav-main { color: var(--dg-yellow); font-weight: 800; }
    .dg-bnav-main .bn-ic { width: 58px; height: 58px; margin-top: -24px; background: var(--dg-yellow); color: var(--dg-ink); border: 4px solid var(--dg-ink); box-sizing: border-box; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .55); }
    .dg-bnav-main .dg-icon { width: 28px; height: 28px; stroke-width: 2.2; }
    .dg-bnav-main[aria-current="page"] .bn-ic { background: #FFC94A; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .55); }
    @media (hover: hover) { .dg-bnav-main:hover .bn-ic { background: #FFC94A; } }
}
.dg-footer .sf-logo { color: var(--dg-yellow); }
a.sf-install { display: inline-flex; align-items: center; text-decoration: none; }

/* Contrasto e tocchi (verifica del 3 novembre 2026) */
.sf-install { color: var(--dg-ink) !important; }
.sf-col .sf-guide { display: inline-flex; align-items: center; min-height: 26px; }

/* ---------- Barra in basso: le quattro famiglie con il loro foglio (content/shared/chrome.mjs, dgBottomNav) ---------- */
.bn-sheet, .bn-scrim { display: none; }
.bn-sheet[data-fam="behavior"] { --f-band: #9FE1BC; --f-bg: #E3F5EA; --f-dark: #0F766E; }
.bn-sheet[data-fam="health"] { --f-band: #F8B4A4; --f-bg: #FDE8E4; --f-dark: #A8432C; }
.bn-sheet[data-fam="life"] { --f-band: #FFD866; --f-bg: #FFF1CC; --f-dark: #8A5A00; }
.bn-sheet[data-fam="together"] { --f-band: #A8DDE9; --f-bg: #E4F4F8; --f-dark: #1F6F86; }
@media (max-width: 639px) {
    .bn-fam .bn-ic { width: 44px; height: 32px; background: none !important; box-shadow: none !important; }
    .bn-fam .bn-ic svg { width: 32px; height: 32px; border-radius: 10px; display: block; transition: transform .15s ease, box-shadow .15s ease; }
    .bn-fam[aria-current="page"] .bn-ic svg { box-shadow: 0 0 0 2px rgba(245, 184, 46, .7); }
    .bn-fam[aria-expanded="true"] .bn-ic svg { box-shadow: 0 0 0 3px var(--dg-yellow); transform: translateY(-2px); }
    .bn-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 46; background: rgba(27, 42, 65, .45); }
    .bn-sheet:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: calc(var(--dg-bnav-h) + env(safe-area-inset-bottom) - 18px); z-index: 47;
        max-height: calc(100vh - var(--dg-bnav-h) - 70px); max-height: calc(100dvh - var(--dg-bnav-h) - 70px); overflow-y: auto; overscroll-behavior: contain;
        background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -14px 30px -12px rgba(0, 0, 0, .4); padding-bottom: 26px; animation: bnUp .2s ease; }
    @keyframes bnUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
    @media (prefers-reduced-motion: reduce) { .bn-sheet:not([hidden]) { animation: none; } }
    html.bn-open, html.bn-open body { overflow: hidden; }
    .bn-sh-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 14px 10px 12px 16px; background: var(--f-band); border-radius: 22px 22px 0 0; }
    .bn-sh-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; }
    .bn-sh-ic svg { width: 100%; height: 100%; display: block; }
    .bn-sh-head > div { flex: 1; min-width: 0; }
    .bn-sh-name { margin: 0; font: 600 21px/1.15 var(--dg-font-display); color: var(--dg-ink); }
    .bn-sh-goal { margin: 2px 0 0; font-size: 14px; color: #1F3D36; line-height: 1.3; }
    .bn-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); color: var(--dg-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
    .bn-close .dg-icon { width: 20px; height: 20px; }
    .bn-sh-list { list-style: none; margin: 0; padding: 6px 8px 0; }
    .bn-sh-list li + li { border-top: 1px solid #EEF3F1; }
    .bn-sh-list a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 8px; border-radius: 12px; color: var(--dg-ink); text-decoration: none; }
    .bn-sh-list a:active { background: var(--f-bg); }
    .bn-sh-ti { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--f-bg); color: var(--f-dark); }
    .bn-sh-list a[data-sos] .bn-sh-ti { background: #A8432C; color: #fff; }
    .bn-sh-ti .dg-icon { width: 21px; height: 21px; }
    .bn-sh-tt { display: flex; flex-direction: column; min-width: 0; }
    .bn-sh-tt b { font-size: 15.5px; font-weight: 700; line-height: 1.25; }
    .bn-sh-tt b em { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 1px 7px; border-radius: 9999px; background: #E4EFEA; margin-left: 4px; white-space: nowrap; }
    .bn-sh-tt small { margin-top: 2px; font-size: 13.5px; color: #4A5D57; line-height: 1.3; }
    .bn-sh-foot { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 16px 0; }
    .bn-sh-fam { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 9999px; background: var(--f-band); color: var(--dg-ink); font-weight: 800; font-size: 15.5px; text-decoration: none; }
    .bn-sh-foot > span { text-align: center; font-size: 14px; color: #4A5D57; }
    .bn-sh-foot > span a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: #0F766E; font-weight: 700; text-decoration: none; }
}

/* Accessibilità (5 novembre 2026): titoli del footer come h2, link «Salta al contenuto», focus giallo sulle superfici scure. */
.sf-col .sf-h { font-size: 13px; }
.dg-skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--dg-yellow); color: var(--dg-ink); font-weight: 800; text-decoration: none; }
.dg-skip:focus { top: 8px; }
:is(.dg-header, .dg-footer, #dgBottomNav, .page-hero, .st-hero) :focus-visible { outline: 3px solid var(--dg-yellow); outline-offset: 2px; }

/* ---------- Tema chiaro (11 novembre 2026): aperture crema caldo, titoli blu notte, accento corallo ---------- */
.page-hero { background: #FFF3E6; box-shadow: 0 0 0 100vmax #FFF3E6; color: #1B2A41; }
.page-hero .crumbs, .page-hero .crumbs a { color: #4A5568; }
.page-hero .crumbs b, .page-hero h1, .page-hero .eto-term b { color: #1B2A41; }
.page-hero .meta, .page-hero .eto-term { color: #4A5568; }
.page-hero .lead { color: #2D3748; }
.page-hero a, .page-hero .rx-back { color: #C2410C; }
.page-hero .byline { text-decoration-color: rgba(194, 65, 12, .5); }
.page-hero .art-badge { background: #fff; box-shadow: 0 12px 26px -12px rgba(27, 42, 65, .45); }
.page-hero :focus-visible { outline-color: #1B2A41; }

/* Inter Display: lettere un po' più strette nei titoli grandi; il nome nella testata resta con le grazie. */
h1.font-heading, h2.font-heading, .font-heading:is(h1, h2), .pf-title, .read-title, .ch-title, .th-title { letter-spacing: -0.02em; }
.dg-brand .brand-name { font-family: 'Fraunces Logo', Georgia, serif !important; }

/* «E il tuo cane?»: nelle voci dell'Etogramma e negli articoli, subito dopo il riassunto */
.eto-ask { margin: 18px 0; padding: 16px 18px; border-radius: 20px; background: #1B2A41; color: #FFF3E6; }
.eto-ask-k { margin: 0; font-family: 'Fraunces', system-ui, sans-serif; font-weight: 700; font-size: 20px; color: #fff; }
.eto-ask-t { margin: 4px 0 12px; font-size: 15px; line-height: 1.45; color: #E6ECF5; }
.eto-ask-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 9999px; background: #F5B82E; color: #1B2A41 !important; font-weight: 800; text-decoration: none !important; }
.eto-ask-btn:hover { background: #FFC94A; }

/* «Un comportamento a settimana»: raccolta email in fondo agli articoli e alle voci */
.wk { margin: 24px 0; padding: 18px; border-radius: 20px; background: #FFF3E6; border: 1px solid #F5D3B8; }
.wk-k { margin: 0; font-family: 'Fraunces', system-ui, sans-serif; font-weight: 700; font-size: 20px; color: #1B2A41; }
.wk-t { margin: 4px 0 12px; font-size: 15px; line-height: 1.45; color: #2D3748; }
.wk-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.wk-f input[type="email"] { min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid #E2C9B3; background: #fff; font-size: 16px; color: #1B2A41; min-width: 0; }
.wk-f button { min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0; background: #1B2A41; color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.wk-f button:disabled { opacity: .6; }
.wk-c { grid-column: 1 / -1; display: block; font-size: 13.5px; line-height: 1.45; color: #4A5568; }
.wk-c input { width: 18px; height: 18px; margin: 0 6px 0 0; vertical-align: -4px; }
.wk-m { grid-column: 1 / -1; margin: 0; min-height: 1em; font-size: 14px; font-weight: 700; color: #1B2A41; }
.wk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==================== Grafica «taccuino dell'etologo» (11 novembre 2026) ====================
   Un solo carattere (Bricolage Grotesque) con titoli pieni e stretti, Kalam solo per le note scritte a mano; blu notte e il giallo
   del logo come unico colore d'azione; aperture delle pagine su grigio-verde chiaro al posto del crema; niente etichette in maiuscolo.
   Testata da portale: riga blu (marchio con sottotitolo, ricerca nell'Etogramma, Accedi, Chiedi) e riga bianca delle sezioni. */
:root { --dg-sage: #EEF1EC; --dg-sage-line: #D5DAD3; }
h1, h2, .font-heading:is(h1, h2), .dg-title, .dg-h1, .pf-title, .read-title { font-weight: 800; letter-spacing: -0.03em; }
h3, .dg-h3 { font-weight: 700; letter-spacing: -0.015em; }
.dg-eyebrow, .dg-eyebrow--pill { text-transform: none; letter-spacing: 0; font-size: 14px; }
.dg-hand { font-family: var(--dg-font-hand); font-weight: 700; }
.dg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Testata, riga blu */
.dg-header .dg-brand { color: #fff; font-weight: 800; letter-spacing: -0.035em; }
.dg-brand .brand-name { font-family: var(--dg-font-display) !important; font-weight: 800; font-size: 25px; }
.dg-header .dg-brand img { background: #FFF3E6; }
.brand-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
.brand-tag { display: none; }
.dg-search { display: none; }
.dg-search-m { display: inline-flex; }
@media (max-width: 639px) {
    .dg-header .dg-nav, .dg-header #btnWelcome, .dg-header .dg-lang { display: none !important; }
    .dg-brand .brand-name { font-size: 24px; }
}
@media (min-width: 1024px) {
    .dg-header-in { width: auto; max-width: calc(var(--dg-container-wide) + 40px); min-height: 72px; gap: 16px; }
    .brand-tag { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: #B9C1CE; white-space: nowrap; }
    .dg-brand .brand-name { font-size: 29px; }
    .dg-header .dg-nav { display: none; }
    .dg-search-m { display: none; }
    .dg-search { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; max-width: 460px; height: 46px; margin: 0 auto; padding: 0 16px; border-radius: 9999px; background: #fff; color: var(--dg-ink); }
    .dg-search .dg-icon { width: 19px; height: 19px; flex: none; }
    .dg-search input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; font: 400 15.5px/1 var(--dg-font-text); color: var(--dg-ink); }
    .dg-search input::placeholder { color: #6B7486; }
    .dg-search input:focus { outline: none; }
    .dg-search:focus-within { box-shadow: 0 0 0 3px var(--dg-yellow); }
    .dg-actions { margin-left: 0; }
    .dg-header #btnAnalyzeHdr { border-radius: 12px; }
}
/* Seconda riga sul telefono e sul tablet: le sezioni, a scorrimento laterale */
.dg-subnav { position: relative; z-index: 5; display: flex; overflow-x: auto; scrollbar-width: none; white-space: nowrap; background: #fff; border-bottom: 1.5px solid var(--dg-ink); padding: 0 6px; }
.dg-subnav::-webkit-scrollbar { display: none; }
.dg-subnav a { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 10px; border-bottom: 3px solid transparent; color: var(--dg-ink); font: 500 15px/1 var(--dg-font-text); text-decoration: none; }
.dg-subnav a i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dg-subnav a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--dg-yellow); }
@media (min-width: 1024px) { .dg-subnav { display: none; } }
/* Sul telefono c'è già la barra in basso: la seconda riga dell'header non serve (13 novembre 2026) */
@media (max-width: 639px) { .dg-subnav { display: none; } }
/* Seconda riga sul computer: famiglie con il pallino al posto delle icone, poi Etogramma, Impara, Strumenti e Piani */
@media (min-width: 1024px) {
    .dg-fams { border-bottom: 1.5px solid var(--dg-ink); }
    .dg-fams-in { gap: 0; padding: 0 14px; }
    .dg-fam-tab .dg-fam-ic { display: none; }
    .dg-fam-tab::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--f-dot, var(--dg-yellow)); flex: none; }
    .dg-fam[data-fam="behavior"] { --f-dot: #3FA372; } .dg-fam[data-fam="health"] { --f-dot: #E5482B; } .dg-fam[data-fam="life"] { --f-dot: #F5B82E; } .dg-fam[data-fam="together"] { --f-dot: #3B9CC2; }
    .dg-fam-tab, .dg-fam-more > a, .dg-fam-link > a, .dg-fam-link > button { height: 52px; padding: 0 12px; gap: 8px; font: 500 15.5px/1 var(--dg-font-text); color: var(--dg-ink); }
    .dg-fam-link > a, .dg-fam-link > button { display: inline-flex; align-items: center; border: 0; border-bottom: 3px solid transparent; background: none; text-decoration: none; cursor: pointer; }
    .dg-fam-link > a:hover, .dg-fam-link > button:hover, .dg-fam-more > a:hover { border-bottom-color: var(--dg-yellow); text-decoration: none; }
    .dg-fam-sep { width: 1px; height: 22px; align-self: center; margin: 0 6px; background: var(--dg-sage-line); }
    .dg-fam-more { margin-left: 0; }
    .dg-fam-more > a { color: var(--dg-ink); font-size: 15.5px; }
    .dg-fam-more .dg-icon { display: none; }
    .dg-fam-plans { margin-left: auto; }
    body.signed-in .dg-fam-plans { display: none; }
    .dg-fam-chev { display: none; }
}

/* Aperture delle pagine (portale e strumenti): grigio-verde chiaro, titoli blu notte, link blu notte sottolineati */
.page-hero { background: var(--dg-sage); box-shadow: 0 0 0 100vmax var(--dg-sage); }
.page-hero a, .page-hero .rx-back { color: var(--dg-ink); }
.page-hero .byline { text-decoration-color: rgba(27, 42, 65, .4); }

/* Piè di pagina: fascia gialla «Un comportamento a settimana», titoli delle colonne senza maiuscolo, firma a mano */
.dg-footer { margin-top: var(--dg-s-7); }
.sf-weekly { background: var(--dg-yellow); color: var(--dg-ink); }
.wk.wk--band { max-width: var(--dg-container-wide); margin: 0 auto; padding: 22px 16px; border: 0; border-radius: 0; background: none; display: grid; gap: 6px 28px; }
.wk--band .wk-k { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.wk--band .wk-t { margin: 0; color: var(--dg-ink); }
.wk--band .wk-f input[type="email"] { border: 1.5px solid var(--dg-ink); border-radius: 12px; }
.wk--band .wk-f button { border-radius: 12px; }
.wk--band .wk-c { color: var(--dg-ink); }
.wk--band .wk-c a { color: var(--dg-ink); }
@media (min-width: 900px) { .wk.wk--band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; padding: 26px 20px; } .wk--band .wk-f { grid-column: 2; grid-row: 1 / span 2; } }
body:has(main .wk:not(.wk--band)) .sf-weekly { display: none; }
.sf-col .sf-h { text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 700; }
.sf-hand { font-family: var(--dg-font-hand); font-weight: 700; font-size: 19px; color: var(--dg-yellow); }
.sf-brand .sf-logo span { font-family: var(--dg-font-display); font-weight: 800; letter-spacing: -0.035em; }

/* Riquadri generici: niente fasce colorate in cima, bordo pieno blu notte per quelli in evidenza */
.wk { background: var(--dg-sage); border-color: var(--dg-sage-line); }
/* Riquadri «in evidenza» (strumenti e guide): bordo blu pieno, niente fascia colorata e sfumatura in cima */
.dg-card--accent { background-image: none; border: 1.5px solid var(--dg-ink); border-radius: 14px; }

/* Piè di pagina da portale (12 novembre 2026): in apertura la firma «Dalla parte giusta del guinzaglio» in titolo stretto, poi il
   marchio, sei colonne (quattro famiglie, Impara, Dogologo) su una riga sul computer, e l'avvertenza prima delle note legali. */
.sf-claim { grid-column: 1 / -1; }
.sf-claim-t { margin: 0; font-family: var(--dg-font-claim); font-weight: 800; font-size: 38px; line-height: 1.04; letter-spacing: -0.015em; color: #fff; }
.sf-claim .sf-hand { margin: 12px 0 0; }
.sf-note { max-width: var(--dg-container-wide); margin: 0 auto; padding: 18px 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); box-sizing: border-box; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .66); }
.sf-note + .sf-bottom { border-top: 0; }
.sf-col[data-area="dogologo"] .sf-h::before { display: none; }
@media (min-width: 1024px) {
    .sf-claim { padding-bottom: 8px; }
    .sf-claim-t { font-size: clamp(44px, 4.2vw, 60px); line-height: 1.02; }
    .sf-claim .sf-hand { font-size: 22px; }
    .sf-wrap { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 24px; }
    .sf-col .sf-h { font-size: 13px; }
    .sf-note { padding-top: 22px; }
}

/* Titoli d'apertura in carattere stretto su tutte le pagine (12 novembre 2026), come la home */
main h1, .page-hero h1, .tool-hero h1, .fam-hero h1 { font-family: var(--dg-font-claim) !important; font-weight: 800 !important; letter-spacing: -0.015em !important; line-height: 1.02 !important; }

/* Piè di pagina riallineato (12 novembre 2026, sera): tutto su un'unica gabbia a sinistra. In alto la firma grande e, accanto, il
   marchio in colonna (nome, frase, contatto, social e app sulla stessa riga, lingua); una riga sottile; sei colonne con i titoli
   su una riga e «guida» come piccolo link accanto alla voce; avvertenza e note legali allineate a sinistra, link a destra. */
.dg-footer .sf-col .sf-h { min-height: 0; padding: 0 0 12px; align-items: baseline; font-size: 14px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.dg-footer .sf-col .sf-h a { min-height: 0; }
.dg-footer .sf-col .sf-h::before { align-self: center; }
.dg-footer .sf-col ul { margin: 0; }
.dg-footer .sf-col li { display: block; margin: 0; padding: 7px 0; line-height: 1.35; }
.dg-footer .sf-col li + li, .dg-footer .sf-col li:has(.sf-all), .dg-footer .sf-col li:has(.sf-all) + li:has(.sf-all) { margin-top: 0; }
.dg-footer .sf-col li > a:first-child { display: inline; padding: 0; }
.dg-footer .sf-col li > a:first-child:not(:last-child) { margin-right: 8px; }
.dg-footer .sf-col .sf-guide { display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: 13px; font-weight: 700; line-height: inherit; text-decoration: underline; text-underline-offset: 3px; }
.dg-footer .sf-col .sf-guide:hover { background: none; color: #fff; }
.dg-footer .sf-col .sf-all { white-space: nowrap; }
.dg-footer .sf-col li:has(.sf-all):not(li:has(.sf-all) ~ li) { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
@media (pointer: coarse) { .dg-footer .sf-col li { padding: 10px 0; } }
.dg-footer .sf-note, .dg-footer .sf-bottom { text-align: left; }
.dg-footer .sf-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.dg-footer .sf-copy { margin-right: auto; padding: 13px 0; }
.dg-footer .sf-sep { display: none; }
@media (min-width: 1024px) {
    .dg-footer .sf-wrap { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 28px; padding: 64px 20px 36px; align-items: start; }
    .dg-footer .sf-wrap::after { content: ""; grid-column: 1 / -1; grid-row: 2; height: 1px; margin: 40px 0 36px; background: rgba(255, 255, 255, .12); }
    .dg-footer .sf-claim { grid-column: 1 / span 4; grid-row: 1; align-self: start; padding: 0; }
    .dg-footer .sf-wrap, .dg-footer .sf-note, .dg-footer .sf-bottom, .dg-footer .wk.wk--band { max-width: 1240px; }
    .dg-footer .sf-brand { grid-column: 5 / span 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 0; border: 0; }
    .dg-footer .sf-brand > * { flex: 0 0 100%; margin: 0; }
    .dg-footer .sf-brand p { max-width: none; line-height: 1.45; }
    .dg-footer .sf-logo { grid-row: auto; min-height: 0; }
    .dg-footer .sf-mail { padding: 0; }
    .dg-footer .sf-brand .sf-social { flex: 0 0 auto; grid-column: auto; grid-row: auto; margin-top: 6px; }
    .dg-footer .sf-brand #installFooterWrap { flex: 0 0 auto; grid-column: auto; grid-row: auto; margin: 6px 0 0 4px; justify-self: auto; }
    .dg-footer .sf-brand .sf-lang { order: 5; grid-column: auto; grid-row: auto; justify-self: auto; font-size: 14px; }
    .dg-footer .sf-brand .sf-lang a, .dg-footer .sf-brand .sf-lang button { min-height: 32px; }
    .dg-footer .sf-social span { display: none; }
    .dg-footer .sf-col { grid-row: 3; }
    .dg-footer .sf-note { padding: 22px 20px 0; }
    .dg-footer .sf-bottom { padding-left: 20px; padding-right: 20px; }
}

/* ===== Dogologo Sense (12 novembre 2026): il marchio del metodo. Sigillo blu notte con il naso giallo, uguale ovunque. ===== */
.dg-sense { display: inline-flex; align-items: center; gap: 0; padding: 4px 11px 4px 8px; border-radius: 999px; background: #1B2A41; color: #fff !important; font-family: var(--dg-font-claim, 'Dogologo Titoli', 'Bricolage Grotesque', sans-serif); font-weight: 800; font-size: 14px; line-height: 1.15; letter-spacing: .01em; text-decoration: none !important; white-space: nowrap; vertical-align: middle; }
.dg-sense svg { width: 15px; height: 15px; flex: none; margin-right: 6px; }
.dg-sense b { color: #F5B82E; font-weight: 800; margin-left: .28em; }
a.dg-sense:hover { background: #0F1A2B; }
a.dg-sense:focus-visible { outline: 3px solid #F5B82E; outline-offset: 2px; }
.sn { width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 0 44px; box-sizing: border-box; }
.sn-in { background: #1B2A41; color: #fff; border-radius: 6px; padding: 34px 22px 30px; text-align: left; }
.sn-h { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--dg-font-claim, 'Dogologo Titoli', 'Bricolage Grotesque', sans-serif) !important; font-weight: 800 !important; font-size: 46px; line-height: 1 !important; letter-spacing: -.01em; color: #fff; }
.sn-h svg { width: 44px; height: 44px; flex: none; }
.sn-h b { color: #F5B82E; font-weight: 800; }
.sn-h span { display: block; }
.sn-hand { margin: 14px 0 0; font-family: 'Kalam', cursive; font-weight: 700; font-size: 25px; line-height: 1.2; color: #F5B82E; transform: rotate(-1.5deg); transform-origin: left center; }
.sn-lead { margin: 16px 0 0; font-size: 17px; line-height: 1.5; color: #E4E9F2; max-width: 34em; }
.sn-steps { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: sn; }
.sn-steps li { counter-increment: sn; position: relative; padding: 16px 0 16px 50px; border-top: 1px solid rgba(255,255,255,.18); }
.sn-steps li::before { content: counter(sn); position: absolute; left: 0; top: 10px; font-family: var(--dg-font-claim, 'Dogologo Titoli', sans-serif); font-weight: 800; font-size: 40px; line-height: 1; color: #F5B82E; }
.sn-steps b { display: block; font-size: 18px; line-height: 1.25; font-weight: 700; color: #fff; }
.sn-steps span { display: block; margin-top: 4px; font-size: 15.5px; line-height: 1.5; color: #D5DCE8; }
.sn-not { margin: 6px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: 15.5px; line-height: 1.5; color: #fff; }
.sn-cta { display: inline-flex; align-items: center; min-height: 48px; margin-top: 20px; padding: 10px 20px; line-height: 1.25; border-radius: 6px; background: #F5B82E; color: #1B2A41 !important; font-weight: 700; font-size: 16px; text-decoration: none !important; }
.sn-cta:hover { background: #FFC94A; }
.sn-cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (min-width: 1024px) {
  .sn { padding-bottom: 64px; }
  .sn-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; padding: 56px 56px 52px; }
  .sn-head { align-self: start; position: sticky; top: 96px; }
  .sn-h { font-size: 68px; gap: 16px; }
  .sn-h svg { width: 64px; height: 64px; }
  .sn-hand { font-size: 30px; }
  .sn-steps { margin-top: 0; }
  .sn-steps li:first-child { border-top: 0; padding-top: 4px; }
  .sn-steps li:first-child::before { top: -2px; }
}
/* la pagina /dogologo-sense.html */
.sense-page .sn { padding: 18px 0 8px; }
.sense-page .sn-in { padding: 30px 22px 14px; }
.sense-page h1.sn-h { color: #fff !important; }
.sense-page .sn-steps li:last-child { padding-bottom: 20px; }
@media (min-width: 1024px) { .sense-page .sn-in { display: block; padding: 44px 48px 30px; } .sense-page .sn-head { position: static; } .sense-page .sn-h { font-size: 60px; } .sense-page .sn-steps { margin-top: 28px; } .sense-page .sn-steps li:first-child { border-top: 1px solid rgba(255,255,255,.18); padding-top: 16px; } .sense-page .sn-steps li:first-child::before { top: 10px; } }
.sense-ask { margin: 28px 0 8px; padding: 22px; border: 1.5px solid #1B2A41; border-radius: 6px; }
.sense-ask p { margin: 0 0 14px; font-size: 17px; line-height: 1.45; color: #1B2A41; font-weight: 600; }
.sense-ask a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 6px; background: #1B2A41; color: #fff !important; font-weight: 700; text-decoration: none !important; }
.eto-ask-sense { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; opacity: .9; }
/* su fondo scuro il sigillo si rovescia: giallo con scritta blu notte */
.sf-note .dg-sense, .eto-ask .dg-sense { background: #F5B82E; color: #1B2A41 !important; }
.sf-note .dg-sense b, .eto-ask .dg-sense b { color: #1B2A41; }
.sf-note .dg-sense path[fill="#F5B82E"], .eto-ask .dg-sense path[fill="#F5B82E"] { fill: #1B2A41; }
.sf-note .dg-sense path[stroke], .eto-ask .dg-sense path[stroke] { stroke: #1B2A41; }
.sf-note a.dg-sense:hover, .eto-ask a.dg-sense:hover { background: #FFC94A; }

/* ===== Testata «cuore del sito» (13 novembre 2026): la casella della domanda, È urgente?, le famiglie con icona e numero ===== */
.dg-askf { display: flex; align-items: center; gap: 8px; margin: 0; background: #fff; color: var(--dg-ink); border-radius: 8px; }
.dg-askf input[type="text"] { order: 1; flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; font: 400 16px/1 var(--dg-font-text); color: var(--dg-ink); }
.dg-askf input[type="text"]::placeholder { color: #5A6781; }
.dg-askf input[type="text"]:focus { outline: none; }
.dg-askf:focus-within { box-shadow: 0 0 0 3px var(--dg-yellow); }
.dg-askf-s { order: 0; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--dg-ink); cursor: pointer; }
.dg-askf-s .dg-icon { width: 20px; height: 20px; }
.dg-askf-s:hover { background: #EEF1F6; }
.dg-askf-go { order: 2; flex: none; height: 40px; margin: 0; padding: 0 14px; border: 0; border-radius: 6px; background: var(--dg-yellow); color: var(--dg-ink); font: 700 15px/1 var(--dg-font-text); white-space: nowrap; cursor: pointer; }
.dg-askf-go:hover { background: #FFC94A; }
.dg-askf-s:focus-visible, .dg-askf-go:focus-visible { outline: 3px solid var(--dg-ink); outline-offset: 2px; }
.dg-askbar { background: #fff; padding: 10px 12px 6px; }
.dg-askbar .dg-askf { border: 1.5px solid var(--dg-ink); padding: 0 5px 0 3px; height: 52px; max-width: 720px; margin: 0 auto; }
@media (min-width: 640px) and (max-width: 1023px) { .dg-askbar { padding: 12px 20px; } }
@media (min-width: 1024px) {
    .dg-askbar { display: none; }
    .dg-search.dg-askf { flex: 1 1 380px; max-width: 620px; height: 52px; padding: 0 6px 0 4px; border-radius: 8px; gap: 6px; }
    .dg-search.dg-askf .dg-askf-go { height: 42px; padding: 0 16px; font-size: 16px; }
}
.dg-sos { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 38px; margin-right: 4px; padding: 0 12px; border-radius: 8px; background: #E5482B; color: #fff !important; font: 700 14.5px/1 var(--dg-font-text); text-decoration: none !important; white-space: nowrap; }
.dg-sos i { width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; }
.dg-sos:hover { background: #CC3A1F; }
.dg-sos:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (min-width: 1024px) { .dg-sos { height: 44px; padding: 0 16px; font-size: 16px; } }
@media (min-width: 1024px) {
    .dg-fams-in { padding: 0 14px; }
    .dg-fam-tab { height: 72px; padding: 0 12px 0 10px; gap: 10px; border-bottom-width: 5px; text-align: left; }
    .dg-fam-tab::before { content: none; }
    .dg-fam-tab .dg-fam-ic { display: inline-flex; width: 40px; height: 40px; border-radius: 8px; }
    .dg-fam-tx { display: block; }
    .dg-fam-tx > span { display: block; font: 700 16.5px/1.1 var(--dg-font-text); }
    .dg-fam-tx > small { display: block; margin-top: 4px; font: 500 13px/1 var(--dg-font-text); color: #44506A; }
    .dg-fam-chev { display: block; width: 14px; height: 14px; color: var(--dg-ink); }
    .dg-fam-link > a, .dg-fam-link > button, .dg-fam-more > a { height: 72px; border-bottom-width: 5px; font-weight: 600; font-size: 16.5px; }
    .dg-fam-sense > a:hover { border-bottom-color: transparent; }
    .dg-fam-sense > a:hover .dg-sense { background: #0F1A2B; }
    .dg-fam-sense .dg-sense { font-size: 15px; padding: 6px 12px 6px 9px; }
    .dg-fam-sep { height: 30px; margin: 0 8px; }
    .dg-fam-more { display: none; }
    .dg-fam-in { grid-template-columns: 250px minmax(0, 1fr) 290px; }
    .dg-fam-cta { align-self: start; background: var(--dg-ink); color: #fff; border-radius: 8px; padding: 20px; }
    .dg-fam-cta p { margin: 0; font-family: var(--dg-font-claim); font-weight: 800; font-size: 26px; line-height: 1.05; color: #fff; }
    .dg-fam-cta > span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.45; color: #D5DCE8; }
    .dg-fam-cta a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 8px 14px; border-radius: 6px; background: var(--dg-yellow); color: var(--dg-ink); font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; }
    .dg-fam-cta a:hover { background: #FFC94A; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .dg-fam-tx > small { display: none; } .dg-fam-tab .dg-fam-ic { width: 32px; height: 32px; } .dg-fam-tab, .dg-fam-link > a, .dg-fam-link > button { height: 60px; }
    .dg-fam-in { grid-template-columns: 220px minmax(0, 1fr); } .dg-fam-cta { display: none; }
    .dg-header #btnWelcome { display: none; }
}
@media (max-width: 1023px) { .dg-fam-cta { display: none; } }
@media (max-width: 1023px) { .dg-search.dg-askf { display: none; } }
@media (min-width: 1024px) { .dg-header #btnAnalyzeHdr { display: none !important; } }
@media (min-width: 1024px) { .dg-header-in, .dg-fams-in { max-width: 1360px; } .dg-search.dg-askf { max-width: 680px; margin: 0 8px 0 16px; } .dg-fam-plans { margin-left: 0; } }
@media (min-width: 1024px) and (max-width: 1279px) { .dg-fam-sense, .dg-fam-chev { display: none; } .dg-fam-tab { padding: 0 10px 0 6px; gap: 8px; } }
@media (max-width: 639px) { .dg-header .dg-sos { margin-left: auto; } }
.dg-header #btnAnalyzeHdr { display: none !important; }

/* ===== «Oggi prova così» / «Il mio cane» nella testata (13 novembre 2026) ===== */
.dg-today { position: relative; flex: none; margin-right: 6px; }
@media (max-width: 639px) { .dg-today { margin-left: auto; } }
.dg-today-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; margin: 0; padding: 0 12px; border: 0; border-radius: 2px; background: var(--dg-yellow); color: var(--dg-ink); font: 700 18px/1 'Kalam', cursive; white-space: nowrap; cursor: pointer; transform: rotate(-2deg); }
.dg-today-btn:hover { background: #FFC94A; }
.dg-today-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.dg-today-lb { padding-top: 3px; }
.dg-today.has-dog .dg-today-btn { transform: none; height: 42px; padding: 0 14px 0 4px; border-radius: 999px; background: #fff; font: 700 15.5px/1.1 var(--dg-font-text); text-align: left; }
.dg-today-av { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--dg-yellow); color: var(--dg-ink); font-family: var(--dg-font-claim); font-weight: 800; font-size: 20px; flex: none; }
.dg-today-nm { display: block; max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.dg-today-nm small { display: block; margin-top: 2px; font: 500 12px/1 var(--dg-font-text); color: #44506A; }
.dg-today-pop { position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; width: min(380px, calc(100vw - 24px)); padding: 18px; border-radius: 8px; background: #fff; color: var(--dg-ink); box-shadow: 0 30px 60px -20px rgba(27, 42, 65, .6), 0 0 0 1px rgba(27, 42, 65, .08); text-align: left; }
@media (max-width: 639px) { .dg-today-pop { position: fixed; left: 12px; right: 12px; top: calc(64px + env(safe-area-inset-top)); width: auto; } }
.dg-today-h { margin: 0 0 12px; font-family: var(--dg-font-claim); font-weight: 800; font-size: 32px; line-height: 1; }
.dg-today-note { background: var(--dg-yellow); padding: 14px 16px 16px; border-radius: 2px; transform: rotate(-1deg); }
.dg-today-k { margin: 0; font: 700 21px/1.1 'Kalam', cursive; }
.dg-today-t { margin: 6px 0 0; font-size: 17px; line-height: 1.4; font-weight: 600; }
.dg-today-go { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; padding: 8px 16px; border-radius: 6px; background: var(--dg-ink); color: #fff !important; font-weight: 700; font-size: 15.5px; line-height: 1.2; text-decoration: none !important; }
.dg-today-go:hover { background: #0F1A2B; }
.dg-today-pop ul { list-style: none; margin: 14px 0 0; padding: 0; }
.dg-today-pop li a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #D9DEE7; color: var(--dg-ink); font-weight: 700; font-size: 16px; text-decoration: none; }
.dg-today-pop li a span { font-weight: 500; font-size: 14px; color: #44506A; text-align: right; }
.dg-today-pop li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.dg-today-meet { display: block; margin-top: 14px; padding-top: 12px; border-top: 1.5px solid var(--dg-ink); color: var(--dg-ink) !important; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.dg-today-pop a:focus-visible { outline: 3px solid var(--dg-yellow); outline-offset: 2px; }
@media (min-width: 1024px) { .dg-today-btn { height: 44px; padding: 0 16px; font-size: 20px; } .dg-today.has-dog .dg-today-btn { height: 46px; } }

/* =====================================================================
   GESSO (13 novembre 2026): la grafica «da app» di csvs.it portata su Dogologo.
   Sfondo gesso, riquadri bianchi con bordo sottile e angoli tondi, un solo
   elemento forte per pagina (il tabellone blu notte), numeri grandi e stretti.
   Restano il blu notte, il giallo, il carattere stretto e le note a mano.
   ===================================================================== */
:root { --gs-gesso: #F2F3F0; --gs-linea: #DADDE1; --gs-muto: #5B6573; --gs-ink2: #2C3A52; }
/* ---- testata chiara, su tutte le pagine ---- */
.dg-header { background: var(--gs-gesso); border-bottom: 0; }
.dg-header .brand-name { color: var(--dg-ink); }
.dg-header .brand-tag { color: var(--gs-muto); }
.dg-header .dg-brand img { border-radius: 12px; background: #fff; }
.dg-header .dg-iconbtn, .dg-header .dg-nav-link { color: var(--dg-ink); }
.dg-header .dg-search.dg-askf { border: 1px solid var(--gs-linea); border-radius: 14px; }
.dg-header .dg-askf-go { border-radius: 10px; }
.dg-header .dg-lang { background: #E3E5E8; border-color: transparent; }
.dg-header .dg-lang .lang-inactive { color: var(--gs-muto); }
.dg-header .dg-lang .lang-active { background: #fff; color: var(--dg-ink); }
.dg-header .dg-btn--secondary { background: #E3E5E8; border-color: transparent; color: var(--dg-ink); border-radius: 10px; }
.dg-header .dg-btn--secondary:hover { background: #D5D9DE; }
.dg-header #profileContainer > button, .dg-header .dg-auth button { color: var(--dg-ink); }
.dg-today.has-dog .dg-today-btn { box-shadow: 0 0 0 1px var(--gs-linea); }
.dg-today-btn:focus-visible { outline-color: var(--dg-ink); }
@media (min-width: 1024px) { .dg-fams { background: var(--gs-gesso); border-bottom: 1px solid var(--gs-linea); } .dg-fam-tab .dg-fam-ic { border-radius: 12px; } }
.dg-askbar { background: var(--gs-gesso); }
.dg-askbar .dg-askf { border: 1px solid var(--gs-linea); border-radius: 14px; }
.dg-askbar .dg-askf-go { border-radius: 10px; }
.dg-subnav { background: var(--gs-gesso); border-bottom: 1px solid var(--gs-linea); }
@media (max-width: 639px) {
    .dg-bnav { background: #fff; border-top: 1px solid var(--gs-linea); border-radius: 0; box-shadow: none; }
    .dg-bnav-item { color: var(--gs-muto); }
    .dg-bnav-item[aria-current="page"], .dg-bnav-item[aria-expanded="true"] { color: var(--dg-ink); }
    .dg-bnav-item[aria-current="page"] .bn-ic, .dg-bnav-item[aria-expanded="true"] .bn-ic { background: none; }
    .dg-bnav-main { color: var(--dg-ink); }
    .dg-bnav-main .bn-ic { border-color: #fff; box-shadow: 0 0 0 1px var(--gs-linea); }
    .bn-fam[aria-expanded="true"] .bn-ic svg { box-shadow: 0 0 0 3px var(--dg-ink); }
}
/* ---- home ---- */
html body[data-page="home"] { background: var(--gs-gesso); }
#dgCover.gs { width: 100%; max-width: 1160px; margin: 0 auto; padding: 14px 0 34px; background: none; color: var(--dg-ink); box-shadow: none; clip-path: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; text-align: left; }
#dgCover.gs .cv-left { min-width: 0; }
#dgCover.gs .cv-h { color: var(--dg-ink); font-size: 42px; line-height: .98; }
#dgCover.gs .cv-edit { color: var(--gs-muto); }
#dgCover.gs .cv-sub { margin: 14px 0 0; font-size: 17.5px; line-height: 1.45; color: #2B3442; max-width: 32em; }
#dgCover.gs .cv-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
#dgCover.gs .cv-b1, #dgCover.gs .cv-b2 { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 20px; border-radius: 14px; font: 800 16.5px/1.2 var(--dg-font-text); text-decoration: none; cursor: pointer; }
#dgCover.gs .cv-b1 { border: 0; background: var(--dg-yellow); color: var(--dg-ink); }
#dgCover.gs .cv-b1:hover { background: #FFC94A; }
#dgCover.gs .cv-b2 { background: #fff; color: var(--dg-ink); border: 1px solid var(--gs-linea); }
#dgCover.gs .cv-b2:hover { border-color: var(--dg-ink); }
@media (max-width: 520px) { #dgCover.gs .cv-ctas > * { flex: 1 1 100%; } }
#dgCover.gs .cv-media { grid-column: auto; grid-row: auto; position: relative; height: 230px; min-height: 0; margin: 22px 0 0; border-radius: 22px; overflow: hidden; }
#dgCover.gs .cv-media::after { content: none; }
#dgCover.gs .cv-media .cv-note { left: 14px; right: auto; top: 14px; bottom: auto; width: 150px; padding: 8px 11px 6px; font-size: 17px; line-height: 1.15; transform: rotate(-3deg); }
#dgCover.gs .cv-board { background: var(--dg-ink); color: #fff; border-radius: 22px; padding: 18px 16px 14px; min-width: 0; }
#dgCover.gs .cv-bh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
html body[data-page="home"] #dgCover.gs .cv-lead { margin: 0; font-family: var(--dg-font-claim); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -.01em; color: #fff; }
#dgCover.gs .cv-bh small { font-size: 13.5px; font-weight: 600; color: #C8CED8; white-space: nowrap; }
#dgCover.gs .cv-card { margin: 8px 0 0; max-width: none; }
#dgCover.gs .cv-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 14px; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin: 0; padding: 10px 0; border: 0; border-top: 1px solid var(--gs-ink2); border-radius: 0; background: none; color: #fff; text-align: left; cursor: pointer; }
#dgCover.gs .cv-row:first-child { border-top: 0; }
#dgCover.gs .cv-row:hover { background: none; }
#dgCover.gs .cv-row:hover .cv-w { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
#dgCover.gs .cv-w { font-family: var(--dg-font-claim); font-weight: 800; font-size: 30px; line-height: .95; letter-spacing: -.01em; }
#dgCover.gs .cv-m { font: 600 14.5px/1.25 var(--dg-font-text); color: #E4E9F2; text-decoration: line-through; text-decoration-color: #E5482B; text-decoration-thickness: 3px; }
#dgCover.gs .cv-chev { width: 9px; height: 9px; border-right: 2.2px solid #C8CED8; border-bottom: 2.2px solid #C8CED8; transform: rotate(-45deg); }
#dgCover.gs .cv-row[aria-pressed="true"] { background: none; color: #fff; }
#dgCover.gs .cv-row[aria-pressed="true"] .cv-w { color: var(--dg-yellow); }
#dgCover.gs .cv-row[aria-pressed="true"] .cv-chev { transform: rotate(45deg); border-color: var(--dg-yellow); }
#dgCover.gs .cv-row:focus-visible, #dgCover.gs .cv-chip--free:focus-visible { outline: 3px solid var(--dg-yellow); outline-offset: 2px; }
#dgCover.gs .cv-ans { border-radius: 16px; padding: 16px 16px 16px; margin: 2px 0 14px; gap: 10px; }
#dgCover.gs .cv-ans::before { content: none; }
#dgCover.gs .cv-ans .cv-myth { display: none; }
#dgCover.gs .cv-truth { font-size: 25px; }
#dgCover.gs .cv-why, #dgCover.gs .cv-do { font-size: 16px; }
#dgCover.gs .cv-do { background: #FFF1CC; border-radius: 12px; }
#dgCover.gs .cv-cta { min-height: 48px; border: 0; border-radius: 14px; background: var(--dg-ink); color: #fff; font-size: 15.5px; }
#dgCover.gs .cv-cta:hover { background: #0F1A2B; }
#dgCover.gs .cv-chip--free { display: block; width: 100%; min-height: 48px; margin: 6px 0 0; padding: 0 14px; border: 1.5px dashed #8E9BB3; border-radius: 14px; background: none; color: #fff; font: 700 15.5px/1.2 var(--dg-font-text); cursor: pointer; }
#dgCover.gs .cv-chip--free:hover { border-color: #fff; }
@media (min-width: 1024px) {
    #dgCover.gs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding: 26px 0 48px; align-items: start; }
    #dgCover.gs .cv-h { font-size: clamp(50px, 4.6vw, 64px); line-height: .95; }
    #dgCover.gs .cv-sub { font-size: 19px; margin-top: 18px; }
    #dgCover.gs .cv-ctas { margin-top: 22px; }
    #dgCover.gs .cv-media { height: 300px; margin: 26px 0 0; }
    #dgCover.gs .cv-media .cv-note { left: 16px; top: 16px; width: 190px; padding: 9px 12px 6px; font-size: 19px; }
    #dgCover.gs .cv-board { padding: 22px 22px 16px; }
    html body[data-page="home"] #dgCover.gs .cv-lead { font-size: 34px; }
    #dgCover.gs .cv-row { grid-template-columns: 170px minmax(0, 1fr) 16px; gap: 14px; padding: 13px 0; }
    #dgCover.gs .cv-w { font-size: 40px; }
    #dgCover.gs .cv-m { font-size: 17px; }
    #dgCover.gs .cv-ans { padding: 18px 20px 18px; }
    #dgCover.gs .cv-act .cv-cta { flex: 0 1 auto; padding: 0 18px; }
}
html.wkl-on #dgCover.gs .cv-media { height: 230px; }
/* le altre sezioni della home: riquadri bianchi, angoli tondi */
html body[data-page="home"] #dgMyths .my-it { background: #fff; border: 1px solid var(--gs-linea); border-radius: 16px; }
html body[data-page="home"] #dgSense .sn-in { border-radius: 22px; }
html body[data-page="home"] #dgSense .sn-cta { border-radius: 14px; }
html body[data-page="home"] #dgAll .al-col { background: #fff; border: 1px solid var(--gs-linea); border-radius: 16px; padding: 18px; position: relative; }
html body[data-page="home"] #dgAll .al-col::before { content: ""; display: block; width: 34px; height: 6px; border-radius: 3px; background: var(--fam); margin-bottom: 10px; }
html body[data-page="home"] #dgAll .al-fam span { font-size: 50px; line-height: .8; }
html body[data-page="home"] #dgAll .al li a { border-radius: 12px; border-width: 1px; border-color: var(--gs-linea); }
@media (min-width: 1024px) { html body[data-page="home"] #dgAll .al-grid { gap: 14px; } html body[data-page="home"] #dgAll .al li a { border: 0; border-radius: 0; } html body[data-page="home"] #dgAll .al li { border-top-color: var(--gs-linea); } }
html body[data-page="home"] #dgExplore .ex-big img { border-radius: 22px; }
html body[data-page="home"] #dgExplore .ex-sm { border-top: 1px solid var(--gs-linea); }
.dg-header #loginBtn { background: #E3E5E8; border-color: transparent; color: var(--dg-ink); border-radius: 10px; }
.dg-header #loginBtn .dg-icon { color: var(--dg-ink); }
html body[data-page="home"] main > #homeWho { width: 100%; max-width: 1160px; margin: 0 auto; padding: 8px 0 36px; }
html body[data-page="home"] #homeWho .pf-who-card { background: #fff; border: 1px solid var(--gs-linea); border-radius: 22px; color: var(--dg-ink); padding: 24px 20px; }
html body[data-page="home"] #homeWho .who-q, html body[data-page="home"] #homeWho .who-hi { color: var(--dg-ink); }
html body[data-page="home"] #homeWho .who-txt > p { color: #2B3442; }
html body[data-page="home"] #homeWho .who-txt > p.pf-who-sign, html body[data-page="home"] #homeWho .who-dogs span, html body[data-page="home"] #homeWho .who-dogs b { color: var(--dg-ink); }
html body[data-page="home"] #homeWho a, html body[data-page="home"] #homeWho .pf-who-links button { color: var(--dg-ink); }
html body[data-page="home"] #homeWho .who-oscar img { border-radius: 16px; }
html body[data-page="home"] #homeWho .who-dogs img { border-color: var(--gs-linea); }
@media (min-width: 840px) { html body[data-page="home"] #homeWho .pf-who-card { padding: 36px; } }
html body[data-page="home"] .home-top > .hero.dgx { background: none; }
html body[data-page="home"] .home-top #askCard { border: 1px solid var(--gs-linea); border-radius: 22px; }
html body[data-page="home"] main > #homeWho, html body[data-page="home"] #homeWho.pf-who { background: none; box-shadow: none; clip-path: none; }
html body[data-page="home"] .home-top, html body[data-page="home"] .home-top > .hero.dgx, html body[data-page="home"] #racconta { background: none !important; box-shadow: none !important; }
/* Foto della copertina intere, senza tagli (13 novembre 2026): tutte le foto di Memole sono 3:4 */
#dgCover.gs .cv-media, html.wkl-on #dgCover.gs .cv-media { height: auto; aspect-ratio: 1088 / 1456; }
#dgCover.gs .cv-media img, #dgCover.gs .cv-media[data-k] img { object-position: 50% 50%; }
@media (min-width: 1024px) { #dgCover.gs .cv-media, html.wkl-on #dgCover.gs .cv-media { height: auto; } }

/* =====================================================================
   GESSO, PAGINE INTERNE (13 novembre 2026): le stesse regole della home.
   Sfondo gesso, niente fasce colorate in apertura, riquadri bianchi con bordo
   sottile e angoli tondi (16 px i piccoli, 22 px i grandi), un solo riquadro
   blu notte per pagina («E il tuo cane?»), pulsanti a 14 px, titoli stretti.
   «html body» davanti: lo stile scritto nelle pagine viene dopo questo file.
   ===================================================================== */
html body { background: var(--gs-gesso); --paper: var(--gs-gesso); }
html body .page-hero { background: transparent; box-shadow: 0 0 0 100vmax var(--gs-gesso); }
html body .fp-hero { background: #fff; border: 1px solid var(--gs-linea); border-radius: 22px; }
html body .st-hero { border-radius: 22px; }
html body .page-hero .crumbs, html body .page-hero .crumbs a, html body .page-hero .meta, html body .page-hero .eto-term { color: var(--gs-muto); }
html body .page-hero a, html body .page-hero .rx-back { color: var(--dg-ink); }
html body .page-hero .art-badge, html body .art-badge, html body .sapere-badge { border-radius: 16px; box-shadow: none; border: 1px solid var(--gs-linea); transform: none; }
html body main h2, html body main .area-title { font-family: var(--dg-font-claim); font-weight: 800; letter-spacing: -.01em; line-height: 1; color: var(--dg-ink); }
html body main h2 { font-size: 30px; }
@media (min-width: 1024px) { html body main h2 { font-size: 36px; } }
html body article h3 { font-weight: 800; }
/* riquadri bianchi */
html body .brief, html body .eto-box, html body .eto-sintesi, html body .toc, html body .dg-card, html body .fp-box, html body .fp-card, html body .im-card, html body .tool, html body .write, html body .wk:not(.wk--band), html body .dg-fold, html body .sources, html body .share, html body .eto-next, html body .card {
    background: #fff; border: 1px solid var(--gs-linea); border-radius: 16px; box-shadow: none; background-image: none; }
html body .brief, html body .eto-box { border-radius: 22px; padding: 26px 20px 18px; }
html body .brief::before, html body .eto-box::before { border-radius: 2px; }
html body .sources, html body .dg-fold { padding: 4px 18px; }
html body .eto-vet, html body .note { background: #FFF; border: 1px solid #F3C4B8; border-left: 6px solid var(--red, #E5482B); border-radius: 16px; }
html body .eto-abo, html body .eto-upgrade { background: #fff; border: 1px solid var(--gs-linea); border-radius: 22px; }
/* il riquadro blu notte */
html body .eto-ask { border-radius: 22px; padding: 22px; }
html body .eto-ask-k { font-family: var(--dg-font-claim); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -.01em; }
html body .eto-ask-t { margin-top: 8px; font-size: 16px; }
/* pulsanti */
html body .eto-ask-btn, html body .dg-btn, html body .btn, html body .sn-cta, html body .sense-ask a, html body .wk-f button, html body .wk-f input[type="email"], html body .im-form button, html body .im-form input, html body .fp-ask button, html body .eto-cta a { border-radius: 14px; }
html body .eto-ask-btn { min-height: 50px; }
/* strumenti e famiglie: bande colorate come linguette, card bianche */
html body .fp-card { overflow: hidden; }
html body .st-fam h2 { border-radius: 16px 16px 0 0; font-family: var(--dg-font-claim); font-size: 24px; }
html body .st-fam .st-rows { background: #fff; border: 1px solid var(--gs-linea); border-top: 0; border-radius: 0 0 16px 16px; }
html body .im-card { border-top: 6px solid var(--im, #0F766E); border-radius: 22px; }
html body .im-card h2, html body .fp-box h2 { font-family: var(--dg-font-claim); font-weight: 800; }
html body .im-eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
/* Dogologo Sense e chi siamo */
html body.sense-page .sn-in { border-radius: 22px; }
html body .sense-ask { background: #fff; border: 1px solid var(--gs-linea); border-radius: 22px; }
/* app degli strumenti (copie di index.html) */
html body[data-page]:not([data-page="home"]) .card { border-radius: 22px; }
html body .tool-hero { background: transparent; }
html body main :is(.fp-h2, .st-h, .area-title) { font-family: var(--dg-font-claim); font-weight: 800; letter-spacing: -.01em; line-height: 1; color: var(--dg-ink); }
html body main .fp-h2 { font-size: 30px; }
@media (min-width: 1024px) { html body main :is(.fp-h2, .st-h) { font-size: 36px; } }
html body .sources .dg-fold, html body .dg-fold .dg-fold { border: 0; padding: 0; background: none; border-radius: 0; }
html body main .eto-next h2, html body main .dg-card h2 { font-family: var(--dg-font-claim); font-weight: 800; letter-spacing: -.01em; }

/* Tabellone: ogni riga è un pulsante che si vede (13 novembre 2026) */
#dgCover.gs .cv-bh small { color: var(--dg-yellow); font-weight: 700; }
#dgCover.gs .cv-row { margin-top: 8px; padding: 10px 12px 10px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .06); }
#dgCover.gs .cv-row:first-child { border-top: 1px solid rgba(255, 255, 255, .16); }
#dgCover.gs .cv-row:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
#dgCover.gs .cv-row:hover .cv-w { text-decoration: none; }
#dgCover.gs .cv-row[aria-pressed="true"] { background: none; border-color: transparent; padding-left: 0; padding-right: 0; }
#dgCover.gs .cv-chev { box-sizing: content-box; width: 8px; height: 8px; padding: 0; border-width: 0 2.2px 2.2px 0; margin-right: 4px; }
#dgCover.gs .cv-row { grid-template-columns: 112px minmax(0, 1fr) 30px; }
#dgCover.gs .cv-row::after { content: ""; grid-column: 3; grid-row: 1; justify-self: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); }
#dgCover.gs .cv-chev { grid-column: 3; grid-row: 1; justify-self: center; margin: 0 2px 0 0; }
#dgCover.gs .cv-row[aria-pressed="true"]::after { border-color: var(--dg-yellow); }
#dgCover.gs .cv-row[aria-pressed="true"] .cv-chev { margin: -4px 0 0; }
@media (min-width: 1024px) { #dgCover.gs .cv-row { grid-template-columns: 160px minmax(0, 1fr) 34px; padding: 11px 14px 11px 18px; } #dgCover.gs .cv-row::after { width: 34px; height: 34px; } }
/* Ritocchi pagine interne (13 novembre 2026): niente fascia verdina negli strumenti, meno vuoto sotto il titolo */
html body .tool-crumbs, html body .tool-hero { background: transparent !important; box-shadow: none !important; }
html body .page-hero { padding-bottom: 6px; margin-bottom: 18px; }
html body .page-hero .art-badge { width: 132px; height: 132px; margin-bottom: 0; }
@media (min-width: 840px) { html body .page-hero .art-badge { width: 168px; height: 168px; } }
#dgCover.gs .cv-row { grid-template-columns: 96px minmax(0, 1fr) 30px; }
#dgCover.gs .cv-w { font-size: 28px; }
@media (min-width: 1024px) { #dgCover.gs .cv-row { grid-template-columns: 160px minmax(0, 1fr) 34px; } #dgCover.gs .cv-w { font-size: 40px; } }

/* Niente riquadro colorato al tocco sui pulsanti della testata (telefono e tablet) */
.dg-header :is(a, button), .dg-fams :is(a, button), .dg-today-pop a { -webkit-tap-highlight-color: transparent; }
/* Copertina su computer (13 novembre 2026): a sinistra titolo, pulsanti e tabellone; a destra la foto intera, che resta in vista */
@media (min-width: 1024px) {
    #dgCover.gs { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-rows: auto; column-gap: 40px; row-gap: 0; align-items: start; }
    #dgCover.gs .cv-left { display: contents; }
    #dgCover.gs .cv-h { grid-column: 1; }
    #dgCover.gs .cv-edit, #dgCover.gs .cv-sub, #dgCover.gs .cv-ctas { grid-column: 1; }
    #dgCover.gs .cv-board { grid-column: 1; margin-top: 28px; }
    #dgCover.gs .cv-media { grid-column: 2; grid-row: 1 / span 6; margin: 0; position: sticky; top: 168px; align-self: start; }
}
/* La testata usa .dg-today come la vecchia scheda «Oggi» della home: qui niente fondo, bordo o margini di quella scheda */
.dg-header .dg-today { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; border-radius: 0 !important; }
/* Finestra del cane nella testata: più larga, scorre se non ci sta, voci in riga senza gli stili della vecchia scheda «Oggi» */
.dg-header .dg-today-pop { width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; padding: 20px 22px; }
@media (max-width: 639px) { .dg-header .dg-today-pop { width: auto; max-height: calc(100dvh - 80px - var(--dg-bottom-stack, 0px) - 90px); } }
.dg-header .dg-today-pop ul { display: block; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.dg-header .dg-today-pop li { display: block; grid-template-columns: none; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.dg-header .dg-today-pop li::before, .dg-header .dg-today-pop li::after { content: none; }
.dg-header .dg-today-pop li a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid #D9DEE7; font-size: 16.5px; }
.dg-header .dg-today-pop li:first-child a { border-top: 0; }
.dg-header .dg-today-pop li a span { flex: none; font-size: 14.5px; white-space: nowrap; }
.dg-header .dg-today-pop .dg-today-t { font-size: 18px; }
/* Testata di chi ha l'account (14 novembre 2026): Diario, Abbonamento, piano ed Esci stanno nella riga senza uscire */
#dgCover.gs .cv-edit { display: none !important; }
.dg-header #userProfile button, .dg-header #userProfile > div > button, .dg-header #userProfile > div > span { border-radius: 12px !important; }
@media (min-width: 1024px) and (max-width: 1599px) {
    .dg-header #txtDiaryHeader, .dg-header #txtManageSub, .dg-header #badgePremiumActive > span, .dg-header #badgeProActive > span { display: none !important; }
    body.signed-in .dg-header #btnWelcome { display: none !important; }
    .dg-header .dg-search.dg-askf { flex-basis: 300px; margin-left: 10px; margin-right: 4px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .dg-header #btnManageSub, body.signed-in .dg-header .dg-today-nm small { display: none !important; }
    body.signed-in .dg-header .dg-askf-go { padding: 0 12px; font-size: 14.5px; }
    body.signed-in .dg-header .brand-tag { display: none; }
}
@media (min-width: 1600px) { .dg-header-in, .dg-fams-in { max-width: 1560px; } }
@media (min-width: 1024px) and (max-width: 1279px) { .dg-header-in { gap: 8px; } .dg-header .dg-search.dg-askf { flex-basis: 240px; margin-left: 6px; } }

/* Controllo di usabilità del 14 novembre 2026, prime correzioni */
/* 1. tra 1024 e 1279 la testata sta nello schermo: via la riga sotto il logo, casella elastica */
@media (min-width: 1024px) and (max-width: 1279px) {
    .dg-header .brand-tag { display: none; }
    .dg-header .dg-search.dg-askf { flex: 1 1 160px; min-width: 0; margin-left: 6px; margin-right: 2px; }
    .dg-header .dg-askf-go { padding: 0 12px; font-size: 14.5px; }
    .dg-header .dg-today-nm small { display: none; }
    .dg-header .dg-today-btn { font-size: 18px; padding: 0 12px; }
    .dg-header-in { gap: 8px; }
}
@media (min-width: 1024px) and (max-width: 1099px) { .dg-header .dg-lang { display: none; } }
/* 4. la riga su Dogologo Sense nel riquadro blu si legge anche negli articoli */
html body .eto-ask p, html body .eto-ask .eto-ask-sense { color: #E6ECF5; }
html body .eto-ask .eto-ask-k { color: #fff; }
/* 6. gli avvisi «serve l'account» e «serve Vision PRO» prima di cominciare */
.dg-need { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #FFF1CC; color: #1B2A41; font-size: 15px; line-height: 1.4; font-weight: 600; text-align: left; }
.dg-need b { flex: none; padding: 2px 9px; border-radius: 999px; background: #F5B82E; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
body.signed-in .dg-need--acc { display: none; }

/* =====================================================================
   Controllo di usabilità del 14 novembre 2026, correzioni 7-22
   ===================================================================== */
/* 7. home più corta: Sense in breve, niente tre passi sopra la scheda, niente riquadri doppi in fondo */
html body[data-page="home"] .home-read { display: none !important; }
html body[data-page="home"] #racconta .ps-steps { display: none !important; }
html body[data-page="home"] #dgSense .sn-lead, html body[data-page="home"] #dgSense .sn-steps span { display: none; }
html body[data-page="home"] #dgSense .sn-steps li { padding-top: 12px; padding-bottom: 12px; }
html body[data-page="home"] #dgSense .sn-steps li::before { font-size: 30px; top: 8px; }
html body[data-page="home"] #dgSense .sn-in { padding-top: 26px; padding-bottom: 24px; }
html body[data-page="home"] .home-top { padding-bottom: 28px; }
.al-all { display: none; }
@media (max-width: 1023px) {
    html body[data-page="home"] #dgAll ul { display: none; }
    html body[data-page="home"] #dgAll .al-grid { gap: 10px; }
    html body[data-page="home"] #dgAll .al-col { padding: 14px 16px; }
    html body[data-page="home"] #dgAll .al-col::before { margin-bottom: 6px; }
    html body[data-page="home"] #dgAll .al-all { display: inline-flex; align-items: center; min-height: 48px; margin-top: 14px; padding: 0 18px; border-radius: 14px; background: var(--dg-ink); color: #fff; font-weight: 800; font-size: 15.5px; text-decoration: none; }
}
/* 8. un solo invito giallo nella copertina: il secondo è un collegamento; la casella in alto non è gialla sul telefono */
#dgCover.gs .cv-b2 { min-height: 44px; padding: 0 4px; border: 0; background: none; font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
#dgCover.gs .cv-b2:hover { border: 0; text-decoration-thickness: 2px; }
@media (max-width: 1023px) { .dg-askbar .dg-askf-go { background: var(--dg-ink); color: #fff; } .dg-askbar .dg-askf-go:hover { background: #0F1A2B; } }
/* 9. la lente è solo un disegno */
span.dg-askf-s { cursor: default; pointer-events: none; }
span.dg-askf-s:hover { background: none; }
/* 10. velo dietro la finestra della testata */
.dg-today-scrim { position: fixed; inset: 0; z-index: 59; background: rgba(15, 26, 43, .28); }
.dg-today-scrim[hidden] { display: none; }
@media (min-width: 640px) { .dg-today-scrim { background: transparent; } }
/* 11. avviso dei cookie: pulsanti alti, testo leggibile */
#cookieBanner > div { font-size: 13px; padding: 8px 10px; }
#cookieBanner button { min-height: 44px; padding-left: 14px; padding-right: 14px; border-radius: 12px; }
#cookieBanner #txtCookieAccept { background: var(--dg-ink); }
/* 12. titoli sul telefono: quello della pagina è il più grande */
@media (max-width: 1023px) {
    html body main h1, html body .page-hero h1, html body .tool-hero h1, html body .fam-hero h1, html body .fp-hero h1 { font-size: 34px; }
    html body main h2, html body main :is(.fp-h2, .st-h, .area-title) { font-size: 26px; }
    html body main :is(.brief, .eto-box, .dg-card, .fp-box, .eto-next, .wk, .im-card, .eto-upgrade, .eto-abo, .sources, .dg-fold) h2 { font-size: 22px; }
    html body[data-page="home"] main h2:is(.al-h, .ex-h, .ps-h) { font-size: 36px; }
}
/* 13. strumenti: bordi chiari come il resto */
html body[data-page]:not([data-page="home"]) main .card { border-color: var(--gs-linea); }
/* 14. pannelli delle famiglie: la freccina resta sugli schermi medi; voci più larghe */
@media (min-width: 1024px) and (max-width: 1279px) { .dg-fam-chev { display: block !important; width: 12px; height: 12px; } }
@media (min-width: 1280px) and (max-width: 1439px) { .dg-fam-in { grid-template-columns: 220px minmax(0, 1fr); } .dg-fam-cta { display: none; } }
/* 18. un solo riquadro blu per pagina: il primo invito di «Cosa puoi fare ora» è bianco */
html body a.eto-next-go.eto-next-main { background: #fff; color: var(--dg-ink); border: 1.5px solid var(--dg-ink); }
html body a.eto-next-go.eto-next-main :is(b, strong, small, span) { color: var(--dg-ink); }
/* 21. Etogramma: il messaggio «nessuna voce» su una colonna */
html body #etoNone { display: block; }
html body #etoNone[hidden] { display: none; }
/* 22. rifiniture: bordi dei comandi più visibili, scritte d'esempio più scure, barra dei miti più sottile */
.dg-header .dg-search.dg-askf, .dg-askbar .dg-askf { border-color: #8A93A3; }
.dg-askf input[type="text"]::placeholder, #askQuick::placeholder, #queryInput::placeholder { color: #4B566B; opacity: 1; }
#dgCover.gs .cv-m { text-decoration-thickness: 2px; }
.dg-header .dg-lang, .dg-header #loginBtn, .dg-header .dg-btn--secondary { box-shadow: inset 0 0 0 1px #B4BBC7; }

/* Controllo di usabilità, punti 16, 17 e 19 (14 novembre 2026) */
/* 16. la scheda del cane si apre sul posto, come finestra */
#meetScrim { display: none; }
body.meet-open #meetScrim { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(15, 26, 43, .5); }
#meetDog.meet-modal { display: block !important; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 80; width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: 0; background: #fff; border: 1px solid var(--gs-linea); border-radius: 22px; padding: 22px; box-shadow: 0 30px 70px -20px rgba(15, 26, 43, .7); }
/* 17. sul telefono la foto del comportamento scelto si vede dentro la risposta (la foto grande resta sopra, fuori vista) */
@media (max-width: 1023px) {
    #dgCover.gs .cv-ans[data-k]:not([data-k="distrugge"])::before { content: ""; position: static; display: block; width: auto; height: 190px; margin: 0 0 4px; transform: none; border-radius: 12px; background-color: #3A3026; background-size: cover; background-repeat: no-repeat; }
    #dgCover.gs .cv-ans[data-k="tira"]::before { background-image: url(/img/memole-tira-640.webp); background-position: 60% 62%; }
    #dgCover.gs .cv-ans[data-k="abbaia"]::before { background-image: url(/img/memole-abbaia2-640.webp); background-position: 45% 14%; }
    #dgCover.gs .cv-ans[data-k="paura"]::before { background-image: url(/img/memole-paura-640.webp); background-position: 50% 30%; }
    #dgCover.gs .cv-ans[data-k="ringhia"]::before { background-image: url(/img/memole-ringhia-640.webp); background-position: 55% 30%; }
    #dgCover.gs .cv-ans[data-k="salta"]::before { background-image: url(/img/memole-salta-640.webp); background-position: 62% 14%; }
}
/* 19. la famiglia in cui ci si trova resta segnata nella testata */
@media (min-width: 1024px) { .dg-fam.is-here .dg-fam-tab { border-bottom-color: var(--dg-yellow); } .dg-fam.is-here .dg-fam-tx > span { font-weight: 800; } }

/* ===== Test del carattere con una pagina sua (14 novembre 2026) ===== */
body[data-page="test"] #btnToggleCbarq { display: none; }
body[data-page="test"] .cbarq-head { cursor: default; }
.test-hero { position: relative; margin: 0 0 18px; text-align: left; }
.test-hero::after { content: ""; display: block; clear: both; }
.test-hero .art-badge { float: right; width: 132px; height: 132px; margin: 0 0 8px 14px; }
.test-pill { display: inline-block; margin: 6px 0 8px; padding: 4px 12px 2px; background: var(--dg-yellow); color: var(--dg-ink); font-family: var(--dg-font-hand); font-weight: 700; font-size: 18px; transform: rotate(-2deg); }
.test-hero h1 { margin: 0; font-family: var(--dg-font-claim); font-weight: 800; font-size: 34px; line-height: 1.02; color: var(--dg-ink); letter-spacing: -.01em; }
.test-lead { margin: 12px 0 0; font-size: 17.5px; line-height: 1.5; color: #2B3442; }
@media (min-width: 1024px) { .test-hero h1 { font-size: 48px; } .test-hero .art-badge { width: 168px; height: 168px; } }
/* il riquadro del test con la grafica nuova */
body[data-page="test"] #cbarqWidgetContainer { background: #fff; border: 1px solid var(--gs-linea); border-radius: 22px; box-shadow: none; }
body[data-page="test"] .cbarq-head { background: #fff; border-bottom: 1px solid var(--gs-linea); }
body[data-page="test"] #txtCbarqTitle { font-family: var(--dg-font-claim); font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
body[data-page="test"] #txtCbarqClinicalTag { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 700; background: #FFF1CC; color: var(--dg-ink); }
body[data-page="test"] #txtCbarqSubtitle { font-size: 14px; color: #44506A; }
body[data-page="test"] .cbarq-head .bg-purple-600 { background: var(--dg-ink); }
/* la guida sotto il test */
.test-guide { margin-top: 30px; font-size: 17px; line-height: 1.6; color: #2B3442; }
.test-guide h2 { margin: 30px 0 8px; font-family: var(--dg-font-claim); font-weight: 800; font-size: 28px; line-height: 1.05; color: var(--dg-ink); }
.test-guide h3 { margin: 18px 0 4px; font-size: 18px; color: var(--dg-ink); }
.test-guide ol { padding-left: 22px; }
.test-guide li { margin: 6px 0; }
.test-guide a { color: var(--dg-ink); text-decoration: underline; }
.test-guide .sources { margin-top: 28px; padding: 6px 18px 12px; font-size: 14px; }
.test-guide .sources h2 { font-size: 22px; margin-top: 12px; }
html body .tool-hero.test-hero { display: block !important; padding: 0 !important; text-align: left !important; }
html body .test-hero .test-lead, html body .test-hero h1 { margin-left: 0 !important; max-width: 36em; text-align: left !important; }

/* =====================================================================
   FINESTRE CON LA GRAFICA «GESSO» (14 novembre 2026): installazione, accesso,
   piani, benvenuto, esempio. Bianco con angoli tondi, blu notte e giallo al
   posto del verde, niente etichette in maiuscolo.
   ===================================================================== */
:is(#installModal, #authModal, #paywallModal, #welcomeModal, #exampleModal) > div { border-radius: 22px !important; border-color: var(--gs-linea) !important; }
:is(#installModal, #authModal, #paywallModal, #welcomeModal, #exampleModal) :is(.uppercase) { text-transform: none !important; letter-spacing: 0 !important; }
:is(#installModal, #authModal, #paywallModal, #welcomeModal, #exampleModal) :is(.text-\[9px\], .text-\[10px\]) { font-size: 12.5px !important; }
/* Porta Dogologo sempre con te */
#installModal > div > div:first-child { background: #fff !important; color: var(--dg-ink) !important; border-bottom: 1px solid var(--gs-linea); padding: 22px 20px 16px !important; }
#installModal > div > div:first-child img { box-shadow: none; border: 1px solid var(--gs-linea); }
#txtInstallModalTitle { font-family: var(--dg-font-claim); font-weight: 800; font-size: 26px; line-height: 1.02; color: var(--dg-ink); letter-spacing: -.01em; }
#txtInstallModalSub { color: #44506A !important; font-size: 14.5px !important; margin-top: 6px !important; }
#installBenefits { font-size: 15px; color: #2B3442; }
#installBenefits .dg-icon { color: var(--dg-ink); }
#installStepsBox { background: var(--gs-gesso) !important; border-color: var(--gs-linea) !important; border-radius: 16px !important; }
#installStepsTitle { color: var(--dg-ink) !important; font-size: 14px !important; }
#installSteps li > span:first-child { background: var(--dg-yellow) !important; color: var(--dg-ink) !important; }
#btnInstallNow { background: var(--dg-yellow) !important; color: var(--dg-ink) !important; border-radius: 14px !important; box-shadow: none !important; min-height: 50px; font-size: 16px !important; }
#txtInstallLater { min-height: 48px; border: 0 !important; color: #44506A !important; text-decoration: underline; text-underline-offset: 4px; }
/* Piani: blu notte e giallo al posto del verde */
#paywallModal :is(.bg-emerald-50, .bg-emerald-100, .bg-mint-50) { background: #FFF1CC !important; }
#paywallModal :is(.border-emerald-200, .border-emerald-300, .border-emerald-500, .border-emerald-600, .border-mint) { border-color: var(--dg-ink) !important; }
#paywallModal :is(.text-emerald-700, .text-emerald-800, .text-emerald-900\/80, .text-emerald-950) { color: var(--dg-ink) !important; }
#paywallModal :is(.bg-emerald-600, .bg-emerald-700) { background: var(--dg-ink) !important; color: #fff !important; }
#paywallModal .rounded-2xl { border-radius: 16px; }
#paywallBar { background: rgba(242, 243, 240, .97) !important; }
#paywallBar button { background: var(--dg-yellow) !important; color: var(--dg-ink) !important; border-radius: 14px !important; }
/* Benvenuto ed esempio */
#welcomeModal .welcome-head { background: #fff !important; }
#welcomeModal #txtWelcomePill { background: #FFF1CC !important; color: var(--dg-ink) !important; }
#welcomeModal #txtWelcomeModalTitle { font-family: var(--dg-font-claim); font-weight: 800; letter-spacing: -.01em; }
#authModal .text-slate-400 { color: #5B6573 !important; }
#paywallModal #txtBtnPlanPremium { background: var(--dg-yellow) !important; color: var(--dg-ink) !important; border-radius: 14px !important; box-shadow: none !important; min-height: 50px; font-size: 15.5px !important; }
#paywallModal #txtBtnPlanPremium:hover { background: #FFC94A !important; }
:is(#installModal, #authModal, #paywallModal, #welcomeModal) :focus-visible { outline: 3px solid var(--dg-ink) !important; outline-offset: 2px; }
/* Etichette delle ipotesi (Emotiva, Medica, Appresa…) in minuscolo come le altre, nelle risposte e nell'esempio */
html body .rx-pill { text-transform: none; letter-spacing: 0; font-size: 12.5px; }

/* ===== Pagina degli annunci «Un comportamento a settimana» (15/11/2026): un solo compito nel primo schermo ===== */
html.wkl-on .dg-header .dg-askf, html.wkl-on #dgToday, html.wkl-on .dg-askbar, html.wkl-on #dgBottomNav { display: none !important; }
html.wkl-on #dgCover .cv-h, html.wkl-on #dgCover .cv-sub, html.wkl-on #dgCover .cv-ctas, html.wkl-on #btnEditDogName { display: none !important; }
html.wkl-on body { padding-bottom: 0 !important; }
.wkl-f .wkl-c { display: block; position: relative; min-height: 44px; padding: 4px 0 4px 36px; cursor: pointer; }
.wkl-f .wkl-c input { position: absolute; left: 0; top: 4px; width: 24px; height: 24px; margin: 0; }
@media (min-width: 640px) { .wkl-f .wkl-c { grid-column: 1; grid-row: 2; } .wkl-f button { grid-column: 2; grid-row: 1; } .wkl-f .wkl-m { grid-row: 3; } }
.wkl-m.wk-ok, .wk-m.wk-ok { padding: 12px 14px; border-radius: 10px; background: #fff; border: 1.5px solid #1B2A41; font-size: 16px; line-height: 1.45; }
.wkl--ok .wkl-f { display: none; }
.wkl--ok .wkl-more a { display: inline-flex; align-items: center; min-height: 52px; padding: 10px 20px; border-radius: 12px; background: #1B2A41; color: #fff; text-decoration: none; }
/* Chi c'è dietro, già nel primo schermo (15/11/2026) */
html body #dgCover .cv-trust { margin: 14px 0 0; max-width: 34em; padding-left: 12px; border-left: 3px solid var(--gs-linea, #DADDE1); font-size: 14.5px; line-height: 1.5; color: var(--gs-muto, #5B6573); }
html body #dgCover .cv-trust a { color: var(--gs-ink2, #2C3A52); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* Iscrizione al giovedì sotto la risposta, solo per chi non ha l'account */
body.signed-in .res-weekly { display: none !important; }
.res-weekly.wk { margin: 0; }
.res-weekly .wk-c { grid-column: 1 / -1; grid-row: 2; } .res-weekly .wk-f button { grid-column: 2; grid-row: 1; } .res-weekly .wk-m { grid-column: 1 / -1; }
@media (max-width: 559px) { .res-weekly .wk-f { grid-template-columns: minmax(0, 1fr); } .res-weekly .wk-c { grid-row: 2; } .res-weekly .wk-f button { grid-column: 1; grid-row: 3; min-height: 48px; } }
.wkl-guide { margin: 10px 0 0; font-size: 15.5px; line-height: 1.45; color: #33405A; } .wkl-guide a { color: #1B2A41; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Velocità (16/11/2026, Clarity: INP 416 ms sulla home): le sezioni sotto la piega non vengono disegnate finché non servono. */
@supports (content-visibility: auto) {
  body[data-page="home"] #dgSense, body[data-page="home"] #homeWho, body[data-page="home"] #dgAll, body[data-page="home"] #dgExplore,
  body[data-page="home"] #homePlans, body[data-page="home"] #siteFooter { content-visibility: auto; contain-intrinsic-size: auto 800px; }
  /* Altezze stimate vicine a quelle vere (misurate il 16/11/2026), così la barra di scorrimento non salta. */
  body[data-page="home"] #dgSense { contain-intrinsic-size: auto 650px; } body[data-page="home"] #homeWho { contain-intrinsic-size: auto 1000px; }
  body[data-page="home"] #dgAll { contain-intrinsic-size: auto 770px; } body[data-page="home"] #dgExplore { contain-intrinsic-size: auto 1020px; }
  body[data-page="home"] #homePlans { contain-intrinsic-size: auto 240px; } body[data-page="home"] #siteFooter { contain-intrinsic-size: auto 1250px; }
  @media (min-width: 1024px) {
    body[data-page="home"] #dgSense { contain-intrinsic-size: auto 500px; } body[data-page="home"] #homeWho { contain-intrinsic-size: auto 640px; }
    body[data-page="home"] #dgAll { contain-intrinsic-size: auto 920px; } body[data-page="home"] #dgExplore { contain-intrinsic-size: auto 780px; }
    body[data-page="home"] #homePlans { contain-intrinsic-size: auto 200px; } body[data-page="home"] #siteFooter { contain-intrinsic-size: auto 900px; }
  }
}

/* Recensione 16/11/2026 — tablet: la foto intera (senza tagli) restava alta quasi 1.000 px e spingeva il tabellone al terzo
   schermo. Qui resta intera ma più stretta e centrata. La riga delle famiglie che scorre di lato sfuma a destra. */
@media (min-width: 560px) and (max-width: 1023px) {
  #dgCover.gs .cv-media, html.wkl-on #dgCover.gs .cv-media { width: min(100%, 400px); margin-left: auto; margin-right: auto; }
}
@media (max-width: 1023px) {
  .dg-subnav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); padding-right: 28px; }
}
/* Le frasi barrate del tabellone stanno su una riga anche sul telefono. */
@media (max-width: 420px) { #dgCover.gs .cv-row .cv-m { font-size: 12.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* «Oggi prova così» in testata un po' più piccolo (16/11/2026, richiesta di Andrea) */
html body .dg-header .dg-today:not(.has-dog) .dg-today-btn { height: 32px; padding: 0 10px; font-size: 15px; }
@media (min-width: 1024px) { html body .dg-header .dg-today:not(.has-dog) .dg-today-btn { height: 36px; padding: 0 12px; font-size: 16.5px; } }

/* «Oggi prova così» con i momenti (22 novembre 2026): il gesto del giorno, perché funziona, «Com'è andata?» e la settimana */
.dg-today-tt { margin: 6px 0 0; font-family: var(--dg-font-claim); font-weight: 800; font-size: 23px; line-height: 1.05; }
.dg-today-note .dg-today-t { font-size: 16.5px; }
.dg-today-why { margin: 14px 0 0; font-size: 14.5px; line-height: 1.45; color: #2C3A52; }
.dg-today-why b { color: var(--dg-ink); }
.dg-today-why span { color: #5B6573; }
.dg-today-why a { color: var(--dg-ink) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dg-today-out { margin-top: 14px; padding-top: 12px; border-top: 1.5px solid var(--dg-ink); }
.dg-today-out > p:first-child { margin: 0 0 8px; font-weight: 700; font-size: 15.5px; }
.dg-today-faces { display: flex; gap: 8px; }
.dg-today-faces button { flex: 1 1 0; min-width: 0; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; border: 1.5px solid var(--dg-ink); border-radius: 10px; background: #fff; color: var(--dg-ink); font: 700 14px/1.15 var(--dg-font-text); cursor: pointer; }
.dg-today-faces button span { font-size: 20px; line-height: 1; }
.dg-today-faces button[aria-pressed="true"] { background: var(--dg-ink); color: #fff; }
.dg-today-faces button:focus-visible, .dg-today-alt:focus-visible, .dg-today-nt textarea:focus-visible { outline: 3px solid var(--dg-yellow); outline-offset: 2px; }
.dg-today-ok { margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; color: #2C3A52; }
.dg-today-nt { display: block; margin-top: 8px; font-size: 14px; color: #44506A; }
.dg-today-nt textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1.5px solid var(--gs-linea, #DADDE1); border-radius: 10px; font: 500 15px/1.4 var(--dg-font-text); color: var(--dg-ink); resize: vertical; }
.dg-today-wk { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #F2F3F0; font-size: 13.5px; line-height: 1.35; color: #2C3A52; }
.dg-today-wk b { color: var(--dg-ink); font-size: 14.5px; }
.dg-today-dots { display: flex; gap: 4px; flex: none; }
.dg-today-dots i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--dg-ink); display: grid; place-items: center; font: 700 10.5px/1 var(--dg-font-text); font-style: normal; color: var(--dg-ink); }
.dg-today-dots i.on { background: #3FA372; border-color: #3FA372; color: #fff; }
@media (max-width: 400px) { .dg-today-wk { flex-direction: column; align-items: flex-start; } }
.dg-today-alt { display: inline-block; margin: 10px 0 0; padding: 6px 0; border: 0; background: none; color: var(--dg-ink); font: 700 14.5px var(--dg-font-text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
/* «Racconta com'è andata» (22 novembre 2026): il racconto, la risposta di Sense e il passo su misura del giorno dopo */
.dg-today-mine { display: inline-block; margin: 0 0 8px; padding: 5px 8px; border-radius: 4px; background: var(--dg-ink); color: var(--dg-yellow); font: 700 13px/1 var(--dg-font-text); transform: rotate(1deg); }
.dg-today-nt b { display: block; color: var(--dg-ink); font-size: 15.5px; }
.dg-today-nt small { display: block; margin-top: 2px; font-size: 13.5px; color: #44506A; }
.dg-today-nt textarea { border-color: var(--dg-ink); min-height: 78px; }
.dg-today-ask { display: inline-flex; align-items: center; min-height: 46px; margin-top: 10px; padding: 8px 16px; border: 0; border-radius: 6px; background: var(--dg-ink); color: #fff; font: 700 15.5px var(--dg-font-text); cursor: pointer; }
.dg-today-ask:disabled { opacity: .7; cursor: progress; }
.dg-today-free { margin: 8px 0 0; font-size: 13.5px; color: #44506A; }
.dg-today-err { margin: 6px 0 0; font-size: 14px; color: #9B2C16; }
.dg-today-err:empty { display: none; }
.dg-today-told { margin: 10px 0 0; font-size: 14.5px; font-style: italic; color: #2C3A52; }
.dg-today-rep { margin-top: 12px; border: 1.5px solid var(--dg-ink); border-radius: 10px; overflow: hidden; }
.dg-today-rh { margin: 0; padding: 8px 12px; background: var(--dg-ink); color: #fff; font: 700 14px var(--dg-font-text); }
.dg-today-rh b { color: var(--dg-yellow); }
.dg-today-rc { padding: 10px 14px 12px; }
.dg-today-rc p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.5; }
.dg-today-r3 { font-family: var(--dg-font-claim); font-weight: 800; font-size: 18px !important; line-height: 1.1 !important; }
.dg-today-pop .dg-today-rc ul { margin: 4px 0 8px; padding: 0; list-style: none; }
.dg-today-pop .dg-today-rc li { padding: 7px 0; border-top: 1px solid #DADDE1; font-size: 14.5px; line-height: 1.45; }
.dg-today-pop .dg-today-rc li:first-child { border-top: 0; }
.dg-today-rc li b { display: block; font-size: 15px; }
.dg-today-tom { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: #FFF4D6; font-size: 14.5px; line-height: 1.45; }
.dg-today-tom b { display: block; }
.dg-today-small { margin-top: 8px !important; font-size: 13.5px !important; color: #44506A; }
.dg-today-join { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #F2F3F0; font-size: 14.5px; }
.dg-today-join p { margin: 0 0 8px; }
.dg-today-signup { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 6px; background: var(--dg-yellow); color: var(--dg-ink); font: 700 15px var(--dg-font-text); cursor: pointer; }
.dg-today-other { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid #D9DEE7; color: var(--dg-ink) !important; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
/* «Racconta com'è andata» nei piani di 7 giorni e nelle risposte di Sense (classi dbf-*) */
.dbf { margin: 0 0 12px; padding: 14px; border: 1.5px solid var(--dg-ink); border-radius: 14px; background: #fff; color: var(--dg-ink); font-size: 15px; }
.rx-outcome .dbf { margin: 0; padding: 0; border: 0; }
.dbf-q { margin: 0 0 8px; font-weight: 800; font-size: 16px; }
.dbf-faces { display: flex; gap: 8px; }
.dbf-faces button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px 4px; border: 1.5px solid var(--dg-ink); border-radius: 10px; background: #fff; color: var(--dg-ink); font: 700 14px/1.15 var(--dg-font-text); cursor: pointer; }
.dbf-faces button[aria-pressed="true"] { background: var(--dg-ink); color: #fff; }
.dbf-lab { display: block; margin-top: 12px; }
.dbf-lab b { display: block; font-size: 15px; }
.dbf-lab small { display: block; margin-top: 2px; font-size: 13.5px; color: #44506A; }
.dbf textarea { display: block; width: 100%; margin-top: 6px; padding: 9px 11px; border: 1.5px solid var(--dg-ink); border-radius: 10px; font: 500 15px/1.4 var(--dg-font-text); color: var(--dg-ink); background: #fff; min-height: 78px; }
.dbf-ask { display: inline-flex; align-items: center; min-height: 46px; margin-top: 10px; padding: 8px 16px; border: 0; border-radius: 6px; background: var(--dg-ink); color: #fff; font: 700 15px var(--dg-font-text); cursor: pointer; }
.dbf-ask:disabled { opacity: .7; cursor: progress; }
.dbf-told { margin: 6px 0 0; font-style: italic; color: #2C3A52; font-size: 14.5px; }
.dbf-wait { margin: 8px 0 0; font-weight: 700; }
.dbf-err { margin: 8px 0 0; color: #9B2C16; font-size: 14px; }
.dbf-small { margin: 8px 0 0; font-size: 13.5px; color: #44506A; }
.dbf-rep { margin-top: 10px; border: 1.5px solid var(--dg-ink); border-radius: 10px; overflow: hidden; text-align: left; }
.dbf-rh { margin: 0; padding: 8px 12px; background: var(--dg-ink); color: #fff; font: 700 14px var(--dg-font-text); }
.dbf-rh b { color: var(--dg-yellow); }
.dbf-rc { padding: 10px 14px 12px; }
.dbf-rc p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.5; }
.dbf-r3 { font-family: var(--dg-font-claim); font-weight: 800; font-size: 18px !important; line-height: 1.1 !important; }
.dbf-rc ul { margin: 4px 0 8px; padding: 0; list-style: none; }
.dbf-rc li { padding: 7px 0; border-top: 1px solid #DADDE1; font-size: 14.5px; line-height: 1.45; }
.dbf-rc li:first-child { border-top: 0; }
.dbf-rc li b { display: block; font-size: 15px; }
.dbf-tom { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: #FFF4D6; font-size: 14.5px; line-height: 1.45; }
.dbf-tom b { display: block; }
.dbf-mine { display: inline-block; margin-right: 6px; padding: 3px 7px; border-radius: 4px; background: var(--dg-ink); color: var(--dg-yellow); font-size: 12px; font-weight: 700; vertical-align: middle; }
/* Pannello «Racconta com'è andata» per i consigli (home, Sapere, Etogramma) */
.dbf-overlay { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; justify-content: center; padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); background: rgba(27, 42, 65, .55); }
@media (min-width: 640px) { .dbf-overlay { align-items: center; } }
.dbf-dialog { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto; margin: 0; padding: 20px 20px 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.dbf-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--dg-ink); cursor: pointer; }
.dbf-adv { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #F2F3F0; font-size: 14.5px; line-height: 1.45; }
.dbf-adv b { display: block; margin-bottom: 2px; font-size: 13.5px; }
.dbf-join { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #F2F3F0; font-size: 14.5px; }
.dbf-join p { margin: 0 0 4px; }
.dbf-ask--y { background: var(--dg-yellow); color: var(--dg-ink); }
.cv-told { display: inline-block; margin: 2px 0 10px; padding: 4px 0; border: 0; background: none; color: inherit; font: 700 14.5px var(--dg-font-text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.dbf-inv { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 14px 0; padding: 12px 14px; border: 1.5px dashed var(--dg-ink); border-radius: 12px; font-size: 15px; }
.dbf-inv button { padding: 6px 0; border: 0; background: none; color: var(--dg-ink); font: 700 15px var(--dg-font-text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
