/* Componenti condivisi con la pagina Calendario: header, breadcrumb e footer. */
:root {
  --anc-ink: #10231c;
  --anc-muted: #53625c;
  --anc-green-dark: #0e4933;
  --anc-max: 1180px;
}

body {
  margin: 0;
}

.anc-wrap {
  width: min(calc(100% - 2rem), var(--anc-max));
  margin-inline: auto;
}

.anc-breadcrumb {
  padding: 1rem 0;
  color: var(--anc-muted);
  background: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .9rem;
  line-height: 1.65;
}

.anc-breadcrumb a {
  color: var(--anc-green-dark);
  text-underline-offset: .2em;
}

/* =========================================================
   HEADER ACCADEMIA - versione semplice senza menu
   Copiato dalla pagina Calendario.
   ========================================================= */
.anc-header {
  --blue: #123f67;
  --navy: #071d31;
  --gold: #d8aa2b;
  position: relative;
  z-index: 1000;
  background: #ffff00 !important;
  border-bottom: 1px solid #d8e0e7;
  box-shadow: 0 5px 20px #071d3114;
  font-family: "DM Sans", Arial, sans-serif;
}

.anc-header * {
  box-sizing: border-box;
}

.anc-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(1180px, calc(100% - 32px));
  min-height: 82px;
  margin: auto;
}

.anc-header__brand {
  display: flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}

.anc-header__logo {
  display: block;
  width: clamp(155px, 18vw, 205px);
  height: auto;
  max-height: 68px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .anc-header__inner {
    min-height: 72px;
  }

  .anc-header__logo {
    width: clamp(145px, 44vw, 180px);
    max-height: 60px;
  }
}

@media (max-width: 520px) {
  .anc-wrap {
    width: min(calc(100% - 1.25rem), var(--anc-max));
  }
}

/* =========================================================
   FOOTER ACCADEMIA
   Copiato dalla pagina Calendario.
   ========================================================= */
.anc-footer {
  --blue: #0c5678;
  --gold: #ffff00;
  box-sizing: border-box;
  color: #e7edf2;
  background: var(--blue) !important;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
}

.anc-footer * {
  box-sizing: border-box;
}

.anc-footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 45px;
  width: min(1180px, calc(100% - 36px));
  margin: auto;
  padding: 52px 0;
}

.anc-footer h2 {
  margin: 0 0 22px;
  padding-bottom: 10px;
  color: #fff;
  border-bottom: 3px solid var(--gold);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.anc-footer address {
  display: grid;
  gap: 7px;
  font-style: normal;
}

.anc-footer address strong {
  margin-top: 7px;
  color: #fff;
}

.anc-footer a {
  color: #fff;
  text-underline-offset: 3px;
}

.anc-footer a:hover {
  color: var(--gold);
}

.anc-footer ul {
  padding-left: 18px;
}

.anc-footer li {
  margin: .45em 0;
}

.anc-footer dl {
  margin: 0;
}

.anc-footer dl div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #ffffff29;
}

.anc-footer dd {
  margin: 0;
  font-weight: 700;
}

.anc-footer__legal {
  padding: 28px max(18px, calc((100% - 1180px) / 2));
  background: #071d31;
  border-top: 4px solid var(--gold);
  font-size: 13px;
  line-height: 1.65;
}

.anc-footer__legal > p {
  text-align: center;
}

.anc-footer__legal > ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  text-align: center;
}

.anc-footer__legal > ul > li {
  margin: .45em 0;
}

.anc-footer details {
  margin-top: 20px;
  border: 1px solid #ffffff29;
  border-radius: 7px;
}

.anc-footer summary {
  padding: 14px;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.anc-footer details p {
  padding: 0 14px;
}

@media (max-width: 760px) {
  .anc-footer__grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 768px) {
  .anc-footer, .anc-footer h2, .anc-footer__legal { font-size: 12px; }
}
