
/* ======================= PAGINA TEMI ======================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ph-head { padding: 72px 0 56px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--green); text-decoration: underline; }
.ph-head h1 { font-size: clamp(52px, 6.6vw, 104px); font-weight: 800; font-stretch: 125%; letter-spacing: -.035em; line-height: .9; }
.ph-head h1 span { color: var(--green); }
.ph-head .lead { font-size: 19px; color: var(--ink-2); max-width: 54ch; margin-top: 22px; }
.print img { width: 100%; object-fit: cover; }
.ref { display: block; }

/* A · capitoli */
.jump { position: sticky; top: 84px; z-index: 20; background: var(--black); }
.jump .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.jump a { flex: none; color: var(--on-black); text-decoration: none; font-size: 15px; font-weight: 600; padding: 9px 14px; transition: background-color .15s; }
.jump a:hover { background: var(--black-2); color: var(--green-pale); }
.chap { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 72px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 150px; }
.chap:last-child { border-bottom: 0; }
.chap .side .print { transform: rotate(-1deg); padding-bottom: 12px; }
.chap:nth-child(even) .side .print { transform: rotate(.8deg); }
.chap .side img { aspect-ratio: 4 / 5; }
.chap .top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.chap h2 { font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; line-height: 1; }
.chap .n { font-size: 15px; font-weight: 700; color: var(--green); white-space: nowrap; }
.chap .desc { font-size: 18px; color: var(--ink-2); max-width: 56ch; margin: 14px 0 28px; }
.chap .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard { text-decoration: none; display: block; }
.tcard .print { padding-bottom: 10px; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.tcard img { aspect-ratio: 4 / 3; }
.tcard .ref { margin-top: 14px; color: var(--green); }
.tcard h3 { font-size: 17px; font-weight: 700; line-height: 1.25; margin-top: 6px; transition: color .15s; }
@media (hover: hover) and (pointer: fine) { .tcard:hover .print { transform: translateY(-5px); } .tcard:hover h3 { color: var(--green); } }
.chap .more { display: inline-block; margin-top: 24px; font-weight: 700; font-size: 15px; color: var(--green); text-decoration: none; }
.chap .more:hover { text-decoration: underline; }

/* B · riquadri che si aprono */
.tb { background: var(--paper-2) var(--noise); padding: 56px 0 96px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
.tile { background: var(--card); }
.tile .head { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--black); cursor: pointer; text-align: left; height: 260px; overflow: hidden; }
.tile .head img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.6); transition: transform .8s cubic-bezier(.33,1,.68,1), filter .3s; }
@media (hover: hover) and (pointer: fine) { .tile .head:hover img { transform: scale(1.04); filter: grayscale(1) brightness(.45); } }
.tile .lab { position: absolute; left: 24px; bottom: 22px; color: #fff; }
.tile .lab small { display: block; font-size: 14px; font-weight: 700; color: var(--green-pale); margin-bottom: 4px; }
.tile .lab b { font-size: 34px; font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; line-height: 1; }
.tile .plus { position: absolute; right: 22px; bottom: 26px; width: 40px; height: 40px; background: var(--green); }
.tile .plus::before, .tile .plus::after { content: ""; position: absolute; left: 12px; right: 12px; top: 19px; height: 2px; background: #fff; transition: transform .25s cubic-bezier(.23,1,.32,1); }
.tile .plus::after { transform: rotate(90deg); }
.tile .head[aria-expanded="true"] .plus::after { transform: rotate(0); }
.tile .body { padding: 22px 24px 26px; animation: az-open 220ms cubic-bezier(.23,1,.32,1); }
@keyframes az-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tile .body > p { font-size: 16px; color: var(--ink-2); margin-bottom: 14px; }
.tile .btn { margin-top: 18px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li a { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.rows .thumb { width: 72px; height: 54px; object-fit: cover; }
.rows b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; transition: color .15s; }
.rows small { font-size: 13px; color: var(--muted); }
.rows li a:hover b { color: var(--green); }

/* C · indice e scheda */
.tc { padding: 24px 0 110px; }
.tc .split { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.tc .index { position: sticky; top: 108px; display: flex; flex-direction: column; border-top: 2px solid var(--ink); padding-top: 12px; }
.tc .index .ref { margin-bottom: 8px; }
.tc .ix { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--rule); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: color .15s, padding-left .2s cubic-bezier(.23,1,.32,1); }
.tc .ix b { font-size: 21px; font-weight: 700; font-stretch: 106%; }
.tc .ix span { font-size: 14px; color: var(--muted); }
.tc .ix:hover { color: var(--green); }
.tc .ix[aria-pressed="true"] { color: var(--green); padding-left: 12px; box-shadow: inset 3px 0 0 var(--green); }
.tc .pane { animation: az-open 240ms cubic-bezier(.23,1,.32,1); }
.tc .hero-ph { position: relative; height: 380px; overflow: hidden; background: var(--black); }
.tc .hero-ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.62); }
.tc .hero-ph figcaption { position: absolute; left: 32px; bottom: 28px; color: #fff; }
.tc .hero-ph span { font-size: 15px; font-weight: 700; color: var(--green-pale); }
.tc .hero-ph h2 { font-size: clamp(40px, 4.6vw, 68px); font-weight: 800; font-stretch: 115%; letter-spacing: -.03em; line-height: .95; margin-top: 6px; }
.tc .desc { font-size: 19px; color: var(--ink-2); max-width: 58ch; margin: 26px 0 18px; }
.tc .rows { margin-bottom: 28px; }

/* D · fascia, elenco e parole chiave */
.td .themes { background: none; padding: 16px 0 0; }
.td .band { margin-top: 0; }
.list-sec { padding-top: 88px; }
.tlist { list-style: none; margin: 0; padding: 0; }
.tlist li { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 26px 0; border-top: 1px solid var(--rule); scroll-margin-top: 110px; }
.tlist li:first-child { border-top: 2px solid var(--ink); }
.tlist h2 { font-size: 28px; font-weight: 800; font-stretch: 110%; letter-spacing: -.015em; line-height: 1.05; }
.tlist .nm span { display: block; font-size: 14px; font-weight: 700; color: var(--green); margin-top: 6px; }
.tlist .ls { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.tlist .ls a { font-size: 17px; font-weight: 500; text-decoration: none; }
.tlist .ls a::before { content: "→ "; color: var(--green); }
.tlist .ls a:hover { color: var(--green); text-decoration: underline; }
.kw { background: var(--paper-2) var(--noise); padding: 88px 0 100px; margin-top: 88px; }
.kw .sec-head .ref { color: var(--muted); }
.cloud { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: baseline; }
.cloud a { text-decoration: none; background: var(--card); padding: 8px 14px; font-weight: 600; transition: background-color .15s, color .15s; }
.cloud a:hover { background: var(--ink); color: var(--card); }
.cloud .w1 { font-size: 15px; }
.cloud .w2 { font-size: 19px; }
.cloud .w3 { font-size: 24px; font-weight: 800; background: var(--green); color: #fff; }

@media (max-width: 1020px) {
  .jump { top: 76px; }
  .chap { grid-template-columns: 1fr; gap: 24px; padding: 56px 0; }
  .chap .side { max-width: 260px; }
  .chap .side img { aspect-ratio: 16 / 10; }
  .chap .side { max-width: none; }
  .tiles { grid-template-columns: 1fr; }
  .tc .split { grid-template-columns: 1fr; gap: 24px; }
  .tc .index { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; border-top: 0; padding-top: 0; gap: 6px; margin: 0 -28px; padding: 0 28px; }
  .tc .index .ref { display: none; }
  .tc .ix { flex: none; border: 0; background: var(--paper-2); padding: 10px 14px; }
  .tc .ix b { font-size: 16px; }
  .tc .ix[aria-pressed="true"] { background: var(--ink); color: var(--card); padding-left: 14px; box-shadow: none; }
  .tc .ix[aria-pressed="true"] span { color: var(--on-black-2); }
  .tlist li { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  .ph-head { padding: 44px 0 40px; }
  .ph-head h1 { font-size: 13vw; }
  .chap .cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .chap .cards .tcard:nth-child(3) { display: none; }
  .tile .head { height: 200px; }
  .tile .lab b { font-size: 28px; }
  .tc .index { margin: 0 -18px; padding: 0 18px; }
  .tc .hero-ph { height: 240px; }
  .tc .hero-ph figcaption { left: 20px; bottom: 18px; }
}

/* WordPress */
body.admin-bar .jump { top: 116px; }
@media (max-width: 1020px) { body.admin-bar .jump { top: 122px; } }
@media (max-width: 600px) { body.admin-bar .jump { top: 76px; } }
body.az4 .jump a, body.az4 .chap .more, body.az4 .tcard { color: inherit; }
body.az4 .jump a { color: var(--on-black); }
body.az4 .chap .more { color: var(--green); }
body.az4 .tcard .ref { text-transform: uppercase; }
.chap { scroll-margin-top: 170px; }
