.archive-header, main {
    width: min(70rem, calc(100% - 2rem));
    margin-inline: auto;
}
.archive-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    align-items: center;
    padding-block: 1rem;
    border-bottom: 1px solid var(--bdr);
}
.archive-header a, .archive-nav a, .archive-card a { color: var(--paper); }
.archive-brand { font: 1.6rem var(--f-d); text-decoration: none; }
.archive-hero {
    display: grid;
    grid-template-columns: 1fr minmax(12rem, 24rem);
    align-items: center;
    gap: 2rem;
    padding-block: clamp(3rem, 8vw, 6rem);
}
.archive-hero h1 {
    font: clamp(3.5rem, 10vw, 8rem)/.95 var(--f-d);
    margin-block: .5rem 1rem;
}
.archive-hero h1 span, .archive-match span:last-child { color: var(--gold); }
.archive-hero img, .archive-bracket img { max-width: 100%; height: auto; }
.archive-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bdr);
}
.archive-nav a {
    background: var(--ink2);
    border: 1px solid var(--bdr);
    padding: .75rem 1rem;
    text-decoration: none;
}
.archive-nav a:hover, .archive-card a:hover { color: var(--gold); }
main section { margin-block: 3rem; }
main section h2 { margin-bottom: 1rem; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1rem; }
.archive-card { border: 1px solid var(--bdr); background: var(--ink2); padding: 1rem; }
.archive-card h3 { font: 1.6rem var(--f-d); }
.archive-card ul { list-style: none; }
.archive-card li { padding-block: .55rem; border-bottom: 1px solid var(--bdr); }
.archive-card li:last-child { border-bottom: 0; }
.archive-match { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.archive-bracket, .archive-album, .archive-bracket img { margin-top: .75rem; }
.archive-card summary { cursor: pointer; }
.archive-album summary span { margin-left: .5rem; color: var(--gold); }
.archive-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}
.archive-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
@media (max-width: 36rem) {
    .archive-hero { grid-template-columns: 1fr; }
}

.news-more { margin-block: 1rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.news-more a, .news-article a { color: var(--gold); }
.news-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .75rem;
    margin-block: 1.25rem;
}
.news-filters label { display: grid; gap: .35rem; }
.news-filters select, .news-filters input, .news-filters button {
    padding: .65rem;
    font: inherit;
    color: var(--paper);
    background: var(--ink2);
    border: 1px solid var(--dim2);
}
.news-filters button { cursor: pointer; }
.archive-card h2 { font: 1.5rem var(--f-d); margin-block: .5rem; }
.news-article { max-width: 48rem; padding-block: 2rem; }
.news-article > * + * { margin-top: 1rem; }
.news-article img { max-width: 100%; height: auto; }
.news-body { white-space: pre-line; line-height: 1.7; }

.archive-brand img { display: block; width: 7.5rem; height: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem clamp(.85rem, 3vw, 2rem); }
.site-nav a {
    padding-block: .6rem;
    text-decoration: none;
    font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--gold); }
.featured-editions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
    gap: 1rem;
}
.featured-edition {
    overflow: hidden;
    border: 1px solid var(--bdr);
    color: var(--paper);
    background: var(--ink2);
    text-decoration: none;
}
.featured-edition img { display: block; width: 100%; height: 12rem; object-fit: cover; }
.featured-edition div { padding: 1.25rem; }
.featured-edition h2 { font: 4.5rem/1 var(--f-d); margin-block: .4rem; }
.featured-edition span, .year-grid span { color: var(--gold); }
.featured-edition:hover, .year-grid a:hover { border-color: var(--gold); }
.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: .6rem;
    list-style: none;
}
.year-grid a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding: .8rem;
    color: var(--paper);
    background: var(--ink2);
    border: 1px solid var(--bdr);
    text-decoration: none;
    font: 1.6rem var(--f-d);
}
.news-filters {
    padding: 1rem;
    border: 1px solid var(--bdr);
    background: var(--ink2);
}
.news-filters button { background: var(--gold); color: var(--ink); font-weight: 700; }
.news-row {
    display: grid;
    grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr);
    gap: clamp(.75rem, 3vw, 1.5rem);
    padding-block: 1.15rem;
    border-bottom: 1px solid var(--bdr);
}
.news-row > img, .news-row .news-cover-fallback {
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}
.news-row .news-cover-fallback { display: grid; place-items: center; background: var(--ink2); }
.news-row .news-cover-fallback img { width: 45%; max-height: 70%; object-fit: contain; }
.news-row h2 { margin-block: .35rem; font: clamp(1.45rem, 4vw, 2rem)/1.05 var(--f-d); }
.news-row h2 a { color: var(--paper); text-decoration: none; }
.news-row h2 a:hover { color: var(--gold); }
.news-row-body > p:last-child { color: #c6beb0; line-height: 1.5; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: #c6beb0; font-size: .85rem; }
.news-meta span { padding: .2rem .45rem; border: 1px solid var(--bdr); color: var(--gold); }
@media (max-width: 30rem) {
    .news-row { grid-template-columns: minmax(0, 1fr); }
    .news-row > img, .news-row .news-cover-fallback { max-height: 11rem; }
}

.archive-page { padding-top: 64px; }
.archive-page #nav { background: var(--ink); border-bottom: 1px solid var(--bdr); }
.archive-page .archive-nav, .archive-page nav.news-more {
    position: static;
    height: auto;
    justify-content: flex-start;
    padding-inline: 0;
}
.archive-page section[id] { scroll-margin-top: 5rem; }
.archive-hero > img { width: min(100%, 19rem); justify-self: center; }
.archive-directory { width: calc(100% - 2 * clamp(1.25rem, 4vw, 3rem)); }
.edition-directory-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1.2rem 2rem;
    margin-bottom: clamp(1.4rem, 3vw, 2.5rem);
}
.edition-directory-head h1 { margin: 0; }
.edition-artist {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #d1cbc2;
    font-size: .9rem;
    text-decoration: none;
}
.edition-artist img { display: block; width: 2.6rem; height: auto; padding: .2rem; background: #fff; }
.edition-artist strong { color: var(--paper); }
.edition-artist:hover strong, .edition-artist-arrow { color: #ff8b57; }
.edition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(10rem, 15vw, 20rem)), 1fr));
    gap: clamp(.75rem, 1.4vw, 1.4rem);
    list-style: none;
}
.edition-grid a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--bdr);
    background: var(--ink2);
    color: var(--paper);
    text-decoration: none;
}
.edition-grid a:hover { border-color: #ff8b57; }
.edition-grid a:focus-visible, .edition-artist:focus-visible {
    outline: 2px solid #ff8b57;
    outline-offset: 3px;
}
.edition-cover {
    aspect-ratio: 1;
    background: #fff;
    padding: clamp(.4rem, 1vw, .85rem);
    overflow: hidden;
}
.edition-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.edition-card-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding: .55rem .8rem;
    font: clamp(1.65rem, 2.6vw, 2.5rem)/1 var(--f-d);
}
.edition-card-label span { color: #ff8b57; font: 1rem var(--f-b); }
@media (max-width: 32rem) {
    .edition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.edition-home { width: 100%; }
.edition-home .hero-h1 img { width: min(65vw, 25rem); height: auto; }

.edition-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    min-height: calc(100svh - 64px);
    width: 100cqw;
    margin-inline: calc((100% - 100cqw) / 2);
    background: var(--ink2);
    color: var(--paper);
}
.edition-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.edition-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(0deg, #0c0b09ed, #0c0b0933 45%, transparent 70%);
}
.edition-hero-caption {
    padding: clamp(2.5rem, 6vw, 6rem) 48px;
}
.edition-hero h1 {
    margin-block: .5rem;
    font: clamp(3.5rem, 10vw, 10rem)/.9 var(--f-d);
}
.edition-hero h1 span { color: var(--orange); }
.archive-page .archive-nav { padding-block: 1rem; }
.edition-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem 1rem;
}
.edition-section-head a { color: var(--gold); }
.edition-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1rem;
}
.edition-news-card {
    background: var(--ink2);
    border: 1px solid var(--bdr);
}
.edition-news-card > a { display: block; height: 100%; color: var(--paper); text-decoration: none; }
.edition-news-card > a:hover h3 { color: var(--gold); }
.edition-news-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.edition-news-card-body { padding: 1rem; }
.edition-news-card .news-meta { color: var(--gold); }
.edition-news-card h3 { font: 1.6rem/1.1 var(--f-d); margin-block: .4rem; }
.edition-news-card-body > p:last-child { color: #c6beb0; line-height: 1.5; }
.edition-program { display: grid; gap: .65rem; }
.gironi.edition-standings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}
.edition-standings .girone { background: var(--ink2); }
.edition-standings .gir-lbl { color: #b5ada0; }
.edition-standing-list { list-style: none; }
.edition-standings .gir-row { gap: 1rem; }
.edition-standings .gir-team { min-width: 0; overflow-wrap: anywhere; }
.edition-standings .gir-row:not(.r1):not(.r2) :is(.gir-badge, .gir-pts) { color: #c9c0b5; }
.edition-standings .gir-pts { flex: none; font-variant-numeric: tabular-nums; }
.edition-standing-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .75rem;
    margin-top: .3rem;
    color: #b5ada0;
    font-size: .72rem;
    line-height: 1.4;
}
.edition-standing-stats div { display: flex; gap: .25rem; }
.edition-standing-stats dd { color: var(--paper); font-variant-numeric: tabular-nums; }
.edition-standing-unit {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
@media (max-width: 640px) {
    .gironi.edition-standings { grid-template-columns: minmax(0, 1fr); }
}
.edition-day { border: 1px solid var(--bdr); background: var(--ink2); }
.edition-day summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .8rem 1rem;
    font: 1.45rem var(--f-d);
}
.edition-day summary::-webkit-details-marker { display: none; }
.edition-day summary span:last-child { color: var(--gold); }
.edition-day[open] summary span:last-child { transform: rotate(45deg); }
.edition-day table { width: 100%; border-collapse: collapse; }
.edition-day th, .edition-day td { text-align: left; padding: .75rem 1rem; border-top: 1px solid var(--bdr); }
.edition-day th { color: #c6beb0; font-size: .82rem; }
#calendario .edition-day td:first-child,
#risultati .edition-day td:last-child,
#classifiche .edition-day td:last-child { color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
#calendario .edition-day td:first-child,
#risultati .edition-day td:last-child,
#classifiche .edition-day td:last-child { width: 1%; }
.news-detail { width: 100%; }
.news-detail .nd-hero { min-height: clamp(25rem, 62vh, 40rem); }
.news-detail .nd-title { font-size: clamp(2.7rem, 7vw, 6.2rem); }
.news-detail .nd-hero-body { margin-inline: auto; }
.news-detail .news-edition-back { margin-left: 1rem; }
@media (max-width: 36rem) {
    .edition-day th, .edition-day td { padding-inline: .65rem; }
    .news-detail .nd-hero-body, .news-detail .nd-body { padding-inline: 1rem; }
}

.edition-day .edition-time,
.edition-day .edition-score {
    width: 1%;
    color: var(--gold);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

body.archive-page { container-type: inline-size; }
.archive-wide {
    --archive-gutter: 48px;
    width: calc(100cqw - 2 * var(--archive-gutter));
    margin-inline: calc((100% - (100cqw - 2 * var(--archive-gutter))) / 2);
}
.archive-news-grid.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.9rem); }
.archive-news-card.nc {
    display: flex;
    align-items: end;
    min-height: clamp(18rem, 27vw, 24rem);
}
.archive-news-card .nc-body {
    position: relative;
    width: 100%;
    padding: clamp(1rem, 2vw, 1.55rem);
}
.archive-news-card .nc-title { font-weight: 400; line-height: 1.06; }
.archive-news-card .nc-exr { color: #d1cbc2; }
.archive-news-card:focus-visible, .archive-photo-album summary:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}
.archive-media-arrow {
    position: absolute;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    top: .9rem;
    right: .9rem;
    border: 1px solid #f0ede67a;
    border-radius: 50%;
    background: #0c0b0966;
    color: var(--paper);
}
.archive-album-grid.win-grid { align-items: start; gap: .4rem; }
.archive-photo-album:only-child, .archive-photo-album:last-child:nth-child(odd) { grid-column: 1 / -1; }
.archive-photo-album summary.wc {
    display: block;
    isolation: isolate;
    min-height: clamp(15rem, 32vw, 29rem);
    cursor: pointer;
    list-style: none;
}
.archive-photo-album summary::-webkit-details-marker { display: none; }
.archive-photo-album .wc::before {
    z-index: 1;
    background: linear-gradient(to top, #0c0b09f2 0%, #0c0b0940 65%, #0c0b0920);
}
.archive-album-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.archive-photo-album .wc-info { z-index: 2; padding: clamp(1rem, 3vw, 2rem); }
.archive-photo-album .wc-role { color: #ddd5c9; }
.archive-photo-album .wc-name { display: block; }
.archive-photo-album .archive-media-arrow::before { content: '+'; }
.archive-photo-album[open] .archive-media-arrow::before { content: '−'; }
.archive-photo-album .archive-photos { margin: .7rem; }
@media (max-width: 64rem) {
    .archive-news-grid.news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
    .archive-news-grid.news-grid, .archive-album-grid.win-grid { grid-template-columns: minmax(0, 1fr); }
    .archive-news-card.nc { min-height: 17rem; }
}

@media (max-width: 768px) {
    .archive-wide { --archive-gutter: 20px; }
    .edition-hero-caption { padding-inline: 20px; }
}

.news-filters label:nth-child(1) { flex: 2 1 16rem; }
.news-filters label:nth-child(2) { flex: 1 1 9rem; }
.news-filters label { color: #ddd4c7; font-size: .9rem; min-width: 0; }
.news-filters input, .news-filters select { min-width: 0; color-scheme: dark; }
.news-reset { color: var(--gold); padding: .65rem .2rem; text-decoration: underline; }
.news-results-count { margin-bottom: 1rem; color: #ddd4c7; }
.site-search-controls { max-width: 60rem; }
.site-search-results { list-style: none; padding: 0; max-width: 60rem; }
.site-search-results li { border-top: 1px solid var(--bdr); }
.site-search-results a { display: block; padding: 1rem .25rem; text-decoration: none; }
.site-search-results a:hover strong { color: #ff8b57; }
.site-search-results small { color: #ff8b57; }
.site-search-results strong { display: block; margin-block: .15rem; font: 1.8rem/1.1 var(--f-d); }
.site-search-results p { color: #ddd4c7; max-width: 65ch; }
.archive-photo-album[id] { scroll-margin-top: 5rem; }

.roster-page { padding-block: clamp(6rem, 12vw, 9rem) 4rem; }
.roster-page h1 { overflow-wrap: anywhere; }
.roster-layout {
    display: grid;
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: start;
    margin-top: 2rem;
}
.roster-list { max-width: 65rem; background: var(--ink2); }
.roster-list ul { list-style: none; }
.roster-list .gir-row { color: var(--paper); overflow-wrap: anywhere; }
.roster-photo { display: block; }
.roster-photo img { display: block; width: 100%; height: auto; border-radius: 5px; }
@media (min-width: 850px) {
    .roster-with-photo { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
}
#squadre { scroll-margin-top: 5rem; }
