/*
Theme Name: Arci La Boje
Description: Tema del Circolo Arci La Boje APS di Villadose.
Version: 1.0.3
Text Domain: arci-la-boje
Requires PHP: 8.0
*/
:root {
    --paper: #f7f2e7;
    --ink: #241f1a;
    --muted: #5f554a;
    --red: #a32230;
    --dark-red: #7c1423;
    --green: #254a38;
    --line: #d8cdbb;
    --white: #ffffff;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible { outline: .17rem solid currentColor; outline-offset: .25rem; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; font-weight: 500; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 92%); margin-inline: auto; }
.skip-link { position: fixed; left: .75rem; top: .75rem; z-index: 99999; padding: .75rem; background: var(--white); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--white); border-top: .4rem solid var(--red); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: .75rem; }
.brand { flex: none; }
.brand img { width: 145px; }
.nav-links { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.7rem; font-size: .92rem; font-weight: 650; }
.nav-links a { display: inline-block; padding-block: .5rem; text-decoration: none; }
.nav-links a:hover, .nav-links .current-menu-item a { text-decoration: underline; }
.hero { border-bottom: 1px solid var(--line); background: #eee5d5; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.eyebrow { color: var(--dark-red); font-size: .76rem; font-weight: 750; letter-spacing: .12em; margin-bottom: .85rem; }
.hero h1 { font-size: clamp(3rem, 6.6vw, 6.1rem); letter-spacing: -.058em; margin-bottom: 1.35rem; }
.hero-copy > p:not(.eyebrow) { max-width: 35ch; color: var(--muted); font-size: clamp(1.04rem, 1.75vw, 1.3rem); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.85rem; }
.button { display: inline-flex; align-items: center; min-height: 2.9rem; gap: .35rem; padding: .64rem 1.05rem; font-weight: 690; font-size: .91rem; border: 1px solid transparent; border-radius: .25rem; text-decoration: none; }
.primary { background: var(--red); color: var(--white); }
.primary:hover { background: var(--dark-red); }
.outline { border-color: #8e7e68; }
.outline:hover { background: #e3d6c0; }
.feature { background: var(--white); display: grid; grid-template-columns: .78fr 1fr; align-items: center; border: 1px solid var(--line); box-shadow: .55rem .55rem 0 #dccfba; }
.poster { display: block; padding: .65rem 0 .65rem .65rem; }
.poster img { width: 100%; border: 1px solid var(--line); }
.feature-body { padding: 1rem .9rem; }
.feature-body h2 { font-size: clamp(1.42rem, 2.65vw, 2.3rem); margin-bottom: .6rem; }
.feature-body > p:last-child { margin: 0; font-size: .84rem; color: var(--muted); }
.feature-body .eyebrow { margin-bottom: .55rem; font-size: .62rem; }
.about { display: flex; justify-content: space-between; align-items: center; gap: 1.3rem 3rem; padding-block: 3.2rem; }
.about h2, .initiatives h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); margin-bottom: .7rem; }
.about p:last-child { max-width: 57ch; margin: 0; }
.text-arrow { font-weight: 700; text-decoration-thickness: .08em; flex-shrink: 0; }
.project { background: var(--green); color: #fff7e9; }
.project-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: center; gap: clamp(1.6rem, 6vw, 5.5rem); padding-block: clamp(2rem, 5vw, 4.3rem); }
.project img { border: .35rem solid #faf0db; }
.project h2 { font-size: clamp(2.4rem, 5vw, 4.3rem); margin-bottom: .95rem; }
.project .eyebrow { color: #f4d69d; }
.project p { max-width: 42ch; }
.light { color: var(--green); background: #fff7e9; }
.light:hover { background: #f5e3bb; }
.initiatives { padding-block: 3.4rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.news-card { padding: 1.15rem; border: 1px solid var(--line); background: #fff9ee; }
.news-card h3 { font-size: 1.65rem; margin-bottom: .6rem; }
.news-date { font-size: .83rem; color: var(--muted); }
.site-footer { color: #fbf4e7; background: #29241e; }
.footer-grid { padding-block: 2.6rem; display: grid; grid-template-columns: 1fr 1fr .78fr; gap: 1.5rem 2.6rem; }
.site-footer h2 { font-size: 1.7rem; margin-bottom: .8rem; }
.site-footer h3 { font-size: 1.23rem; margin-bottom: .8rem; }
.site-footer address { font-style: normal; overflow-wrap: anywhere; }
.site-footer .registry { color: #e1d2bc; font-size: .87rem; margin: 0; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.content-page { max-width: 850px; min-height: 45vh; padding-block: 3.5rem; }
.content-page h1 { font-size: clamp(2.5rem,5vw,4rem); margin-bottom: 1.5rem; }
.content-page article + article { margin-top: 2rem; }
@media (max-width: 900px) {
    .nav-links { gap: .2rem 1rem; }
    .hero-grid { gap: 2rem; }
    .feature { grid-template-columns: 1fr; }
    .poster { padding: .65rem .65rem 0; }
    .poster img { max-height: 14rem; object-fit: contain; border: 0; background: #faf4e8; }
}
@media (max-width: 650px) {
    .header-inner { align-items: flex-start; flex-direction: column; gap: .5rem; }
    .brand img { width: 120px; }
    .nav-links { font-size: .87rem; }
    .hero-grid, .project-grid, .footer-grid, .news-grid { grid-template-columns: 1fr; }
    .hero h1 { overflow-wrap: anywhere; }
    .feature { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
    .poster { padding: .5rem 0 .5rem .5rem; }
    .poster img { max-height: none; }
    .about { align-items: flex-start; flex-direction: column; }
}

/* Locandine e programmi dell'archivio del circolo. */
.event-poster {
    max-width: 560px;
    margin: 2rem 0;
}
.event-poster img {
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
}
.event-poster figcaption {
    margin-top: .65rem;
    font-size: .88rem;
    color: var(--muted);
}
.archive-events {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.75rem;
}
.archive-event {
    background: #fff9ee;
    border: 1px solid var(--line);
    min-width: 0;
}
.archive-event-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e1d4;
    padding: .7rem;
    height: 285px;
}
.archive-event-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.archive-event-body {
    padding: 1.25rem;
}
.archive-event h3 {
    font-size: 1.65rem;
    margin-bottom: .8rem;
}
.archive-event h3 a {
    text-decoration: none;
}
.event-date {
    color: var(--muted);
    font-size: .9rem;
}
@media (max-width: 600px) {
    .archive-events {
        grid-template-columns: 1fr;
    }
}

.content-page .archive-events article + article { margin-top: 0; }

/* Anteprime illustrate e navigazione tra gli incontri. */
.news-card {
    padding: 0;
    overflow: hidden;
}
.news-card-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 290px;
    padding: 12px;
    background: #e8e1d4;
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.news-card-body {
    padding: 1.3rem;
}
.news-card .news-date {
    margin-bottom: .75rem;
}
.news-card-body > a {
    font-weight: 650;
}
.event-navigation {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.event-archive-link {
    font-weight: 700;
}
.event-neighbours {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.event-neighbours a {
    padding: 1rem;
    border: 1px solid var(--line);
    background: #fff9ee;
    text-decoration: none;
}
.event-neighbours span {
    display: block;
    margin-bottom: .5rem;
    font-size: .9rem;
    color: var(--muted);
}
.event-neighbours strong {
    display: block;
}
@media (max-width: 650px) {
    .event-neighbours {
        grid-template-columns: 1fr;
    }
}
