/* AUDIOfanatic - tema grafico 2026
   Idea: il frontale di un apparecchio hi-fi. Fondo alluminio, fascia in noce come i mobili
   delle casse, ogni sezione ha la sua "spia" colorata (i colori storici del sito).
   Testi in Lora (OFL, ospitato sul sito), comandi con i caratteri di sistema. */

@font-face { font-family: "Lora"; src: url("/risorse/font/Lora-Variable.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/risorse/font/Lora-Italic-Variable.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --alluminio: #e6e9eb;
  --alluminio-2: #d6dbdf;
  --foglio: #ffffff;
  --grafite: #20262b;
  --grafite-2: #56616b;
  --linea: #d3d8dc;
  --noce: #5a3a28;
  --noce-scuro: #3e271b;
  --noce-testo: #f2e9e1;
  --ambra: #e3a21a;
  --link: #1b5a96;
  --sez: #5a3a28;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --testo: "Lora", Georgia, "Times New Roman", serif;
  --raggio: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--alluminio); color: var(--grafite); font: 17px/1.6 var(--testo); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: #0f3d68; }
:focus-visible { outline: 3px solid var(--ambra); outline-offset: 2px; }
::selection { background: #f6d98f; }
.nascosto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta { position: absolute; left: 8px; top: -60px; background: var(--ambra); color: #000; padding: 8px 14px; font: 600 15px var(--ui); z-index: 50; border-radius: 4px; }
.salta:focus { top: 8px; }

/* ---------- testata ---------- */
.testata { background: var(--foglio); border-bottom: 1px solid var(--linea); }
.testata-riga { max-width: 1480px; margin: 0 auto; padding: 14px 20px 12px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.marchio { display: block; flex: none; line-height: 0; }
.marchio img { width: 220px; height: auto; }
.motto { margin: 0; font: italic 400 16px/1.3 var(--testo); color: var(--grafite-2); }
.cerca { margin-left: auto; display: flex; min-width: 0; }
.cerca input { width: 290px; max-width: 100%; font: 15px var(--ui); padding: 9px 12px; border: 1px solid #b9c1c7; border-right: 0; border-radius: var(--raggio) 0 0 var(--raggio); background: #f7f8f9; color: var(--grafite); }
.cerca input:focus { background: #fff; }
.cerca button { font: 600 15px var(--ui); padding: 9px 14px; border: 1px solid var(--noce); background: var(--noce); color: var(--noce-testo); border-radius: 0 var(--raggio) var(--raggio) 0; cursor: pointer; }
.cerca button:hover { background: var(--noce-scuro); }
.menu-apri { display: none; }

/* ---------- impianto: barra laterale delle sezioni + colonna dei contenuti ---------- */
.impianto { max-width: 1480px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 0 26px; align-items: start; }
.colonna { min-width: 0; }
.barra { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; overflow-x: hidden; padding: 20px 18px 24px 0; scrollbar-width: thin; }
.barra-titolo { margin: 0 0 10px 2px; font: 600 13px/1.2 var(--ui); color: var(--grafite-2); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.menu a { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px; padding: 5px 10px 5px 5px; background: var(--foglio); color: var(--grafite); text-decoration: none; font: 600 14.5px/1.2 var(--ui); border: 1px solid var(--linea); border-left: 4px solid var(--c); border-radius: var(--raggio); transform-origin: left center; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; position: relative; }
.tasto-icona { width: 44px; height: 34px; border-radius: 4px; background: var(--alluminio-2) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.menu a:hover, .menu a:focus-visible { transform: scale(1.08); z-index: 2; color: var(--grafite); border-color: var(--c); box-shadow: 0 8px 18px rgba(32, 38, 43, .18); }
.menu a[aria-current] { background: var(--noce); color: var(--noce-testo); border-color: var(--noce); border-left-color: var(--c); }
.menu a[aria-current]:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .menu a { transition: none; } .menu a:hover, .menu a:focus-visible { transform: none; } }

/* ---------- percorso ---------- */
.percorso { padding: 16px 0 0; }
.percorso ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font: 14px var(--ui); color: var(--grafite-2); }
.percorso li + li::before { content: "/"; margin: 0 8px; color: #9aa4ac; }
.percorso a { color: var(--grafite-2); }
.percorso [aria-current] { color: var(--grafite); }

/* ---------- foglio di lettura ---------- */
.foglio { max-width: 960px; margin: 14px 0 40px; background: var(--foglio); border-top: 5px solid var(--sez); border-radius: 0 0 var(--raggio) var(--raggio); padding: 34px 48px 44px; box-shadow: 0 1px 0 var(--alluminio-2); }
.foglio.largo { max-width: none; }
.titolo { font: 700 clamp(2rem, 1.4rem + 2.4vw, 3.1rem)/1.08 var(--testo); letter-spacing: -.012em; margin: 0 0 .35em; color: var(--grafite); text-wrap: balance; }
.sottotitolo { font: italic 400 1.1rem/1.4 var(--testo); color: var(--grafite-2); margin: -.2em 0 1.2em; }
.foglio h2 { font: 700 1.6rem/1.2 var(--testo); margin: 1.6em 0 .5em; }
.foglio h3 { font: 700 1.25rem/1.3 var(--testo); margin: 1.4em 0 .4em; }

/* contenuti originali delle pagine (layout GoLive) */
.af-orig { font-size: 17px; }
.af-orig font { font-family: inherit; }
.af-orig font[size="1"] { font-size: 13px; }
.af-orig font[size="2"] { font-size: 15px; }
.af-orig font[size="3"] { font-size: 17px; }
.af-orig font[size="4"] { font-size: 20px; }
.af-orig font[size="5"] { font-size: 24px; }
.af-orig font[size="6"] { font-size: 30px; }
.af-orig font[size="7"] { font-size: 38px; }
.af-orig table { border-collapse: collapse; max-width: 100%; }
.af-orig table[cool] { margin: 0 auto; }
.af-orig table[cool], .af-orig table[cool] tr, .af-orig table[cool] td { height: auto !important; }
.af-orig td { vertical-align: top; }
.af-orig table:not([cool]) td { padding: 2px 4px; }
.af-orig table[border="4"], .af-orig table[border="2"], .af-orig table[border="1"] { border: 1px solid var(--linea); }
.af-orig table[border] td { border-color: var(--linea); }
.af-orig img { border-radius: 3px; }
.af-orig a img { border: 0; }
.af-orig img.ingrandibile { cursor: zoom-in; }
.af-orig hr { border: 0; border-top: 1px solid var(--linea); margin: 1.4em 0; width: auto !important; }
.af-orig p { margin: 0 0 .9em; }
.af-orig blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid var(--linea); }
.af-orig center { text-align: center; }
.af-orig spacer, .af-orig csgroup { display: none; }
.af-tabella { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- navigazione tra le pagine di un progetto ---------- */
.progetto { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--linea); font-family: var(--ui); }
.progetto h2 { font: 600 15px var(--ui); color: var(--grafite-2); margin: 0 0 10px; }
.progetto ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.progetto ol a, .progetto ol span { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--linea); border-radius: var(--raggio); text-decoration: none; font: 600 15px var(--ui); color: var(--grafite); }
.progetto ol a:hover { border-color: var(--sez); }
.progetto ol span { background: var(--grafite); border-color: var(--grafite); color: #fff; }
.progetto .avanti-indietro { display: flex; justify-content: space-between; gap: 12px; }
.bottone { display: inline-block; padding: 10px 16px; border-radius: var(--raggio); border: 1px solid var(--noce); background: var(--noce); color: var(--noce-testo); font: 600 15px var(--ui); text-decoration: none; }
.bottone:hover { background: var(--noce-scuro); color: #fff; }
.bottone.chiaro { background: #fff; color: var(--noce); }
.bottone.chiaro:hover { background: #f6f1ec; color: var(--noce-scuro); }

/* ---------- schede dei progetti (pagine indice) ---------- */
.intro { font-size: 1.12rem; max-width: 62ch; color: var(--grafite-2); margin: 0 0 1.4em; }
.schede { list-style: none; margin: 8px 0 34px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.schede a { display: block; text-decoration: none; color: var(--grafite); border: 1px solid var(--linea); border-radius: var(--raggio); overflow: hidden; background: #fff; height: 100%; }
.schede a:hover { border-color: var(--sez); }
.schede a:hover .scheda-nome { color: var(--link); }
.scheda-foto { display: block; aspect-ratio: 4 / 3; background: var(--alluminio) center / cover no-repeat; border-bottom: 1px solid var(--linea); }
.scheda-foto.vuota { background-image: linear-gradient(135deg, var(--alluminio), var(--alluminio-2)); }
.scheda-nome { display: block; padding: 10px 12px 12px; font: 700 1.05rem/1.25 var(--testo); }

/* ---------- home page ---------- */
.home-apertura { margin: 0; padding: 34px 0 10px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.home-apertura h1 { font: 700 clamp(2.4rem, 1.5rem + 3.4vw, 4.2rem)/1.02 var(--testo); letter-spacing: -.02em; margin: 0 0 .35em; text-wrap: balance; }
.home-apertura p { font-size: 1.18rem; color: var(--grafite-2); margin: 0 0 1em; max-width: 46ch; }
.home-apertura .aggiornato { font: 14px var(--ui); color: var(--grafite-2); }
.home-foto { margin: 0; border-radius: var(--raggio); overflow: hidden; border: 6px solid #fff; box-shadow: 0 1px 0 var(--alluminio-2); background: #fff; }
.home-foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.home-foto figcaption { font: 13px var(--ui); color: var(--grafite-2); padding: 8px 4px 2px; }

.frontale { margin: 26px 0 0; }
.frontale h2, .home-blocchi h2 { font: 700 1.5rem var(--testo); margin: 0 0 14px; }
.tasti { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; background: linear-gradient(180deg, #f1f3f4, #dde2e5); border: 1px solid #c8cfd4; border-radius: 10px; box-shadow: inset 0 1px 0 #fff; }
.tasti a { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; background: #fff; border: 1px solid #c8cfd4; border-radius: var(--raggio); text-decoration: none; color: var(--grafite); position: relative; }
.tasti a::after { content: ""; position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 0 6px var(--c); }
.tasti a:hover { border-color: var(--c); }
.tasto-foto { width: 74px; height: 58px; border-radius: 4px; background: var(--alluminio) center / cover no-repeat; }
.tasto-nome { display: block; font: 700 1.05rem/1.2 var(--testo); padding-right: 14px; overflow-wrap: break-word; }
.tasto-conta { display: block; font: 13.5px var(--ui); color: var(--grafite-2); margin-top: 2px; }

.home-blocchi { margin: 36px 0 46px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; }
.riquadro { background: #fff; border-radius: var(--raggio); padding: 22px 24px; border-top: 4px solid var(--c, var(--noce)); }
.riquadro h2 { font-size: 1.3rem; margin-bottom: 10px; }
.riquadro ul { list-style: none; padding: 0; margin: 0; }
.riquadro li { padding: 9px 0; border-top: 1px solid var(--linea); }
.riquadro li:first-child { border-top: 0; }
.riquadro small { display: block; font: 13.5px var(--ui); color: var(--grafite-2); }
.home-link { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-link a.blocco { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--raggio); padding: 14px; text-decoration: none; color: var(--grafite); border: 1px solid transparent; }
.home-link a.blocco:hover { border-color: var(--noce); }
.home-link a.blocco img { width: 64px; height: auto; flex: none; border-radius: 3px; }
.home-link b { display: block; font: 700 1.05rem/1.25 var(--testo); }
.home-link span { font: 13.5px/1.35 var(--ui); color: var(--grafite-2); }

/* riquadri "nuovi contributi" inseriti dal backoffice */
.af-box { margin: 18px 0; border: 1px solid var(--linea); border-left: 5px solid var(--sez); border-radius: var(--raggio); background: #fbfbfc; }
.af-box-titolo { font: 600 15px var(--ui); padding: 10px 14px 0; color: var(--grafite); background: none !important; }
.af-box ul { list-style: none; margin: 0; padding: 6px 14px 10px; }
.af-box li { padding: 6px 0; border-bottom: 1px solid var(--linea); }
.af-box li:last-child { border-bottom: 0; }
.af-box a { font-weight: 600; }
.af-box small { color: var(--grafite-2); font: 13.5px var(--ui); }
.af-box-tutti { padding: 0 14px 10px; font: 14px var(--ui); }
.riquadro .af-box { border: 0; background: none; margin: 0; }
.riquadro .af-box-titolo { display: none; }
.riquadro .af-box ul { padding: 0; }

/* elenchi di contributi (pagine PHP) */
.elenco { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 12px; }
.elenco a { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; text-decoration: none; color: var(--grafite); border: 1px solid var(--linea); border-radius: var(--raggio); padding: 8px; }
.elenco a:hover { border-color: var(--sez); }
.elenco img, .elenco .vuota { width: 120px; height: 84px; object-fit: cover; border-radius: 4px; background: var(--alluminio); display: block; }
.elenco b { display: block; font: 700 1.1rem/1.25 var(--testo); color: var(--link); }
.elenco small { font: 13.5px var(--ui); color: var(--grafite-2); }
.vuoto { color: var(--grafite-2); font-family: var(--ui); }

/* articoli del backoffice */
.articolo-testo { max-width: 68ch; }
.articolo-testo h3 { font-size: 1.3rem; }
figure.foto { margin: 1.4em 0; }
figure.foto img { display: block; border-radius: 4px; }
figure.foto figcaption, .galleria figcaption { font: 14px var(--ui); color: var(--grafite-2); margin-top: 6px; }
.galleria { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 1.4em 0; }
.galleria figure { margin: 0; }
.galleria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.avviso { background: #fff6dd; border: 1px solid #f0d58a; padding: 10px 14px; border-radius: var(--raggio); font: 600 15px var(--ui); }

/* ricerca */
.risultati { list-style: none; padding: 0; margin: 0; }
.risultati li { padding: 16px 0; border-top: 1px solid var(--linea); }
.risultati a { font: 700 1.15rem var(--testo); }
.risultati .dove { display: block; font: 13.5px var(--ui); color: var(--grafite-2); margin: 2px 0 4px; }
.risultati p { margin: 0; color: var(--grafite-2); }
.risultati mark { background: #f8e3a8; color: inherit; }
.cerca-grande { display: flex; gap: 0; margin: 0 0 20px; max-width: 620px; }
.cerca-grande input { flex: 1; font: 17px var(--ui); padding: 11px 14px; border: 1px solid #b9c1c7; border-radius: var(--raggio) 0 0 var(--raggio); }
.cerca-grande button { font: 600 16px var(--ui); padding: 0 18px; border: 0; background: var(--noce); color: var(--noce-testo); border-radius: 0 var(--raggio) var(--raggio) 0; cursor: pointer; }

/* area personale */
.personale-tasti { list-style: none; margin: 10px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.personale-tasti a { display: block; padding: 14px 16px; border: 1px solid var(--linea); border-left: 5px solid #00a2cc; border-radius: var(--raggio); text-decoration: none; color: var(--grafite); font: 700 1.1rem var(--testo); }
.personale-tasti a:hover { border-color: #00a2cc; }
.personale-tasti small { display: block; font: 13px var(--ui); color: var(--grafite-2); font-weight: 400; }

/* ---------- piede ---------- */
.piede { background: var(--noce-scuro); color: var(--noce-testo); margin-top: 20px; }
.piede-in { max-width: 1480px; margin: 0 auto; padding: 34px 20px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; font: 15px/1.5 var(--ui); }
.piede-logo { background: #fff; padding: 4px 6px; border-radius: 4px; width: 160px; height: auto; }
.piede p { margin: 10px 0 0; max-width: 46ch; color: #d9cbbf; }
.piede ul { list-style: none; margin: 0; padding: 0; }
.piede li { padding: 4px 0; }
.piede a { color: #fff; }

/* ---------- ingrandimento immagini ---------- */
.lente { position: fixed; inset: 0; background: rgba(20, 24, 27, .92); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; cursor: zoom-out; }
.lente img { max-width: 100%; max-height: 100%; border-radius: 4px; box-shadow: 0 6px 30px rgba(0,0,0,.5); background: #fff; }
.lente button { position: absolute; top: 14px; right: 16px; font: 600 15px var(--ui); background: #fff; border: 0; border-radius: var(--raggio); padding: 8px 14px; cursor: pointer; }

/* ---------- schermi stretti ---------- */
@media (max-width: 900px) {
  .impianto { display: block; padding: 0; }
  .colonna { padding: 0 14px; }
  .menu-apri { display: inline-block; margin-left: auto; font: 600 15px var(--ui); padding: 8px 14px; border: 1px solid var(--noce); border-radius: var(--raggio); background: #fff; color: var(--noce); cursor: pointer; }
  .barra { display: none; position: static; max-height: none; overflow: visible; padding: 12px 14px 16px; background: var(--alluminio-2); border-bottom: 1px solid var(--linea); }
  .barra.aperto { display: block; }
  .barra-titolo { display: none; }
  .menu ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .menu a { font-size: 15px; padding: 6px 8px 6px 5px; }
  .menu a:hover, .menu a:focus-visible { transform: scale(1.04); }
}
@media (max-width: 960px) {
  .foglio { margin: 10px 0 30px; padding: 26px 22px 34px; }
  .home-apertura { grid-template-columns: 1fr; gap: 24px; padding-top: 26px; }
  .home-blocchi { grid-template-columns: 1fr; }
  .piede-in { grid-template-columns: 1fr 1fr; }
  .piede-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .testata-riga { padding: 10px 14px; gap: 10px; }
  .marchio img { width: 168px; }
  .motto { display: none; }
  .cerca { order: 3; width: 100%; margin: 0; }
  .cerca input { flex: 1; width: auto; }
  .percorso { padding: 10px 0 0; }
  .foglio { margin: 8px -14px 24px; border-radius: 0; padding: 22px 16px 30px; }
  .af-orig { font-size: 16.5px; }
  /* le griglie di impaginazione GoLive diventano una colonna sola */
  .af-orig table[cool], .af-orig table[cool] > tbody, .af-orig table[cool] > tbody > tr, .af-orig table[cool] > tbody > tr > td { display: block; width: auto !important; }
  .af-orig table[cool] > tbody > tr > td:empty { display: none; }
  .af-orig table[cool] > tbody > tr[cntrlrow] { display: none; }
  .af-orig table[width] { width: auto !important; }
  .af-orig table[cool] td, .af-orig table[cool] p, .af-orig table[cool] div, .af-orig p[align] { text-align: left !important; }
  .af-orig img.grande { display: block; margin: 12px auto; }
  .af-orig font[size="7"] { font-size: 30px; }
  .af-orig font[size="6"] { font-size: 26px; }
  .schede { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .scheda-nome { font-size: .98rem; padding: 8px 10px 10px; }
  .tasti { padding: 10px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .tasti a { grid-template-columns: 1fr; gap: 8px; padding: 8px; align-items: start; }
  .tasto-foto { width: 100%; height: 84px; }
  .tasto-nome { font-size: 1rem; }
  .home-link { grid-template-columns: 1fr; }
  .piede-in { grid-template-columns: 1fr; }
  .elenco a { grid-template-columns: 90px 1fr; }
  .elenco img, .elenco .vuota { width: 90px; height: 66px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print {
  .testata, .barra, .percorso, .piede, .progetto, .salta { display: none; }
  .impianto { display: block; padding: 0; }
  body { background: #fff; }
  .foglio { box-shadow: none; border: 0; padding: 0; margin: 0; max-width: none; }
}

.in-preparazione { font: 14.5px/1.5 var(--ui); color: var(--grafite-2); margin: -14px 0 28px; }

.crediti { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.crediti li { display: flex; gap: 12px; align-items: center; font: 14px/1.4 var(--ui); color: var(--grafite-2); }
.crediti img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; flex: none; }

/* ---------- home page: notizie del giorno ---------- */
.notizie-pagina { padding: 26px 0 46px; }
.notizie-testa h1 { font: 700 clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem)/1.05 var(--testo); letter-spacing: -.015em; margin: 0 0 .3em; }
.notizie-testa p { margin: 0 0 .5em; max-width: 68ch; color: var(--grafite-2); font-size: 1.08rem; }
.notizie-testa .notizie-stato { font: 14px/1.5 var(--ui); }
.notizie-griglia { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.notizie { list-style: none; margin: 0; padding: 6px 0; background: var(--foglio); border-radius: var(--raggio); border-top: 5px solid var(--ambra); counter-reset: notizia; }
.notizie li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; padding: 13px 22px; border-top: 1px solid var(--linea); }
.notizie li:first-child { border-top: 0; }
.fonte-icona { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; font: 700 12px/1 var(--ui); color: #fff; background: #fff; box-shadow: 0 0 0 1px var(--linea); object-fit: contain; padding: 4px; margin-top: 2px; }
span.fonte-icona { padding: 0; box-shadow: none; }
.notizia-titolo { font: 600 1.06rem/1.4 var(--testo); color: var(--grafite); text-decoration: none; }
.notizia-titolo:hover { color: var(--link); text-decoration: underline; }
.notizia-pop { font: 14px var(--ui); color: var(--grafite-2); white-space: nowrap; }
.notizie small { display: block; margin-top: 3px; font: 13.5px var(--ui); color: var(--grafite-2); }
.notizie mark, .notizie-stato mark, .notizie-nota mark { background: linear-gradient(transparent 12%, #fde874 12%, #fde874 88%, transparent 88%); color: inherit; padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.etichetta-nuova { font-weight: 700; color: #8a5a00; }
.notizie-vuoto { background: var(--foglio); border-radius: var(--raggio); padding: 22px; margin: 0; }
.notizie-lato { display: grid; gap: 18px; }
.notizie-lato .riquadro { padding: 18px 20px; }
.notizie-lato .riquadro h2 { font: 700 1.2rem var(--testo); margin: 0 0 6px; }
.notizie-lato a { font-weight: 600; }
.notizie-nota { font: 13.5px/1.5 var(--ui); color: var(--grafite-2); margin: 0; }
@media (max-width: 1100px) { .notizie-griglia { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .notizie-pagina { padding-top: 18px; }
  .notizie { margin: 0 -14px; border-radius: 0; }
  .notizie li { padding: 12px 14px; gap: 12px; }
}

/* invito a tornare, prima di aprire una notizia esterna */
.avviso-uscita { max-width: 460px; width: calc(100% - 32px); border: 0; border-top: 6px solid var(--ambra); border-radius: 10px; padding: 28px 28px 24px; background: var(--foglio); color: var(--grafite); box-shadow: 0 20px 60px rgba(20, 24, 27, .35); text-align: center; }
.avviso-uscita::backdrop { background: rgba(32, 38, 43, .55); }
.avviso-uscita p { margin: 0 0 14px; font: 600 1.3rem/1.4 var(--testo); text-wrap: balance; }
.avviso-uscita .avviso-uscita-fonte { font: 14px/1.45 var(--ui); color: var(--grafite-2); margin-bottom: 20px; }
.avviso-uscita .bottone { min-width: 140px; font-size: 16px; padding: 11px 22px; cursor: pointer; border: 0; }
.avviso-uscita[open] { animation: avviso-entra .18s ease-out; }
@keyframes avviso-entra { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .avviso-uscita[open] { animation: none; } }

/* parti di un progetto o di un articolo diviso in piu' pagine */
.progetto ol.parti { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 10px; counter-reset: parte; }
.progetto ol.parti li { counter-increment: parte; }
.progetto ol.parti a, .progetto ol.parti span { display: flex; justify-content: flex-start; align-items: center; gap: 10px; height: auto; min-height: 40px; padding: 7px 12px; text-align: left; font: 500 14.5px/1.3 var(--ui); }
.progetto ol.parti a::before, .progetto ol.parti span::before { content: counter(parte); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--ui); background: var(--alluminio); color: var(--grafite); }
.progetto ol.parti span::before { background: #fff; }
.progetto .avanti-indietro .bottone { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .progetto .avanti-indietro { flex-direction: column; } .progetto .avanti-indietro .bottone { max-width: none; } }


/* ======================================================================
   VESTE "LEGNO E CIRCUITI"
   Il sito come un mobile da ascolto fatto a mano: impiallacciature di noce e acero,
   filetti d'ottone intarsiati, e sotto la superficie le piste di rame dei circuiti.
   ====================================================================== */
:root {
  --noce: #4a2c1b; --noce-scuro: #2a170d; --noce-testo: #f3e7d6;
  --ottone: #b08a46; --ottone-chiaro: #d8b46a; --rame: #a0652e;
  --alluminio: #e8d8bc; --alluminio-2: #d9c4a2; --linea: #e2d3ba;
  --foglio: #fffcf6; --grafite: #2a1d14; --grafite-2: #6b5847;
  --legno-acero: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='420'%3E%3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0016 0.055' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.62 0 0 0 0 0.45 0 0 0 0 0.27 1.6 0 0 0 -0.62'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0016 0.121' numOctaves='2' seed='16' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.98 0 0 0 0 0.93 0 0 0 0 0.84 0 1.4 0 0 -0.72'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%23e8d8bc'/%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E"); --legno-noce: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='420'%3E%3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0016 0.055' numOctaves='4' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.07 0 0 0 0 0.04 1.6 0 0 0 -0.62'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0016 0.121' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.47 0 0 0 0 0.29 0 0 0 0 0.17 0 1.4 0 0 -0.72'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%233a2215'/%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E"); --legno-chiaro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='200'%3E%3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0016 0.055' numOctaves='4' seed='21' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.72 0 0 0 0 0.56 0 0 0 0 0.36 1.6 0 0 0 -0.62'/%3E%3C/filter%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0016 0.121' numOctaves='2' seed='26' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.97 0 0 0 0 0.9 0 1.4 0 0 -0.72'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%23f2e6d0'/%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  --piste-chiare: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' fill='none' stroke='%23a0652e' stroke-width='1.4' stroke-opacity='.32' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 40h60l20 20h60l15-15h105'/%3E%3Cpath d='M0 120h30l20-20h50l25 25v55l15 15h60'/%3E%3Cpath d='M120 0v30l-15 15v40'/%3E%3Cpath d='M200 0v70l-20 20h-30'/%3E%3Cpath d='M260 150h-40l-25 25v85'/%3E%3Cpath d='M60 260v-50l-20-20v-30'/%3E%3Cpath d='M140 260v-35l25-25h40'/%3E%3Ccircle cx='60' cy='40' r='4'/%3E%3Ccircle cx='105' cy='85' r='4'/%3E%3Ccircle cx='150' cy='90' r='4'/%3E%3Ccircle cx='100' cy='100' r='3.5'/%3E%3Ccircle cx='40' cy='160' r='4'/%3E%3Ccircle cx='205' cy='200' r='4'/%3E%3Ccircle cx='155' cy='195' r='3.5'/%3E%3Ccircle cx='195' cy='175' r='3'/%3E%3Crect x='118' y='132' width='34' height='22' rx='2'/%3E%3Cpath d='M124 132v-6M131 132v-6M138 132v-6M145 132v-6M124 154v6M131 154v6M138 154v6M145 154v6'/%3E%3C/svg%3E"); --piste-scure: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' fill='none' stroke='%23c98a4b' stroke-width='1.4' stroke-opacity='.32' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 40h60l20 20h60l15-15h105'/%3E%3Cpath d='M0 120h30l20-20h50l25 25v55l15 15h60'/%3E%3Cpath d='M120 0v30l-15 15v40'/%3E%3Cpath d='M200 0v70l-20 20h-30'/%3E%3Cpath d='M260 150h-40l-25 25v85'/%3E%3Cpath d='M60 260v-50l-20-20v-30'/%3E%3Cpath d='M140 260v-35l25-25h40'/%3E%3Ccircle cx='60' cy='40' r='4'/%3E%3Ccircle cx='105' cy='85' r='4'/%3E%3Ccircle cx='150' cy='90' r='4'/%3E%3Ccircle cx='100' cy='100' r='3.5'/%3E%3Ccircle cx='40' cy='160' r='4'/%3E%3Ccircle cx='205' cy='200' r='4'/%3E%3Ccircle cx='155' cy='195' r='3.5'/%3E%3Ccircle cx='195' cy='175' r='3'/%3E%3Crect x='118' y='132' width='34' height='22' rx='2'/%3E%3Cpath d='M124 132v-6M131 132v-6M138 132v-6M145 132v-6M124 154v6M131 154v6M138 154v6M145 154v6'/%3E%3C/svg%3E");
}
body { background-color: #e8d8bc; background-image: var(--piste-chiare), var(--legno-acero); background-size: 260px 260px, 900px 420px; background-attachment: scroll; }

body { --piste-opacita: .14; }
html { background: #e8d8bc; }

/* testata: fascia in noce con filetto d'ottone */
.testata { background: var(--legno-noce); background-size: 900px 420px; border-bottom: 0; box-shadow: 0 2px 0 var(--ottone), 0 3px 0 #1c0f08, 0 8px 18px rgba(30,15,6,.25); position: relative; }
.testata::after { content: ""; position: absolute; inset: 0; background: var(--piste-scure); background-size: 260px 260px; opacity: .12; pointer-events: none; }
.testata-riga { position: relative; z-index: 1; }
.marchio { background: #fff; padding: 6px 10px; border-radius: 4px; box-shadow: 0 0 0 2px var(--ottone), 0 0 0 3px #1c0f08, 0 3px 8px rgba(0,0,0,.35); }
.motto { color: #e6d3b8; }
.cerca input { background: #fbf6ec; border-color: var(--ottone); }
.cerca button { background: linear-gradient(#c9a35a, #9c7634); border-color: #7d5c22; color: #23140a; font-weight: 700; }
.cerca button:hover { background: linear-gradient(#d8b46a, #a98140); }
.menu-apri { border-color: var(--ottone) !important; }

/* pulsante Home (testata e barra laterale) */
.tasto-home { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 6px; text-decoration: none; font: 700 15px/1 var(--ui); color: #23140a;
  background: linear-gradient(#d8b46a, #a98140); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 0 1px #7d5c22, 0 2px 4px rgba(0,0,0,.3); }
.tasto-home:hover { color: #000; background: linear-gradient(#e6c47c, #b48a46); }
.tasto-home::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v10h13V10'/%3E%3Cpath d='M10 20v-5.5h4V20'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v10h13V10'/%3E%3Cpath d='M10 20v-5.5h4V20'/%3E%3C/svg%3E") center / contain no-repeat; }
.cerca { margin-left: 0; }
.testata-riga .tasto-home { margin-left: auto; }

/* barra laterale: pannello in noce, tasti in acero */
.barra { padding: 16px 14px 18px; margin: 18px 0; border-radius: 10px; background: var(--legno-noce); background-size: 900px 420px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 0 0 2px var(--ottone), 0 0 0 3px #1c0f08, 0 10px 24px rgba(30,15,6,.3); top: 12px; max-height: calc(100vh - 24px); overflow-x: visible; }
.barra-titolo { color: var(--ottone-chiaro); font: italic 600 15px/1.2 var(--testo); margin-left: 4px; }
.menu a { background: var(--legno-chiaro); background-size: 600px 200px; color: #2a1d14; border: 1px solid #c4a77a; border-left: 0; box-shadow: inset 4px 0 0 var(--c), inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(0,0,0,.35); padding-left: 10px; }
.menu a:hover, .menu a:focus-visible { border-color: var(--ottone-chiaro); box-shadow: inset 4px 0 0 var(--c), 0 0 0 1px var(--ottone-chiaro), 0 10px 22px rgba(0,0,0,.45); color: #1a0f08; }
.menu a[aria-current] { background: linear-gradient(#d8b46a, #a98140); color: #1a0f08; border-color: #7d5c22; }
.menu a[aria-current]:hover { color: #000; }
.tasto-icona { border-radius: 50%; width: 38px; height: 38px; box-shadow: 0 0 0 2px #b97a3e, 0 0 0 3px #6e4520, inset 0 0 0 1px rgba(0,0,0,.2); }
.menu a { grid-template-columns: 38px minmax(0,1fr); }
.menu li.voce-home a .tasto-icona { display: grid; place-items: center; background: radial-gradient(circle, #e9c98a 0 45%, #b97a3e 46% 100%); }
.menu li.voce-home a .tasto-icona::before { content: ""; width: 20px; height: 20px; background: #3a2215; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v10h13V10'/%3E%3Cpath d='M10 20v-5.5h4V20'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v10h13V10'/%3E%3Cpath d='M10 20v-5.5h4V20'/%3E%3C/svg%3E") center / contain no-repeat; }

/* percorso: separatori a forma di pista con via */
.percorso ol { color: #5b4634; }
.percorso a { color: #4a2c1b; font-weight: 600; }
.percorso li + li::before { content: ""; display: inline-block; width: 22px; height: 10px; margin: 0 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='10'%3E%3Cpath d='M1 8h7l4-6h9' fill='none' stroke='%23a0652e' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='20' cy='2' r='1.8' fill='%23a0652e'/%3E%3C/svg%3E") center / contain no-repeat; vertical-align: middle; }

/* foglio: carta su un piano di legno, filetto colorato e filetto d'ottone */
.foglio { background: var(--foglio); border-top: 0; box-shadow: inset 0 5px 0 var(--sez), inset 0 7px 0 var(--ottone), 0 1px 0 #cdb894, 0 12px 28px rgba(60,35,15,.18); padding-top: 40px; border-radius: 4px; }
.titolo { color: var(--noce-scuro); }
.titolo::after { content: ""; display: block; width: 140px; height: 12px; margin-top: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='12'%3E%3Cpath d='M0 6h52l6-5h24l6 5h52' fill='none' stroke='%23b08a46' stroke-width='2'/%3E%3Cpath d='M58 1l-4 10h32l-4-10' fill='%23b08a46' fill-opacity='.25' stroke='%23b08a46' stroke-width='1.2'/%3E%3C/svg%3E") left center / contain no-repeat; }

/* bottoni in noce con bordo d'ottone */
.bottone { background: var(--legno-noce); background-size: 900px 420px; border: 1px solid var(--ottone); color: var(--noce-testo); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 4px rgba(0,0,0,.25); }
.bottone:hover { color: #fff; border-color: var(--ottone-chiaro); }
.bottone.chiaro { background: var(--legno-chiaro); background-size: 600px 200px; color: var(--noce-scuro); border-color: #b99a63; }
.bottone.chiaro:hover { color: #000; border-color: var(--ottone); }

/* schede: cornice come un pannello fresato */
.schede a { border: 1px solid #d6c09a; box-shadow: 0 0 0 3px #fffcf6, 0 0 0 4px #e3d2b3, 0 4px 10px rgba(60,35,15,.12); }
.schede a:hover { box-shadow: 0 0 0 3px #fffcf6, 0 0 0 4px var(--ottone), 0 8px 18px rgba(60,35,15,.22); }
.scheda-nome { background: var(--legno-chiaro); background-size: 600px 200px; }

/* contatori delle parti: piazzole di rame */
.progetto ol.parti a::before, .progetto ol.parti span::before { background: radial-gradient(circle, #fffcf6 0 52%, #c98a4b 55% 78%, #8a5426 80% 100%); color: #3a2215; width: 26px; height: 26px; }
.progetto ol.parti a::after { content: none; }
.progetto ol.parti span { background: var(--legno-noce); background-size: 900px 420px; border-color: var(--ottone); color: var(--noce-testo); }

/* pulsanti in fondo alla pagina */
.torna { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--linea); }
.torna .torna-su::before { content: "\2190\00a0"; }

/* riquadri (home) */
.riquadro { background: var(--foglio); box-shadow: inset 0 4px 0 var(--c, var(--noce)), inset 0 6px 0 var(--ottone), 0 8px 20px rgba(60,35,15,.14); border-top: 0; padding-top: 26px; }
.notizie { border-top: 0; box-shadow: inset 0 5px 0 var(--ambra), inset 0 7px 0 var(--ottone), 0 10px 24px rgba(60,35,15,.16); padding-top: 12px; background: var(--foglio); }

/* piede: noce scuro con le piste di rame in vista */
.piede { background-color: #24140b; background-image: var(--piste-scure), var(--legno-noce); background-size: 260px 260px, 900px 420px; box-shadow: inset 0 3px 0 var(--ottone), inset 0 4px 0 #120904; color: var(--noce-testo); }
.piede p { color: #dcc7aa; }
.piede a { color: #fbe9c8; }
.piede a:hover { color: var(--ottone-chiaro); }
.piede-logo { box-shadow: 0 0 0 2px var(--ottone); }

/* telefono */
@media (max-width: 900px) {
  .barra { margin: 0; border-radius: 0; box-shadow: 0 2px 0 var(--ottone); max-height: none; }
  .testata-riga .tasto-home { margin-left: 0; }
}
@media (max-width: 720px) {
  .tasto-home span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tasto-home { padding: 8px 10px; }
  .marchio { padding: 4px 6px; }
}
@media print { body, .testata, .piede { background: #fff !important; } }

/* testi appoggiati direttamente sul legno: una velatura chiara li tiene leggibili */
.notizie-testa { background: rgba(255,252,246,.82); border-radius: 8px; padding: 18px 22px 14px; box-shadow: 0 0 0 1px rgba(176,138,70,.35); }
.notizie-nota { background: rgba(255,252,246,.85); border-radius: 6px; padding: 10px 12px; }
.percorso ol { display: inline-flex; background: rgba(255,252,246,.8); border-radius: 6px; padding: 4px 10px; }
.piede-in { text-shadow: 0 1px 2px rgba(0,0,0,.6); }

/* piede: sempre sopra a tutto, collegamenti grandi e facili da cliccare (anche su telefono e Safari) */
.piede { position: relative; z-index: 5; isolation: isolate; }
.piede ul { position: relative; z-index: 1; }
.piede li { padding: 2px 0; }
.piede ul a { display: inline-block; padding: 6px 10px; margin-left: -10px; border-radius: 5px; text-decoration: underline; text-underline-offset: .2em; }
.piede ul a:hover, .piede ul a:focus-visible { background: rgba(216,180,106,.18); color: #fff; }

/* sfogliatore di scansioni e foto */
html.sfoglia-aperto { overflow: hidden; }
.sfoglia { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: rgba(24, 14, 8, .96); }
.sfoglia[hidden] { display: none; }
.sfoglia-barra { flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--legno-noce); background-size: 900px 420px; box-shadow: 0 2px 0 var(--ottone), 0 3px 0 #120904; font: 600 15px var(--ui); color: var(--noce-testo); }
.sfoglia-barra button, .sfoglia-originale { font: 700 15px var(--ui); border-radius: 6px; cursor: pointer; text-decoration: none; padding: 9px 14px; }
.sfoglia-prec, .sfoglia-succ { min-width: 54px; font-size: 20px !important; line-height: 1; color: #23140a; border: 0; background: linear-gradient(#e0bd74, #a98140); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 0 1px #7d5c22, 0 2px 4px rgba(0,0,0,.4); }
.sfoglia-prec:hover, .sfoglia-succ:hover { background: linear-gradient(#ecca84, #b48a46); }
.sfoglia-prec:disabled, .sfoglia-succ:disabled { opacity: .35; cursor: default; }
.sfoglia-conta { font-variant-numeric: tabular-nums; color: var(--ottone-chiaro); margin-left: 4px; }
.sfoglia-nome { flex: 1; min-width: 120px; font: italic 600 16px var(--testo); color: #fbe9c8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfoglia-originale { color: #fbe9c8; border: 1px solid rgba(216,180,106,.6); }
.sfoglia-originale:hover { color: #fff; background: rgba(216,180,106,.18); }
.sfoglia-chiudi { color: #23140a; border: 0; background: #fbf6ec; box-shadow: 0 0 0 1px var(--ottone); }
.sfoglia-chiudi:hover { background: #fff; }
.sfoglia-area { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 14px; }
.sfoglia-area img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.6); cursor: zoom-in; }
.sfoglia.grande .sfoglia-area { align-items: flex-start; justify-content: flex-start; }
.sfoglia.grande .sfoglia-area img { max-width: none; max-height: none; cursor: zoom-out; }
@media (max-width: 720px) {
  .sfoglia-barra { gap: 8px; padding: 8px 10px; }
  .sfoglia-nome { order: 5; flex-basis: 100%; }
  .sfoglia-originale { display: none; }
  .sfoglia-chiudi { margin-left: auto; }
}

/* avviso "In lavorazione" */
.avviso-lavori { border-top-color: #d0201b; }
.avviso-lavori .cartello-lavori { width: 96px; height: auto; display: block; margin: 0 auto 10px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.avviso-lavori p:first-of-type { font-size: 1.6rem; margin-bottom: 8px; }
.lavori-pagina { text-align: center; }
.lavori-pagina .cartello-lavori { width: 140px; height: auto; display: block; margin: 10px auto 6px; }
.lavori-pagina .titolo::after { margin-left: auto; margin-right: auto; }
