:root {
  color-scheme: light;
  --pine: #12271e;
  --ink: #162b21;
  --muted: #48584e;
  --paper: #f5f5ed;
  --lime: #d5e792;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Segoe UI', system-ui, sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[hidden] { display: none !important; }
p, h1, h2 { margin: 0; }
.wrap { width: min(84rem, 100% - 8rem); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 4; padding: .7rem 1rem; background: var(--lime); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--pine); color: #f5f7eb; position: relative; z-index: 2; }
.header-inner { min-height: 5.4rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .9rem; width: max-content; text-decoration: none; }
.brand-mark { width: 4.25rem; height: 4.25rem; object-fit: contain; background: #edf1e8; border-radius: .35rem; }
.brand-name { border-left: 1px solid #7c8b81; padding-left: .9rem; font-size: .96rem; font-weight: 650; line-height: 1.25; }
.brand-name small { display: block; font-size: .75rem; margin-top: .2rem; color: #d3dfd5; font-weight: 450; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.8rem, 1.45vw, 1.75rem); }
.site-nav a { text-decoration: none; font-size: .94rem; }
.site-nav a:not(.button):hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .32em; }
.menu-toggle { color: inherit; background: transparent; border: 1px solid #829185; padding: .5rem .8rem; border-radius: .25rem; font: inherit; cursor: pointer; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.2rem; border: 1px solid transparent; border-radius: .22rem; padding: .7rem 1.3rem; font-weight: 650; line-height: 1.25; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.button-header { min-height: 2.7rem; border-color: #8da18d; }
.button-header:hover, .button-outline:hover { background: #f5f7eb; color: var(--pine); }
.button-lime { color: var(--pine); background: var(--lime); }
.button-lime:hover { background: #edf4c8; }
.button-outline { border-color: #d2dacd; color: #fff; }

.hero { position: relative; isolation: isolate; min-height: clamp(37rem, 47vw, 49rem); display: grid; align-items: center; color: #fff; background: #233b28; overflow: hidden; }
.hero-photo, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -2; object-fit: cover; object-position: center 54%; }
.hero::after { z-index: -1; content: ''; background: linear-gradient(90deg, rgba(10,25,18,.91), rgba(10,25,18,.69) 34%, rgba(10,25,18,.09) 78%), linear-gradient(0deg, #0a191846, transparent 60%); }
.hero-content { padding-block: 4rem 5rem; }
.eyebrow { color: #425b41; font-size: .82rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1.15rem; line-height: 1.4; }
.hero-label, .join .eyebrow { color: var(--lime); }
.hero h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.06em; line-height: .96; }
.hero h1 { font-size: clamp(4.4rem, 8.3vw, 8.45rem); }
.hero h1 em, .join h2 em { color: var(--lime); font-weight: 400; }
.hero-description { max-width: 30rem; font-size: clamp(1.03rem, 1.4vw, 1.22rem); margin-top: 1.7rem; color: #f0f4ed; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }

h2 { font-size: clamp(3rem, 5.8vw, 6.3rem); }
.intro, .join-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: end; }
.intro { align-items: start; }
.intro-crest { width: clamp(9.5rem, 18vw, 12.1875rem); height: auto; margin-top: .75rem; }
.intro-body, .join-body { max-width: 34rem; color: var(--muted); font-size: 1.1rem; }
.intro-body p + p { margin-top: .75rem; }
.text-link { font-weight: 690; text-decoration-thickness: 1px; text-underline-offset: .27em; }
.text-link:hover { text-decoration-thickness: 2px; }
.intro-body .text-link { display: inline-block; margin-top: 1.2rem; color: var(--ink); }

.sports { background: #e8eee2; padding-block: 2.8rem; }
.sports-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); align-items: center; gap: 2rem; }
.sports h2 { font-size: clamp(2.4rem, 4.2vw, 4rem); }
.sport-link { display: grid; gap: .2rem; padding-block: .9rem; border-bottom: 1px solid #92a391; text-decoration: none; }
.sport-link strong { font: 1.8rem/1.1 var(--display); }
.sport-link span { color: var(--muted); }
.sport-link:hover strong { text-decoration: underline; text-underline-offset: .18em; }

.page-hero { background: #244233; color: var(--paper); }
.page-hero-inner { display: grid; gap: 2.75rem; align-items: center; padding-block: clamp(3.7rem, 8vw, 7rem); }
.page-hero-inner.has-photo { grid-template-columns: 1fr 1.08fr; }
.page-hero .eyebrow { color: var(--lime); }
.page-hero h1 { font: 400 clamp(4rem, 8.2vw, 7.5rem)/.95 var(--display); letter-spacing: -.06em; }
.page-lead { font-size: 1.16rem; max-width: 42rem; margin-top: 1.2rem; color: #e6eee6; }
.page-hero figure { margin: 0; width: 100%; }
.page-hero figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .35rem; }
.page-hero figure .sport-panorama { aspect-ratio: auto; }
.page-hero figure figcaption { color: #e6eee6; font-size: .875rem; margin-top: .45rem; }
.page-content { display: grid; gap: clamp(2.5rem, 5vw, 4.6rem); }
.page-block { display: grid; grid-template-columns: 1fr 1.1fr; align-items: start; gap: clamp(1.5rem, 5vw, 4.5rem); padding-top: 1.8rem; border-top: 1px solid #bac6b9; }
.page-block h2 { font-size: clamp(2.35rem, 4.7vw, 4.5rem); }
.sport-section { padding-block: clamp(3rem, 6vw, 6rem); scroll-margin-top: 1rem; }
.sport-section + .sport-section { border-top: 1px solid #bac6b9; }
.sport-intro { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(1.25rem, 5vw, 4.5rem); margin-bottom: clamp(2rem, 4vw, 3.75rem); }
.sport-intro h2 + p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }
.sport-intro figure { margin: 0; }
.sport-intro picture { display: block; }
.sport-intro img { width: 100%; height: auto; border-radius: .35rem; }
.sport-intro figcaption { margin-top: .4rem; color: var(--muted); font-size: .875rem; }
.sport-section h3 { margin: 0; font: 400 clamp(2.05rem, 4vw, 3.3rem)/1.04 var(--display); letter-spacing: -.04em; }
.member-steps { margin: 0; padding-left: 1.35em; }
.contact-layout { display: grid; gap: clamp(2.5rem, 6vw, 6rem); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.contact-layout h2 { font-size: clamp(2.35rem, 4.7vw, 4.5rem); margin-bottom: 1rem; }
.contact-layout p { color: var(--muted); }
.contact-form { margin-top: 1.6rem; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.3rem; }
.contact-fields label { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .3rem; font-weight: 650; }
.contact-fields small { color: var(--muted); font-size: .875rem; font-weight: 400; }
.contact-fields input, .contact-fields textarea { width: 100%; background: #fff; color: var(--ink); border: 1px solid #83968a; border-radius: .25rem; padding: .65rem .75rem; font: inherit; font-weight: 400; }
.contact-fields input:focus-visible, .contact-fields textarea:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.contact-fields textarea { resize: vertical; }
.contact-full { grid-column: 1 / -1; }
.contact-form button { margin-top: 1rem; cursor: pointer; font-family: inherit; font-size: 1rem; }
#contact-status:not(:empty) { margin-top: .7rem; }
.contact-details address { display: grid; gap: .4rem; font-style: normal; }
.contact-details address p { margin-top: .5rem; }
.activity-heading picture { display: block; max-width: 31rem; margin-top: 1rem; }
.activity-heading img { width: 100%; height: auto; border-radius: .35rem; }
.page-block-body { font-size: 1.075rem; color: var(--muted); }
.page-block-body p + p, .page-block-body p + ul { margin-top: .85rem; }
.page-block-body .text-link { display: inline-block; margin-top: .85rem; color: var(--ink); }
.page-block-body .button { margin-top: 1.15rem; }
.page-block-body ul { margin: 0; padding-left: 1.15em; }
.page-block-body li + li { margin-top: .45rem; }
.page-block-wide { grid-template-columns: 1fr; gap: 1.2rem; }
.standings { min-width: 0; }
.standings summary { width: fit-content; cursor: pointer; font-weight: 700; }
.table-scroll { overflow-x: auto; margin-top: 1rem; }
.table-scroll:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.table-scroll table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table-scroll caption { color: var(--muted); text-align: left; margin-bottom: .65rem; }
.table-scroll th, .table-scroll td { padding: .6rem .75rem; border-bottom: 1px solid #bdc8b9; white-space: nowrap; text-align: right; }
.table-scroll thead { background: var(--pine); color: var(--paper); }
.table-scroll th:first-child { text-align: left; }
.table-scroll tbody tr:first-child { background: #e8eee2; }
.team-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1rem 0 1.3rem; }
.team-result > div { background: #e8eee2; padding: .75rem; border-radius: .3rem; }
.team-result dt { font-size: .875rem; }
.team-result dd { margin: 0; color: var(--ink); font: 2.1rem/1.2 var(--display); }
.page-hero figure .team-photo { aspect-ratio: 4 / 3; }
.page-block-body :is(.sponsor-list, .sponsor-slots) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; list-style: none; padding: 0; }
.page-block-body :is(.sponsor-list, .sponsor-slots) li { min-width: 0; min-height: 4.5rem; aspect-ratio: 4 / 3; border-radius: .3rem; }
.page-block-body :is(.sponsor-list, .sponsor-slots) li + li { margin-top: 0; }
.sponsor-slots .sponsor-invitation { border: 1px dashed #97aa9a; background: #edf1e8; color: var(--ink); font-weight: 700; }
.sponsor-list li { display: grid; background: #fff; border: 1px solid #d3dccf; text-align: center; }
.sponsor-list :is(a, .sponsor-card) { display: grid; min-width: 0; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: .1rem; padding: .15rem; border-radius: inherit; text-decoration: none; }
.sponsor-list a:hover span { text-decoration: underline; text-underline-offset: .15em; }
.sponsor-list img { width: 100%; height: 100%; max-height: 4.75rem; object-fit: contain; }
.sponsor-list span { font-size: .75rem; line-height: 1.1; }
.sponsor-list .sponsor-name { place-self: center; padding: .35rem; }
.sponsor-list .sponsor-logo-light { width: min(100%, 6.75rem); padding: .1rem .18rem; background: var(--pine); border-radius: .2rem; }

.join { background: #244233; color: var(--paper); }
.join-body { color: #e6eee6; }
.join-body .button { margin-top: 1.3rem; }
.footer { background: var(--pine); color: #edf4eb; padding-top: 3.25rem; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 2rem; }
.footer h2 { font: 700 1rem/1.3 var(--body); letter-spacing: normal; margin-bottom: .55rem; }
.footer address { font-style: normal; color: #d3dfd5; }
.footer address a { display: block; width: fit-content; text-underline-offset: .22em; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 2.5rem; border-top: 1px solid #496357; padding-block: 1rem 1.2rem; color: #d3dfd5; font-size: .875rem; }
.footer-logos { display: flex; flex-wrap: wrap; gap: .65rem; }
.footer-logos a { display: grid; place-items: center; width: 5rem; height: 4.25rem; padding: .4rem; background: #fff; border-radius: .3rem; }
.footer-logos img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }

@media (max-width: 62rem) { .wrap { width: calc(100% - 4rem); } }
@media (max-width: 66rem) {
  .header-inner { min-height: 4.6rem; flex-wrap: wrap; gap: .85rem; padding-block: .85rem; }
  .brand-mark { width: 3.6rem; height: 3.6rem; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: .65rem .2rem; }
  .site-nav .button { margin-top: .4rem; }
}
@media (max-width: 56rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .hero { min-height: 36rem; }
  .hero-photo { object-position: 59% center; }
  .hero::after { background: linear-gradient(90deg, #0a1918e8, #0a191867 100%); }
  .hero-content { padding-block: 3.8rem; }
  .intro, .join-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .sports-grid, .page-hero-inner.has-photo, .page-block, .sport-intro { grid-template-columns: 1fr; gap: 1.2rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .page-hero-inner.has-photo { gap: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 24rem) {
  .hero h1 { font-size: clamp(3rem, 17vw, 4.35rem); }
  .footer-grid { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
}
@media (max-width: 30rem) {
  .contact-fields { grid-template-columns: 1fr; }
  .page-block-body :is(.sponsor-list, .sponsor-slots) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Pagina di accesso */
.login-aside { margin-top: 1rem; color: var(--muted); font-size: 1.075rem; }
.login-aside .text-link { color: var(--ink); }
.login-form { max-width: 30rem; }
.login-fields { margin-bottom: 1rem; }
.login-remember { display: flex; align-items: center; gap: .55rem; color: var(--muted); cursor: pointer; }
.login-remember input { width: 1.1rem; height: 1.1rem; accent-color: var(--pine); }
.login-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.login-actions .text-link { color: var(--ink); }
.button-pine { color: var(--paper); background: var(--pine); cursor: pointer; font-family: inherit; font-size: 1rem; }
.button-pine:hover { background: #244233; }
.login-status:not(:empty) { margin-top: 1.2rem; padding: .85rem 1rem; background: #edf1e8; border-left: 3px solid var(--pine); color: var(--ink); }
