/* AFAM Theme. Specializzazione content-first di Bootstrap Italia 2.18.3. */
:root{
  --afam-accent:#8b2f5d;
  --afam-accent-dark:#642143;
  --afam-ink:#17212b;
  --afam-muted:#5c6670;
  --afam-surface:#f5f7fa;
  --afam-surface-art:#f4eef2;
  --afam-border:#d8dce1;
  --afam-radius:.75rem;
  --afam-shadow:0 .4rem 1.25rem rgba(23,33,43,.09);
  --afam-measure:72ch;
}
html{overflow-x:hidden}
body{color:var(--afam-ink);overflow-wrap:anywhere}
a,button,input,select,textarea{overflow-wrap:anywhere}
img,svg,video,iframe{max-width:100%;height:auto}
.skiplinks a:focus{z-index:10000}

/* Header Bootstrap Italia, irrobustito per nomi e menu reali. */
.it-header-wrapper{position:relative;z-index:1020}
.it-header-slim-wrapper-content{min-width:0;gap:.75rem}
.it-header-slim-wrapper-content>.navbar-brand{min-width:0;white-space:normal;line-height:1.25}
.it-header-center-content-wrapper{min-width:0;gap:1rem}
.it-brand-wrapper{min-width:0;max-width:calc(100% - 4rem)}
.it-brand-wrapper>a{min-width:0;max-width:100%;align-items:center}
.custom-logo-link{display:flex;flex:0 0 auto}
.custom-logo,.afam-logo{width:clamp(3rem,6vw,4.75rem);height:clamp(3rem,6vw,4.75rem);object-fit:contain}
.it-brand-text{min-width:0;padding-right:.5rem}
.it-brand-title{max-width:40ch;font-size:clamp(1.2rem,2.3vw,2rem);line-height:1.12;overflow-wrap:anywhere;hyphens:auto}
.it-brand-tagline{max-width:60ch;line-height:1.35;overflow-wrap:anywhere}
.it-right-zone{flex:0 0 auto}
.navbar .navbar-nav{min-width:0;flex-wrap:wrap}
.navbar .nav-link{white-space:normal;line-height:1.25}
.dropdown-menu{max-width:min(24rem,calc(100vw - 2rem))}
.dropdown-item{white-space:normal}

/* Identità AFAM sopra le primitive Bootstrap Italia. */
.afam-kicker{display:inline-flex;align-items:center;gap:.5rem;color:var(--afam-accent-dark);font-size:.875rem;font-weight:700;letter-spacing:.045em;text-transform:uppercase}
.afam-kicker::before{content:"";width:1.75rem;height:.2rem;background:var(--afam-accent);border-radius:999px}
.afam-page-header{max-width:var(--afam-measure);margin-bottom:clamp(2rem,5vw,4rem)}
.afam-page-header h1{font-size:clamp(2rem,5vw,3.75rem);line-height:1.05;letter-spacing:-.025em;overflow-wrap:anywhere;hyphens:auto}
.afam-page-header .lead{font-size:clamp(1.125rem,2vw,1.45rem);max-width:65ch;color:var(--afam-muted)}
.afam-section{padding-block:clamp(2.75rem,7vw,6rem)}
.afam-section-sm{padding-block:clamp(2rem,4vw,3.5rem)}
.afam-section-alt{background:var(--afam-surface)}
.afam-section-art{background:linear-gradient(135deg,var(--afam-surface-art),#fff 70%)}
.afam-section-heading{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:2rem}
.afam-section-heading>div{max-width:65ch}
.afam-section-heading h2{margin-bottom:.5rem;font-size:clamp(1.75rem,3.5vw,2.6rem);overflow-wrap:anywhere}

/* Hero AFAM: composizione fluida, nessuna altezza fissa. */
.afam-hero{position:relative;isolation:isolate;color:#fff;background:#17324d;overflow:hidden}
.afam-hero::after{content:"";position:absolute;inset:auto -8rem -10rem auto;width:28rem;aspect-ratio:1;border:6rem solid rgba(255,255,255,.055);border-radius:50%;z-index:-1}
.afam-hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(18rem,.9fr);align-items:stretch}
.afam-hero-copy{padding:clamp(3rem,8vw,7rem) clamp(1rem,5vw,5rem) clamp(3rem,8vw,7rem) max(1rem,calc((100vw - 1320px)/2 + 1rem))}
.afam-hero h1{max-width:16ch;font-size:clamp(2.4rem,6vw,5.4rem);line-height:.98;letter-spacing:-.035em;overflow-wrap:anywhere;hyphens:auto}
.afam-hero .lead{max-width:54ch;font-size:clamp(1.15rem,2vw,1.45rem)}
.afam-hero-media{min-height:26rem;background:#244b6a}
.afam-hero-media img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}
.afam-hero-placeholder{display:grid;place-items:center;height:100%;min-height:26rem;background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.16),transparent 32%),linear-gradient(145deg,#244b6a,#8b2f5d)}
.afam-hero-placeholder svg{width:8rem;height:8rem;opacity:.72}
.afam-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:2rem}
.afam-actions .btn{max-width:100%;white-space:normal;text-align:center}

/* Card Bootstrap Italia con varianti AFAM. */
.afam-query-grid>[class*=col-]{display:flex;min-width:0}
.afam-query-grid .it-card{width:100%}
.it-card.afam-card{min-width:0;border-radius:var(--afam-radius)!important;box-shadow:none!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.it-card.afam-card:hover{transform:translateY(-.18rem);box-shadow:var(--afam-shadow)!important;border-color:#aeb6bf!important}
.it-card.afam-card:focus-within{outline:3px solid #ffbf47;outline-offset:3px}
.afam-card .it-card-title{font-size:clamp(1.15rem,2vw,1.4rem);line-height:1.25;overflow-wrap:anywhere;hyphens:auto}
.afam-card .it-card-text{color:var(--afam-muted);overflow-wrap:anywhere}
.afam-card-media{overflow:hidden;border-radius:var(--afam-radius) var(--afam-radius) 0 0;background:var(--afam-surface);aspect-ratio:16/9}
.afam-card-media img{display:block;width:100%;height:100%;object-fit:cover}
.afam-card-media-placeholder{display:grid;place-items:center;width:100%;height:100%;color:#6b7785;background:linear-gradient(145deg,#e8ecf1,#f8f9fa)}
.afam-card-media-placeholder svg{width:3.5rem;height:3.5rem}
.afam-card .category-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.5rem}
.afam-card .category{color:var(--afam-accent-dark)}
.afam-card .data,time{font-variant-numeric:tabular-nums}
.afam-card-meta{display:flex;flex-wrap:wrap;gap:.4rem .85rem;margin-top:auto;color:var(--afam-muted);font-size:.94rem}
.afam-card-meta span{display:inline-flex;align-items:center;gap:.3rem;min-width:0}
.afam-card-meta svg{flex:0 0 auto;width:1rem;height:1rem}
.afam-card--course{border-top:.35rem solid #355b8c!important}
.afam-card--event{border-top:.35rem solid var(--afam-accent)!important}
.afam-card--call{border-top:.35rem solid #b05a1b!important}
.afam-card--service{border-top:.35rem solid #167a66!important}
.afam-card--person .afam-card-media{aspect-ratio:1}

/* Accessi rapidi, ispirati all'approccio content-first del modello Scuole. */
.afam-quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem}
.afam-quick-link{display:flex;align-items:flex-start;gap:1rem;height:100%;padding:1.25rem;color:var(--afam-ink);text-decoration:none;background:#fff;border:1px solid var(--afam-border);border-radius:var(--afam-radius)}
.afam-quick-link:hover{color:var(--afam-accent-dark);border-color:var(--afam-accent);box-shadow:var(--afam-shadow)}
.afam-quick-link .icon{flex:0 0 auto}
.afam-quick-link strong{display:block;font-size:1.06rem;line-height:1.25;overflow-wrap:anywhere}
.afam-quick-link small{display:block;margin-top:.35rem;color:var(--afam-muted);line-height:1.35}

/* Pagine di dettaglio e metadati del Core. */
.afam-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(14rem,20rem);gap:clamp(2rem,5vw,5rem);align-items:start}
.afam-main-column{min-width:0}
.afam-side-column{min-width:0;position:sticky;top:2rem}
.afam-content{max-width:var(--afam-measure);font-size:1.065rem}
.afam-content>*{max-width:100%}
.afam-content a,.afam-details a,.afam-related a{overflow-wrap:anywhere;word-break:break-word}
.afam-content h2{margin-top:2.7rem}.afam-content h3{margin-top:2.1rem}
.afam-details,.afam-related,.afam-document-download,.afam-upcoming{margin-block:2rem;padding:1.5rem;border:1px solid var(--afam-border);border-radius:var(--afam-radius);background:#fff}
.afam-details h2,.afam-related h2,.afam-document-download h2,.afam-upcoming h2{font-size:1.35rem}
.afam-detail{display:grid;grid-template-columns:minmax(8rem,.8fr) minmax(0,1.2fr);gap:1rem;padding:.75rem 0;border-bottom:1px solid var(--afam-border)}
.afam-detail:last-child{border-bottom:0}.afam-detail dt{font-weight:700}.afam-detail dd{min-width:0;margin:0;overflow-wrap:anywhere}
.afam-side-nav{border-top:.35rem solid var(--afam-accent);border-radius:var(--afam-radius);box-shadow:var(--afam-shadow)}
.afam-side-nav .link-list a{overflow-wrap:anywhere}

/* Filtri e moduli generati dinamicamente dal Core. */
.afam-filter{margin-bottom:2.5rem;padding:1.5rem;background:var(--afam-surface);border-radius:var(--afam-radius)}
.afam-filter fieldset{border:0;padding:0;margin:0}.afam-filter legend{font-size:1.35rem;font-weight:700}
.afam-filter-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:1rem;align-items:end}
.afam-filter-fields p{min-width:0;margin:0}.afam-filter label{display:block;margin-bottom:.35rem;font-weight:600}
.afam-filter select,.afam-filter input{display:block;width:100%;min-width:0;min-height:3rem;padding:.5rem .75rem;background:#fff;border:1px solid #5c6f82;border-radius:.25rem}
.afam-filter button{min-height:3rem;padding:.55rem 1.25rem;color:#fff;background:#06c;border:2px solid #06c;border-radius:.25rem;font-weight:600}

/* Tabelle, documenti, testi imprevedibili. */
.table-responsive,.wp-block-table{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse}
th,td{min-width:8rem;vertical-align:top;overflow-wrap:anywhere;word-break:normal}
pre,code{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
.wp-block-image img{height:auto}.wp-block-cover{min-height:min(60vh,36rem)}
.afam-document-name{overflow-wrap:anywhere;word-break:break-word}
.pagination-wrapper{overflow-x:auto}.pagination{flex-wrap:wrap;gap:.25rem}

/* Footer robusto. */
.it-footer .it-brand-wrapper{max-width:100%}
.it-footer .it-brand-title,.it-footer h2,.it-footer h3{overflow-wrap:anywhere}
.it-footer address,.it-footer a{overflow-wrap:anywhere;word-break:break-word}
.it-footer-small-prints-list{gap:.25rem 1rem;flex-wrap:wrap}

@media(max-width:991.98px){
  .afam-hero-grid{grid-template-columns:1fr}.afam-hero-media{min-height:16rem}.afam-hero-media img{max-height:26rem}
  .afam-layout{grid-template-columns:1fr}.afam-side-column{position:static}.navbar .navbar-nav{flex-wrap:nowrap}
  .navbar-collapsable{max-width:min(90vw,25rem)}.navbar-collapsable .menu-wrapper{overflow-y:auto;overflow-x:hidden}
  .navbar-collapsable .nav-link,.navbar-collapsable .dropdown-item{white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:575.98px){
  .it-brand-wrapper{max-width:calc(100% - 3.25rem)}.it-brand-title{font-size:1.12rem}.it-brand-tagline{display:none!important}
  .afam-hero-copy{padding:3rem 1rem}.afam-hero h1{font-size:clamp(2.2rem,12vw,3.2rem)}
  .afam-section{padding-block:2.75rem}.afam-section-heading{align-items:start;flex-direction:column}
  .afam-detail{grid-template-columns:1fr;gap:.15rem}.afam-actions{align-items:stretch}.afam-actions .btn{width:100%}
}
@media(min-width:1800px){.container-xxl{max-width:1440px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.afam-card,.afam-quick-link,.afam-details,.afam-related{border:1px solid CanvasText!important}.afam-kicker::before{background:CanvasText}}

/* AFAM Design System 3 */
:root{--afam-primary:#5b2c83;--afam-secondary:#006c67;--afam-gold:#b8872d;--afam-night:#171329;--afam-paper:#fbfaf7;--afam-mist:#f2f0f5;--afam-line:#d9d4df;--afam-space-1:.5rem;--afam-space-2:1rem;--afam-space-3:1.5rem;--afam-space-4:2rem;--afam-space-5:3rem;--afam-space-6:5rem;--afam-radius-sm:.35rem;--afam-radius:1rem;--afam-shadow:0 .75rem 2.5rem rgba(23,19,41,.1)}
body{background:var(--afam-paper)}.afam-eyebrow{display:inline-block;color:var(--afam-primary);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.82rem}.afam-stage{color:#fff;background:var(--afam-night);overflow:hidden}.afam-stage-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(18rem,.8fr);min-height:34rem}.afam-stage-copy{align-self:center;padding:var(--afam-space-6) 0}.afam-stage .afam-eyebrow{color:#dfc7f0}.afam-stage h1{max-width:15ch;font-size:clamp(2.5rem,7vw,5.5rem);line-height:.96;letter-spacing:-.035em}.afam-stage .lead{max-width:55ch}.afam-stage-art{position:relative;min-height:22rem}.afam-stage-art span{position:absolute;border:1px solid rgba(255,255,255,.35);border-radius:50%}.afam-stage-art span:nth-child(1){inset:12% 5% 10% 18%}.afam-stage-art span:nth-child(2){inset:28% 20% -18% 2%;border-color:var(--afam-gold)}.afam-stage-art span:nth-child(3){inset:-25% -15% 35% 35%;background:var(--afam-primary);border:0;opacity:.7}.afam-portals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.afam-portal{display:flex;flex-direction:column;min-width:0;height:100%;padding:1.5rem;color:var(--afam-night);text-decoration:none;background:#fff;border-top:4px solid var(--afam-primary);box-shadow:var(--afam-shadow);border-radius:0 0 var(--afam-radius) var(--afam-radius)}.afam-portal:nth-child(2){border-color:var(--afam-secondary)}.afam-portal:nth-child(3){border-color:var(--afam-gold)}.afam-portal p{flex:1;color:#575264}.afam-portal span{font-weight:700;color:var(--afam-primary)}.afam-tinted{background:var(--afam-mist)}.afam-local-index{display:flex;flex-wrap:wrap;gap:.5rem 1rem;max-width:72ch;margin-bottom:2rem;padding:1rem 1.25rem;background:var(--afam-mist);border-left:4px solid var(--afam-primary)}.afam-local-index strong{width:100%}.afam-featured-media img{width:100%;max-height:40rem;object-fit:cover;border-radius:var(--afam-radius)}.afam-action-panel{position:sticky;top:2rem;padding:1.5rem;background:#fff;border-top:4px solid var(--afam-secondary);box-shadow:var(--afam-shadow)}.afam-details,.afam-related,.afam-document-download{border-radius:var(--afam-radius)}
@media(max-width:991.98px){.afam-stage-grid{grid-template-columns:1fr;min-height:0}.afam-stage-copy{padding:3.5rem 0}.afam-stage-art{display:none}.afam-portals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575.98px){.afam-portals{grid-template-columns:1fr}.afam-stage h1{font-size:2.65rem}.afam-stage-copy{padding:2.75rem 0}.afam-local-index{display:block}.afam-local-index a{display:block;padding:.35rem 0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(forced-colors:active){.afam-portal,.afam-action-panel{border:2px solid CanvasText}}
@media print{.it-header-wrapper,.it-footer,.afam-side-column,.skiplinks{display:none!important}.afam-layout{display:block}.afam-content{max-width:none}}

/* Carosello 3.0.1 rc.2: testo a sinistra, immagine a destra. */
.afam-home-carousel{color:#fff;background:var(--afam-night);overflow:hidden}.afam-carousel-heading{padding-top:1.5rem}.afam-carousel-heading .afam-eyebrow,.afam-carousel-copy .afam-eyebrow{color:#e6d2f2}.afam-carousel-heading h1{margin:.35rem 0 1.25rem;font-size:clamp(2rem,3vw,3rem)}.afam-carousel-stage{border:1px solid rgba(255,255,255,.2)}.afam-carousel-slide{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(20rem,.95fr);min-height:30rem}.afam-carousel-slide[hidden]{display:none!important}.afam-carousel-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;padding:clamp(2rem,5vw,5rem)}.afam-carousel-copy h2{max-width:16ch;margin:.65rem 0;font-size:clamp(2.4rem,5vw,4.75rem);line-height:.98;letter-spacing:-.035em}.afam-carousel-copy h2 a{color:#fff;text-decoration-color:rgba(255,255,255,.65)}.afam-carousel-copy time{display:block;margin-bottom:.65rem;font-size:1.05rem;font-variant-numeric:tabular-nums}.afam-carousel-excerpt{max-width:54ch;font-size:1.15rem}.afam-carousel-media,.afam-carousel-art{min-width:0;min-height:30rem}.afam-carousel-media img{display:block;width:100%;height:100%;object-fit:cover}.afam-carousel-art{position:relative;overflow:hidden;background:#4d2870}.afam-carousel-art span{position:absolute;border:1px solid rgba(255,255,255,.3);border-radius:50%}.afam-carousel-art span:nth-child(1){inset:15% -8% 10% 18%}.afam-carousel-art span:nth-child(2){inset:38% 12% -25% -3%;border-color:var(--afam-gold)}.afam-carousel-art span:nth-child(3){inset:-35% -22% 42% 34%;background:rgba(255,255,255,.08);border:0}.afam-carousel-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;padding-block:1rem}.afam-carousel-controls .btn{min-height:44px}.afam-carousel-indicators{display:flex;gap:.5rem}.afam-carousel-indicators button{width:1rem;height:1rem;padding:0;border:2px solid #fff;border-radius:50%;background:transparent}.afam-carousel-indicators button[aria-current=true]{background:#fff}@media(max-width:991.98px){.afam-carousel-slide{grid-template-columns:1fr;min-height:0}.afam-carousel-copy{order:1;padding:2rem}.afam-carousel-media,.afam-carousel-art{order:0;min-height:0;aspect-ratio:16/9}.afam-carousel-copy h2{font-size:clamp(2rem,8vw,3.5rem)}}@media(max-width:575.98px){.afam-carousel-copy{padding:1.5rem}.afam-carousel-copy h2{font-size:2.15rem}.afam-carousel-controls .btn{flex:1 1 auto}.afam-carousel-indicators{order:-1;width:100%}}@media(prefers-reduced-motion:reduce){.afam-carousel *{animation:none!important;transition:none!important}}

/* Gerarchia editoriale del carosello 3.0.1 rc.3. */
.afam-carousel-copy{max-width:none}.afam-carousel-copy .afam-eyebrow{margin:0 0 .65rem;font-size:.82rem;font-weight:700;line-height:1.2;letter-spacing:.085em;text-transform:uppercase}.afam-carousel-copy h2{margin:0 0 1rem;font-size:clamp(2.35rem,4.6vw,4.5rem);font-weight:700;line-height:1.02;letter-spacing:-.032em}.afam-carousel-copy time{margin:0 0 1rem;color:#e4dfeb;font-size:1rem;font-weight:600;line-height:1.35}.afam-carousel-summary{max-width:48ch;margin:0 0 1.75rem;color:#f5f2f8;font-size:clamp(1.05rem,1.35vw,1.25rem);font-weight:400;line-height:1.55}.afam-carousel-copy .btn{font-size:1rem;font-weight:600}.afam-carousel-heading .afam-eyebrow{font-size:.8rem}.afam-carousel-heading h1{font-weight:700;line-height:1.1}@media(max-width:991.98px){.afam-carousel-copy h2{font-size:clamp(2rem,7vw,3.25rem)}.afam-carousel-summary{max-width:60ch;font-size:1.08rem}}@media(max-width:575.98px){.afam-carousel-copy .afam-eyebrow{font-size:.75rem}.afam-carousel-copy h2{font-size:2rem;line-height:1.08}.afam-carousel-copy time{font-size:.95rem}.afam-carousel-summary{font-size:1rem;line-height:1.5;margin-bottom:1.4rem}}

/* Slim header mobile 3.0.1 rc.5. */
.afam-ministry-short{display:none}
@media(max-width:991.98px){
 .it-header-slim-wrapper .it-header-slim-wrapper-content{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:2.75rem}
 .afam-ministry-link{display:block!important;min-width:0;max-width:calc(100% - 3.25rem);margin-right:auto;color:#fff!important;font-size:.82rem;font-weight:600;line-height:1.15;white-space:normal;overflow-wrap:anywhere}
 .afam-ministry-full{display:block}
 .it-header-slim-wrapper-content>.ms-auto{flex:0 0 auto;margin-left:0!important}
 .it-header-slim-wrapper .btn-full{min-width:44px;min-height:44px;padding:.35rem}
}
@media(max-width:374.98px){
 .afam-ministry-link{font-size:.76rem;line-height:1.12}
}

/* Solo sezione Formazione e ricerca. */

.afam-pathways{background:#fbfaf7}.afam-pathways-tools{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:2rem;padding:1.25rem;background:#fff;border:1px solid #d8d4dc;border-radius:.75rem}.afam-pathways-search{flex:1 1 20rem}.afam-pathways-search label,.afam-view-switch legend{margin-bottom:.4rem;font-weight:700}.afam-view-switch{display:flex;flex-wrap:wrap;gap:.5rem;margin:0;padding:0;border:0}.afam-view-switch legend{width:100%}.afam-department{display:grid;grid-template-columns:minmax(15rem,.38fr) minmax(0,.62fr);gap:2rem;padding:2rem 0;border-top:1px solid #d8d4dc}.afam-department>header span,.afam-school summary span{display:block;color:var(--afam-primary);font-size:.78rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.afam-department>header h3{font-size:clamp(1.65rem,3vw,2.5rem)}.afam-schools{display:grid;gap:1rem}.afam-school{background:#fff;border:1px solid #d8d4dc;border-left:.35rem solid var(--afam-primary);border-radius:.5rem}.afam-school summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.15rem 1rem;padding:1.15rem 1.25rem;cursor:pointer}.afam-school summary span{grid-column:1/-1}.afam-school summary strong{font-size:1.25rem}.afam-school summary small{align-self:center}.afam-school ul{margin:0;padding:0 1.25rem 1.25rem;list-style:none}.afam-school li{border-top:1px solid #e5e2e8}.afam-school li a,.afam-pathway-list a{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 0;text-decoration:none}.afam-school li a .icon,.afam-pathway-list .icon{flex:0 0 auto;width:1rem;height:1rem;fill:var(--afam-primary)}.afam-pathway-list{margin:0;padding:0;list-style:none;border-top:1px solid #d8d4dc}.afam-pathway-list li{border-bottom:1px solid #d8d4dc}.afam-pathway-list a{padding:1rem}.afam-pathway-list strong,.afam-pathway-list small{display:block}.afam-pathway-list small{margin-top:.2rem;color:#5f5966}.afam-pathways-empty{padding:2rem;text-align:center;background:#fff;border:1px dashed #8d8792}[data-pathway-item][hidden]{display:none!important}@media(max-width:767.98px){.afam-pathways-tools{display:block}.afam-view-switch{margin-top:1rem}.afam-view-switch .btn{flex:1 1 auto}.afam-department{grid-template-columns:1fr;gap:1rem;padding:1.5rem 0}.afam-school summary{grid-template-columns:1fr}.afam-school summary small{margin-top:.25rem}}@media(prefers-reduced-motion:reduce){.afam-pathways *{scroll-behavior:auto!important}}

/* Ripristino card originali nella sola vista Schede. */
.afam-pathways-view[data-view-panel="grid"] .afam-query-grid,.afam-pathways-view[data-view-panel="grid"] .row{align-items:stretch}
.afam-pathways-view[data-view-panel="grid"] [data-pathway-item]{display:flex;min-width:0}
.afam-pathways-view[data-view-panel="grid"] [data-pathway-item]>.it-card,.afam-pathways-view[data-view-panel="grid"] [data-pathway-item]>.afam-card{width:100%}

/* Sistema globale delle card AFAM 3.0.1 rc.8. */
.afam-content-card{--afam-card-accent:var(--afam-primary);position:relative;display:flex;flex-direction:column;width:100%;min-width:0;height:100%;overflow:hidden;background:#fff;border:1px solid #c9c5ce;border-radius:1rem;box-shadow:0 .3rem 1rem rgba(24,20,42,.07);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.afam-content-card::before{content:"";position:absolute;z-index:2;inset:0 auto auto 0;width:100%;height:.35rem;background:var(--afam-card-accent)}.afam-content-card--service{--afam-card-accent:var(--afam-secondary)}.afam-content-card--event,.afam-content-card--project{--afam-card-accent:#a36f00}.afam-content-card--call,.afam-content-card--notice{--afam-card-accent:#9b2143}.afam-content-card--course,.afam-content-card--teaching{--afam-card-accent:#5b2c83}.afam-content-card__media{aspect-ratio:16/8.4;overflow:hidden;background:#eef1f5}.afam-content-card__media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.afam-content-card__placeholder{display:grid;place-items:center;width:100%;height:100%;color:#63778a;background:linear-gradient(145deg,#eef1f5,#e4e9ef)}.afam-content-card__placeholder .icon{width:3rem;height:3rem;fill:currentColor}.afam-content-card__body{display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:1.35rem 1.4rem 1.45rem}.afam-content-card__meta{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;width:100%;gap:.35rem 1rem;margin-bottom:.85rem}.afam-content-card__type{color:var(--afam-card-accent);font-size:.82rem;font-weight:700;letter-spacing:.055em;text-transform:uppercase}.afam-content-card__meta time{color:#596979;font-size:.9rem;font-weight:600;font-variant-numeric:tabular-nums}.afam-content-card__title{margin:0 0 .75rem;font-size:clamp(1.35rem,1.8vw,1.65rem);font-weight:700;line-height:1.16;letter-spacing:-.01em}.afam-content-card__title a{color:#0669c9;text-decoration-thickness:.08em;text-underline-offset:.15em}.afam-content-card__title a::after{content:"";position:absolute;z-index:3;inset:0}.afam-content-card__title a:focus{outline:0}.afam-content-card:focus-within{outline:3px solid #ffbf47;outline-offset:3px}.afam-content-card__summary{display:-webkit-box;margin:0 0 1rem;color:#3f4d5a;font-size:1rem;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.afam-content-card__details{display:flex;flex-wrap:wrap;gap:.45rem .9rem;margin:0 0 1rem;padding:0;color:#526474;font-size:.9rem;list-style:none}.afam-content-card__details li{display:inline-flex;align-items:flex-start;gap:.32rem;min-width:0}.afam-content-card__details .icon{flex:0 0 auto;width:1rem;height:1rem;margin-top:.13rem;fill:var(--afam-card-accent)}.afam-content-card__action{display:flex;align-items:center;gap:.45rem;margin:auto 0 0;color:var(--afam-card-accent);font-size:.95rem;font-weight:700}.afam-content-card__action span{font-size:1.15rem}.afam-content-card:hover{transform:translateY(-.15rem);border-color:var(--afam-card-accent);box-shadow:0 .8rem 1.8rem rgba(24,20,42,.12)}.afam-content-card:hover .afam-content-card__media img{transform:scale(1.025)}@media(max-width:575.98px){.afam-content-card__media{aspect-ratio:16/9}.afam-content-card__body{padding:1.2rem}.afam-content-card__meta{display:block}.afam-content-card__meta time{display:block;margin-top:.25rem}.afam-content-card__title{font-size:1.4rem}.afam-content-card__summary{-webkit-line-clamp:4}}@media(prefers-reduced-motion:reduce){.afam-content-card,.afam-content-card__media img{transition:none}.afam-content-card:hover{transform:none}.afam-content-card:hover .afam-content-card__media img{transform:none}}@media(forced-colors:active){.afam-content-card{border:2px solid CanvasText}.afam-content-card::before{background:CanvasText}.afam-content-card__type,.afam-content-card__action{color:CanvasText}}

/* Gerarchia espandibile dei percorsi 3.0.1 rc.9. */
.afam-study-browser{overflow:clip}.afam-study-browser__header{display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:1.5rem}.afam-study-browser__header>div{max-width:55rem}.afam-study-browser__tools{display:grid;grid-template-columns:minmax(16rem,1fr) auto;align-items:end;gap:1.5rem;margin-bottom:2rem;padding:1.25rem;background:#fff;border:1px solid #d8d4dc;border-radius:1rem}.afam-study-browser__search label,.afam-study-browser__switch legend{display:block;margin-bottom:.4rem;font-weight:700}.afam-study-browser__switch{display:flex;flex-wrap:wrap;gap:.5rem;margin:0;padding:0;border:0}.afam-study-browser__switch legend{width:100%}.afam-study-browser__department{margin-bottom:1.1rem;background:#fff;border:1px solid #d8d4dc;border-radius:1rem;box-shadow:0 .2rem .7rem rgba(24,20,42,.05)}.afam-study-browser__department>summary{display:flex;align-items:center;gap:1rem;padding:1.25rem 1.5rem;cursor:pointer;list-style:none}.afam-study-browser__department>summary::-webkit-details-marker,.afam-study-browser__school>summary::-webkit-details-marker{display:none}.afam-study-browser__department>summary small,.afam-study-browser__school>summary small{display:block;color:#5b2c83;font-size:.76rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.afam-study-browser__department>summary strong{display:block;font-size:clamp(1.35rem,2.4vw,2rem);line-height:1.15}.afam-study-browser__marker{position:relative;flex:0 0 2.25rem;width:2.25rem;height:2.25rem;border-radius:50%;background:#f0e9f5}.afam-study-browser__marker::before,.afam-study-browser__marker::after{content:"";position:absolute;top:50%;left:50%;width:.85rem;height:2px;background:#5b2c83;transform:translate(-50%,-50%)}.afam-study-browser__marker::after{transform:translate(-50%,-50%) rotate(90deg)}.afam-study-browser__department[open] .afam-study-browser__marker::after{display:none}.afam-study-browser__schools{display:grid;gap:1rem;padding:0 1.5rem 1.5rem 4.75rem}.afam-study-browser__school{border-left:.3rem solid #5b2c83;background:#fbfafc}.afam-study-browser__school>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1rem;padding:1rem 1.2rem;cursor:pointer;list-style:none}.afam-study-browser__school>summary strong{font-size:1.2rem}.afam-study-browser__count{padding:.25rem .55rem;color:#4f4855;font-size:.85rem;background:#ebe6ef;border-radius:999px}.afam-study-browser__school ul,.afam-study-browser__list{margin:0;padding:0;list-style:none}.afam-study-browser__school ul{padding:0 1.2rem 1rem}.afam-study-browser__school li,.afam-study-browser__list li{border-top:1px solid #ddd8e1}.afam-study-browser__school a,.afam-study-browser__list a{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 0;text-decoration:none}.afam-study-browser__school a:hover span:first-child,.afam-study-browser__school a:focus span:first-child{text-decoration:underline}.afam-study-browser__school--direct{padding:1rem 1.2rem}.afam-study-browser__list{border-block:1px solid #d8d4dc}.afam-study-browser__list a{padding:1rem}.afam-study-browser__list strong,.afam-study-browser__list small{display:block}.afam-study-browser__list small{margin-top:.2rem;color:#5d5662}.afam-study-browser__empty{padding:2rem;text-align:center;background:#fff;border:1px dashed #777}[data-study-item][hidden]{display:none!important}@media(max-width:767.98px){.afam-study-browser__header,.afam-study-browser__tools{display:block}.afam-study-browser__header .btn{margin-top:1rem}.afam-study-browser__switch{margin-top:1rem}.afam-study-browser__switch .btn{flex:1 1 auto}.afam-study-browser__department>summary{padding:1rem}.afam-study-browser__schools{padding:0 1rem 1rem}.afam-study-browser__school>summary{grid-template-columns:1fr}.afam-study-browser__count{justify-self:start}.afam-study-browser__marker{flex-basis:2rem;width:2rem;height:2rem}}@media(max-width:374.98px){.afam-study-browser__switch{display:grid;grid-template-columns:1fr}.afam-study-browser__switch .btn{width:100%}}
/* Fase 4: integrazione automatica del modello AFAM. */
.afam-main-column>section{scroll-margin-top:2rem;margin-top:2.5rem}.afam-main-column>section>h2{margin-bottom:1.25rem}.afam-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:0;background:#d8d4dc;border:1px solid #d8d4dc;border-radius:.75rem;overflow:hidden}.afam-facts>div{min-width:0;padding:1rem 1.15rem;background:#fff}.afam-facts dt{color:#4f4754;font-size:.9rem;font-weight:700}.afam-facts dd{margin:.25rem 0 0;font-size:1.05rem;overflow-wrap:anywhere}.afam-plan-year+.afam-plan-year{margin-top:2rem}.afam-plan-year .table-responsive{border:1px solid #d8d4dc;border-radius:.75rem}.afam-plan-year table{margin-bottom:0}.afam-plan-year caption{padding:.8rem 1rem;color:#312b35;font-weight:700;background:#f5f2f7;caption-side:top}.afam-program-section{padding:1.25rem 0;border-top:1px solid #d8d4dc}.afam-program-section:first-child{padding-top:0;border-top:0}.afam-program-section h3{font-size:1.25rem}.afam-linked-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:0;padding:0;list-style:none}.afam-linked-list a{display:block;height:100%;padding:1rem 1.1rem;background:#fff;border:1px solid #d8d4dc;border-left:.3rem solid var(--afam-primary);border-radius:.5rem;text-decoration:none}.afam-linked-list a:hover,.afam-linked-list a:focus{text-decoration:underline}@media(max-width:767.98px){.afam-facts,.afam-linked-list{grid-template-columns:1fr}.afam-plan-year .table-responsive{overflow-x:auto}.afam-plan-year table{min-width:42rem}}@media print{.afam-local-index,.afam-side-column{display:none!important}.afam-layout{display:block}.afam-main-column{max-width:none}.afam-plan-year .table-responsive{overflow:visible}.afam-plan-year table{min-width:0}}
/* Fase 5: ricerca, filtri e paginazione. */
.afam-filter-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem}.afam-filter-actions a{font-weight:700}.afam-results-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin:1.5rem 0}.afam-results-heading p{margin:0}.afam-active-filters{display:flex;flex-wrap:wrap;gap:.5rem;margin:0;padding:0;list-style:none}.afam-active-filters li{padding:.35rem .7rem;background:#ebe6ef;border-radius:999px;font-size:.9rem}.afam-results-pagination{margin-top:2.5rem;overflow-x:auto}.afam-results-pagination .pagination{margin:0}.afam-empty-results{margin-top:2rem;padding:2rem;background:#fff;border:1px dashed #777;border-radius:1rem}.afam-search-form{margin-bottom:2rem;padding:1.5rem;background:var(--afam-mist);border-radius:1rem}.afam-search-form label{display:block;margin-bottom:.5rem;font-weight:700}.afam-search-form>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem}.afam-search-form input{min-width:0;min-height:3rem;padding:.5rem .75rem;border:1px solid #5c6f82}.afam-search-form button{min-height:3rem;padding:.5rem 1.5rem;color:#fff;background:#06c;border:2px solid #06c}@media(max-width:575.98px){.afam-search-form>div{grid-template-columns:1fr}.afam-filter-actions{align-items:stretch}.afam-filter-actions button,.afam-filter-actions a{text-align:center}}
/* Pagine portale predefinite 3.5.0. */
.afam-portal-page{display:grid;gap:clamp(2.5rem,6vw,5rem);margin-top:2rem}.afam-portal-block>h2,.afam-portal-heading h2{margin:0 0 1.25rem;font-size:clamp(1.6rem,3vw,2.25rem)}.afam-portal-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.afam-portal-link{display:flex;flex-direction:column;gap:.35rem;min-height:8rem;padding:1.25rem;color:var(--afam-night);text-decoration:none;background:#fff;border:1px solid var(--afam-line);border-left:.35rem solid var(--afam-primary);border-radius:.65rem}.afam-portal-link strong{font-size:1.2rem;color:#0669c9}.afam-portal-link span{color:#53505a}.afam-portal-link:hover,.afam-portal-link:focus{border-color:var(--afam-primary);box-shadow:var(--afam-shadow)}.afam-portal-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:1rem}.afam-portal-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.afam-portal-items article{position:relative;padding:1.25rem;background:#fff;border:1px solid var(--afam-line);border-top:.3rem solid var(--afam-secondary);border-radius:.65rem}.afam-portal-items article>p{margin:0 0 .45rem;color:var(--afam-secondary);font-size:.82rem;font-weight:700;text-transform:uppercase}.afam-portal-items h3{margin:0 0 .65rem;font-size:1.2rem}.afam-portal-items h3 a::after{content:"";position:absolute;inset:0}.afam-portal-items article:focus-within{outline:3px solid #ffbf47;outline-offset:3px}.afam-portal-guidance{padding:clamp(1.5rem,4vw,2.5rem);background:var(--afam-mist);border-radius:1rem}.afam-portal-guidance>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}.afam-portal-guidance article{min-width:0}.afam-portal-guidance h3{font-size:1.15rem}@media(max-width:767.98px){.afam-portal-links,.afam-portal-items,.afam-portal-guidance>div{grid-template-columns:1fr}.afam-portal-link{min-height:0}}
/* Agenda, servizi e ricerca 4.1.0. */
.afam-service-group+.afam-service-group{margin-top:3rem}.afam-agenda>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.5rem;padding:1rem;background:var(--afam-mist);border-radius:var(--afam-radius)}.afam-agenda>header h2{margin:0;text-align:center}.afam-agenda>ol{display:grid;gap:1rem;margin:0;padding:0;list-style:none}.afam-agenda>ol>li{display:grid;grid-template-columns:6rem minmax(0,1fr);gap:1rem;padding:1rem;background:#fff;border:1px solid var(--afam-line);border-radius:var(--afam-radius)}.afam-agenda time{display:grid;align-content:start;text-align:center;color:var(--afam-primary)}.afam-agenda time strong{font-size:2rem}.afam-agenda time span{text-transform:uppercase}.afam-agenda article{position:relative;padding:.75rem 0;border-bottom:1px solid var(--afam-line)}.afam-agenda article:last-child{border-bottom:0}.afam-agenda article p{margin:0;color:var(--afam-secondary);font-size:.8rem;font-weight:700;text-transform:uppercase}.afam-agenda article h3{margin:.2rem 0}.afam-agenda article h3 a::after{content:"";position:absolute;inset:0}.afam-agenda-empty{display:block!important}.afam-search-advanced{display:grid;gap:1.25rem;margin-bottom:2rem;padding:1.5rem;background:var(--afam-mist);border-radius:var(--afam-radius)}.afam-search-advanced label,.afam-search-advanced legend{font-weight:700}.afam-search-advanced input[type=search]{width:100%;min-height:3rem;padding:.5rem .75rem;border:1px solid #5c6f82}.afam-search-advanced fieldset{margin:0;padding:0;border:0}.afam-search-types{display:flex;flex-wrap:wrap;gap:.5rem}.afam-search-types label{display:inline-flex;align-items:center;gap:.4rem;padding:.55rem .8rem;background:#fff;border:1px solid #aeb6bf;border-radius:999px}.afam-search-types label:has(input:checked){color:#fff;background:var(--afam-primary);border-color:var(--afam-primary)}@media(max-width:575.98px){.afam-agenda>header{align-items:stretch;flex-direction:column}.afam-agenda>ol>li{grid-template-columns:4rem minmax(0,1fr)}.afam-search-types{display:grid}.afam-search-types label{border-radius:.35rem}}
/* Intestazione chiara e accessibile 4.1.1. */
.it-header-wrapper,
.it-header-slim-wrapper,
.it-header-center-wrapper,
.it-header-navbar-wrapper{
  color:var(--afam-primary);
  background:#fff!important;
}
.it-header-slim-wrapper{
  border-bottom:1px solid var(--afam-line);
}
.it-header-center-wrapper{
  border-bottom:1px solid var(--afam-line);
}
.it-header-navbar-wrapper{
  box-shadow:0 .25rem .8rem rgba(23,19,41,.08);
}
.it-header-wrapper a,
.it-header-wrapper .navbar-brand,
.it-header-wrapper .it-brand-title,
.it-header-wrapper .it-brand-tagline,
.it-header-wrapper .it-search-wrapper,
.it-header-wrapper .navbar .nav-link,
.it-header-wrapper .navbar .nav-link span,
.it-header-wrapper .dropdown-toggle,
.it-header-wrapper .afam-ministry-link{
  color:var(--afam-primary)!important;
}
.it-header-wrapper .it-brand-title,
.it-header-wrapper .navbar .nav-link,
.it-header-wrapper .afam-ministry-link{
  font-weight:600;
}
.it-header-wrapper .icon,
.it-header-wrapper .icon-white,
.it-header-wrapper .icon-primary,
.it-header-wrapper .search-link .icon,
.it-header-wrapper .custom-navbar-toggler .icon{
  fill:var(--afam-primary)!important;
  color:var(--afam-primary)!important;
}
.it-header-wrapper .it-brand-wrapper .icon-wrapper{
  color:var(--afam-primary);
}
.it-header-wrapper .it-search-wrapper .search-link,
.it-header-wrapper .it-header-slim-wrapper .btn-full{
  color:var(--afam-primary)!important;
  background:var(--afam-mist)!important;
  border:2px solid var(--afam-primary)!important;
}
.it-header-wrapper .it-search-wrapper .search-link:hover,
.it-header-wrapper .it-search-wrapper .search-link:focus-visible,
.it-header-wrapper .it-header-slim-wrapper .btn-full:hover,
.it-header-wrapper .it-header-slim-wrapper .btn-full:focus-visible{
  color:#fff!important;
  background:var(--afam-primary)!important;
}
.it-header-wrapper .it-search-wrapper .search-link:hover .icon,
.it-header-wrapper .it-search-wrapper .search-link:focus-visible .icon,
.it-header-wrapper .it-header-slim-wrapper .btn-full:hover .icon,
.it-header-wrapper .it-header-slim-wrapper .btn-full:focus-visible .icon{
  fill:#fff!important;
  color:#fff!important;
}
.it-header-wrapper .navbar .nav-link:hover,
.it-header-wrapper .navbar .nav-link:focus-visible,
.it-header-wrapper .navbar .nav-link[aria-current="page"],
.it-header-wrapper .navbar .current-menu-ancestor>.nav-link,
.it-header-wrapper .navbar .current-menu-item>.nav-link{
  color:var(--afam-accent-dark)!important;
  text-decoration:underline;
  text-decoration-thickness:.12em;
  text-underline-offset:.28em;
}
.it-header-wrapper a:focus-visible,
.it-header-wrapper button:focus-visible{
  outline:3px solid #b8872d!important;
  outline-offset:3px;
  box-shadow:0 0 0 2px #fff!important;
}
.it-header-wrapper .dropdown-menu{
  color:var(--afam-night);
  background:#fff;
  border:1px solid var(--afam-line);
  box-shadow:var(--afam-shadow);
}
.it-header-wrapper .dropdown-item{
  color:var(--afam-primary)!important;
}
.it-header-wrapper .dropdown-item:hover,
.it-header-wrapper .dropdown-item:focus,
.it-header-wrapper .dropdown-item[aria-current="page"]{
  color:var(--afam-accent-dark)!important;
  background:var(--afam-mist);
}
@media(max-width:991.98px){
  .it-header-wrapper .afam-ministry-link{color:var(--afam-primary)!important}
  .it-header-wrapper .navbar-collapsable .menu-wrapper{background:#fff}
  .it-header-wrapper .navbar-collapsable .nav-link,
  .it-header-wrapper .navbar-collapsable .dropdown-item{color:var(--afam-primary)!important}
  .it-header-wrapper .close-menu{color:var(--afam-primary);background:#fff}
}
@media(forced-colors:active){
  .it-header-wrapper,
  .it-header-slim-wrapper,
  .it-header-center-wrapper,
  .it-header-navbar-wrapper{color:CanvasText;background:Canvas!important;border-color:CanvasText}
  .it-header-wrapper a,
  .it-header-wrapper button{color:LinkText!important;border-color:ButtonText!important}
  .it-header-wrapper .icon{fill:currentColor!important}
}
/* Tema cromatico viola e correzione intestazione mobile 4.1.2. */
:root{
  --bs-primary:#5b2c83;
  --bs-primary-rgb:91,44,131;
  --bs-link-color:#5b2c83;
  --bs-link-hover-color:#642143;
}
.btn-primary,
.btn-check:checked+.btn,
.btn-check:active+.btn,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active{
  color:#fff!important;
  background-color:var(--afam-primary)!important;
  border-color:var(--afam-primary)!important;
}
.btn-primary:hover,
.btn-primary:focus-visible{
  color:#fff!important;
  background-color:var(--afam-accent-dark)!important;
  border-color:var(--afam-accent-dark)!important;
}
.btn-outline-primary{
  color:var(--afam-primary)!important;
  background:#fff!important;
  border-color:var(--afam-primary)!important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible{
  color:#fff!important;
  background:var(--afam-primary)!important;
  border-color:var(--afam-primary)!important;
}
.afam-filter button,
.afam-search-form button,
.afam-search-advanced button{
  color:#fff!important;
  background:var(--afam-primary)!important;
  border-color:var(--afam-primary)!important;
}
.afam-filter button:hover,
.afam-filter button:focus-visible,
.afam-search-form button:hover,
.afam-search-form button:focus-visible,
.afam-search-advanced button:hover,
.afam-search-advanced button:focus-visible{
  background:var(--afam-accent-dark)!important;
  border-color:var(--afam-accent-dark)!important;
}
.it-footer,
.it-footer-main,
.it-footer-small-prints{
  color:var(--afam-primary)!important;
  background:#fff!important;
}
.it-footer-main{
  border-top:4px solid var(--afam-primary);
}
.it-footer a,
.it-footer h2,
.it-footer h3,
.it-footer address,
.it-footer .it-brand-title,
.it-footer .it-brand-tagline,
.it-footer .footer-list a{
  color:var(--afam-primary)!important;
}
.it-footer .icon,
.it-footer .icon-white,
.it-footer .icon-primary{
  color:var(--afam-primary)!important;
  fill:var(--afam-primary)!important;
}
.it-footer .border-white,
.it-footer [class*="border-white"]{
  border-color:var(--afam-line)!important;
}
.it-footer-small-prints{
  border-top:1px solid var(--afam-line);
}
.it-footer a:hover,
.it-footer a:focus-visible{
  color:var(--afam-accent-dark)!important;
  text-decoration-thickness:.12em;
  text-underline-offset:.22em;
}
.it-footer a:focus-visible,
.it-footer button:focus-visible,
.btn:focus-visible{
  outline:3px solid #b8872d!important;
  outline-offset:3px;
  box-shadow:0 0 0 2px #fff!important;
}
@media(max-width:991.98px){
  .it-header-wrapper .it-header-slim-wrapper,
  .it-header-wrapper .it-header-center-wrapper,
  .it-header-wrapper .it-header-navbar-wrapper{
    width:100%;
    margin:0;
    background:#fff!important;
  }
  .it-header-wrapper .it-header-slim-wrapper .container-xxl,
  .it-header-wrapper .it-header-center-wrapper .container-xxl,
  .it-header-wrapper .it-header-navbar-wrapper .container-xxl{
    max-width:none;
    padding-inline:1rem;
  }
  .it-header-wrapper .it-header-slim-wrapper-content{
    min-height:4.5rem;
  }
  .it-header-wrapper .it-header-center-content-wrapper{
    min-height:5.5rem;
    padding-block:.75rem;
  }
  .it-header-wrapper .it-brand-wrapper{
    order:1;
    max-width:calc(100% - 7rem);
  }
  .it-header-wrapper .custom-navbar-toggler{
    position:absolute;
    z-index:2;
    left:1rem;
    top:50%;
    width:44px;
    height:44px;
    padding:.4rem;
    color:var(--afam-primary);
    background:#fff;
    border:0;
    transform:translateY(-50%);
  }
  .it-header-wrapper .it-header-center-content-wrapper{
    padding-left:4.75rem;
  }
  .it-header-wrapper .it-header-navbar-wrapper{
    position:relative;
    min-height:0;
  }
  .it-header-wrapper .it-header-navbar-wrapper .navbar{
    position:static;
    min-height:0;
    padding:0;
  }
  .it-header-wrapper .it-right-zone{
    margin-left:auto;
  }
  .it-header-wrapper .it-search-wrapper .search-link,
  .it-header-wrapper .it-header-slim-wrapper .btn-full{
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
    padding:.35rem!important;
    border-radius:0!important;
  }
  .it-header-wrapper .navbar-collapsable .menu-wrapper{
    color:var(--afam-primary);
    background:#fff!important;
  }
}
@media(max-width:575.98px){
  .it-header-wrapper .afam-ministry-link{
    max-width:calc(100% - 4rem);
    font-size:.92rem;
  }
  .it-header-wrapper .it-brand-title{
    font-size:1.35rem;
  }
  .it-header-wrapper .custom-navbar-toggler{
    left:.75rem;
  }
  .it-header-wrapper .it-header-center-content-wrapper{
    padding-left:4.25rem;
  }
}
@media(forced-colors:active){
  .btn-primary,
  .btn-outline-primary,
  .afam-filter button,
  .afam-search-form button,
  .afam-search-advanced button{
    color:ButtonText!important;
    background:ButtonFace!important;
    border:2px solid ButtonText!important;
  }
  .it-footer,
  .it-footer-main,
  .it-footer-small-prints{
    color:CanvasText!important;
    background:Canvas!important;
    border-color:CanvasText!important;
  }
  .it-footer a{color:LinkText!important}
}
/* Intestazione mobile compatta e sottomenu visibili 4.1.3. */
.afam-mobile-menu-toggle{display:none}
@media(max-width:991.98px){
  .it-header-wrapper .it-header-center-wrapper .container-xxl{padding-inline:1rem}
  .it-header-wrapper .it-header-center-content-wrapper{
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr) 44px;
    align-items:center;
    gap:.75rem;
    min-height:5rem;
    padding:.65rem 0!important;
  }
  .it-header-wrapper .afam-mobile-menu-toggle{
    position:static!important;
    display:inline-flex!important;
    grid-column:1;
    align-items:center;
    justify-content:center;
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
    margin:0;
    padding:.5rem;
    color:var(--afam-primary);
    background:#fff;
    border:2px solid transparent;
    border-radius:.25rem;
    transform:none!important;
  }
  .it-header-wrapper .it-brand-wrapper{
    grid-column:2;
    order:0;
    width:100%;
    max-width:none;
    min-width:0;
    margin:0;
  }
  .it-header-wrapper .it-brand-wrapper>a{
    display:flex;
    justify-content:center;
    gap:.6rem;
    min-width:0;
  }
  .it-header-wrapper .custom-logo,
  .it-header-wrapper .afam-logo,
  .it-header-wrapper .it-brand-wrapper .icon-wrapper .icon{
    width:3rem;
    height:3rem;
  }
  .it-header-wrapper .it-brand-text{min-width:0;padding:0}
  .it-header-wrapper .it-brand-title{
    max-width:12ch;
    font-size:clamp(1.1rem,5.5vw,1.45rem);
    line-height:1.05;
    hyphens:none;
    overflow-wrap:normal;
    word-break:normal;
  }
  .it-header-wrapper .it-right-zone{
    grid-column:3;
    width:44px;
    margin:0;
  }
  .it-header-wrapper .it-search-wrapper{display:block}
  .it-header-wrapper .it-search-wrapper .search-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .it-header-wrapper .it-header-navbar-wrapper{
    min-height:0;
    border:0;
    box-shadow:none;
  }
  .it-header-wrapper .it-header-navbar-wrapper .container-xxl,
  .it-header-wrapper .it-header-navbar-wrapper .row,
  .it-header-wrapper .it-header-navbar-wrapper [class*="col-"]{
    min-height:0;
    padding-block:0;
  }
  .it-header-wrapper .navbar{min-height:0!important}
  .it-header-wrapper .navbar-collapsable .menu-wrapper{
    padding:1rem 1.25rem 2rem!important;
    overflow-y:auto;
  }
  .it-header-wrapper .navbar-collapsable .navbar-nav{
    display:block;
    width:100%;
  }
  .it-header-wrapper .navbar-collapsable .nav-item{
    display:block;
    width:100%;
    margin:0;
    padding:0;
    border-bottom:1px solid var(--afam-line);
  }
  .it-header-wrapper .navbar-collapsable .nav-link{
    display:block;
    width:100%;
    padding:1rem 0 .55rem!important;
    font-size:1.2rem;
    font-weight:700;
  }
  .it-header-wrapper .navbar-collapsable .dropdown-toggle::after{display:none!important}
  .it-header-wrapper .navbar-collapsable .dropdown-menu{
    position:static!important;
    display:block!important;
    width:100%;
    margin:0 0 .75rem;
    padding:0 0 0 1rem;
    background:#fff!important;
    border:0!important;
    border-left:3px solid var(--afam-line)!important;
    border-radius:0;
    box-shadow:none!important;
    transform:none!important;
  }
  .it-header-wrapper .navbar-collapsable .dropdown-menu li{border:0}
  .it-header-wrapper .navbar-collapsable .dropdown-item{
    display:block;
    width:100%;
    padding:.55rem .75rem!important;
    font-size:1rem;
    font-weight:500;
    white-space:normal;
  }
  .it-header-wrapper .navbar-collapsable .close-div{
    padding:.75rem 1rem;
    background:#fff;
    border-bottom:1px solid var(--afam-line);
  }
  .it-header-wrapper .navbar-collapsable .close-menu{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    margin-left:auto;
    border:2px solid var(--afam-primary);
  }
}
@media(max-width:374.98px){
  .it-header-wrapper .it-header-center-content-wrapper{gap:.35rem}
  .it-header-wrapper .it-brand-wrapper>a{gap:.35rem}
  .it-header-wrapper .it-brand-title{font-size:1.05rem}
  .it-header-wrapper .custom-logo,
  .it-header-wrapper .afam-logo,
  .it-header-wrapper .it-brand-wrapper .icon-wrapper .icon{width:2.5rem;height:2.5rem}
}
/* Proporzioni definitive dell'intestazione mobile e chiusura del pannello 4.1.4. */
@media(max-width:991.98px){
  .it-header-wrapper .it-header-slim-wrapper-content{
    min-height:3.25rem!important;
    padding-block:.35rem!important;
  }
  .it-header-wrapper .afam-ministry-link{
    font-size:.82rem!important;
    line-height:1.2!important;
  }
  .it-header-wrapper .it-header-slim-wrapper .btn-full{
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    border-width:1px!important;
  }
  .it-header-wrapper .it-header-center-content-wrapper{
    grid-template-columns:44px minmax(0,1fr) 44px!important;
    gap:.5rem!important;
    min-height:4.25rem!important;
    padding:.35rem 0!important;
  }
  .it-header-wrapper .afam-mobile-menu-toggle{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    padding:.65rem!important;
  }
  .it-header-wrapper .it-search-wrapper .search-link{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    padding:.55rem!important;
    border-width:1px!important;
  }
  .it-header-wrapper .it-brand-wrapper>a{
    justify-content:center!important;
    gap:.45rem!important;
  }
  .it-header-wrapper .custom-logo,
  .it-header-wrapper .afam-logo,
  .it-header-wrapper .it-brand-wrapper .icon-wrapper .icon{
    width:2.55rem!important;
    height:2.55rem!important;
  }
  .it-header-wrapper .it-brand-title{
    max-width:min(15ch,calc(100vw - 10rem))!important;
    font-size:clamp(1rem,4.5vw,1.25rem)!important;
    line-height:1.08!important;
  }
  .it-header-wrapper .navbar-collapsable{
    width:min(90vw,32rem)!important;
    max-width:min(90vw,32rem)!important;
  }
  .it-header-wrapper .navbar-collapsable .close-div{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    width:100%!important;
    min-height:3.75rem!important;
    margin:0!important;
    padding:.5rem 1rem!important;
    background:#fff!important;
    border:0!important;
    border-bottom:1px solid var(--afam-line)!important;
    box-shadow:none!important;
  }
  .it-header-wrapper .navbar-collapsable .close-menu{
    position:static!important;
    inset:auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:.55rem!important;
    color:var(--afam-primary)!important;
    background:#fff!important;
    border:1px solid var(--afam-primary)!important;
    border-radius:.25rem!important;
    box-shadow:none!important;
    transform:none!important;
  }
  .it-header-wrapper .navbar-collapsable .close-menu .icon{
    width:1.5rem!important;
    height:1.5rem!important;
    margin:0!important;
  }
  .it-header-wrapper .navbar-collapsable .close-menu:not(:focus-visible){
    outline:0!important;
  }
  .it-header-wrapper .navbar-collapsable .close-menu:focus-visible{
    outline:3px solid #b8872d!important;
    outline-offset:2px!important;
    box-shadow:0 0 0 2px #fff!important;
  }
  .it-header-wrapper .navbar-collapsable .menu-wrapper{
    padding-top:.5rem!important;
  }
}
@media(max-width:575.98px){
  .it-header-wrapper .it-header-slim-wrapper .container-xxl,
  .it-header-wrapper .it-header-center-wrapper .container-xxl{
    padding-inline:.75rem!important;
  }
  .it-header-wrapper .afam-ministry-link{
    font-size:.78rem!important;
  }
}
@media(max-width:374.98px){
  .it-header-wrapper .it-header-center-content-wrapper{
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    gap:.25rem!important;
  }
  .it-header-wrapper .afam-mobile-menu-toggle,
  .it-header-wrapper .it-search-wrapper .search-link{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    min-height:42px!important;
  }
  .it-header-wrapper .custom-logo,
  .it-header-wrapper .afam-logo,
  .it-header-wrapper .it-brand-wrapper .icon-wrapper .icon{
    width:2.25rem!important;
    height:2.25rem!important;
  }
  .it-header-wrapper .it-brand-title{
    font-size:.98rem!important;
  }
}

/* Allineamento mobile, chiusura senza fascia e logo istituzionale 4.2.0. */
.afam-institution-logo{display:block;width:auto;height:auto;max-width:min(30rem,55vw);max-height:5rem;object-fit:contain;object-position:left center}
@media(max-width:991.98px){
 .it-header-wrapper .it-header-center-content-wrapper{grid-template-columns:44px minmax(0,1fr) 44px!important;gap:.5rem!important}
 .it-header-wrapper .it-brand-wrapper>a{justify-content:flex-start!important;gap:.45rem!important;text-align:left!important}
 .it-header-wrapper .it-brand-wrapper{justify-self:stretch!important}
 .it-header-wrapper .it-brand-title{max-width:none!important;text-align:left!important}
 .it-header-wrapper .afam-institution-logo{max-width:100%!important;max-height:3rem!important;object-position:left center!important}
 .it-header-wrapper .navbar-collapsable{position:relative!important}
 .it-header-wrapper .navbar-collapsable .close-div{position:absolute!important;z-index:6!important;top:.75rem!important;right:.75rem!important;display:block!important;width:44px!important;min-height:44px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;pointer-events:none!important}
 .it-header-wrapper .navbar-collapsable .close-menu{position:static!important;display:inline-flex!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:.55rem!important;background:#fff!important;border:1px solid var(--afam-primary)!important;border-radius:.25rem!important;box-shadow:none!important;pointer-events:auto!important;transform:none!important}
 .it-header-wrapper .navbar-collapsable .menu-wrapper{padding-top:1rem!important;padding-right:4.75rem!important}
 .it-header-wrapper .navbar-collapsable .close-menu:not(:focus-visible){outline:0!important;box-shadow:none!important}
 .it-header-wrapper .navbar-collapsable .close-menu:focus-visible{outline:3px solid #b8872d!important;outline-offset:2px!important;box-shadow:0 0 0 2px #fff!important}
}
@media(max-width:575.98px){
 .it-header-wrapper .it-brand-wrapper>a{justify-content:flex-start!important}
 .it-header-wrapper .afam-institution-logo{max-width:100%!important;max-height:2.65rem!important}
}
@media(forced-colors:active){.afam-institution-logo{forced-color-adjust:auto}.it-header-wrapper .navbar-collapsable .close-menu{color:ButtonText!important;background:ButtonFace!important;border-color:ButtonText!important}}
/* Correzione definitiva del pannello di navigazione mobile 4.2.1. */
@media(max-width:991.98px){
  body.navbar-open{overflow:hidden!important}
  .it-header-wrapper .navbar-collapsable{
    position:fixed!important;
    z-index:1055!important;
    inset:0 auto 0 0!important;
    display:none;
    width:min(92vw,34rem)!important;
    max-width:min(92vw,34rem)!important;
    height:100vh!important;
    height:100dvh!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    color:var(--afam-primary)!important;
    background:#fff!important;
    box-shadow:.75rem 0 2rem rgba(23,19,41,.24)!important;
    transform:translateX(-100%)!important;
    transition:transform .25s ease!important;
  }
  .it-header-wrapper .navbar-collapsable.expanded{
    display:block!important;
    transform:translateX(0)!important;
  }
  .it-header-wrapper .navbar-collapsable>.overlay{display:none!important}
  .it-header-wrapper .navbar-collapsable .menu-wrapper{
    position:relative!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
    margin:0!important;
    padding:4.75rem 1.25rem 2rem!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    color:var(--afam-primary)!important;
    background:#fff!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
  }
  .it-header-wrapper .navbar-collapsable .close-div{
    position:absolute!important;
    z-index:8!important;
    top:.75rem!important;
    right:.75rem!important;
    display:block!important;
    width:44px!important;
    height:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    pointer-events:none!important;
  }
  .it-header-wrapper .navbar-collapsable .close-menu{
    position:static!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:.55rem!important;
    color:var(--afam-primary)!important;
    background:#fff!important;
    border:1px solid var(--afam-primary)!important;
    border-radius:.25rem!important;
    box-shadow:none!important;
    transform:none!important;
    pointer-events:auto!important;
  }
  .it-header-wrapper .navbar-collapsable .navbar-nav{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    opacity:1!important;
    visibility:visible!important;
  }
  .it-header-wrapper .navbar-collapsable .nav-item{
    display:block!important;
    width:100%!important;
  }
  .it-header-wrapper .navbar-collapsable .nav-link{
    display:block!important;
    width:100%!important;
    min-height:44px;
  }
  .it-header-wrapper .navbar-collapsable .dropdown-menu{
    position:static!important;
    display:block!important;
    float:none!important;
    width:100%!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
  }
  .navbar-backdrop{
    position:fixed!important;
    z-index:1050!important;
    inset:0!important;
    width:100vw!important;
    height:100vh!important;
    height:100dvh!important;
    background:rgba(23,19,41,.72)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .it-header-wrapper .navbar-collapsable{transition:none!important}
}
/* Identita istituzionale accostata al comando del menu su mobile 4.2.2. */
@media(max-width:991.98px){
  .it-header-wrapper .it-header-center-wrapper .container-xxl{
    padding-inline:.75rem!important;
  }
  .it-header-wrapper .it-header-center-content-wrapper{
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr) 44px!important;
    align-items:center!important;
    justify-content:stretch!important;
    column-gap:.45rem!important;
    min-height:4.25rem!important;
    padding:.35rem 0!important;
  }
  .it-header-wrapper .afam-mobile-menu-toggle{
    grid-column:1!important;
    justify-self:start!important;
    margin:0!important;
  }
  .it-header-wrapper .it-brand-wrapper{
    grid-column:2!important;
    justify-self:start!important;
    align-self:center!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }
  .it-header-wrapper .it-brand-wrapper>a{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    gap:.45rem!important;
    text-align:left!important;
  }
  .it-header-wrapper .it-brand-wrapper .icon-wrapper,
  .it-header-wrapper .it-brand-wrapper .custom-logo-link{
    flex:0 0 auto!important;
    margin:0!important;
  }
  .it-header-wrapper .it-brand-text{
    flex:1 1 auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
  }
  .it-header-wrapper .it-brand-title{
    max-width:100%!important;
    margin:0!important;
    text-align:left!important;
    white-space:normal!important;
  }
  .it-header-wrapper .afam-institution-logo{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:min(100%,18rem)!important;
    max-height:3rem!important;
    margin:0!important;
    object-fit:contain!important;
    object-position:left center!important;
  }
  .it-header-wrapper .it-right-zone{
    grid-column:3!important;
    justify-self:end!important;
    margin:0!important;
  }
}
@media(max-width:575.98px){
  .it-header-wrapper .it-header-center-content-wrapper{
    column-gap:.35rem!important;
  }
  .it-header-wrapper .custom-logo,
  .it-header-wrapper .afam-logo,
  .it-header-wrapper .it-brand-wrapper .icon-wrapper .icon{
    width:2.35rem!important;
    height:2.35rem!important;
  }
  .it-header-wrapper .it-brand-title{
    font-size:clamp(.95rem,4.7vw,1.15rem)!important;
    line-height:1.08!important;
  }
  .it-header-wrapper .afam-institution-logo{
    max-width:min(100%,14rem)!important;
    max-height:2.65rem!important;
  }
}
@media(max-width:374.98px){
  .it-header-wrapper .it-header-center-content-wrapper{
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    column-gap:.2rem!important;
  }
  .it-header-wrapper .it-brand-wrapper>a{gap:.3rem!important}
  .it-header-wrapper .it-brand-title{font-size:.92rem!important}
  .it-header-wrapper .afam-institution-logo{
    max-width:min(100%,11.5rem)!important;
    max-height:2.35rem!important;
  }
}
/* Slim header ridotto e allineamento ottico del menu mobile 4.2.4. */
@media(max-width:991.98px){
  .it-header-wrapper{
    --afam-mobile-gutter:clamp(.75rem,4vw,1.5rem);
  }
  .it-header-wrapper .it-header-slim-wrapper .container-xxl,
  .it-header-wrapper .it-header-center-wrapper .container-xxl{
    width:100%!important;
    max-width:none!important;
    margin-inline:auto!important;
    padding-inline:var(--afam-mobile-gutter)!important;
  }
  .it-header-wrapper .it-header-slim-wrapper-content{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 44px!important;
    align-items:center!important;
    column-gap:.75rem!important;
    min-height:3.25rem!important;
    padding-block:.25rem!important;
  }
  .it-header-wrapper .afam-ministry-link{
    display:flex!important;
    align-items:center!important;
    min-width:0!important;
    max-width:none!important;
    min-height:44px!important;
    margin:0!important;
    padding:0!important;
    font-size:clamp(.8rem,3.5vw,.95rem)!important;
    line-height:1.15!important;
  }
  .it-header-wrapper .it-header-slim-wrapper-content>.ms-auto{
    grid-column:2!important;
    justify-self:end!important;
    width:44px!important;
    margin:0!important;
  }
  .it-header-wrapper .it-header-slim-wrapper .btn-full{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:.5rem!important;
    border-width:1px!important;
    border-radius:0!important;
  }
  .it-header-wrapper .it-header-center-content-wrapper{
    width:100%!important;
    grid-template-columns:44px minmax(0,1fr) 44px!important;
    column-gap:.75rem!important;
    min-height:4.75rem!important;
    padding-block:.4rem!important;
  }
  .it-header-wrapper .afam-mobile-menu-toggle{
    justify-self:start!important;
    justify-content:flex-start!important;
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }
  .it-header-wrapper .afam-mobile-menu-toggle .icon{
    width:1.65rem!important;
    height:1.65rem!important;
    margin:0!important;
  }
  .it-header-wrapper .it-brand-wrapper{
    justify-self:start!important;
  }
  .it-header-wrapper .it-right-zone{
    justify-self:end!important;
  }
}
@media(max-width:575.98px){
  .it-header-wrapper{--afam-mobile-gutter:.75rem}
  .it-header-wrapper .it-header-slim-wrapper-content,
  .it-header-wrapper .it-header-center-content-wrapper{column-gap:.5rem!important}
  .it-header-wrapper .afam-ministry-link{font-size:clamp(.76rem,3.7vw,.88rem)!important}
}
@media(max-width:374.98px){
  .it-header-wrapper .it-header-slim-wrapper-content{grid-template-columns:minmax(0,1fr) 42px!important;column-gap:.35rem!important}
  .it-header-wrapper .it-header-center-content-wrapper{grid-template-columns:42px minmax(0,1fr) 42px!important;column-gap:.35rem!important}
  .it-header-wrapper .it-header-slim-wrapper .btn-full,
  .it-header-wrapper .afam-mobile-menu-toggle{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important}
}
/* Allineamento ottico dell'intestazione normale 4.2.5. */
@media(min-width:992px){
  .it-header-wrapper{
    --afam-desktop-menu-line:2rem;
    --afam-desktop-brand-optical-line:1.375rem;
  }
  .it-header-wrapper .it-header-slim-wrapper-content{
    padding-left:var(--afam-desktop-menu-line)!important;
  }
  .it-header-wrapper .it-header-center-content-wrapper{
    padding-left:var(--afam-desktop-brand-optical-line)!important;
  }
  .it-header-wrapper .it-header-center-content-wrapper .it-brand-wrapper{
    margin-left:0!important;
  }
  .it-header-wrapper .it-header-center-content-wrapper .it-brand-wrapper>a{
    justify-content:flex-start!important;
  }
  .it-header-wrapper .it-header-center-content-wrapper .it-brand-text{
    text-align:left!important;
  }
  .it-header-wrapper .it-header-center-content-wrapper .afam-institution-logo{
    object-position:left center!important;
  }
}
/* Bordi viola per i pulsanti con contorno primario 4.2.6. */
.btn-outline-primary,
a.btn-outline-primary,
button.btn-outline-primary,
input.btn-outline-primary{
  color:var(--afam-primary)!important;
  border-color:var(--afam-primary)!important;
}
.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary:focus-visible,
.btn-check:checked+.btn-outline-primary{
  color:#fff!important;
  background-color:var(--afam-primary)!important;
  border-color:var(--afam-primary)!important;
}
/* Correzione vincolante del bordo del pulsante Stampa 4.2.7. */
.afam-action-panel button.afam-print-button,
.afam-action-panel .btn.afam-print-button,
button.btn.btn-outline-primary.afam-print-button{
  --bs-btn-color:#5b2c83!important;
  --bs-btn-border-color:#5b2c83!important;
  --bs-btn-hover-color:#fff!important;
  --bs-btn-hover-bg:#5b2c83!important;
  --bs-btn-hover-border-color:#5b2c83!important;
  --bs-btn-active-color:#fff!important;
  --bs-btn-active-bg:#5b2c83!important;
  --bs-btn-active-border-color:#5b2c83!important;
  color:#5b2c83!important;
  background-color:#fff!important;
  border:3px solid #5b2c83!important;
  box-shadow:none!important;
}
.afam-action-panel button.afam-print-button:hover,
.afam-action-panel button.afam-print-button:active,
.afam-action-panel button.afam-print-button:focus-visible{
  color:#fff!important;
  background-color:#5b2c83!important;
  border-color:#5b2c83!important;
}
/* Tutti i pulsanti con bordo primario usano il viola istituzionale 4.2.8. */
:root{
  --bs-btn-primary-border-afam:#5b2c83;
}
.btn.btn-outline-primary,
a.btn.btn-outline-primary,
button.btn.btn-outline-primary,
input.btn.btn-outline-primary,
.wp-element-button.btn-outline-primary,
.wp-block-button .wp-block-button__link.btn-outline-primary{
  --bs-btn-color:#5b2c83!important;
  --bs-btn-border-color:#5b2c83!important;
  --bs-btn-hover-color:#fff!important;
  --bs-btn-hover-bg:#5b2c83!important;
  --bs-btn-hover-border-color:#5b2c83!important;
  --bs-btn-focus-shadow-rgb:91,44,131!important;
  --bs-btn-active-color:#fff!important;
  --bs-btn-active-bg:#5b2c83!important;
  --bs-btn-active-border-color:#5b2c83!important;
  --bs-btn-disabled-color:#5b2c83!important;
  --bs-btn-disabled-border-color:#5b2c83!important;
  color:#5b2c83!important;
  background-color:transparent!important;
  border-color:#5b2c83!important;
  box-shadow:none!important;
}
.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:active,
.btn.btn-outline-primary.active,
.btn.btn-outline-primary.show,
.btn.btn-outline-primary:focus-visible,
.btn-check:checked+.btn.btn-outline-primary,
.btn-check:active+.btn.btn-outline-primary{
  color:#fff!important;
  background-color:#5b2c83!important;
  border-color:#5b2c83!important;
}
.btn.btn-outline-primary:disabled,
.btn.btn-outline-primary.disabled{
  color:#5b2c83!important;
  background-color:transparent!important;
  border-color:#5b2c83!important;
  opacity:.65;
}
.afam-login-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2rem}.afam-login-grid>section{padding:clamp(1.25rem,3vw,2rem);background:#fff;border:1px solid var(--afam-line);border-top:4px solid var(--afam-primary);border-radius:var(--afam-radius)}.afam-login-form label{display:block;margin-bottom:.35rem;font-weight:700}.afam-login-form input[type=text],.afam-login-form input[type=password]{display:block;width:100%;min-height:3rem;padding:.6rem .75rem;border:2px solid #5c6f82;border-radius:.25rem}.afam-login-services{display:grid;gap:1rem;margin:0;padding:0;list-style:none}.afam-login-services article{padding:1rem;background:var(--afam-mist);border-radius:.5rem}.afam-login-services h3{font-size:1.2rem}@media(max-width:991.98px){.it-header-wrapper .it-right-zone{display:flex!important;align-items:center;width:auto!important}}@media(max-width:767.98px){.afam-login-grid{grid-template-columns:1fr}}@media(forced-colors:active){.afam-login-grid>section,.afam-login-form input{border-color:CanvasText!important}}

/* Slim header mobile ordinato e senza sovrapposizioni 4.3.2. */
@media(max-width:991.98px){
  .it-header-wrapper .it-header-slim-wrapper-content{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    column-gap:.5rem!important;
    min-height:3.25rem!important;
    padding-block:.25rem!important;
  }
  .it-header-wrapper .afam-ministry-link{
    grid-column:1!important;
    min-width:0!important;
    max-width:none!important;
    min-height:40px!important;
    margin:0!important;
    padding:0!important;
    font-size:clamp(.68rem,2.8vw,.82rem)!important;
    line-height:1.15!important;
    overflow-wrap:normal!important;
  }
  .it-header-wrapper .it-header-slim-wrapper-content>.ms-auto{
    grid-column:2!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:.3rem!important;
    width:auto!important;
    min-width:max-content!important;
    margin:0!important;
  }

  .it-header-wrapper .it-header-slim-wrapper .btn-full{
    flex:0 0 40px!important;
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    margin:0!important;
    padding:.45rem!important;
  }
}
@media(max-width:374.98px){
  .it-header-wrapper .it-header-slim-wrapper .container-xxl{
    padding-inline:.5rem!important;
  }
  .it-header-wrapper .it-header-slim-wrapper-content{
    column-gap:.3rem!important;
  }

  .it-header-wrapper .afam-ministry-link{
    font-size:.66rem!important;
  }

}

@media(max-width:991.98px){

  .it-header-wrapper .afam-ministry-link{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

}

