@font-face { font-family: "Johnnie"; src: url("assets/fonts/Johnnie-Light.woff2") format("woff2"), url("assets/fonts/Johnnie-Light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Johnnie"; src: url("assets/fonts/Johnnie-Regular.woff2") format("woff2"), url("assets/fonts/Johnnie-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Johnnie"; src: url("assets/fonts/Johnnie-Medium.woff2") format("woff2"), url("assets/fonts/Johnnie-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Johnnie"; src: url("assets/fonts/Johnnie-Bold.woff2") format("woff2"), url("assets/fonts/Johnnie-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "ArchIP"; src: url("assets/fonts/ArchIP-Light.woff2") format("woff2"), url("assets/fonts/ArchIP-Light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "ArchIP"; src: url("assets/fonts/ArchIP-Regular.woff2") format("woff2"), url("assets/fonts/ArchIP-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "ArchIP"; src: url("assets/fonts/ArchIP-Italic.woff2") format("woff2"), url("assets/fonts/ArchIP-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --burg: #7c223f;
  --burg-dark: #5f1830;
  --gold: #dfb427;
  --ivory: #faf6ef;
  --ink: #2b2226;
  --muted: #7a6f74;
  --line: #e4dccf;
  --serif: "ArchIP", Georgia, serif;
  --sans: "Johnnie", Georgia, serif;
  --w: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.2; }
p { margin: 0; }
.wrap { width: min(var(--w), 100% - 48px); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--burg); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--burg); outline-offset: 3px; }

/* testata */
.mast { text-align: center; padding: 34px 0 0; border-top: 6px solid var(--burg); }
.mast .logo { display: inline-block; line-height: 0; padding: 0 24px; }
.mast .logo img { width: min(300px, 70vw); height: auto; }
.mast-bar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 34px; margin-top: 26px; padding: 6px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.mast-bar a { text-decoration: none; padding: 10px 0; color: var(--ink); }
.mast-bar a:hover { color: var(--burg); }
.lang { display: flex; gap: 4px; }
.lang button { font: inherit; letter-spacing: .14em; text-transform: uppercase; background: none; border: 0; padding: 10px 6px; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--burg); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* avviso: lettera */
.letter { background: var(--ivory); padding: 32px 0 30px; text-align: center; }
.letter .hello, .letter h1, .letter .lead { font-family: inherit; font-size: .8125rem; line-height: 1.7; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.letter .hello { margin-bottom: 8px; }
.letter h1 { font-weight: 500; max-width: 110ch; margin: 0 auto 2px; }
.letter .lead { max-width: 110ch; margin: 0 auto; }
.orn { display: none; }
.participate { display: grid; grid-template-columns: 1fr auto auto; align-items: center; max-width: 880px; margin: 18px auto 0; padding: 20px 44px; text-align: left; border: 1px solid var(--line); background: #fff; }
.participate > div { display: contents; }
.participate h2 { font-size: 1.5rem; line-height: 1.2; color: var(--burg); margin: 0; }
.contact-line { position: relative; display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 0 64px 0 0; }
.contact-line + .contact-line { padding: 0 0 0 64px; }
.contact-line + .contact-line::before { content: ""; position: absolute; left: 0; top: calc(50% + 1.5px); height: 30px; transform: translateY(-50%); border-left: 1px solid var(--line); }
.contact-line .ico { flex: none; width: 20px; height: auto; fill: var(--burg); position: relative; top: 1.5px; }
.contact-line .ico-mail { width: 22px; }
.contact-line small { display: block; margin-bottom: 3px; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-line strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--burg); overflow-wrap: anywhere; }
.contact-line:hover strong { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.letter .notes { max-width: 100ch; margin: 16px auto 0; color: #6b6066; font-size: .875rem; line-height: 1.5; display: grid; gap: 2px; }

/* calendario */
.cal { padding: 84px 0 96px; }
.cal h2 { text-align: center; font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: var(--burg); margin-bottom: 14px; }
.cal h2 i { font-style: italic; }
.cal .rule { width: 56px; height: 2px; background: var(--gold); margin: 0 auto 48px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.thumb, .detail-img, .btn { border-radius: 3px; }
.row-link { display: grid; grid-template-columns: 110px 190px 1fr auto; gap: 32px; align-items: center; padding: 28px 0; text-decoration: none; transition: background .2s; }
.when { text-align: center; color: var(--burg); line-height: 1; }
.when .d { display: block; font-family: var(--serif); font-size: 2.9rem; }
.when .m { display: block; margin-top: 8px; font-size: .72rem; letter-spacing: .16em; }
.thumb { width: 190px; height: 130px; object-fit: cover; background: var(--burg); }
.thumb.tile { background: var(--burg) url("assets/logo_white.svg") center / 62% auto no-repeat; }
.kind { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.row h3 { font-size: 1.5rem; margin-bottom: 4px; }
.row .where { color: var(--burg); font-size: .95rem; }
.row .ex { margin-top: 8px; color: #5b5156; font-size: .95rem; max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.go { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--burg); white-space: nowrap; padding-right: 12px; }
.go::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: 10px; background: currentColor; -webkit-mask: url("assets/arrow-obl.svg") center / contain no-repeat; mask: url("assets/arrow-obl.svg") center / contain no-repeat; }
.empty { text-align: center; color: var(--muted); }

/* calendario: foto in evidenza (solo home) */
#calendario .row-link { grid-template-columns: 110px 210px 1fr auto; padding: 24px 0; }
#calendario .thumb { width: 210px; height: 297px; }
#calendario .row h3 { font-size: 1.75rem; }
#calendario .row .ex { -webkit-line-clamp: 3; }

/* footer */
.foot { background: var(--burg); color: #f3e8ec; padding: 72px 0 28px; font-size: .95rem; }
.foot-sedi { display: grid; grid-template-columns: 1.35fr 1.2fr 1fr 1fr; gap: 40px 56px; padding-bottom: 56px; }
.foot img { display: block; width: 240px; height: auto; }
.foot .brand p { margin-top: 22px; font-size: .8rem; letter-spacing: .04em; color: #d9c3cc; }
.sede { line-height: 1.65; }
.foot h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: #fff; margin-bottom: 14px; line-height: 1.2; }
.foot .sede h2::after { content: ""; display: block; width: 36px; height: 1px; margin-top: 12px; background: var(--gold); }
.foot address { font-style: normal; margin-bottom: 14px; }
.foot .sede p { margin: 0; }
.foot a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.foot a:hover { border-bottom-color: #fff; }
.foot :focus-visible { outline-color: #fff; }
.copy { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.22); font-size: .78rem; color: #d9c3cc; text-align: center; }

/* scheda asta */
.slim { background: var(--burg); color: #fff; padding: 10px 0; font-size: .85rem; line-height: 1.5; text-align: center; }
.slim a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); }
.slim a:hover { border-bottom-color: #fff; }
.slim :focus-visible { outline-color: #fff; }
.slim-in { display: flex; align-items: center; justify-content: space-between; gap: 8px 32px; text-align: left; }
.slim-msg { letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.slim-links { display: flex; align-items: center; gap: 8px 32px; }
.slim-links a { display: inline-flex; align-items: center; gap: 8px; border-bottom: 0; }
.slim-links a span { border-bottom: 1px solid rgba(255,255,255,.5); }
.slim-links a:hover span { border-bottom-color: #fff; }
.slim .ico { width: 14px; height: auto; fill: currentColor; flex: none; }
.slim-fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transform: translateY(-100%); visibility: hidden; transition: transform .3s, visibility 0s .3s; }
.slim-fixed.show { transform: none; visibility: visible; transition-delay: 0s; }
.crumbs { margin: 36px 0 28px; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--burg); }
.crumb-sep { color: var(--gold); }
.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.detail-img { width: 100%; height: auto; }
.detail-img.tile { aspect-ratio: 4 / 5; background: var(--burg) url("assets/logo_white.svg") center / 56% auto no-repeat; }
.detail .kind { margin-bottom: 12px; }
.detail h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--burg); margin-bottom: 14px; }
.detail .where { font-size: 1.05rem; margin-bottom: 20px; }
.info { margin: 0 0 32px; padding-top: 12px; border-top: 1px solid var(--gold); font-size: .95rem; }
.info div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; }
.info dd { margin: 0; line-height: 1.75; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px; background: var(--burg); color: #fff; text-decoration: none; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; transition: background .2s; }
.btn:hover { background: var(--burg-dark); }
.btn.ext::after { content: ""; display: inline-block; width: .8em; height: .8em; background: currentColor; -webkit-mask: url("assets/arrow-obl.svg") center / contain no-repeat; mask: url("assets/arrow-obl.svg") center / contain no-repeat; }
.btn.back::before { content: "\2190"; }
.desc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px; align-items: start; margin: 64px 0 0; padding-top: 40px; border-top: 1px solid var(--line); }
.desc[hidden] { display: none; }
.desc > * { grid-column: 2; }
.desc h2 { grid-column: 1; grid-row: 1 / span 99; font-size: 1.6rem; color: var(--burg); margin: 0; text-align: left; }
.desc p { margin: 0 0 1.1em; font-size: 1.05rem; line-height: 1.75; }
.desc p.act { margin-top: 1.8em; font-family: var(--serif); font-size: 1.3rem; color: var(--burg); }
.others { background: var(--ivory); margin-top: 88px; padding: 70px 0 80px; }
.others h2 { text-align: center; color: var(--burg); font-size: 1.9rem; margin-bottom: 34px; }
.others .rows { background: transparent; padding: 0; }
.notfound { padding: 60px 0; text-align: center; }

@media (max-width: 860px) {
  .participate { grid-template-columns: 1fr; gap: 14px; padding: 18px 20px; }
  .contact-line, .contact-line + .contact-line { padding: 0; }
  .contact-line + .contact-line::before { display: none; }
  .row-link { grid-template-columns: 84px 1fr; gap: 14px 20px; padding: 24px 0; }
  .thumb { display: none; }
  #calendario .row-link { grid-template-columns: 1fr; }
  #calendario .thumb { display: block; width: 100%; max-width: 240px; height: auto; aspect-ratio: 424 / 600; }
  #calendario .when { text-align: left; }
  #calendario .row-link .go { grid-column: 1; }
  .row-link .go { grid-column: 2; }
  .when .d { font-size: 2.2rem; }
  .foot-sedi { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .foot .brand { grid-column: 1 / -1; }
  .detail { grid-template-columns: 1fr; gap: 36px; }
  .desc { grid-template-columns: 1fr; }
  .desc > *, .desc h2 { grid-column: 1; grid-row: auto; }
  .desc h2 { margin-bottom: 18px; }
  .detail-img { max-width: 420px; margin: 0 auto; }
  .info div { grid-template-columns: 1fr; gap: 2px; }
  .letter { padding: 28px 0; }
  .cal { padding: 60px 0 70px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (max-width: 520px) { .foot-sedi { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .slim-in { flex-direction: column; text-align: center; } .slim-links { flex-wrap: wrap; justify-content: center; } }
.slim-sticky { position: sticky; top: 0; z-index: 40; }
