:root {
  --anc-ink: #10231c;
  --anc-muted: #53625c;
  --anc-green: #176b4a;
  --anc-green-dark: #0e4933;
  --anc-lime: #d9ee44;
  --anc-paper: #f6f7f2;
  --anc-white: #fff;
  --anc-line: #d9dfda;
  --anc-radius: .85rem;
  --anc-shadow: 0 12px 35px rgba(16,35,28,.09);
  --anc-max: 1180px;
  --anc-space: clamp(1rem,2vw,1.5rem);
}
.anc-scope {
  color: var(--anc-ink);
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  background: var(--anc-white);
}
.anc-scope * {
  box-sizing: border-box;
}
.anc-scope a {
  color: var(--anc-green-dark);
  text-underline-offset: .2em;
}
.anc-wrap {
  width: min(calc(100% - 2rem),var(--anc-max));
  margin-inline: auto;
}
.anc-section {
  padding: clamp(2.8rem,6vw,5.5rem) 0;
}
.anc-section--soft {
  background: var(--anc-paper);
}
.anc-skip {
  position: absolute;
  left: 1rem;
  top: -6rem;
  background: var(--anc-ink);
  color: #fff !important;
  padding: .75rem 1rem;
  z-index: 999;
}
.anc-skip:focus {
  top: 1rem;
}
.anc-breadcrumb {
  font-size: .9rem;
  padding: 1rem 0;
  color: var(--anc-muted);
}
.anc-hero {
  background: linear-gradient(135deg,var(--anc-ink),var(--anc-green-dark));
  color: #fff;
  padding: clamp(2.5rem,7vw,6rem) 0;
}
.anc-kicker {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--anc-lime);
}
.anc-title {
  font-size: clamp(2.15rem,6vw,4.75rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  max-width: 14ch;
  margin: .35rem 0 1rem;
}
.anc-lead {
  font-size: clamp(1.08rem,2vw,1.3rem);
  max-width: 62ch;
  color: #e7eee9;
}
.anc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}
.anc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.15rem;
  border: 2px solid transparent;
  border-radius: .55rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.anc-btn--primary {
  background: var(--anc-lime);
  color: var(--anc-ink) !important;
}
.anc-btn--secondary {
  border-color: #fff;
  color: #fff !important;
}
.anc-btn:focus-visible,.anc-filter:focus-visible,.anc-card a:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}
.anc-facts {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--anc-line);
  border: 1px solid var(--anc-line);
  border-radius: var(--anc-radius);
  overflow: hidden;
  margin-top: -1.5rem;
  position: relative;
  box-shadow: var(--anc-shadow);
}
.anc-fact {
  background: #fff;
  padding: 1.25rem;
}
.anc-fact dt {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--anc-muted);
  font-weight: 800;
}
.anc-fact dd {
  margin: .25rem 0 0;
  font-weight: 800;
}
.anc-grid {
  display: grid;
  grid-template-columns: minmax(0,1.8fr) minmax(260px,.8fr);
  gap: clamp(2rem,5vw,5rem);
}
.anc-copy {
  max-width: 72ch;
}
.anc-copy h2,.anc-section-title {
  font-size: clamp(1.7rem,3vw,2.75rem);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 1rem;
}
.anc-copy h3 {
  margin-top: 2rem;
}
.anc-copy li+li {
  margin-top: .5rem;
}
.anc-aside {
  align-self: start;
  border-top: 5px solid var(--anc-lime);
  background: var(--anc-paper);
  padding: 1.25rem;
  border-radius: 0 0 var(--anc-radius) var(--anc-radius);
}
.anc-aside h2 {
  font-size: 1.25rem;
}
.anc-aside dl {
  margin: 0;
}
.anc-aside dt {
  font-weight: 800;
  margin-top: 1rem;
}
.anc-aside dd {
  margin: .15rem 0 0;
  color: var(--anc-muted);
}
.anc-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--anc-space);
}
.anc-card {
  border: 1px solid var(--anc-line);
  border-radius: var(--anc-radius);
  padding: 1.25rem;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16,35,28,.04);
}
.anc-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: .5rem 0;
}
.anc-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  color: var(--anc-muted);
  font-size: .92rem;
}
.anc-tag {
  display: inline-block;
  background: #e8f1ec;
  color: var(--anc-green-dark);
  border-radius: 99px;
  padding: .2rem .6rem;
  font-size: .78rem;
  font-weight: 800;
}
.anc-price {
  font-size: 1.35rem;
  font-weight: 900;
}
.anc-note {
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--anc-green);
  background: #edf4f0;
}
.anc-cta {
  background: var(--anc-lime);
  padding: clamp(1.5rem,4vw,3rem);
  border-radius: var(--anc-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.anc-cta h2 {
  margin: 0;
  font-size: clamp(1.5rem,3vw,2.4rem);
}
.anc-cta .anc-btn {
  background: var(--anc-ink);
  color: #fff !important;
  white-space: nowrap;
}
.anc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin: 1.5rem 0 2rem;
}
.anc-filter {
  border: 1px solid var(--anc-line);
  background: #fff;
  color: var(--anc-ink);
  padding: .65rem .9rem;
  min-height: 44px;
  border-radius: .5rem;
  font-weight: 750;
  cursor: pointer;
}
.anc-filter[aria-pressed="true"] {
  background: #ffff00 !important;
  color: #10231c !important;
  border-color: #d6d600 !important;
}
.anc-results {
  color: var(--anc-muted);
  margin-left: auto;
}
.anc-month {
  margin-top: 2.5rem;
}
.anc-month h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid var(--anc-line);
  padding-bottom: .6rem;
}
.anc-event-list {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1rem;
}
.anc-event[hidden] {
  display: none;
}
.anc-empty {
  padding: 2rem;
  background: var(--anc-paper);
  text-align: center;
  border-radius: var(--anc-radius);
}
@media (max-width:850px) {
  .anc-facts {
    grid-template-columns: repeat(2,1fr);
  }
  .anc-grid {
    grid-template-columns: 1fr;
  }
  .anc-cards,.anc-event-list {
    grid-template-columns: 1fr;
  }
  .anc-results {
    width: 100%;
    margin-left: 0;
  }
  .anc-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width:520px) {
  .anc-wrap {
    width: min(calc(100% - 1.25rem),var(--anc-max));
  }
  .anc-facts {
    grid-template-columns: 1fr;
  }
  .anc-actions .anc-btn {
    width: 100%;
  }
  .anc-title {
    font-size: 2.45rem;
  }
}
@media (prefers-reduced-motion:reduce) {
  .anc-scope * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.anc-image-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  margin: 1.5rem 0;
  border: 2px dashed #789087;
  border-radius: var(--anc-radius);
  background: linear-gradient(135deg,#edf4f0,#f8faf7);
  color: var(--anc-green-dark);
  padding: 1.25rem;
  text-align: center;
  font-size: .9rem;
}
.anc-image-placeholder--square {
  aspect-ratio: 4/3;
}
.anc-editorial-placeholder {
  display: inline-block;
  background: #fff3cd;
  color: #5f4700;
  border: 1px solid #e7cc70;
  border-radius: .35rem;
  padding: .1rem .35rem;
  font-weight: 750;
}
.anc-source-note {
  font-size: .86rem;
  color: var(--anc-muted);
  border-top: 1px solid var(--anc-line);
  padding-top: 1rem;
  margin-top: 2rem;
}
.anc-scope,
.anc-scope h1,
.anc-scope h2,
.anc-scope h3,
.anc-scope h4,
.anc-scope h5,
.anc-scope h6,
.anc-scope button,
.anc-scope input,
.anc-scope select,
.anc-scope textarea {
  font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif;
}

.anc-scope h1,
.anc-scope h2,
.anc-scope h3,
.anc-scope h4,
.anc-scope h5,
.anc-scope h6 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

/* =========================================================
   BASE PAGINA
   ========================================================= */
body.anc-scope {
  margin: 0;
}

/* =========================================================
   HEADER ACCADEMIA - versione semplice senza menu
   Copiato/adattato dalla pagina One to One di riferimento.
   ========================================================= */
.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: "Trebuchet MS", Trebuchet, 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;
  }
}

/* =========================================================
   PULSANTI FILTRO AGENDA
   ========================================================= */
.anc-filter:hover {
  background: #f7f7d4;
  border-color: #bfc4bf;
}

.anc-filter[aria-pressed="true"]:hover {
  background: #ffff00;
  border-color: #b8b800;
}

/* =========================================================
   CARD CORSI / IMMAGINI
   Per cambiare foto: modifica --course-photo nell'HTML della card.
   Il secondo URL è il fallback se la nuova immagine non è ancora caricata.
   ========================================================= */
.anc-event {
  --course-photo: url("images/corsi/default-corso.webp");
  --course-position: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 15.5rem;
  display: flex;
  flex-direction: column;
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
  background-color: #10231c;
  background-image: linear-gradient(112deg, rgba(6, 23, 17, .88) 0%, rgba(6, 23, 17, .72) 55%, rgba(6, 23, 17, .40) 100%), var(--course-photo);
  background-position: center, var(--course-position);
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 8px 24px rgba(16, 35, 28, .16);
}

.anc-event[data-course="one-to-one"] {
  background-image: linear-gradient(112deg, rgba(6, 23, 17, .72) 0%, rgba(6, 23, 17, .55) 55%, rgba(6, 23, 17, .25) 100%), var(--course-photo);
}

.anc-event h3,
.anc-event p,
.anc-event strong {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

.anc-event .anc-tag {
  align-self: flex-start;
  color: #10231c;
  background: rgba(255, 255, 255, .94);
  text-shadow: none;
}

.anc-event > a {
  align-self: flex-start;
  margin-top: auto;
  padding: .58rem .9rem;
  color: #fff;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: .5rem;
  text-decoration: none;
}

.anc-event > a:hover,
.anc-event > a:focus-visible {
  color: #10231c;
  background: #fff;
  text-shadow: none;
}

.anc-event > a:focus-visible {
  outline: 3px solid #ffd447;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .anc-event {
    min-height: 13.75rem;
  }
}

/* =========================================================
   FOOTER ACCADEMIA
   Copiato dalla pagina One to One di riferimento.
   ========================================================= */
.anc-footer {
  --blue: #0c5678;
  --gold: #ffff00;
  box-sizing: border-box;
  color: #e7edf2;
  background: var(--blue) !important;
  font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif;
}

.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-size: 20px;
}

.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;
}

/* Testi istituzionali nel footer: senza elenco puntato e centrati */
.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;
  }
}



/* =========================================================
   V4 - IMMAGINI CARD CORSI COME ELEMENTI <img>
   Soluzione più robusta del background CSS: l'immagine è un
   elemento reale della card e non dipende da variabili CSS/url.
   ========================================================= */
.anc-event {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #10231c !important;
}

.anc-event__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.anc-event::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    rgba(6, 23, 17, .58) 0%,
    rgba(6, 23, 17, .38) 55%,
    rgba(6, 23, 17, .12) 100%
  );
}

.anc-event[data-course="one-to-one"]::before {
  background: linear-gradient(
    112deg,
    rgba(6, 23, 17, .58) 0%,
    rgba(6, 23, 17, .38) 55%,
    rgba(6, 23, 17, .12) 100%
  );
}

.anc-event > :not(.anc-event__photo) {
  position: relative;
  z-index: 2;
}
/* =========================================================
   MENU PRINCIPALE HEADER
   ========================================================= */

.anc-header__inner {
    display: flex;
    align-items: center;
}

.anc-header__menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;

    width: min(900px, 70%);
    margin-left: auto;
}

.anc-header__menu a {
    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;

    color: #071d31 !important;
    text-decoration: none !important;

    white-space: nowrap;
    text-align: center;
}

.anc-header__menu a:hover {
    text-decoration: underline !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .anc-header__inner {
        flex-wrap: wrap;
    }

    .anc-header__menu {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;

        display: grid;
        grid-template-columns: repeat(2, 1fr);

        gap: 8px 12px;
    }

    .anc-header__menu a {
        justify-content: center;
        text-align: center;

        padding: 8px 10px;
    }

}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 480px) {

    .anc-header__menu {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   HOME PAGE ONLY — BREADCRUMB + AREA CENTRALE GIALLA
   Questo blocco serve alla /index.html principale.
   Non modifica le proporzioni di header/logo/menu.
   ========================================================= */

html,
body {
  margin: 0;
  padding: 0;
}

/* Barra bianca breadcrumb della home */
.anc-breadcrumb-bar {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border-bottom: 1px solid #e2e7eb !important;
  box-shadow: 0 2px 8px rgba(7, 29, 49, .04) !important;
}

.anc-breadcrumb-bar .anc-breadcrumb {
  display: flex !important;
  align-items: center !important;
  gap: .55rem !important;
  width: min(1180px, calc(100% - 32px)) !important;
  min-height: 54px !important;
  margin: 0 auto !important;
  padding: .8rem 0 !important;
  color: #53625c !important;
  background: #fff !important;
  font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

.anc-breadcrumb-bar .anc-breadcrumb *,
.anc-breadcrumb-bar .anc-breadcrumb a,
.anc-breadcrumb-bar .anc-breadcrumb span {
  font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif !important;
}

.anc-breadcrumb-bar .anc-breadcrumb a,
.anc-breadcrumb-bar .anc-breadcrumb a:link,
.anc-breadcrumb-bar .anc-breadcrumb a:visited {
  color: #0e4933 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: .2em !important;
}

.anc-breadcrumb__separator {
  color: #8a9690 !important;
}

/* Area centrale della home: sfondo giallo + logo centrato */
.coming-soon {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: clamp(360px, 52vh, 620px) !important;
  margin: 0 !important;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem !important;
  background: #ffff00 !important;
}

.coming-soon .brand {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  text-decoration: none !important;
}

.coming-soon .brand__logo {
  display: block !important;
  width: min(72vw, 760px) !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

@media (max-width: 820px) {
  .coming-soon {
    min-height: 390px !important;
    padding: 2.5rem 1rem !important;
  }

  .coming-soon .brand__logo {
    width: min(86vw, 680px) !important;
  }
}

@media (max-width: 480px) {
  .anc-breadcrumb-bar .anc-breadcrumb {
    min-height: 46px !important;
    font-size: 14px !important;
  }

  .coming-soon {
    min-height: 320px !important;
  }
}
/* =========================================================
   BREADCRUMB HOME - STESSO DEL CALENDARIO
   ========================================================= */

.anc-breadcrumb-bar {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

.anc-breadcrumb-bar .anc-breadcrumb {
    margin: 0 !important;
    padding: 1rem 0 !important;
    min-height: 0 !important;

    font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif !important;
    font-size: .9rem !important;
    line-height: 1.65 !important;

    color: #53625c !important;
}

.anc-breadcrumb-bar .anc-breadcrumb a,
.anc-breadcrumb-bar .anc-breadcrumb span {
    font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.anc-breadcrumb-bar .anc-breadcrumb a {
    color: #0e4933 !important;
}
/* =========================================================
   ALLINEAMENTO ORIZZONTALE BREADCRUMB HOME
   ========================================================= */

.anc-breadcrumb-bar .anc-breadcrumb {
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box;
}

/* Smartphone */
@media (max-width: 760px) {
    .anc-breadcrumb-bar .anc-breadcrumb {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}