/* Verri · interfaccia condivisa, novembre 2026.
   Caricato dopo portal.css: mantiene componenti e temi delle pagine esistenti. */
:root {
  --header-height: 44px;
  --footer-height: 44px;
  --bg: #f4f7fc;
  --bg-2: #edf2fa;
  --surface: #fff;
  --text: #172b4d;
  --text-soft: #52637c;
  --border: #dce4ef;
  --brand-1: #244fc4;
  --brand-2: #183781;
  --hero-1: #132b55;
  --hero-2: #204986;
  --ring: #244fc4;
  --radius: 20px;
  --shadow: 0 8px 28px #172b4d0a;
  --shadow-lg: 0 14px 36px #172b4d12;
}
.role-studente { --brand-1: #08796f; --brand-2: #075b56; --hero-1: #0b3b3f; --hero-2: #146569; --ring: #08796f; }
:root[data-theme="dark"] {
  --bg: #0b1322; --bg-2: #101d31; --surface: #152238;
  --surface-strong: #152238; --surface-muted: #1d2d45;
  --text: #edf3ff; --text-soft: #b4c3da; --border: #2d405c;
  --ring: #a5c5ff;
}
:root[data-theme="dark"].role-docente { --brand-1: #9ebeff; --brand-2: #7fa5f4; }
:root[data-theme="dark"].role-studente { --brand-1: #6fe4ce; --brand-2: #60d3bf; --ring: #6fe4ce; }
html { scroll-padding-top: 150px; }
body { font-size: 1rem; padding-bottom: calc(var(--footer-height) + var(--dock-h) + 24px); }
button, input, select, summary { touch-action: manipulation; }
a, button { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, summary):focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; }
.p-main:focus, .p-landing-main:focus { outline: none; }
.p-aurora { background: radial-gradient(ellipse at 90% 0, #dce8fb55, transparent 60%), var(--bg); }
.p-aurora span, .p-dot { display: none; }
.p-hero-bg, .p-w, .p-title-role { animation: none; }
.p-hero, .p-toolbar, .p-landing-head, .p-role, .p-tile, .p-faq, .p-landing-note, .p-share, .p-landing-foot, .p-credit, .p-resume { animation: none; }
.p-tile, .p-role, .p-card, .p-faq-item { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Identità e accesso alle altre aree. */
.p-masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; margin-bottom: 20px; position: relative; z-index: 36;
}
.p-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.p-brand img { border-radius: 50%; object-fit: cover; border: 2px solid var(--surface-strong); box-shadow: 0 0 0 1px var(--border); }
.p-brand > span { display: flex; flex-direction: column; gap: 1px; }
.p-brand strong { font-size: 1.05rem; letter-spacing: -.025em; }
.p-brand > span > span { color: var(--text-soft); font-size: .875rem; }
.p-masthead-actions { display: flex; align-items: center; gap: 14px; }
.p-area-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .875rem; font-weight: 650; text-decoration: none; }
.p-area-switch .p-ico { font-size: 1.15rem; }
.p-lang--masthead, .p-masthead .p-lang--landing { position: relative; inset: auto; }
.p-lang-btn, .p-lang--hero .p-lang-btn { min-height: 44px; font-size: .875rem; }
.p-lang-menu a { min-height: 44px; }
.p-lang-btn { list-style: none; }
.p-lang-btn::-webkit-details-marker { display: none; }
.p-lang:not([open]) > .p-lang-menu { display: none; }
.p-landing-root:not(.p-landing-ready) .p-theme-fab { display: none; }
.p-lang-menu a:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.p-masthead .p-theme-fab { position: relative; inset: auto; border-radius: 12px; }
.p-masthead .p-theme-menu { position: absolute; top: 62px; right: 0; }
.p-theme-menu button { min-height: 44px; }
.p-theme-menu button:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.p-kicker { font-size: .875rem; font-weight: 600; letter-spacing: .04em; background: none; border: 0; padding: 0; backdrop-filter: none; }

/* Un saluto compatto lascia subito spazio ai servizi. */
.p-hero { border-radius: 24px; box-shadow: none; }
.p-hero-bg {
  background: radial-gradient(ellipse at 100% 40%, #4677b54d, transparent 58%), linear-gradient(115deg, var(--hero-1), var(--hero-2));
}
.p-hero-bg::after { background-size: 52px 52px; opacity: .45; }
.p-hero-body { min-height: 240px; padding: 32px 40px; grid-template-columns: minmax(0, 1fr) 220px; }
.p-hero .p-kicker { color: #e0eafb; text-transform: none; margin: 0 0 8px; letter-spacing: 0; font-size: 1rem; }
.p-title { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.045em; }
.p-lead { max-width: 58ch; font-size: 1rem; color: #e1ebfa; margin-top: 12px; }
.p-clock { margin-top: 18px; gap: 12px; }
.p-time { font-size: 1rem; font-weight: 700; }
.p-date { font-size: .875rem; color: #e1ebfa; }
.p-hero-art { width: 180px; justify-self: center; }
.p-hero-art .p-portrait { border-width: 3px; box-shadow: 0 8px 24px #0003; }
.p-badge { font-size: .875rem; color: #183b6c; box-shadow: 0 6px 16px #0002; }

/* Ricerca, navigazione e card. */
.p-toolbar { border-radius: 16px; box-shadow: var(--shadow); margin-top: 20px; gap: 10px; }
.p-search { height: 48px; border-radius: 10px; }
.p-search input::placeholder { opacity: 1; }
.p-search-clear { width: 44px; height: 44px; border-radius: 10px; }
.p-tab { min-height: 44px; text-decoration: none; padding: 0 12px; font-size: .875rem; }
.p-tab-ink { height: 44px; box-shadow: none; background: #244fc4; }
.role-studente .p-tab-ink { background: #08796f; }
.p-tab.active { color: #fff; }
.p-tab:focus-visible, .p-dock-item:focus-visible, .p-tile:focus-visible, .p-fav:focus-visible { outline-color: var(--ring); }
.p-section { scroll-margin-top: 140px; }
.p-section-title { margin: 8px 0 18px; font-size: 1.5rem; letter-spacing: -.035em; font-weight: 750; }
.p-section-title > .p-ico { background: none; color: var(--brand-1); padding: 0; width: 24px; height: 24px; box-shadow: none; border-radius: 0; }
.p-block-title { font-size: .875rem; letter-spacing: .04em; line-height: 1.4; }
.p-grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.p-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-grid--quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-tile-wrap > .p-tile { padding: 22px 58px 22px 20px; }
.p-tile { min-height: 112px; border-radius: 16px; background: var(--surface-strong); box-shadow: 0 2px 4px #172b4d03; transition: border-color .2s, box-shadow .2s, transform .2s; }
.p-tile::before, .p-tile::after { display: none; }
.p-tile:hover, .p-tile:focus-visible { transform: translateY(-2px); border-color: var(--brand-1); box-shadow: var(--shadow); }
.p-tile-icon { width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--c2) 10%, var(--surface-strong)); color: var(--c2); box-shadow: none; }
[data-theme="dark"] .p-tile-icon { color: color-mix(in srgb, var(--c1) 60%, white); background: color-mix(in srgb, var(--c2) 20%, var(--surface-strong)); }
.p-tile:hover .p-tile-icon { transform: none; }
.p-tile-title { font-size: 1rem; line-height: 1.35; }
.p-tile-sub { font-size: .875rem; line-height: 1.5; margin-top: 3px; -webkit-line-clamp: 3; }
.p-tile-go { background: none; width: 26px; height: 26px; right: 16px; bottom: 14px; }
.p-tile:hover .p-tile-go { background: none; color: var(--brand-1); transform: none; }
.p-fav { width: 44px; height: 44px; top: 6px; right: 6px; opacity: 1; }
.p-fav[aria-pressed="true"] { color: #936100; }
[data-theme="dark"] .p-fav[aria-pressed="true"] { color: #ffd46f; }
.p-tile--lg { background: #244fc4; min-height: 122px; color: #fff; box-shadow: none; border: 1px solid transparent; }
.p-tile--lg.p-c-orange { background: #874326; }
.role-studente .p-tile--lg.p-c-blue { background: #075f59; }
.p-tile--lg.p-c-violet { background: #3b437f; }
.p-tile--lg .p-tile-icon { background: #ffffff1f; color: #fff; width: 54px; height: 54px; box-shadow: none; }
.p-tile--lg .p-tile-title { font-size: 1.2rem; }
.p-tile--lg .p-tile-sub { color: #f2f5ff; }
.p-tile--lg .p-tile-go { background: none; color: #fff; }
.p-tile-wrap:has(.p-tile--lg) .p-fav { color: #fff; opacity: 1; }
.p-tile--lg:hover .p-tile-go { background: none; color: #fff; }
.p-tile--lg:hover { border-color: #fff; box-shadow: 0 6px 16px #142c5520; }

/* Agenda, servizi e personalizzazione in ordine di utilizzo. */
#sec-home.active { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px 20px; }
#sec-home > .p-section-title, #sec-home > .p-grid, #sec-home > .p-personal, #sec-home > .p-block-title { grid-column: 1 / -1; }
#sec-home > .p-section-title { margin-bottom: 0; }
#sec-home > .p-grid--featured { order: 1; }
#sec-home > .p-grid--quick { order: 2; }
#sec-home > .p-personal { order: 3; }
#sec-home > .p-calendar { order: 4; grid-column: 1; }
#sec-home > .p-weather { order: 5; grid-column: 2; align-self: start; }
#sec-home > .p-block-title, #sec-home > .p-grid:not(.p-grid--featured):not(.p-grid--quick) { order: 6; }
.p-personal { margin: 0; padding: 4px 0 8px; }
.p-personal .p-block-title { margin-top: 16px; }
.p-favs-hint { background: transparent; border-color: var(--border-strong); padding: 12px 16px; font-size: .875rem; }
.p-card { margin-top: 0; border-radius: 18px; box-shadow: none; background: var(--surface-strong); }
.p-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.p-card-heading .p-block-title { margin: 0; }
.p-text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .875rem; font-weight: 650; }
.p-calendar-frame { height: 420px; }
.p-calendar-frame iframe { height: 100%; min-height: 0; }
.p-weather-content { min-height: 195px; }
.p-weather-state { color: var(--text-soft); margin: 0; padding-block: 24px; }
.p-weather-now { display: flex; align-items: center; gap: 16px; margin-block: 12px 18px; }
.p-weather-symbol { width: 2.5rem; height: 2.5rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--brand-1); }
.p-weather-temperature { font-size: 2.75rem; line-height: 1.15; font-weight: 750; letter-spacing: -.04em; }
.p-weather-condition { display: block; font-size: .9375rem; color: var(--text-soft); }
.p-weather-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--border); }
.p-weather-days li { display: flex; align-items: center; flex-direction: column; gap: 8px; font-size: .875rem; min-width: 0; }
.p-weather-days time { text-transform: capitalize; font-weight: 650; }
.p-weather-days .p-weather-symbol { width: 1.4rem; height: 1.4rem; }
.p-weather-range { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.p-weather-range strong { color: var(--text); }
.p-weather-source { display: block; font-size: .8125rem; color: var(--text-soft); margin-top: 8px; }
.p-weather-source a { color: inherit; }
.p-portal-foot { margin-top: 32px; padding: 22px 0 12px; border-top: 1px solid var(--border); text-align: center; color: var(--text-soft); font-size: .875rem; }
.p-portal-foot p { margin: 0 0 10px; }
.p-portal-foot nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 24px; }
.p-portal-foot nav a { min-height: 44px; display: inline-flex; align-items: center; }
.p-portal-foot .p-credit { margin-top: 12px; }
.footer { position: fixed; bottom: var(--dock-h); height: var(--footer-height); margin: 0; border-top: 1px solid var(--border); box-shadow: 0 -2px 12px #172b4d08; }
.p-news { display: flex; align-items: center; gap: 18px; min-height: 44px; max-width: 1280px; margin: auto; padding: 0 20px; font-size: .875rem; }
.p-news-label { color: var(--brand-1); font-weight: 750; white-space: nowrap; }
.p-news-featured { display: block; flex: 1; min-width: 0; overflow: hidden; }
.p-news-featured a { display: block; width: max-content; min-width: 100%; color: var(--text); white-space: nowrap; text-decoration: none; line-height: 44px; }
.p-news-featured a.is-scrolling { animation: p-news-scroll var(--ticker-duration) linear 1s both; }
@keyframes p-news-scroll { to { transform: translateX(calc(-1 * var(--ticker-distance))); } }
.p-news.is-paused .p-news-featured a { animation-play-state: paused; }
.p-news-pause { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 0; border-radius: 8px; color: var(--brand-1); background: transparent; cursor: pointer; }
.p-news-pause[hidden] { display: none; }
.p-news-pause:hover, .p-news-pause[aria-pressed="true"] { background: var(--surface-muted); }
.p-news-pause .p-ico { font-size: 1.1rem; }
.p-news-more-icon { display: none; }
.p-news-more { position: relative; flex-shrink: 0; }
.p-news-more summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 650; color: var(--accent); }
.p-news-more ul { position: absolute; z-index: 55; right: 0; top: 100%; margin: 0; padding: 8px; list-style: none; width: min(440px, calc(100vw - 32px)); max-height: 65vh; overflow: auto; background: var(--surface-strong); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); }
.p-news-more li a { display: block; padding: 12px; border-radius: 8px; color: var(--text); text-decoration: none; line-height: 1.5; }
.p-news-more li a:hover { background: var(--surface-muted); }
.footer .p-news-more ul { top: auto; bottom: 100%; }
.breakingNews > .bn-title { background: #244fc4 !important; }
.role-studente .breakingNews > .bn-title { background: #08796f !important; }
.breakingNews > .bn-title > span { display: none; }
.breakingNews > .bn-title > h2 { font-size: .875rem !important; }
.p-select, .p-btn, .frame-back, .frame-newtab, .p-seg button { min-height: 44px; }
.p-select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23758599' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
[data-theme="dark"] .p-seg button[aria-checked="true"] { background: #244fc4; }
.role-studente[data-theme="dark"] .p-seg button[aria-checked="true"] { background: #08796f; }
body.frame-open .p-masthead, body.frame-open .p-portal-foot { display: none; }

/* Landing: due percorsi chiari, anche per chi accede come genitore. */
body.p-landing { justify-content: flex-start; padding: 0 0 24px; }
.p-masthead--landing { width: min(1120px, calc(100% - 48px)); min-height: 84px; margin: 0; border-bottom: 1px solid var(--border); }
.p-landing-main { width: min(1120px, calc(100% - 48px)); padding-top: 48px; }
.p-landing-portrait { display: grid; width: 144px; margin: 0 auto 24px; }
.p-landing .p-kicker { padding: 0; border: 0; background: none; color: var(--text-soft); margin-bottom: 16px; }
.p-landing-title { font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.06; letter-spacing: -.055em; font-weight: 800; }
.p-heading-accent { color: var(--brand-1); }
.p-landing-lead { font-size: 1.0625rem; max-width: 55ch; margin-top: 18px; line-height: 1.6; }
.p-roles { margin-top: 36px; gap: 24px; perspective: none; }
.p-role { --role-ink: #244fc4; color: var(--text); background: var(--surface-strong); border: 1px solid var(--border); border-radius: 22px; padding: 28px; gap: 0 16px; box-shadow: var(--shadow); transform: none; min-height: 330px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.p-role--studente { --role-ink: #08796f; }
[data-theme="dark"] .p-role { --role-ink: #a5c5ff; }
[data-theme="dark"] .p-role--studente { --role-ink: #6fe4ce; }
.p-role::before { inset: 0 0 auto; height: 4px; background: var(--role-ink); mask: none; -webkit-mask: none; }
.p-role:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--role-ink); }
.p-role-glow { display: none; }
.p-role-kicker { padding: 0; border: 0; background: none; color: var(--role-ink); font-size: .875rem; letter-spacing: .06em; }
.p-role-name { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-top: 12px; }
.p-role-text { color: var(--text-soft); font-size: .9375rem; line-height: 1.6; margin-top: 12px; }
.p-role-audience { font-size: .875rem; font-weight: 650; margin-top: 6px; color: var(--role-ink); }
.p-role-art { width: 140px; margin: 4px -8px 0 0; align-self: center; }
.p-role-chips { margin-top: 22px; gap: 8px 12px; }
.p-role-chip { padding: 0; min-height: 24px; color: var(--text-soft); background: none; backdrop-filter: none; font-size: .875rem; }
.p-role-chip .p-ico { color: var(--role-ink); }
.p-role-cta { align-self: end; border-radius: 10px; background: #244fc4; color: #fff; box-shadow: none; padding: 12px 18px; min-height: 48px; font-size: .9375rem; margin-top: 24px; }
.p-role--docente .p-role-cta { color: #fff; }
.p-role--studente .p-role-cta { color: #fff; background: #08796f; }
.p-role:hover .p-role-cta { padding-right: 18px; }
.p-role-last { font-size: .875rem; background: var(--surface-muted); color: var(--text); box-shadow: none; top: 14px; right: 14px; }
.p-role.is-last .p-role-kicker { visibility: visible; }
.p-role.is-last .p-role-head { padding-top: 14px; }
.p-landing-note { max-width: 760px; margin-top: 24px; border: 0; background: none; font-size: .875rem; padding: 0; }
.p-faq { margin-top: 48px; max-width: 800px; }
.p-share-title { font-size: .875rem; color: var(--text-soft); }
.p-faq-item { border-radius: 12px; background: var(--surface-strong); }
.p-faq-item summary { min-height: 58px; padding: 16px 20px; font-size: 1rem; }
.p-faq-ico { transform: none; }
.p-faq-item[open] .p-faq-ico { transform: rotate(45deg); }
.p-landing-foot { font-size: .875rem; }
.p-landing-foot a { display: inline-flex; align-items: center; min-height: 44px; }
.p-credit-label { font-size: .875rem; }
.p-resume { margin-top: 18px; min-height: 44px; background: var(--surface-strong); color: var(--brand-1); font-size: .9375rem; }
.p-resume[hidden] { display: none; }

/* Miglioramento progressivo: link e contenuti funzionano senza script. */
html:not(.p-enhanced) body[data-role] .p-section:not([hidden]) { display: block; }
html:not(.p-enhanced) body[data-role] :is(.p-search, .p-personal, .p-fav, #sec-impostazioni, [data-target="sec-impostazioni"]) { display: none; }
html:not(.p-enhanced) body[data-role] .p-tabs { display: flex; }
html:not(.p-enhanced) body[data-role] .p-toolbar { position: static; }
html:not(.p-enhanced) body[data-role] .p-chat-frame[data-src] { display: none; }
html:not(.p-enhanced) .p-weather-content { display: none; }

@media (max-width: 980px) {
  .p-hero-body { padding: 28px; grid-template-columns: minmax(0, 1fr) 160px; }
  .p-hero-art { width: 150px; }
  .p-role-art { width: 110px; }
  .p-role { padding: 24px; }
  .p-grid--quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-grid--quick .p-tile { flex-direction: column; align-items: flex-start; }
  #sec-home.active { grid-template-columns: 1fr; }
  #sec-home > .p-calendar, #sec-home > .p-weather { grid-column: 1; }
  #sec-home > .p-weather { order: 6; }
}
@media (max-width: 700px) {
  :root { --header-height: 44px; --footer-height: 44px; --dock-h: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body { font-size: 1rem; padding-top: calc(var(--header-height) + 8px); }
  .p-main { width: calc(100% - 28px); }
  .p-masthead { gap: 10px; margin-bottom: 12px; min-height: 58px; }
  .p-brand { gap: 9px; }
  .p-brand img { width: 36px; height: 36px; }
  .p-brand strong { font-size: .9375rem; }
  .p-brand > span > span { font-size: .8125rem; }
  .p-masthead-actions { gap: 8px; }
  .p-area-switch { gap: 6px; }
  .p-area-switch span, .p-lang--masthead .p-lang-name { display: none; }
  .p-area-switch { width: 44px; justify-content: center; border: 1px solid var(--border); border-radius: 12px; }
  .p-hero { border-radius: 18px; }
  .p-hero-body { min-height: 190px; padding: 22px; grid-template-columns: minmax(0, 1fr) 84px; gap: 12px; }
  .p-hero-art { display: grid; width: 84px; align-self: start; margin-top: 16px; }
  .p-hero .p-kicker { font-size: .875rem; }
  .p-title { font-size: 2.15rem; }
  .p-lead { display: block; font-size: .9375rem; line-height: 1.5; max-width: 42ch; }
  .p-date { font-size: .875rem; }
  .p-toolbar { margin-top: 14px; top: calc(var(--header-height) + 6px); padding: 6px; }
  .p-toolbar-logo { display: none; }
  .p-section-title { font-size: 1.3rem; }
  .p-grid, .p-grid--quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p-grid--featured { grid-template-columns: 1fr; }
  .p-grid--quick .p-tile-wrap:last-child { grid-column: 1 / -1; }
  .p-grid--quick .p-tile-wrap:last-child .p-tile { flex-direction: row; align-items: center; }
  .p-tile-wrap > .p-tile { padding: 16px 16px 18px; }
  .p-tile { min-height: 150px; gap: 12px; border-radius: 14px; }
  .p-tile-icon { width: 42px; height: 42px; }
  .p-tile-title { font-size: .9375rem; }
  .p-tile-sub { font-size: .875rem; }
  .p-tile-wrap > .p-tile--lg { padding: 18px 56px 18px 18px; min-height: 104px; }
  .p-tile--lg .p-tile-title { font-size: 1.125rem; }
  .p-tile--lg .p-tile-icon { width: 48px; height: 48px; }
  .p-tile:not(.p-tile--lg) .p-tile-go { display: none; }
  .p-tile-wrap:has(.p-tile:not(.p-tile--lg)) .p-fav { top: 4px; right: 4px; }
  .p-grid--quick .p-tile-wrap:last-child > .p-tile { padding-right: 56px; min-height: 96px; }
  .p-dock { padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--surface-strong); backdrop-filter: none; }
  .p-dock-item { text-decoration: none; font-size: .875rem; font-weight: 600; gap: 6px; min-width: 0; line-height: 1.15; }
  .p-dock-item .p-ico { font-size: 21px; }
  .p-dock-item span { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
  .p-dock-item.is-home .p-ico { width: 24px; height: 24px; padding: 0; margin: 0; color: inherit; background: none; box-shadow: none; border-radius: 0; }
  .p-dock-item.is-home::before { display: block; }
  .p-dock-item.active .p-ico, .p-dock-item.is-home.active .p-ico { transform: none; }
  .p-dock-item::before { top: 0; }
  .p-card { padding: 18px; }
  .p-chat { padding: 0; }
  .p-chat-head { flex-wrap: wrap; }
  .p-chat-head .p-chip { display: inline-flex; min-height: 44px; font-size: .875rem; }
  .p-calendar-frame { height: 400px; }
  .p-install { bottom: calc(var(--footer-height) + var(--dock-h) + 10px); }
  .p-portal-foot { margin-top: 24px; }
  .p-news { gap: 6px; padding-inline: 12px; }
  .p-news-label { font-size: .8125rem; }
  .p-news-more summary { font-size: .8125rem; }
  .p-news-pause, .p-news-more summary { width: 36px; height: 44px; justify-content: center; }
  .p-news-more-label { display: none; }
  .p-news-more-icon { display: block; font-size: 1.1rem; }
  .p-masthead--landing { width: calc(100% - 32px); min-height: 76px; margin: 0; }
  .p-masthead--landing .p-lang-name { display: none; }
  .p-landing-main { width: calc(100% - 32px); padding-top: 24px; }
  .p-landing-portrait { width: 112px; margin-bottom: 20px; }
  .p-landing-title { font-size: clamp(2rem, 8.1vw, 2.8rem); }
  .p-landing .p-kicker { font-size: .875rem; letter-spacing: 0; }
  .p-landing-lead { font-size: 1rem; margin-top: 16px; }
  .p-roles { grid-template-columns: 1fr; margin-top: 24px; gap: 14px; }
  .p-role { grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "head art" "cta cta"; padding: 20px; min-height: 0; gap: 0 12px; }
  .p-role-art { width: 100px; margin: 0 -8px 0 0; }
  .p-role-name { font-size: 2rem; margin-top: 8px; }
  .p-role-text { font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .p-role-chips { display: none; }
  .p-role-cta { margin-top: 20px; }
  .p-landing-note { font-size: .875rem; line-height: 1.6; }
  .p-faq { margin-top: 36px; }
}
@media (max-width: 380px) {
  .p-masthead-actions { gap: 4px; }
  .p-masthead .p-lang-btn { padding-inline: 9px; }
  .p-masthead .p-brand strong { font-size: .875rem; }
  .p-masthead .p-brand > span > span { display: none; }
  .p-grid { grid-template-columns: 1fr; }
  .p-tile-wrap > .p-tile { flex-direction: row; align-items: center; min-height: 100px; padding-right: 50px; }
  .p-grid--quick .p-tile { flex-direction: row; align-items: center; }
  .p-role { padding: 22px; grid-template-columns: minmax(0, 1fr) 76px; }
  .p-role-art { width: 80px; }
  .p-dock-item { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) {
  .p-role, .p-tile, .p-hero, .p-tab.active, .p-dock-item.active { border: 1px solid CanvasText; }
  .p-tab-ink { display: none; }
  .p-tab.active { outline: 2px solid Highlight; }
}
@media print {
  .p-section:not([hidden]) { display: block !important; break-inside: avoid; }
  .header, .footer, .p-toolbar, .p-dock, .p-fav, .p-weather, .p-calendar, .p-chat, .p-install, #sec-impostazioni { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
  .p-hero { color: #000; }
  .p-title, .p-hero .p-kicker, .p-lead { color: #000; }
}
