/* PARAMETRI GRAFICI */
:root{--yellow:#ffff00;--ink:#071d31;--green:#173c30;--muted:#53625c;--paper:#fff;--line:#dce1e4;--radius:12px;--width:1180px;--head:Montserrat,Arial,sans-serif;--body:Figtree,Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font:400 17px/1.6 var(--body)}h1,h2,h3,h4{font-family:var(--head);line-height:1.2;margin:0 0 18px;font-weight:800}h1{font-size:clamp(28px,4vw,46px)}h2{font-size:clamp(23px,3vw,32px)}h4{font-size:20px}p{margin:0 0 18px}a{color:inherit}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #0c5678;outline-offset:3px}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:10px;top:10px;z-index:10000;background:white;padding:10px}.wrap{width:min(var(--width),calc(100% - 40px));margin-inline:auto}.intro{display:grid;grid-template-columns:2fr 1fr;gap:40px;align-items:center;padding-block:42px}.eyebrow{font-family:var(--head);font-weight:600}.sede img{display:block;width:100%;height:auto;border-radius:var(--radius);border:1px solid #cdd4d8}.btn{display:inline-flex;justify-content:center;align-items:center;background:var(--yellow);color:var(--ink);border:1px solid transparent;border-radius:8px;padding:13px 22px;text-decoration:none;font-weight:700;line-height:1.3;text-align:center}.btn:hover{border-color:var(--ink)}.section-title{background:var(--green);color:white;text-align:center;padding:24px 20px;scroll-margin-top:100px}.section-title h2{margin:0}.copy{padding-block:30px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}.field{min-width:0;margin:0;padding:0;border:0}.field.wide{grid-column:1/-1}.field>label,.field>legend{font-weight:700;display:block;margin-bottom:8px}.field input:not([type=radio]):not([type=checkbox]),.field select,.field textarea{width:100%;min-height:44px;border:1px solid #aeb8bf;border-radius:5px;padding:10px;background:white;color:var(--ink)}.choices{display:grid;gap:8px}.choice{display:flex;align-items:flex-start;gap:8px}.choice input{margin-top:7px;accent-color:var(--green);flex-shrink:0}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-block:20px 40px}.cards article{border:1px solid var(--line);border-radius:16px;padding:20px;display:flex;flex-direction:column;align-items:stretch}.cards h2{text-align:center}.cards img{display:block;width:100%;aspect-ratio:783/513;object-fit:contain;border-radius:12px;margin-bottom:20px}.cards .btn{align-self:flex-start;margin-top:auto}footer{background:var(--ink);color:white;padding-block:30px;font-size:15px}.footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.footer-grid h2{font-size:20px}footer ul{padding:0;list-style:none}footer li{margin-bottom:5px}.copyright{border-top:1px solid #ffffff44;padding-top:20px;margin-top:20px;font-size:13px}.copyright p{margin-bottom:0}@media(max-width:767px){.wrap{width:calc(100% - 32px)}.intro,.cards,.form-grid,.footer-grid{grid-template-columns:1fr}.intro{gap:20px;padding-block:26px}.sede{max-width:440px;margin:auto}.field.wide{grid-column:auto}.btn{max-width:100%}.copy{padding-block:24px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* MENU */
/* 01 - Menu, logo, breadcrumb e navigazione mobile */
/* Navigazione principale condivisa tra tutte le pagine dell'Accademia. */
.anc-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.anc-header__brand {
  flex: 0 0 auto;
}

.anc-header__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  width: auto;
  margin-left: auto;
  margin-right: 20px; /* Respiro visivo a destra del menu desktop */
}

.anc-header__menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: #071d31 !important;
  font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
}

.anc-header__menu a:hover,
.anc-header__menu a:focus-visible,
.anc-header__menu a[aria-current="page"] {
  text-decoration: none !important;
}

.anc-header__menu a:focus-visible,
.anc-header__toggle:focus-visible {
  outline: 3px solid #0c5678;
  outline-offset: 3px;
}

.anc-header__toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 10px;
  border: 2px solid #071d31;
  border-radius: 6px;
  background: transparent;
  color: #071d31;
  cursor: pointer;
}

.anc-header__toggle-lines,
.anc-header__toggle-lines::before,
.anc-header__toggle-lines::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.anc-header__toggle-lines {
  position: relative;
  margin: auto;
}

.anc-header__toggle-lines::before,
.anc-header__toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.anc-header__toggle-lines::before { transform: translateY(-7px); }
.anc-header__toggle-lines::after { transform: translateY(7px); }

.anc-header__toggle[aria-expanded="true"] .anc-header__toggle-lines {
  background: transparent;
}

.anc-header__toggle[aria-expanded="true"] .anc-header__toggle-lines::before {
  transform: rotate(45deg);
}

.anc-header__toggle[aria-expanded="true"] .anc-header__toggle-lines::after {
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .anc-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .anc-header__menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(360px, calc(100vw - 32px));
    margin: 0; /* Nessun margine aggiunto nel menu mobile */
    padding: 8px;
    border: 1px solid #d8e0e7;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #ffff00;
    box-shadow: 0 12px 24px rgba(7, 29, 49, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  .anc-header__menu[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .anc-header__menu a {
    justify-content: flex-start;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 4px;
    text-align: left;
  }

  .anc-header__menu a:hover,
  .anc-header__menu a:focus-visible {
    background: rgba(255, 255, 255, .55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .anc-header__menu,
  .anc-header__toggle-lines,
  .anc-header__toggle-lines::before,
  .anc-header__toggle-lines::after {
    transition: none;
  }
}

/* Elementi comuni, identici su tutte le sezioni: header e breadcrumb. */
.anc-header.anc-header--simple {--navy:#071d31;position:relative!important;z-index:1000!important;background:#ffff00!important;border-bottom:1px solid #d8e0e7!important;box-shadow:0 5px 20px #071d3114!important;font-family:"Figtree",Arial,sans-serif!important;}
.anc-header.anc-header--simple, .anc-header.anc-header--simple * {box-sizing:border-box!important;}
.anc-header.anc-header--simple .anc-header__inner {position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important;width:min(1180px,calc(100% - 32px))!important;max-width:none!important;min-height:82px!important;margin:0 auto!important;padding:0!important;gap:0!important;}
.anc-header.anc-header--simple .anc-header__brand {display:flex!important;align-items:center!important;flex:0 0 auto!important;text-decoration:none!important;}
.anc-header.anc-header--simple .anc-header__logo {display:block!important;width:clamp(155px,18vw,205px)!important;height:auto!important;max-height:68px!important;object-fit:contain!important;}
.anc-header.anc-header--simple #anc-main-menu {display:flex!important;position:static!important;align-items:center!important;justify-content:flex-end!important;flex-direction:row!important;gap:18px!important;width:auto!important;max-width:none!important;margin-left:auto!important;margin-right:20px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;}
.anc-header.anc-header--simple #anc-main-menu a {display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:4px 0!important;background:transparent!important;border:0!important;border-radius:0!important;color:#071d31!important;font-family:"Montserrat",Arial,sans-serif!important;font-size:14px!important;font-weight:800!important;line-height:1.2!important;letter-spacing:normal!important;text-align:center!important;text-decoration:none!important;text-transform:none!important;white-space:nowrap!important;}
.anc-header.anc-header--simple #anc-main-menu a:hover,.anc-header.anc-header--simple #anc-main-menu a:focus-visible,.anc-header.anc-header--simple #anc-main-menu a[aria-current="page"] {text-decoration:none!important;}
.anc-header.anc-header--simple .anc-header__toggle {display:none!important;}
.anc-breadcrumb-bar {display:block!important;width:100%!important;max-width:none!important;background:#fff!important;border:0!important;}
.anc-breadcrumb-bar .anc-breadcrumb {display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:0!important;width:min(1180px,calc(100% - 32px))!important;max-width:none!important;margin:0 auto!important;padding:1rem 0!important;color:#53625c!important;font-family:"Figtree",Arial,sans-serif!important;font-size:.9rem!important;font-weight:400!important;line-height:1.4!important;}
.anc-breadcrumb-bar .anc-breadcrumb :is(a,span) {font-family:"Figtree",Arial,sans-serif!important;font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important;letter-spacing:normal!important;text-transform:none!important;}
.anc-breadcrumb-bar .anc-breadcrumb a {color:#53625c!important;text-decoration:none!important;}
.anc-breadcrumb-bar .anc-breadcrumb a:hover {text-decoration:underline!important;}
.anc-breadcrumb-bar .anc-breadcrumb__separator {padding:0 .5rem!important;color:#53625c!important;}
@media(max-width:900px){
.anc-header.anc-header--simple .anc-header__inner {min-height:72px!important;}
.anc-header.anc-header--simple .anc-header__logo {width:clamp(145px,44vw,180px)!important;max-height:60px!important;}
.anc-header.anc-header--simple .anc-header__toggle {display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-left:auto!important;}
.anc-header.anc-header--simple #anc-main-menu {position:absolute!important;top:100%!important;right:0!important;z-index:1001!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;width:min(360px,calc(100vw - 32px))!important;margin:0!important;padding:8px!important;border:1px solid #d8e0e7!important;border-top:0!important;border-radius:0 0 8px 8px!important;background:#ffff00!important;box-shadow:0 12px 24px rgba(7,29,49,.18)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(-8px)!important;}
.anc-header.anc-header--simple #anc-main-menu[data-open="true"] {opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(0)!important;}
.anc-header.anc-header--simple #anc-main-menu a {justify-content:flex-start!important;min-height:48px!important;padding:10px 14px!important;text-align:left!important;}
.anc-header.anc-header--simple #anc-main-menu a:hover,.anc-header.anc-header--simple #anc-main-menu a:focus-visible {background:rgba(255,255,255,.55)!important;}
}


/* BREADCRUMB — riferimento grafico: homepage Accademia, 19/11/2026.
   Applicato a tutte le sezioni; evita differenze dovute ai CSS locali. */
.anc-breadcrumb-bar {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e7eb !important;
  box-shadow: 0 2px 8px rgba(7, 29, 49, .04) !important;
}
.anc-breadcrumb-bar .anc-breadcrumb {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: .55rem !important;
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: none !important;
  min-height: 54px !important;
  margin: 0 auto !important;
  padding: .8rem 30px !important;
  background: #ffffff !important;
  color: #53625c !important;
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}
.anc-breadcrumb-bar .anc-breadcrumb :is(a, span),
.anc-breadcrumb-bar .anc-breadcrumb a:link,
.anc-breadcrumb-bar .anc-breadcrumb a:visited {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !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-bar .anc-breadcrumb a:hover,
.anc-breadcrumb-bar .anc-breadcrumb a:focus-visible {
  text-decoration: underline !important;
}
.anc-breadcrumb-bar .anc-breadcrumb span[aria-current="page"] {
  color: #53625c !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}
.anc-breadcrumb-bar .anc-breadcrumb .anc-breadcrumb__separator {
  padding: 0 !important;
  color: #8a9690 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}
@media (max-width: 760px) {
  .anc-breadcrumb-bar .anc-breadcrumb { padding-left: 20px !important; padding-right: 20px !important; }
}
@media (max-width: 480px) {
  .anc-breadcrumb-bar .anc-breadcrumb { min-height: 46px !important; font-size: 14px !important; }
}

/* Isolamento dagli stili WordPress preesistenti */
.anc-header.anc-header--simple {width:100%!important;max-width:none!important;margin:0!important;padding:0!important;}
.anc-header.anc-header--simple .anc-header__logo {margin:0!important;padding:0!important;border:0!important;}
.anc-header.anc-header--simple .anc-header__brand {margin:0!important;padding:0!important;}
.anc-header.anc-header--simple .anc-header__toggle {flex-shrink:0;}
.anc-header.anc-header--simple .anc-header__toggle:hover {background:transparent;color:#071d31;}


/* SLIDER */
/* ==========================================================
   AFFILIAZIONI — SLIDER AUTONOMO / STEP 09
   Immagini e testi: ../slider-config.js
   Modificare qui soltanto l'aspetto grafico dello slider.
   ========================================================== */

.anc-simple-slider {
    --anc-slider-yellow: #FFFF00;
    --anc-slider-height: 480px;
    --anc-slider-overlay: .20; /* Velatura nera: 0 = assente, 1 = piena */
    position: relative;
    width: 100%;
}

.anc-simple-slider__viewport {
    position: relative;
    overflow: hidden;
    background: #111;
}

.anc-simple-slider__slides {
    position: relative;
    height: var(--anc-slider-height);
}

/* Immagini e dissolvenza */
.anc-simple-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s ease;
}

.anc-simple-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.anc-simple-slider .anc-simple-slide__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
}

/* Velatura uniforme, con rinforzo morbido al centro per la leggibilità. */
.anc-simple-slide__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--anc-slider-overlay));
    background-image: radial-gradient(ellipse at center,
        rgba(0, 0, 0, .16), transparent 78%);
    pointer-events: none;
}

/* Testi centrati: frase introduttiva bianca e titolo principale giallo. */
.anc-simple-slide__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 38px 76px 58px;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 9px rgba(0, 0, 0, .85),
                 0 0 24px rgba(0, 0, 0, .48);
    pointer-events: none;
}

.anc-simple-slider .anc-simple-slide__eyebrow {
    max-width: 900px;
    margin: 0 0 16px;
    font-family: Montserrat, sans-serif;
    font-size: clamp(18px, 2.1vw, 29px);
    font-weight: 700;
    line-height: 1.22;
    color: #fff;
}

.anc-simple-slider .anc-simple-slide__title {
    max-width: 1000px;
    margin: 0;
    font-family: Montserrat, sans-serif;
    font-size: clamp(30px, 3.5vw, 48px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--anc-slider-yellow);
}

/* Frecce discrete: dimensione cliccabile 44 px. */
.anc-simple-slider .anc-simple-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    background: rgba(0, 0, 0, .24);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}

.anc-simple-slider .anc-simple-slider__nav:hover {
    background: rgba(0, 0, 0, .65);
    color: var(--anc-slider-yellow);
}

.anc-simple-slider__nav--prev { left: 16px; }
.anc-simple-slider__nav--next { right: 16px; }

/* Indicatori orizzontali: linea gialla per la slide attiva.
   L'area cliccabile rimane più alta della linea visibile. */
.anc-simple-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.anc-simple-slider .anc-simple-slider__dot {
    position: relative;
    width: 34px;
    height: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.anc-simple-slider__dot::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    transform: translateY(-50%);
    border-radius: 2px;
    background: rgba(255, 255, 255, .75);
}

.anc-simple-slider__dot.is-active::after {
    background: var(--anc-slider-yellow);
}

.anc-simple-slider__nav:focus-visible,
.anc-simple-slider__dot:focus-visible {
    outline: 2px solid var(--anc-slider-yellow);
    outline-offset: 2px;
}

/* TABLET */
@media (max-width: 1024px) {
    .anc-simple-slider { --anc-slider-height: 420px; }
}

/* SMARTPHONE: margini sufficienti per evitare sovrapposizioni alle frecce. */
@media (max-width: 767px) {
    .anc-simple-slider { --anc-slider-height: 258px; }
    .anc-simple-slide__content { padding: 16px 48px 44px; }
    .anc-simple-slider .anc-simple-slide__eyebrow {
        font-size: clamp(14px, 3.4vw, 19px);
        margin-bottom: 8px;
    }
    .anc-simple-slider .anc-simple-slide__title {
        font-size: clamp(21px, 5.5vw, 32px);
    }
    .anc-simple-slider .anc-simple-slider__nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .anc-simple-slider__nav--prev { left: 6px; }
    .anc-simple-slider__nav--next { right: 6px; }
    .anc-simple-slider__dots { bottom: 5px; gap: 8px; }
    .anc-simple-slider .anc-simple-slider__dot { width: 26px; }
}

/* Schermi molto stretti: spazio verticale aggiuntivo per i titoli lunghi. */
@media (max-width: 360px) {
    .anc-simple-slider { --anc-slider-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
    .anc-simple-slide, .anc-simple-slider__nav { transition: none; }
}
