/* PN Metro Plus – tema. Palette ItaliaWP2 (primario #003882) + Design System .italia */
:root {
  --t-navy: #003882;
  --t-navy-dark: #002659;
  --t-navy-deep: #001a3d;
  --t-blue: #0066cc;
  --t-accent: #ff9900;
  --t-text: #17324d;
  --t-muted: #5c6f82;
  --t-bg: #f5f7fa;
  --t-line: #d9dadb;
  --t-max: 1320px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Titillium Web", Geneva, Tahoma, sans-serif; font-size: 18px; line-height: 1.55; color: var(--t-text); background: var(--t-bg); }
a { color: var(--t-blue); }
a:hover { color: #004d99; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
:focus-visible { outline: 3px solid var(--t-accent); outline-offset: 2px; }
.pnmt-container { max-width: var(--t-max); margin: 0 auto; padding: 0 24px; }
.pnmt-flex { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pnmt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pnmt-ico { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* Skip link */
.pnmt-skip { position: absolute; left: 0; top: 0; margin: 0; padding: 0; list-style: none; z-index: 1000; }
.pnmt-skip a { position: absolute; left: -9999px; background: #fff; color: var(--t-navy); padding: .6rem 1rem; font-weight: 700; }
.pnmt-skip a:focus { left: 8px; top: 8px; }

/* Preheader */
.pnmt-preheader { background: var(--t-navy-deep); color: #fff; font-size: .9rem; }
.pnmt-preheader .pnmt-container { min-height: 48px; }
.pnmt-ente { color: #fff; text-decoration: none; font-weight: 600; }
.pnmt-ente:hover { color: #fff; text-decoration: underline; }
.pnmt-login { display: inline-flex; align-items: center; gap: .5rem; background: var(--t-navy); color: #fff; text-decoration: none; font-weight: 600; padding: 0 1.1rem; align-self: stretch; }
.pnmt-login:hover { background: var(--t-blue); color: #fff; }
.pnmt-login .pnmt-ico { width: 22px; height: 22px; }

/* Header */
.pnmt-header { background: var(--t-navy); color: #fff; }
.pnmt-header-row { padding: 22px 24px 18px; }
.pnmt-brand { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; }
.pnmt-brand:hover { color: #fff; }
.pnmt-logo { width: 72px; height: 72px; object-fit: contain; }
.pnmt-brand-text strong { display: block; font-size: 2.1rem; line-height: 1.05; letter-spacing: -.01em; }
.pnmt-brand-text span { display: block; font-size: 1rem; opacity: .9; margin-top: 4px; }
.pnmt-header-r { display: flex; align-items: center; gap: 1.25rem; }
.pnmt-loghi { max-height: 64px; width: auto; background: #fff; padding: 6px 10px; border-radius: 4px; }
.pnmt-social { display: flex; gap: .6rem; font-size: .85rem; }
.pnmt-social a { color: #fff; opacity: .85; }
.pnmt-search-btn { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 600; }
.pnmt-search-btn .pnmt-ico { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #fff; fill: var(--t-navy); }
.pnmt-search-btn:hover { color: #fff; }
.pnmt-burger { display: none; background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; }
.pnmt-burger .pnmt-ico { width: 32px; height: 32px; }

/* Nav */
.pnmt-nav { border-top: 1px solid rgba(255,255,255,.15); }
.pnmt-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.pnmt-menu li { position: relative; }
.pnmt-menu a { display: block; color: #fff; text-decoration: none; font-weight: 600; padding: 14px 20px; font-size: 1.05rem; border-bottom: 4px solid transparent; }
.pnmt-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.pnmt-menu .current-menu-item > a, .pnmt-menu .current_page_item > a { border-bottom-color: var(--t-accent); }
.pnmt-menu li:first-child a { padding-left: 0; }
.pnmt-menu .sub-menu { display: none; position: absolute; left: 0; top: 100%; background: #fff; min-width: 240px; list-style: none; margin: 0; padding: .5rem 0; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 50; }
.pnmt-menu li:hover > .sub-menu, .pnmt-menu li:focus-within > .sub-menu { display: block; }
.pnmt-menu .sub-menu a { color: var(--t-navy); padding: .5rem 1rem; border: 0; }

/* Breadcrumb e testata pagina */
.pnmt-bc { background: #fff; border-bottom: 1px solid var(--t-line); font-size: .9rem; padding: 12px 0; color: var(--t-muted); }
.pnmt-bc a { color: var(--t-blue); text-decoration: none; font-weight: 600; }
.pnmt-bc span[aria-hidden] { margin: 0 .35rem; color: #b1b1b3; }
.pnmt-pagehead { background: #fff; padding: 28px 0 24px; border-bottom: 1px solid var(--t-line); }
.pnmt-pagehead h1 { margin: 0; font-size: 2.4rem; color: var(--t-navy); }
.pnmt-lead { font-size: 1.15rem; color: var(--t-muted); margin: .5rem 0 0; max-width: 820px; }
.pnmt-content { padding-top: 32px; padding-bottom: 56px; }

/* Home – hero */
.pnmt-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--t-navy) 0%, #004a9f 60%, var(--t-blue) 100%); color: #fff; }
.pnmt-hero-bg { position: absolute; right: 0; top: 0; height: 100%; width: 60%; }
.pnmt-hero-in { position: relative; padding-top: 64px; padding-bottom: 72px; max-width: var(--t-max); }
.pnmt-kicker { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .85rem; color: var(--t-accent); margin: 0 0 .5rem; }
.pnmt-hero h1 { font-size: 3rem; margin: 0 0 1rem; max-width: 780px; }
.pnmt-hero .pnmt-lead { color: #e1ecf8; max-width: 680px; }
.pnmt-hero-search { display: flex; max-width: 640px; margin-top: 2rem; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pnmt-hero-search input { flex: 1; border: 0; padding: 1rem 1.2rem; font: 1.1rem "Titillium Web", sans-serif; color: var(--t-text); min-width: 0; }
.pnmt-hero-search button { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: var(--t-accent); color: var(--t-navy-deep); padding: 0 1.5rem; font: 700 1.05rem "Titillium Web", sans-serif; cursor: pointer; }

/* Home – sezioni */
.pnmt-section { padding: 56px 0; }
.pnmt-h2 { font-size: 2rem; color: var(--t-navy); margin: 0 0 1.5rem; position: relative; padding-bottom: .5rem; }
.pnmt-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; background: var(--t-accent); }
.pnmt-evidenza { background: #fff; }
.pnmt-figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pnmt-figure { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: var(--t-text); background: var(--t-bg); border-bottom: 4px solid var(--t-blue); padding: 1.4rem 1.5rem; transition: transform .15s, box-shadow .15s; }
.pnmt-figure:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,56,130,.12); color: var(--t-text); }
.pnmt-figure-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--t-navy); display: flex; align-items: center; justify-content: center; }
.pnmt-figure-ico .pnmt-ico { fill: #fff; width: 28px; height: 28px; }
.pnmt-figure-l { font-weight: 600; color: var(--t-muted); font-size: .95rem; }
.pnmt-figure strong { font-size: 1.65rem; color: var(--t-navy); font-variant-numeric: tabular-nums; line-height: 1.2; }
.pnmt-note { color: var(--t-muted); font-size: .95rem; margin-top: 1.2rem; }
.pnmt-prio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1rem; }
.pnmt-prio a { display: flex; gap: 1rem; align-items: flex-start; background: #fff; padding: 1rem 1.2rem; text-decoration: none; color: var(--t-text); border: 1px solid var(--t-line); height: 100%; }
.pnmt-prio a:hover { border-color: var(--t-blue); box-shadow: 0 6px 18px rgba(0,56,130,.1); }
.pnmt-prio-n { flex: none; width: 46px; height: 46px; background: var(--t-navy); color: #fff; font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.pnmt-prio-body { flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.pnmt-prio-body strong { color: var(--t-navy); line-height: 1.25; }
.pnmt-prio-bar { height: 6px; background: #e6ecf2; display: block; }
.pnmt-prio-bar i { display: block; height: 100%; background: var(--t-blue); }
.pnmt-prio-body small { color: var(--t-muted); font-size: .85rem; }
.pnmt-quick { background: #fff; }
.pnmt-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pnmt-quick-grid a { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; text-decoration: none; color: var(--t-text); border: 1px solid var(--t-line); border-top: 4px solid var(--t-navy); background: #fff; }
.pnmt-quick-grid a:hover { border-top-color: var(--t-accent); box-shadow: 0 10px 24px rgba(0,56,130,.12); }
.pnmt-quick-grid .pnmt-ico { width: 40px; height: 40px; fill: var(--t-blue); }
.pnmt-quick-grid strong { font-size: 1.25rem; color: var(--t-navy); }
.pnmt-quick-grid span { color: var(--t-muted); font-size: .95rem; }
.pnmt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.pnmt-card { background: #fff; padding: 1.25rem; border: 1px solid var(--t-line); }
.pnmt-card h2 { font-size: 1.3rem; margin: .3rem 0; }
.pnmt-card-date { font-size: .85rem; color: var(--t-muted); font-weight: 600; }
.pnmt-more { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; text-decoration: none; }
.pnmt-more .pnmt-ico { width: 18px; height: 18px; }

/* Footer */
.pnmt-footer { background: var(--t-navy-deep); color: #e1ecf8; padding: 48px 0 24px; font-size: .95rem; }
.pnmt-footer a { color: #fff; }
.pnmt-footer-brand { border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 1.25rem; margin-bottom: 1.5rem; }
.pnmt-footer-brand strong { display: block; font-size: 1.8rem; color: #fff; }
.pnmt-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.pnmt-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: .5rem; }
.pnmt-footer ul { list-style: none; margin: 0; padding: 0; }
.pnmt-footer li { margin: .35rem 0; }
.pnmt-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; color: #a9bdd4; }
.pnmt-legal { display: flex; gap: 1.25rem; }

/* Contenuti generici */
.pnmt-content table:not(.pnm-table) { border-collapse: collapse; width: 100%; }
.pnmt-content > p, .pnmt-content > ul, .pnmt-content > ol, .pnmt-content > h2 { max-width: 900px; }

@media (max-width: 1100px) {
  .pnmt-figures, .pnmt-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .pnmt-footer-cols { grid-template-columns: repeat(2, 1fr); }
  .pnmt-social { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .pnmt-burger { display: block; }
  .pnmt-header-row { padding: 14px 16px; }
  .pnmt-logo { width: 48px; height: 48px; }
  .pnmt-brand-text strong { font-size: 1.5rem; }
  .pnmt-brand-text span { font-size: .85rem; }
  .pnmt-search-btn span, .pnmt-loghi { display: none; }
  .pnmt-nav { display: none; }
  .pnmt-nav.is-open { display: block; }
  .pnmt-menu { flex-direction: column; }
  .pnmt-menu li:first-child a { padding-left: 20px; }
  .pnmt-hero h1 { font-size: 2.1rem; }
  .pnmt-figures, .pnmt-quick-grid, .pnmt-footer-cols { grid-template-columns: 1fr; }
  .pnmt-prio { grid-template-columns: 1fr; }
  .pnmt-pagehead h1 { font-size: 1.8rem; }
  .pnmt-ente { font-size: .8rem; }
}
