/* ==========================================================
   ZAMÀR — Madreperlismo dell'Uno
   Foglio di stile unico per tutto il sito.
   Colori principali (cambiali qui e cambiano ovunque):
   ========================================================== */
:root {
  --bg: #272622;          /* sfondo */
  --panel: #312f2b;       /* riquadri (mostra, manifesto, campi modulo) */
  --line: #46443f;        /* linee sottili */
  --text: #ece6dc;        /* testo principale */
  --muted: #a8a196;       /* testo secondario e didascalie */
  --gold: #c9a66b;        /* oro: citazioni, date, voce attiva del menu */
  --max: 1140px;          /* larghezza massima del contenuto */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.15; letter-spacing: -0.005em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Testata ---------- */
.site-header .wrap, .site-footer .wrap { position: relative; }
.site-header .wrap::after, .site-footer .wrap::before { content: ""; position: absolute; left: 24px; right: 24px; height: 1px; background: var(--line); }
.site-header .wrap::after { bottom: 0; }
.site-footer .wrap::before { top: 0; }
.site-header .wrap { display: flex; align-items: center; gap: 48px; padding-top: 24px; padding-bottom: 34px; }
.brand { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.brand img { width: 370px; height: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-size: 36px; letter-spacing: 0.22em; line-height: 1; padding-bottom: 14px; border-bottom: 1px solid var(--gold); }
.brand-sub { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 12px; color: var(--text); }
.nav { display: flex; align-items: center; gap: 22px; margin-left: 40px; flex-wrap: wrap; }
.nav a { font-size: 16px; color: var(--text); padding: 8px 0; position: relative; transition: color .2s; }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -4px; height: 1px; background: var(--gold); }
.nav .lang { margin-left: auto; font-size: 13px; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; }
.nav .lang:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Elementi comuni ---------- */
.eyebrow { font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.lead { font-size: 21px; line-height: 1.75; }
.muted { color: var(--muted); }
.caption { font-size: 14px; color: var(--muted); margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid var(--muted); padding: 13px 48px 13px 19px;
  font-size: 17px; color: var(--text); background: transparent;
  font-family: var(--sans); cursor: pointer; transition: border-color .2s, color .2s;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn .arr { font-size: .95em; }
.btn-row { display: flex; gap: 30px; flex-wrap: wrap; }
section { padding: 0; }

/* ---------- Home ---------- */
.hero { padding: 54px 0 56px; }
.hero h1 { font-size: 66px; line-height: 1.27; margin-bottom: 22px; }
.hero .lead { margin-bottom: 26px; }
.works-head { margin-top: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.works-head .eyebrow { margin: 0; }
.work { padding: 36px 0 100px; }
.work + .work { padding-top: 70px; }
.work-main img { width: 100%; }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin: 18px 0 30px; }
.work-meta h2 { font-size: 27px; }
.work-meta .coll { color: var(--muted); font-size: .78em; white-space: nowrap; }
.work-meta .coll em, .caption em { font-style: italic; font-family: var(--serif); }
.work-meta .size { color: var(--muted); font-size: 18px; padding-right: 42px; white-space: nowrap; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.details figure { margin: 0; }
.details img { width: 100%; aspect-ratio: 520 / 490; object-fit: cover; }
.details figcaption { font-size: 16px; color: var(--muted); margin-top: 16px; }
.closing { padding: 80px 0 82px; border-top: 1px solid var(--line); }
.closing h2 { font-size: 54px; margin-bottom: 30px; }
.closing .lead { margin-bottom: 30px; font-size: 21px; }
.home-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 56px 0 86px; border-top: 1px solid var(--line); }
.home-bottom h2 { font-size: 32px; margin-bottom: 22px; }
.home-bottom p { font-size: 19px; margin: 0 0 8px; }

/* ---------- Pagine interne ---------- */
.page-intro { padding: 64px 0 70px; }
.page-intro h1 { font-size: 60px; margin-bottom: 14px; }
.page-intro .sub { font-size: 19px; color: var(--muted); margin-bottom: 26px; }
.page-intro .lead { max-width: 760px; }
.page-intro.tight .sub { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: start; }
.process { padding: 26px 0 70px; border-bottom: 1px solid var(--line); }
.process .split { grid-template-columns: 520px 1fr; }
.process .text { padding-top: 30px; }
.process .eyebrow { font-size: 14px; margin-bottom: 18px; }
.process h2 { font-size: 40px; margin-bottom: 20px; }
.process p { font-size: 20px; line-height: 1.85; }

.matter { padding: 100px 0 120px; }
.matter .split { grid-template-columns: 1fr 520px; gap: 150px; }
.matter .text { padding-top: 6px; }
.matter h2 { font-size: 36px; margin: 0 0 24px; }
.matter h2.second { margin-top: 60px; }
.matter p { font-size: 20px; line-height: 1.85; }

.eye { padding: 0 0 70px; }
.eye img { width: 100%; aspect-ratio: 1140 / 420; object-fit: cover; }
.flower { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 50px; padding-bottom: 70px; border-bottom: 1px solid var(--line); }
.flower h2 { font-size: 36px; }
.flower p { font-size: 19px; line-height: 1.85; }

.quote { text-align: center; padding: 70px 0 96px; }
.quote blockquote { margin: 0; font-family: var(--serif); color: var(--gold); font-size: 44px; line-height: 1.5; }
.quote cite { display: block; font-style: normal; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }

.panel { background: var(--panel); padding: 52px 40px 72px; }
.manifesto h2 { font-size: 46px; margin-bottom: 18px; }
.manifesto p { font-size: 20px; margin-bottom: 64px; }
.portfolio-row { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 72px 0 80px; flex-wrap: wrap; }
.portfolio-row h2 { font-size: 34px; }
.portfolio-row .btn-row { margin-right: 30px; }

/* Progetti e mostre */
.next-show { padding: 46px 46px 72px; }
.next-show .tag { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); margin-bottom: 30px; }
.next-show .top { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.next-show h2 { font-size: 58px; line-height: 1.12; }
.next-show .city { font-size: 21px; color: var(--muted); margin-top: 20px; }
.next-show .date { text-align: center; color: var(--gold); padding-right: 80px; }
.next-show .date .d { font-family: var(--serif); font-size: 60px; line-height: 1.1; }
.next-show .date .m { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-top: 12px; }
.next-show .body { font-size: 21px; margin: 30px 0 60px; }
.next-show .note { font-size: 18px; color: var(--muted); margin: 0; }
.path { padding: 118px 0 110px; border-bottom: 1px solid var(--line); }
.path h2 { font-size: 46px; margin-bottom: 22px; }
.path p { font-size: 21px; margin: 0; }
.show { padding: 104px 0 100px; border-bottom: 1px solid var(--line); }
.show h2 { font-size: 48px; margin-bottom: 14px; }
.show .sub { font-size: 23px; margin-bottom: 64px; }
.show .grid-bull { display: grid; grid-template-columns: 700px 1fr; gap: 90px; align-items: start; }
.show .grid-bull figure:last-child { max-width: 350px; justify-self: end; }
.show figure { margin: 0; }
.show .grid-bull figure:first-child img { aspect-ratio: 700 / 525; object-fit: cover; width: 100%; }
.show .grid-bull figure:last-child img { aspect-ratio: 350 / 467; object-fit: cover; width: 100%; }
.show.personal h2 { margin-bottom: 56px; }
.show .grid-sgarbi { display: grid; grid-template-columns: 510px 1fr; gap: 100px; align-items: start; }
.show .grid-sgarbi img { aspect-ratio: 510 / 348; object-fit: cover; object-position: center 30%; width: 100%; }
.show blockquote { margin: 0; font-size: 21px; line-height: 1.85; }
.show .by { color: var(--gold); font-size: 20px; margin-top: 24px; }
.contact-strip { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; padding: 56px 0 64px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.contact-strip h2 { font-size: 32px; margin-bottom: 20px; }
.contact-strip p { font-size: 21px; margin: 0 0 8px; }
.contact-strip .btn { margin: 30px 70px 0 0; padding-right: 140px; }

/* Contatti */
.contact-info { padding: 22px 0 70px; border-bottom: 1px solid var(--line); }
.contact-info .split { grid-template-columns: 1fr 330px; gap: 60px; }
.contact-info h2 { font-size: 46px; margin-bottom: 4px; }
.contact-info .who { font-size: 24px; color: var(--muted); margin-bottom: 48px; }
.contact-info .label { font-size: 15px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.contact-info .value { font-size: 29px; margin: 0 0 34px; display: inline-block; }
.contact-info .value:hover { color: var(--gold); }
.contact-info .btn { margin: -6px 0 46px; padding-right: 54px; }
.contact-info .split > div { display: flex; flex-direction: column; align-items: flex-start; }
.contact-info figure { margin: 0; }
.contact-info figure img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }

.form-sec { padding: 72px 0 110px; border-bottom: 1px solid var(--line); }
.form-sec h2 { font-size: 46px; margin-bottom: 18px; }
.form-sec .intro { font-size: 20px; margin-bottom: 50px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 19px; margin-bottom: 12px; }
.field input, .field textarea {
  background: var(--panel); border: 1px solid #5a5853; color: var(--text);
  font: inherit; font-size: 18px; padding: 14px 16px; border-radius: 0; width: 100%;
}
.field input { height: 72px; }
.field textarea { min-height: 222px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.form-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 30px; gap: 30px; flex-wrap: wrap; }
.form-foot .small { font-size: 16px; color: var(--muted); margin: 0 0 30px; }
.form-foot .privacy-link { font-size: 17px; color: var(--muted); }
.form-foot .privacy-link:hover { color: var(--gold); }
.form-foot .btn { padding-right: 80px; font-size: 19px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); margin-top: 26px; grid-column: 1 / -1; }
.consent input { margin-top: 5px; accent-color: var(--gold); }
.consent a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border: 1px solid var(--gold); color: var(--gold); padding: 16px 20px; margin-bottom: 36px; font-size: 18px; display: none; }
.notice.error { border-color: #c77b6b; color: #e2a497; }
.notice.show { display: block; }

/* Privacy */
.legal { padding: 10px 0 100px; max-width: 820px; }
.legal h2 { font-size: 26px; margin: 46px 0 14px; }
.legal p, .legal li { font-size: 17px; color: #d8d2c8; }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; }

/* ---------- Piè di pagina ---------- */
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 38px; padding-bottom: 50px; gap: 20px; }
.site-footer .left p, .site-footer .right p { margin: 0 0 12px; font-size: 16px; }
.site-footer .muted a:hover, .site-footer .right a:hover { color: var(--gold); }
.site-footer .right { margin-right: 80px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .site-header .wrap { flex-wrap: wrap; gap: 20px; }
  .nav { margin-left: 0; width: 100%; }
  .process .split, .matter .split, .contact-info .split { grid-template-columns: 1fr 1fr; gap: 50px; }
  .show .grid-bull { grid-template-columns: 2fr 1fr; gap: 40px; }
  .show .grid-sgarbi { grid-template-columns: 1fr 1fr; gap: 50px; }
  .details { gap: 40px; }
}

/* ---------- Telefono ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header .wrap::after, .site-footer .wrap::before { left: 16px; right: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { padding-top: 18px; padding-bottom: 18px; }
  .brand img { width: 230px; }
  .brand { gap: 16px; }
  .brand-name { font-size: 26px; padding-bottom: 9px; }
  .brand-sub { font-size: 10px; margin-top: 8px; }
  .nav { gap: 4px 18px; }
  .nav a { font-size: 15px; }
  .hero { padding: 36px 0 30px; }
  .hero h1 { font-size: 40px; }
  .lead, .closing .lead { font-size: 18px; }
  .work { padding: 26px 0 60px; }
  .work + .work { padding-top: 40px; }
  .work-meta { flex-direction: column; gap: 4px; margin-bottom: 22px; }
  .work-meta .size { padding: 0; font-size: 16px; }
  .work-meta h2 { font-size: 24px; }
  .work-meta .coll { display: block; white-space: normal; margin-top: 4px; font-size: 17px; }
  .details { grid-template-columns: 1fr 1fr; gap: 14px; }
  .details figcaption { font-size: 13px; }
  .closing { padding: 56px 0; }
  .closing h2 { font-size: 36px; }
  .home-bottom, .split, .process .split, .matter .split, .contact-info .split, .flower, .form-grid,
  .show .grid-bull, .show .grid-sgarbi, .next-show .top { grid-template-columns: 1fr; gap: 30px; }
  .home-bottom { gap: 44px; }
  .page-intro { padding: 40px 0 44px; }
  .page-intro h1 { font-size: 40px; }
  .process h2, .matter h2, .flower h2 { font-size: 30px; }
  .process p, .matter p, .flower p { font-size: 17px; }
  .matter { padding: 60px 0; }
  .matter .text { order: 0; }
  .eye img { aspect-ratio: 16 / 9; }
  .quote { padding: 50px 0 60px; }
  .quote blockquote { font-size: 29px; }
  .panel { padding: 36px 22px 44px; }
  .manifesto h2 { font-size: 34px; }
  .manifesto p { margin-bottom: 34px; font-size: 18px; }
  .portfolio-row .btn-row { margin: 0; }
  .next-show { padding: 30px 22px 40px; }
  .next-show h2 { font-size: 40px; }
  .next-show .date { text-align: left; padding: 0; }
  .next-show .date .d { font-size: 46px; }
  .next-show .body { font-size: 18px; margin: 24px 0 30px; }
  .next-show .note { font-size: 16px; }
  .path { padding: 64px 0; }
  .path h2, .show h2, .form-sec h2, .contact-info h2 { font-size: 34px; }
  .path p, .show .sub, .show blockquote, .contact-strip p { font-size: 18px; }
  .show { padding: 64px 0; }
  .show .sub { margin-bottom: 34px; }
  .show .grid-bull figure:last-child { max-width: none; justify-self: stretch; }
  .contact-strip .btn { margin: 0; padding-right: 60px; }
  .contact-info .value { font-size: 22px; word-break: break-word; }
  .contact-info .who { margin-bottom: 30px; }
  .field input { height: 56px; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { justify-content: space-between; padding-right: 19px; }
  .btn { padding-right: 30px; }
  .site-footer .wrap { flex-direction: column; }
  .site-footer .right { margin: 0; }
}
