/* Pagine interne con la grafica del cliente (dafare/Psicologia-one-Portale-Blog (1).html).
   Raccorda testata e piè di pagina (portal-design.css, in .pd) con i modelli del sito e del plugin: solo aspetto, nessuna logica.
   Caricato dopo i colori condivisi (brand-palette.css). Il gestionale (.one-practice) resta com'è. */

/* ---------- Testata e piè di pagina ---------- */
.pd-shell .portal-opening.pd-compact { padding-bottom: 0; }
.pd-shell.pd-shell--top { position: relative; z-index: 20; }
.pd-shell .masthead { position: relative; }
.pd-footer-note { padding: 14px 0 0; color: #cfe2ee; font-size: .88rem; }
.pd-footer-note p { margin: 0 0 4px; }
body.one-practice .pd-shell { display: none; } /* il gestionale nasconde testata e piè di pagina, come prima */

/* ---------- Valori della grafica: le variabili del tema e del plugin prendono colori, caratteri e raggi del cliente ---------- */
body:not(.one-practice):not(.one-splash) {
  --pd-ink: #102d43; --pd-muted: #3d5668; --pd-navy: #073354; --pd-blue: #005a8c; --pd-blue-2: #073b63; --pd-title: #073949;
  --pd-line: #d5e5ef; --pd-tone: #eaf4fb; --pd-field: #b7d1d1;
  --pd-head: linear-gradient(112deg, #073354, #005a8c);
  --pd-button: linear-gradient(116deg, #005a8c, #073b63);
  --pd-soft: linear-gradient(125deg, #eaf4fb, #fff 84%);
  --pd-ribbon: linear-gradient(90deg, #29b1ee 0 25%, #9555e1 25% 50%, #ef3699 50% 75%, #ff9a45 75% 100%);
  --font: Oswald, 'Arial Narrow', sans-serif; --font-heading: Oswald, 'Arial Narrow', sans-serif;
  --blue: #005a8c; --blue-dark: #073b63; --blue-soft: #eaf4fb; --blue-light: #29b1ee; --forest: #005a8c; --deep: #073354;
  --dark: #0c3455; --ink: #102d43; --muted: #3d5668; --page: #f6f9fc; --line: #d5e5ef; --sage: #eaf4fb;
  --radius: 16px; --radius-sm: 10px; --shadow: none; --shadow-hover: 0 8px 22px rgb(12 45 63 / .10);
  --one-brand-blue: #005a8c; --one-brand-green: #005a8c; --one-green-dark: #073b63; --one-on-green: #fff; --one-mint: #eaf4fb;
  background: #f6f9fc; color: #102d43; font-family: Oswald, 'Arial Narrow', sans-serif; letter-spacing: .012em;
}
body:not(.one-practice):not(.one-splash) main#main { padding-bottom: 40px; }
/* Testi lunghi (articoli, enciclopedia, guide): Source Sans 3, l'altro carattere della grafica, più leggibile su molte righe. */
.one-portal :is(.content-prose, .one-content) { font: 400 1.08rem/1.72 'Source Sans 3', system-ui, sans-serif; letter-spacing: 0; color: #102d43; }
.one-portal :is(.content-prose, .one-content) :is(h2, h3, h4) { font-family: Oswald, 'Arial Narrow', sans-serif; font-weight: 700; color: #073949; letter-spacing: .01em; }
.one-portal :is(.content-prose, .one-content) a { color: #005a8c; text-underline-offset: 3px; }

/* ---------- Titoli: blu notte, senza maiuscolo, linea arcobaleno sotto (come «Come vuoi usare Psicologia.one?») ---------- */
.one-portal :is(.one-archive-head h1, .one-article > h1, .one-page > h1) {
  color: #073949; font: 700 clamp(30px, 3.6vw, 44px)/1.12 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .01em; text-transform: none;
}
.one-portal :is(.one-archive-head h1, .one-article > h1, .one-page > h1)::after { content: ''; display: block; width: 90px; height: 4px; margin-top: 16px; background: var(--pd-ribbon); }
.one-portal .one-title { position: relative; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 16px; }
.one-portal .one-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 90px; height: 4px; background: var(--pd-ribbon); }
.one-portal .one-title h2 { color: #073949; font: 700 24px/1.15 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .01em; text-transform: none; }
.one-portal .one-title h2::before { display: none; }
.one-portal .one-title > a { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; color: #fff; font: 650 14px/1.2 Oswald, sans-serif; letter-spacing: .4px; text-decoration: none; background: var(--pd-button); border: 1px solid #ffffff35; border-radius: 8px; }

/* ---------- Riquadri e schede: bianco, bordo azzurro chiaro, raggio 16 (le intestazioni d'archivio con il fondo sfumato) ---------- */
.one-portal :is(.one-box, .one-article, .one-page, .one-archive-head) { background: #fff; border: 1px solid var(--pd-line); border-radius: 16px; box-shadow: none; }
.one-portal .one-archive-head { background: var(--pd-soft); }
.one-portal .one-archive-head p, .one-portal .one-intro { color: #3d5668; font-size: 1.05rem; letter-spacing: .012em; }
.one-portal :is(.one-kicker, .one-badge) { padding: 5px 11px; color: #005a8c; background: #eaf4fb; border: 1px solid #cfe3f0; border-radius: 999px; font: 650 12px/1 Oswald, sans-serif; letter-spacing: .5px; }
.one-portal .one-hero-body .one-badge { color: #fff; background: #ffffff2e; border-color: #ffffff40; }
.one-portal :is(.one-grid-card h3, .one-list-body h3, .one-archive-list h3) { font: 700 1.2rem/1.25 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .005em; }
.one-portal :is(.one-grid-card h3 a, .one-list-body h3 a) { color: #102d43; }
.one-portal :is(.one-grid-card h3 a, .one-list-body h3 a):hover { color: #005a8c; }
.one-portal :is(.one-thumb, .one-thumb img, .one-tile, .one-cover img) { border-radius: 10px; }
.one-portal :is(.one-meta, .one-byline, .breadcrumbs) { color: #3d5668; font-family: Oswald, 'Arial Narrow', sans-serif; }
.one-portal .breadcrumbs { font-size: 14px; }
.one-portal .one-excerpt, .one-portal .one-grid-card p { color: #3d5668; }
.one-portal .one-source { background: #eaf4fb; border-left-color: #005a8c; color: #3d5668; font-family: 'Source Sans 3', system-ui, sans-serif; }

/* ---------- Inviti: come le schede del piè di pagina della grafica ---------- */
.one-portal :is(.one-side-cta, .one-article-cta) { position: relative; overflow: hidden; color: #fff; background: #0c3455; border: 1px solid #92bed67a; border-radius: 12px; }
.one-portal .one-side-cta { background: var(--pd-head); }
.one-portal :is(.one-side-cta, .one-article-cta) h2 { color: #fff; font: 700 1.6rem/1.15 Oswald, 'Arial Narrow', sans-serif; text-transform: none; letter-spacing: .01em; }
.one-portal :is(.one-side-cta, .one-article-cta) h2::after { content: ''; display: block; width: 90px; height: 4px; margin-top: 12px; background: var(--pd-ribbon); }
.one-portal :is(.one-side-cta, .one-article-cta) p { color: #dceaf4; font-size: 15px; }

/* ---------- Pulsanti: blu sfumato, raggio 8, Oswald ---------- */
body:not(.one-practice):not(.one-splash) :is(.btn.btn-primary, .btn-red, .one-article-cta .btn, .one-side-cta .btn, .one-search-form button, .po-editorial .po-editorial-button, .po-editorial-context .po-editorial-button, .pp-login-card #wp-submit) {
  color: #fff; background: var(--pd-button); border: 1px solid #ffffff35; border-radius: 8px; box-shadow: none;
  font: 700 16px/1.2 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .4px; text-transform: none;
}
body:not(.one-practice):not(.one-splash) :is(.btn.btn-primary, .btn-red, .one-article-cta .btn, .one-side-cta .btn, .one-search-form button, .po-editorial .po-editorial-button, .po-editorial-context .po-editorial-button, .pp-login-card #wp-submit):hover {
  color: #fff; background: linear-gradient(116deg, #0a6aa0, #073354); border-color: #ffffff55;
}
.one-portal :is(.one-side-cta, .one-article-cta) .btn { border-color: #ffffff70; }
body:not(.one-practice):not(.one-splash) .btn-outline { color: #005a8c; border-color: #005a8c; border-radius: 8px; }

/* ---------- Ricerca, filtri e paginazione ---------- */
.one-portal :is(.one-search-form input, .one-archive-head input[type="search"], .one-archive-head input[type="text"]) { border: 1px solid var(--pd-field); border-radius: 0; background: #fff; color: #073949; font-family: Oswald, 'Arial Narrow', sans-serif; }
.one-portal .filter-pill { min-height: 36px; padding: 6px 13px; color: #073b63; background: #fff; border: 1px solid var(--pd-line); border-radius: 8px; font: 650 14px/1.1 Oswald, sans-serif; letter-spacing: .3px; text-transform: none; }
.one-portal .filter-pill:hover { border-color: #005a8c; }
.one-portal .filter-pill.active, .directory-toolbar .filter-pill.active, .search-modalities input:checked + span { color: #fff; background: var(--pd-button); border-color: transparent; }
.one-portal .pagination .page-numbers { border-color: var(--pd-line); border-radius: 8px; font-family: Oswald, sans-serif; }
.one-portal .pagination .current { color: #fff; background: var(--pd-button); border-color: transparent; }
.one-portal .one-cats a { font-family: Oswald, sans-serif; color: #102d43; }

/* Ricerca nelle sezioni e fascia dei cataloghi (plugin, portal-links.css): stessi pulsanti e campi della grafica. */
body:not(.one-practice) .po-section-search :is(label, legend, span) { font-family: Oswald, 'Arial Narrow', sans-serif; }
body:not(.one-practice) .po-section-search-row input { border: 1px solid #b7d1d1; border-radius: 0; font-family: Oswald, 'Arial Narrow', sans-serif; color: #073949; }
body:not(.one-practice) .po-section-search-row button { color: #fff; background: linear-gradient(116deg, #005a8c, #073b63); border: 1px solid #ffffff35; border-radius: 8px; font: 700 16px/1.2 Oswald, 'Arial Narrow', sans-serif; letter-spacing: .4px; }
body:not(.one-practice) .po-catalog-nav { border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, #29b1ee 0 25%, #9555e1 25% 50%, #ef3699 50% 75%, #ff9a45 75% 100%) 1; }
body:not(.one-practice) .po-catalog-nav a { font-family: Oswald, 'Arial Narrow', sans-serif; }

/* ---------- Pagine del plugin (ricerca psicologi, profili, libri, biblioteca, formazione): intestazioni come la grafica ---------- */
body:not(.one-practice) .po-directory .directory-head { background: var(--pd-head); }
body:not(.one-practice) :is(.directory-head h1, .results-heading h2, .profile-identity h1, .profile-block h2, .booking-panel-heading h2, .account-section h1, .psychologist-card h3 a) { font-family: Oswald, 'Arial Narrow', sans-serif; letter-spacing: .01em; }

@media (max-width: 760px) {
  .one-portal :is(.one-archive-head h1, .one-article > h1, .one-page > h1) { font-size: clamp(28px, 8vw, 36px); }
  .one-portal :is(.one-side-cta, .one-article-cta) h2 { font-size: 1.4rem; }
}
