
:root {
  --paper: #e8e3d4; --paper-2: #ddd7c5; --card: #f3f0e6;
  --ink: #1b1d17; --ink-2: #44463c; --muted: #6a6b5e; --rule: #b8b4a2;
  --green: #556832; --green-2: #6f8743; --green-pale: #c9d1b0;
  --black: #1b1d17; --black-2: #262922; --on-black: #e9e7de; --on-black-2: #a9aa9c;
  --w: 1240px;
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .3  0 0 0 0 .2  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.az2 { margin: 0; background: var(--paper) var(--noise); color: var(--ink); font: 400 17px/1.6 var(--f); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
section { padding: 96px 0; }
.photo { filter: grayscale(1) sepia(.12) contrast(1.04); }
.ref { font-size: 13px; font-weight: 600; font-stretch: 75%; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* the logo, as in prova 5: emblem + wordmark beside it */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 46px; height: auto; background: none; }
.logo .wm { font: 800 28px/1 var(--f); font-stretch: 78%; letter-spacing: .02em; text-transform: uppercase; }
.logo .wm b { color: var(--green); font-weight: 800; }
.on-black .logo .wm b { color: var(--green-2); }

/* section headings */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(30px, 3vw, 42px); font-weight: 700; font-stretch: 110%; letter-spacing: -.015em; line-height: 1.05; }
.sec-head p { font-size: 17px; color: var(--ink-2); margin-top: 8px; max-width: 60ch; }
.sec-head .more { font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--green); }
.sec-head .more:hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--green); color: #fff; text-decoration: none; font: 600 15px var(--f); font-stretch: 105%; letter-spacing: .02em; border: 0; cursor: pointer; transition: background-color .18s, transform .14s; }
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.97); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--card); }
.on-black .btn:hover { background: var(--green-2); }
.on-black .btn.line { color: var(--on-black); box-shadow: inset 0 0 0 2px var(--on-black); }
.on-black .btn.line:hover { background: var(--on-black); color: var(--black); }

.print { position: relative; background: var(--card); padding: 12px 12px 0; box-shadow: 0 1px 0 rgba(27,29,23,.12), 0 10px 24px -14px rgba(27,29,23,.45); }
.print figcaption { padding: 12px 2px 14px; font-size: 14px; line-height: 1.4; color: var(--ink-2); display: flex; justify-content: space-between; gap: 16px; }
.print figcaption b { color: var(--ink); font-weight: 600; }

/* ======================= MENU ======================= */
.on-black { background: var(--black); color: var(--on-black); }
/* A: barra nera */
.menu-a .bar { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.menu-a .bar > nav { margin-left: auto; display: flex; gap: 2px; }
.menu-a .bar > nav a { font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 13px; position: relative; color: var(--on-black); }
.menu-a .bar > nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--green-2); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.menu-a .bar > nav a:hover::after, .menu-a .bar > nav a[aria-current]::after { transform: scaleX(1); }
.menu-a .tools { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.menu-a .tools a { text-decoration: none; color: var(--on-black-2); }
.menu-a .tools a[aria-current] { color: var(--on-black); font-weight: 700; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; background: var(--green); color: #fff; border: 0; cursor: pointer; transition: background-color .15s; }
.icon-btn:hover { background: var(--green-2); }
.menu-a { position: sticky; top: 0; z-index: 30; }
/* B: testata centrata */
.mob-menu { display: none; }
.mob-panel { display: none; }
.icon-btn, .mob-menu { transition: background-color .15s, transform 160ms ease-out; }
.icon-btn:active, .mob-menu:active { transform: scale(.97); }

/* ======================= HERO ======================= */
.hero h1 { font-weight: 800; font-stretch: 125%; letter-spacing: -.035em; line-height: .88; }
.hero h1 span { color: var(--green); }
.hero .sub { font-size: 21px; font-weight: 600; margin: 22px 0 12px; }
.hero .intro { font-size: 18px; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* A: fotografia piena */
.hero-a { position: relative; min-height: 600px; height: calc(100vh - 84px); height: calc(100svh - 84px); display: flex; align-items: center; overflow: hidden; color: var(--on-black); padding: 0; }
.hero-a .slides { position: absolute; inset: 0; background: var(--black); }
.hero-a .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.6) contrast(1.05); opacity: 0; transition: opacity 1.6s ease; }
.hero-a .slides img.on { opacity: 1; }
.hero-a .dots { position: absolute; left: max(28px, calc((100vw - var(--w)) / 2 + 28px)); bottom: 28px; z-index: 3; display: flex; gap: 8px; }
.hero-a .dots button { width: 34px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero-a .dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: rgba(233,231,222,.35); transition: background-color .2s; }
.hero-a .dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: var(--green-pale); transform: scaleX(0); transform-origin: left; }
.hero-a .dots button[aria-current="true"]::after { transform: scaleX(1); }
.hero-a .dots button:hover::before { background: rgba(233,231,222,.7); }
.hero-a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,29,23,.85), rgba(27,29,23,.2) 70%); }
.hero-a .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 10vh; }
.hero-a h1 { font-size: clamp(64px, 8.5vw, 128px); }
.hero-a h1 span { color: var(--green-pale); }
.hero-a .intro { color: #d9d8cf; }
.hero-a .cap { position: absolute; right: 24px; bottom: 18px; z-index: 2; font-size: 13px; color: var(--on-black-2); }
.hero-a .btn.line { color: var(--on-black); box-shadow: inset 0 0 0 2px var(--on-black); }
.hero-a .btn.line:hover { background: var(--on-black); color: var(--black); }

/* ======================= TEMI: fascia di pannelli (come "Luglio 1944, valle per valle") ======================= */
.themes { padding-bottom: 96px; }
.themes .sec-head { margin-bottom: 0; border-bottom: 0; }
.themes .band { display: flex; height: 68svh; min-height: 440px; margin-top: 40px; background: var(--black); }
.themes .band a { position: relative; background: var(--black); flex: var(--g, 2) 1 0; min-width: 0; overflow: hidden; color: #fff; text-decoration: none; transition: flex-grow 500ms cubic-bezier(0.23, 1, 0.32, 1); }
.themes .band img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.78); transition: transform .9s cubic-bezier(.33,1,.68,1), filter .3s; }
.themes .band a::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(27,29,23,.92), rgba(27,29,23,0)); }
.themes .band .t { position: absolute; left: 16px; right: 12px; bottom: 20px; z-index: 2; }
.themes .band .t small { display: block; font-size: 14px; font-weight: 700; color: var(--green-pale); margin-bottom: 6px; }
.themes .band .t b { display: block; font-size: 22px; font-weight: 800; font-stretch: 92%; line-height: 1.02; letter-spacing: -.01em; }
.themes .band .t em { display: block; font-style: normal; font-size: 15px; line-height: 1.4; color: #dcdbd2; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s, opacity .3s, margin .3s; }
@media (hover: hover) and (pointer: fine) {
  .themes .band a:hover { flex-grow: 6; }
  .themes .band a:hover img { transform: scale(1.04); filter: grayscale(1) brightness(.6); }
  .themes .band a:hover .t em { max-height: 80px; opacity: 1; margin-top: 8px; }
}
.themes .band a:focus-visible { flex-grow: 6; outline-offset: -4px; }
.themes .band-cap { padding: 14px 0 0; font-size: 14px; color: var(--muted); }

/* ======================= IN EVIDENZA ======================= */
.featured { background: var(--paper-2) var(--noise); }
.dossier { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--card); box-shadow: 0 14px 30px -20px rgba(27,29,23,.55); }
.dossier .ph { position: relative; min-height: 440px; }
.dossier .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dossier .tx { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.dossier .ref { color: var(--green); }
.dossier h3 { font-size: clamp(26px, 2.3vw, 33px); font-weight: 700; font-stretch: 108%; letter-spacing: -.015em; line-height: 1.1; margin: 14px 0 20px; }
.dossier h3 a { text-decoration: none; }
.dossier h3 a:hover { color: var(--green); }
.dossier p { font-size: 17px; color: var(--ink-2); margin-bottom: 28px; }
.dossier .btn { align-self: flex-start; }

/* ======================= PROGETTO ======================= */
.project .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; }
.project h2 { grid-column: 1 / -1; font-size: clamp(34px, 3.6vw, 52px); font-weight: 700; font-stretch: 110%; letter-spacing: -.025em; line-height: 1.02; max-width: 18ch; margin-bottom: 8px; }
.project p { font-size: 17.5px; color: var(--ink-2); }
.project .sign { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; padding-top: 22px; margin-top: 8px; border-top: 1px solid var(--rule); font-size: 15.5px; }

/* ======================= CRONOLOGIA ======================= */
.chrono { background: var(--paper-2) var(--noise); }
.prep { font-size: 12.5px; font-weight: 700; font-stretch: 75%; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
/* B: linea verticale alternata */
.c-line { position: relative; max-width: 980px; margin: 0 auto; list-style: none; padding: 0; }
.c-line::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: var(--ink); transform: translateX(-50%); }
.c-line li { position: relative; width: 50%; padding: 0 48px 44px 0; text-align: right; }
.c-line li:nth-child(even) { margin-left: 50%; padding: 0 0 44px 48px; text-align: left; }
.c-line li::before { content: ""; position: absolute; top: 6px; right: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--paper-2); }
.c-line li:nth-child(even)::before { right: auto; left: -10px; }
.c-line li.p::before { background: var(--paper-2); box-shadow: inset 0 0 0 3px var(--muted), 0 0 0 5px var(--paper-2); }
.c-line time { display: block; font-size: 28px; font-weight: 800; font-stretch: 112%; line-height: 1.1; color: var(--green); }
.c-line li.p time { color: var(--muted); }
.c-line b { display: block; font-size: 20px; font-weight: 600; margin: 6px 0 6px; }
.c-line a { font-size: 15px; font-weight: 700; color: var(--ink); }
.c-line a:hover { color: var(--green); }

/* ======================= DOCUMENTI ======================= */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
.docs a { text-decoration: none; display: block; }
.docs .print { transition: transform .35s cubic-bezier(.22,1,.36,1); }
.docs a:nth-child(odd) .print { transform: rotate(-.8deg); }
.docs a:nth-child(even) .print { transform: rotate(.7deg); margin-top: 24px; }
.docs a:hover .print { transform: rotate(0) translateY(-6px); }
.docs .print img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.docs .print { padding-bottom: 12px; }
.docs h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin-top: 18px; }
.docs a:hover h3 { color: var(--green); }
.docs .ref { margin-top: 6px; display: block; }

/* ======================= VOCI ======================= */
.voices { padding: 0; border-top: 2px solid var(--ink); }
.voices .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; padding-top: 64px; padding-bottom: 72px; }
.voices h2 { grid-column: 1 / -1; font-size: 24px; font-weight: 700; font-stretch: 110%; }
.voices blockquote { font-size: 19px; line-height: 1.5; padding-left: 18px; border-left: 3px solid var(--green); }
.voices cite { display: block; font-style: normal; margin-top: 12px; }

/* ======================= FOOTER ======================= */
.cta { background: var(--green); color: #fff; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 44px; padding-bottom: 44px; }
.cta h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; font-stretch: 110%; }
.cta p { font-size: 17px; color: #e5ead6; margin-top: 4px; }
.cta .btn { background: var(--black); }
.cta .btn:hover { background: #fff; color: var(--black); }
footer { font-size: 15px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; color: #fff; }
/* A: colonne */
.foot-a { padding: 72px 0 28px; }
.foot-a .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
.foot-a h4 { font-size: 13px; font-weight: 700; font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase; color: var(--on-black-2); margin-bottom: 16px; }
.foot-a ul { list-style: none; margin: 0; padding: 0; }
.foot-a li { margin-bottom: 9px; line-height: 1.4; }
.foot-a .about p { color: var(--on-black-2); margin-top: 18px; max-width: 38ch; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 22px; border-top: 1px solid #3a3d34; font-size: 13.5px; color: var(--on-black-2); }

/* motion */
@media (prefers-reduced-motion: reduce) { .mob-panel, .mob-panel[data-open="true"] { transform: none !important; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-a .slides img.on { animation: hero-zoom 7s cubic-bezier(0.23, 1, 0.32, 1) both; }
  .hero-a .dots button[aria-current="true"]::after { animation: hero-bar var(--slide, 6s) linear both; }
  @keyframes hero-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes hero-zoom { from { transform: scale(1.04); } to { transform: scale(1); } }
  .js [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .7s ease, translate .8s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].in { opacity: 1; translate: 0 0; }
}

@media (max-width: 1020px) {
  .mob-panel { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); padding: 8px 18px 22px; border-top: 1px solid #34372f; box-shadow: 0 18px 30px -18px rgba(0,0,0,.6);
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity 150ms ease-in, transform 150ms ease-in, visibility 0s linear 150ms; }
  .mob-panel[data-open="true"] { opacity: 1; transform: none; visibility: visible; pointer-events: auto;
    transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1), transform 200ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s; }
  .mob-panel > a { display: block; padding: 14px 0; font-size: 19px; font-weight: 600; color: var(--on-black); text-decoration: none; border-bottom: 1px solid #2f322a; }
  .mob-panel > a[aria-current] { color: var(--green-pale); }
  .mob-panel .lang { margin-top: 16px; font-size: 15px; color: var(--on-black-2); }
  .mob-panel .lang a { margin-right: 14px; text-decoration: none; }
  .mob-panel .lang a[aria-current] { color: var(--on-black); font-weight: 700; }
  .themes .band { flex-wrap: wrap; height: auto; min-height: 0; }
  .themes .band a { flex: 0 0 50%; height: 220px; }
  .themes .band a:last-child { flex-basis: 100%; }
  .themes .band .t b { font-size: 21px; }
  .menu-a .bar > nav, .menu-a .tools .lang { display: none; }
  .mob-menu { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 0; background: var(--green); color: #fff; font: 600 14px var(--f); margin-left: auto; }
  .menu-a .tools { margin-left: 0; }
  .dossier { grid-template-columns: 1fr; }
  .dossier .ph { min-height: 300px; }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .voices .wrap { grid-template-columns: 1fr; gap: 28px; }
  .foot-a .cols { grid-template-columns: 1fr 1fr; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  section { padding: 64px 0; }
  .logo .wm { font-size: 24px; }
  .logo img { width: 40px; }
  .hero-a { height: calc(100svh - 76px); min-height: 520px; }
  .hero-a .cap { display: none; }
  .hero-a .wrap { padding-bottom: 6vh; }
  .hero-a .dots { left: 18px; bottom: 20px; }
  .hero-a h1 { font-size: 17vw; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dossier .tx { padding: 28px 22px; }
  .project .cols { grid-template-columns: 1fr; }
  .project h2 { font-size: 30px; }
  .c-line::before { left: 9px; }
  .c-line li, .c-line li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 34px 44px; text-align: left; }
  .c-line li::before, .c-line li:nth-child(even)::before { left: 0; right: auto; }
  .c-line time { font-size: 23px; }
  .docs { gap: 18px 14px; }
  .foot-a .cols { grid-template-columns: 1fr; gap: 32px; }
}

/* WordPress */
body.admin-bar .menu-a { top: 32px; }
@media (max-width: 782px) { body.admin-bar .menu-a { top: 46px; } }
body.az2 .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* the page sits inside WordPress: keep other plugins' leftovers from changing type and colour */
body.az2 h1, body.az2 h2, body.az2 h3, body.az2 h4, body.az2 p, body.az2 a, body.az2 li, body.az2 blockquote, body.az2 cite, body.az2 time, body.az2 button, body.az2 input, body.az2 span, body.az2 b, body.az2 em, body.az2 small { font-family: var(--f); }
body.az2 h1, body.az2 h2, body.az2 h3, body.az2 h4 { text-transform: none; letter-spacing: normal; }
body.az2 .hero h1 { letter-spacing: -.035em; }
body.az2 .ref, body.az2 .prep, body.az2 .foot-a h4 { text-transform: uppercase; letter-spacing: .09em; }
body.az2 .logo .wm { text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
body.az2 .on-black .logo .wm { color: var(--on-black); }
body.az2 footer a, body.az2 .menu-a a { color: inherit; }
body.az2 .foot-a { color: var(--on-black); }
body.az2 .foot-a .about p, body.az2 .legal { color: var(--on-black-2); }
body.az2 .btn { color: #fff; }
body.az2 .btn.line { color: var(--ink); }
body.az2 .hero-a .btn.line, body.az2 .on-black .btn.line { color: var(--on-black); }
body.az2 .cta .btn { color: #fff; }
body.az2 blockquote { font-style: normal; quotes: none; }
body.az2 blockquote::before, body.az2 blockquote::after { content: none; }
@media (max-width: 600px) { body.admin-bar .menu-a { top: 0; } }
body.az2 .mob-menu { text-transform: none; letter-spacing: normal; }

/* selettore della lingua */
.menu-a .tools .lang { display: inline-flex; border: 1.5px solid #4a4d43; }
.menu-a .tools .lang a { min-width: 40px; height: 34px; display: grid; place-items: center; padding: 0 10px; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; color: var(--on-black-2); transition: background-color .15s, color .15s; }
.menu-a .tools .lang a:hover { color: var(--on-black); }
.menu-a .tools .lang a[aria-current] { background: var(--on-black); color: var(--black); }
.mob-panel .lang { display: flex; gap: 0; }
.mob-panel .lang a { margin: 0; padding: 10px 16px; border: 1.5px solid #4a4d43; }
.mob-panel .lang a[aria-current] { background: var(--on-black); color: var(--black); }
@media (max-width: 1020px) { .menu-a .tools .lang { display: none; } }
