/* Monete d'Italia - nuovo stile (novembre 2026)
   Template: stile/main_nuovo.html - logica: stile/nuovo_stile.php
   Se modifichi questo file incrementa $tags['nt_ver'] in nuovo_stile.php */

/* ---------- font ospitati sul sito (variabili, licenza OFL) ---------- */
@font-face { font-family: 'Bitter'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/stile/fonts/Bitter-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bitter'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/stile/fonts/Bitter-700-latin.woff2) format('woff2');
  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: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/stile/fonts/SourceSans3-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/stile/fonts/SourceSans3-400-latin.woff2) format('woff2');
  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: 'Source Sans 3'; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(/stile/fonts/SourceSans3-400i-latin.woff2) format('woff2'); }

/* ---------- colori e misure ---------- */
:root {
  --bg: #1a0806;
  --bg-2: #140504;
  --surface: #251009;
  --surface-2: #2f150d;
  --surface-3: #3a1b11;
  --line: #4b2a1b;
  --line-soft: #3a1f15;
  --text: #f0e5d0;
  --muted: #c2ab8c;
  --faint: #8f7a62;
  --gold: #d9b064;
  --gold-hi: #f2d398;
  --gold-lo: #a07a36;
  --link: #ecc77f;
  --red: #c8342e;
  --green: #3f8a4a;
  --radius: 12px;
  --radius-s: 8px;
  --side: 290px;
  --wrap: 1260px;
  --sans: 'Source Sans 3', 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Bitter', Georgia, 'Times New Roman', serif;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body.nt {
  margin: 0; min-height: 100vh;
  background: var(--bg) radial-gradient(1200px 500px at 70% -100px, #3a130c 0%, transparent 70%) no-repeat;
  color: var(--text); font: 400 17px/1.6 var(--sans); text-align: left;
}
.nt img { max-width: 100%; height: auto; border: 0; }
.nt a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.nt a:hover { color: var(--gold-hi); }
.nt a:focus-visible, .nt button:focus-visible, .nt input:focus-visible, .nt summary:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-radius: 4px; }
.nt-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.nt-skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1a0806 !important; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.nt-skip:focus { left: 8px; }
.nt-n { display: inline-block; min-width: 1.6em; padding: 0 .45em; border-radius: 99px; background: var(--surface-3); color: var(--muted); font: 600 .75rem/1.5 var(--sans); text-align: center; vertical-align: middle; }

/* ---------- testata ---------- */
.nt-header { background: linear-gradient(180deg, #2c0e08 0%, #1d0805 100%); position: relative; }
.nt-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, #6e4a1a, #e8c67c 30%, #f6e2a8 50%, #e8c67c 70%, #6e4a1a); }
.nt-header-in { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.nt-logo { display: block; flex: 0 0 auto; line-height: 0; }
.nt-logo img { height: 58px; width: auto; border-radius: 6px; }
.nt-search { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 1 440px; position: relative; }
.nt-search input[type=search] {
  flex: 1; min-width: 0; height: 42px; padding: 0 46px 0 14px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 400 1rem var(--sans);
}
.nt-search input[type=search]::placeholder { color: var(--faint); }
.nt-search input[type=search]:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(217,176,100,.2); }
.nt-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 99px; border: 0; background: var(--gold); color: #2a0d07; cursor: pointer; display: grid; place-items: center; }
.nt-search button:hover { background: var(--gold-hi); }
.nt-search .nt-chk { position: absolute; top: 100%; left: 14px; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.nt-menu-btn { display: none; }
.nt-topnav { background: rgba(0,0,0,.18); border-top: 1px solid rgba(255,255,255,.04); }
.nt-topnav .nt-wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nt-topnav .nt-wrap::-webkit-scrollbar { display: none; }
.nt-topnav a { flex: 0 0 auto; padding: 10px 12px; color: var(--muted); text-decoration: none; font: 600 .86rem/1.2 var(--sans); letter-spacing: .02em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.nt-topnav a:hover { color: var(--gold-hi); }
.nt-topnav a[aria-current] { color: var(--gold-hi); border-bottom-color: var(--gold); }

/* ---------- impaginazione ---------- */
.nt-layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-areas: "side main"; gap: 32px; padding-top: 24px; padding-bottom: 48px; }
.nt-main { grid-area: main; min-width: 0; }
.nt-side { grid-area: side; min-width: 0; }

/* ---------- catalogo (colonna sinistra) ---------- */
.nt-cat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 6px 0 10px; }
.nt-cat-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 6px; }
.nt-cat-title { font: 700 1.05rem var(--serif); color: var(--gold-hi); }
.nt-cat-close { display: none; }
.nt-grp { border-top: 1px solid var(--line-soft); }
.nt-grp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 16px; font: 700 .8rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); user-select: none; }
.nt-grp > summary::-webkit-details-marker { display: none; }
.nt-grp > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(-45deg); transition: transform .15s; }
.nt-grp[open] > summary::after { transform: rotate(45deg); }
.nt-grp > summary:hover { background: var(--surface-2); }
.nt-cat ul { list-style: none; margin: 0; padding: 0; }
.nt-grp > ul { padding: 0 8px 8px; }
.nt-cat li { margin: 0; }
.nt-cat a { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.3; }
.nt-cat a:hover { background: var(--surface-2); color: var(--gold-hi); }
.nt-cat .nt-flag img { width: 18px; height: auto; display: block; border-radius: 2px; }
.nt-cat li.on > a { color: var(--gold-hi); font-weight: 600; }
.nt-cat a[aria-current] { background: var(--surface-3); box-shadow: inset 3px 0 0 var(--gold); }
.nt-subs { margin: 2px 0 6px 17px !important; border-left: 1px solid var(--line); padding-left: 6px !important; }
.nt-subs a { font-size: .9rem; color: var(--muted); padding: 4px 8px; }
.nt-coins { margin: 2px 0 6px 10px !important; border-left: 1px dashed var(--line); padding-left: 6px !important; }
.nt-coins a { font-size: .84rem; color: var(--muted); padding: 3px 8px; }
.nt-cat-years { margin: 8px 16px 2px; justify-content: center; border: 1px solid var(--line) !important; border-radius: 99px !important; font-weight: 600; color: var(--gold) !important; }
.nt-cat a + a[href^="/admin/admin.php"], .nt-cat li > a[href*="page=md"] { display: inline; padding: 0 4px; font-size: .7rem; color: var(--green); }

/* ---------- titoli e percorso ---------- */
.nt-crumbs { font-size: .85rem; color: var(--faint); margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.nt-crumbs a { color: var(--muted); text-decoration: none; }
.nt-crumbs a:hover { color: var(--gold-hi); text-decoration: underline; }
.nt-head { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nt-kicker { font: 600 .8rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.nt-head h1 { margin: 0; font: 700 clamp(1.55rem, 1.1rem + 1.6vw, 2.25rem)/1.2 var(--serif); color: var(--gold-hi); letter-spacing: -.005em; text-wrap: balance; }
.nt-head h1 img { height: .8em; width: auto; vertical-align: baseline; margin-right: .15em; border-radius: 2px; }

/* ---------- testo delle pagine (contenuti dal database) ---------- */
.nt-prose { font-size: 1.04rem; color: var(--text); overflow-wrap: break-word; }
.nt-prose p, .nt-prose .markdown_p { margin: 0 0 1em; max-width: 78ch; }
.nt-prose h2, .nt-prose .markdown_h2 { font: 700 1.45rem/1.25 var(--serif); color: var(--gold-hi); letter-spacing: 0; margin: 1.8em 0 .6em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.nt-prose h3, .nt-prose .markdown_h3 { font: 700 1.18rem/1.3 var(--serif); color: var(--gold); letter-spacing: 0; margin: 1.6em 0 .5em; }
.nt-prose h4, .nt-prose .markdown_h4, .nt-prose h5, .nt-prose .markdown_h5 { font: 700 1.02rem/1.3 var(--sans); color: var(--gold); letter-spacing: 0; margin: 1.3em 0 .4em; }
.nt-prose ul, .nt-prose ol { padding-left: 1.4em; max-width: 78ch; }
.nt-prose li { margin: .2em 0; }
.nt-prose strong, .nt-prose b { color: #fff4dc; }
.nt-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.nt-prose blockquote { margin: 1em 0; padding: .6em 1em; border-left: 3px solid var(--gold-lo); background: var(--surface); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.nt-prose .descr_style { font-size: inherit; color: inherit; }
.nt-prose > .descr_style > br:first-child { display: none; }
.nt-prose font { font-size: inherit !important; font-family: inherit !important; }
.nt-sez-t { font: 700 1.3rem/1.25 var(--serif); color: var(--gold-hi); margin: 36px 0 12px; padding-bottom: .3em; border-bottom: 1px solid var(--line); }

/* tabelle dei dati (tirature, rarità...) */
.nt-tw { overflow-x: auto; margin: 10px 0 22px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); -webkit-overflow-scrolling: touch; }
.nt-prose table.tbl700 { width: 100%; margin: 0; border: 0 !important; border-collapse: collapse; font: 400 .93rem/1.4 var(--sans); color: var(--text); font-variant-numeric: tabular-nums; }
.nt-prose table.tbl700 td, .nt-prose table.tbl700 tr { border: 0; }
.nt-prose table.tbl700 td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; vertical-align: top; }
.nt-prose table.tbl700 b { font-size: inherit; }
.nt-prose table.tbl700 tr:nth-child(even) td { background: rgba(255,255,255,.025); }
.nt-prose table.tbl700 tr:hover td { background: rgba(217,176,100,.08); }
.nt-prose table.tbl700 tr.nt-th td { background: var(--surface-3); color: var(--gold-hi); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.nt-prose table.tbl700 tr.nt-th b { color: inherit; }
.nt-prose table.tbl700 tr:last-child td { border-bottom: 0; }
.nt-prose table.tbl700 span[style*="dd3333"] { display: inline-block; color: #fff !important; background: var(--red); border-radius: 4px; padding: 0 6px; font-size: .8rem; line-height: 1.5; font-weight: 700 !important; }
.nt-tw.nt-scroll::before { content: "\2194  Scorri di lato per vedere tutte le colonne"; position: sticky; left: 0; display: block; padding: 5px 10px; font-size: .78rem; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line-soft); }
.nt-tw.nt-scroll.nt-end::before { content: "\2194  Scorri di lato per tornare all'inizio"; }
.nt-tw.nt-scroll td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface-2) !important; box-shadow: 1px 0 0 var(--line); }
.nt-tw.nt-scroll tr.nt-th td:first-child { background: var(--surface-3) !important; }
/* tabelle "di layout" vecchie dentro i testi */
.nt-prose table:not(.tbl700) { max-width: 100%; }
.nt-prose table[style*="width:70%"] { width: 100% !important; max-width: 520px; }

/* ---------- elenchi risultati (ricerca, ultime inserite) ---------- */
.nt-prose .bg_alpha1 { width: auto !important; margin: 0 0 12px !important; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); min-height: 0; transition: border-color .15s; }
.nt-prose .bg_alpha1:hover { border-color: var(--gold-lo); }
.nt-prose .bg_alpha1 > table { width: 100%; }
.nt-prose .bg_alpha1 td { vertical-align: middle; }
.nt-prose .bg_alpha1 img { width: 76px; height: 76px; object-fit: contain; border-radius: 50%; background: var(--bg-2); margin-left: 6px; }
.nt-prose a.title, .nt-prose span.title { font: 700 1.12rem/1.3 var(--serif); color: var(--gold-hi); text-decoration: none; }
.nt-prose a.title:hover span.title { text-decoration: underline; }
.nt-prose .snippet { display: block; margin-top: 4px; font: 400 .9rem/1.5 var(--sans); color: var(--muted); }
.nt-prose .snippet b { color: var(--text); }
.nt-prose a.lk2 { color: var(--link); font-size: inherit; }
.nt-prose a[href^="search.php?ksearch"] span { color: var(--gold) !important; font-size: 1rem !important; }
.nt-prose a[href^="search.php?ksearch"] { display: inline-block; margin: 8px 12px 0 0; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; }

/* anni di conio: griglia di pulsanti */
.nt-annate .nt-prose table.tbl700 { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 !important; }
.nt-annate .nt-prose table.tbl700 tbody, .nt-annate .nt-prose table.tbl700 tr { display: contents; }
.nt-annate .nt-prose table.tbl700 td { display: block; padding: 0; border: 0; background: none !important; }
.nt-annate .nt-prose table.tbl700 td:empty { display: none; }
.nt-annate .nt-prose table.tbl700 a { display: block; min-width: 66px; padding: 7px 12px; text-align: center; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; font-variant-numeric: tabular-nums; }
.nt-annate .nt-prose table.tbl700 a:hover { border-color: var(--gold); background: var(--surface-2); }

/* ---------- scheda moneta ---------- */
.nt-coin-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 20px; align-items: start; margin-bottom: 22px; }
.nt-coin-top.nt-wide { grid-template-columns: 1fr; }
.nt-faces { margin: 0; padding: 18px; background: radial-gradient(circle at 50% 40%, #33170e 0%, var(--bg-2) 75%); border: 1px solid var(--line-soft); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.nt-wide .nt-faces { grid-template-columns: 1fr; }
.nt-faces > a { display: block; line-height: 0; border-radius: 8px; }
.nt-faces img { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 14px rgba(0,0,0,.55)); transition: transform .2s; }
.nt-faces > a:hover img { transform: scale(1.03); }
.nt-faces figcaption { grid-column: 1 / -1; text-align: center; font-size: .85rem; color: var(--faint); line-height: 1.4; }
.nt-facts { margin: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 6px 16px; }
.nt-facts > div { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.nt-facts > div:last-child { border-bottom: 0; }
.nt-facts dt { font: 600 .74rem/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.nt-facts dd { margin: 2px 0 0; font-size: 1rem; }
.nt-facts dd small { color: var(--faint); }
.nt-facts code { font-size: .9rem; color: var(--muted); }
.nt-badge { display: inline-block; padding: 1px 9px; margin-right: 4px; border-radius: 99px; background: var(--gold); color: #2a0d07 !important; font-weight: 700; font-size: .85rem; text-decoration: none; }
.nt-badge:hover { background: var(--gold-hi); }
.nt-coin-desc { margin-top: 8px; }
.nt-snav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 8px; }
.nt-snav a { display: block; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); text-decoration: none; color: var(--text); line-height: 1.3; }
.nt-snav a:hover { border-color: var(--gold-lo); color: var(--gold-hi); }
.nt-snav a.next { text-align: right; }
.nt-snav small { display: block; color: var(--faint); font-size: .78rem; margin-bottom: 2px; }

/* ---------- griglie di monete (serie, ultime inserite) ---------- */
.nt-serie { margin: 0 0 26px; }
.nt-serie h2 { font: 700 1.2rem/1.3 var(--serif); color: var(--gold-hi); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nt-more { margin-left: auto; font: 600 .9rem var(--sans); }
.nt-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.nt-cards li { margin: 0; }
.nt-cards a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); text-decoration: none; color: var(--text); overflow: hidden; transition: border-color .15s, transform .15s; }
.nt-cards a:hover { border-color: var(--gold-lo); transform: translateY(-2px); color: var(--gold-hi); }
.nt-cc-img { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 12px 10px; background: radial-gradient(circle at 50% 45%, #33170e 0%, var(--bg-2) 80%); aspect-ratio: 2 / 1; }
.nt-cc-img img { width: 48%; height: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.nt-cc-img.nt-wide img { width: 100%; }
.nt-cc-img.nt-noimg { background: var(--bg-2); }
.nt-cc-name { padding: 8px 12px 10px; font-size: .92rem; line-height: 1.3; }
.nt-cc-name small { display: block; color: var(--faint); font-size: .78rem; margin-top: 2px; }
.nt-cards li > a + a { display: inline; border: 0; background: none; padding: 0 8px; font-size: .75rem; color: var(--green); }

/* ---------- elenco sottosezioni ---------- */
.nt-chips { margin: 0 0 24px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.nt-chips-t { display: block; font: 600 .78rem/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.nt-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nt-chips a { display: block; padding: 5px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .92rem; line-height: 1.35; }
.nt-chips a:hover { border-color: var(--gold); color: var(--gold-hi); }

/* ---------- homepage ---------- */
.nt-hero { position: relative; overflow: hidden; margin: 0 0 22px; padding: 34px 32px 28px; border-radius: var(--radius); border: 1px solid var(--line-soft);
  background: linear-gradient(100deg, rgba(26,8,6,.97) 0%, rgba(26,8,6,.88) 45%, rgba(26,8,6,.35) 100%), url(/immagini/loghi/logo.jpg) left center / cover no-repeat; }
.nt-hero h1 { margin: 0 0 6px; font: 800 clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem)/1.1 var(--serif); color: var(--gold-hi); }
.nt-hero p { margin: 0 0 18px; max-width: 54ch; color: var(--text); font-size: 1.08rem; }
.nt-hero-search { display: flex; gap: 8px; max-width: 560px; }
.nt-hero-search input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--gold-lo); background: rgba(14,4,3,.85); color: var(--text); font: 400 1.05rem var(--sans); }
.nt-hero-search input:focus { outline: none; border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(217,176,100,.25); }
.nt-hero-search button { height: 50px; padding: 0 24px; border: 0; border-radius: 99px; background: var(--gold); color: #2a0d07; font: 700 1rem var(--sans); cursor: pointer; }
.nt-hero-search button:hover { background: var(--gold-hi); }
.nt-hero-alt { display: inline-block; margin-top: 12px; font-size: .95rem; }
.nt-hcards { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.nt-hcards a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 12px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.nt-hcards a:hover { border-color: var(--gold-lo); transform: translateY(-2px); }
.nt-hc-img { flex: 0 0 84px; height: 72px; display: grid; place-items: center; background: var(--bg-2); border-radius: var(--radius-s); overflow: hidden; }
.nt-hc-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nt-hc-t b { display: block; font: 700 1.06rem/1.25 var(--serif); color: var(--gold-hi); }
.nt-hc-t small { display: block; margin-top: 3px; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.nt-home .nt-prose table[style*="width:70%"] { display: none; }
.nt-home .nt-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* ---------- amministrazione ---------- */
.nt-adm { margin-bottom: 16px; background: #1b1309; border: 1px solid #5b4720; border-radius: var(--radius); overflow: hidden; }
.nt-adm > summary { cursor: pointer; list-style: none; padding: 10px 16px; font: 700 .8rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #f0d58c; background: #2a1e0c; }
.nt-adm > summary::-webkit-details-marker { display: none; }
.nt-adm ul { list-style: none; margin: 0; padding: 8px; }
.nt-adm a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .92rem; }
.nt-adm a:hover { background: #2a1e0c; color: var(--gold-hi); }
.nt-adm li.pri a { color: #f0d58c; font-weight: 600; }
.nt-adm li.warn a { color: #e3a07a; }
.nt-editbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 10px; border: 1px dashed #6d5522; border-radius: var(--radius-s); background: #1b1309; font-size: .9rem; }
.nt-editbar span { font: 700 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #a8925a; }
.nt-editbar a { padding: 4px 12px; border-radius: 99px; background: #3a2b10; color: #f6dd96; text-decoration: none; font-weight: 600; }
.nt-editbar a:hover { background: #4d3a16; }
.nt-chk input { vertical-align: middle; margin: 0 4px 0 0; }

/* ---------- annunci ---------- */
.nt-ad { margin: 24px 0; min-width: 0; overflow: hidden; }
.nt-ad:empty { display: none; }
.nt-ad-side { margin: 16px 0; }
.nt-ad-coin { margin: 0 0 22px; }

/* ---------- piè di pagina ---------- */
.nt-footer { margin-top: 24px; background: #120403; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.nt-footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; padding-bottom: 26px; }
.nt-footer b { color: var(--gold-hi); font-family: var(--serif); }
.nt-footer small { color: var(--faint); }
.nt-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.nt-footer nav a { color: var(--muted); }
.nt-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40; }
.nt-scrim[hidden] { display: none; }

/* ---------- tablet e telefono ---------- */
@media (max-width: 960px) {
  body.nt { font-size: 17px; }
  .nt-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side"; gap: 8px; padding-top: 16px; }
  .nt-header-in { flex-wrap: wrap; gap: 10px 12px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .nt-logo img { height: 36px; }
  .nt-search .nt-chk { display: none; }
  .nt-menu-btn { order: 3; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--gold-lo); background: var(--surface-2); color: var(--gold-hi); font: 600 .95rem var(--sans); cursor: pointer; margin-left: auto; }
  .nt-burger, .nt-burger::before, .nt-burger::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
  .nt-burger::before { position: absolute; top: -5px; }
  .nt-burger::after { position: absolute; top: 5px; }
  .nt-logo { order: 1; }
  .nt-search { order: 4; flex: 1 1 100%; margin-left: 0; }
  .nt-topnav a { padding: 9px 10px; font-size: .8rem; }
  .nt-side .nt-cat { margin-top: 24px; }
  /* catalogo a scomparsa */
  body.nt-cat-open { overflow: hidden; }
  body.nt-cat-open .nt-cat { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); margin: 0; border-radius: 0 var(--radius) var(--radius) 0; overflow-y: auto; box-shadow: 8px 0 30px rgba(0,0,0,.6); overscroll-behavior: contain; }
  body.nt-cat-open .nt-cat-head { position: sticky; top: 0; background: var(--surface); z-index: 1; border-bottom: 1px solid var(--line-soft); }
  body.nt-cat-open .nt-cat-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
  .nt-cat a { padding: 8px 10px; }
  .nt-coin-top { grid-template-columns: 1fr; }
  .nt-hero { padding: 22px 18px 20px; background: linear-gradient(180deg, rgba(26,8,6,.92), rgba(26,8,6,.97)), url(/immagini/loghi/logo.jpg) center / cover no-repeat; }
}
@media (max-width: 560px) {
  .nt-wrap { padding: 0 14px; }
  .nt-faces { padding: 12px; gap: 10px; }
  .nt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nt-cc-name { font-size: .86rem; padding: 7px 9px 9px; }
  .nt-hero-search { flex-direction: column; }
  .nt-hero-search button { height: 46px; }
  .nt-snav { grid-template-columns: 1fr; }
  .nt-snav a.next { text-align: left; }
  .nt-prose .bg_alpha1 > table > tbody > tr { display: flex; flex-direction: column-reverse; }
  .nt-prose .bg_alpha1 td[style*="text-align: right"] { text-align: left !important; }
  .nt-prose .bg_alpha1 img { width: 64px; height: 64px; margin: 0 6px 6px 0; }
  .nt-head h1 { font-size: 1.5rem; }
  .nt-footer-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .nt *, .nt *::before, .nt *::after { transition: none !important; } }
