/* Schede native Enfold: ritmi compatti anche nel percorso senza JavaScript. */
#top .af-course-sheet .content{padding-top:18px;padding-bottom:18px}
#top .af-course-sheet .av-special-heading{margin:0 0 10px;clear:both}
#top .af-course-sheet h1{font-size:clamp(22px,2.55vw,32px);line-height:1.14;letter-spacing:-.3px}
#top .af-course-sheet h2{font-size:20px;line-height:1.25;letter-spacing:-.3px;text-transform:none}
#top .af-course-sheet h3{font-size:17px;line-height:1.3;text-transform:none}
#top .af-course-sheet .avia_textblock{font-size:14px;line-height:1.65}
#top .af-course-sheet p{margin:5px 0 10px}
#top .af-course-sheet .af-lead{font-size:15px;line-height:1.6}
#top .af-course-sheet .af-breadcrumb{margin-bottom:12px;line-height:1.5}
#top .af-course-sheet .af-breadcrumb span{margin:0 4px}
#top .af-course-sheet.af-page-intro .content{padding-top:22px;padding-bottom:12px}
#top .af-course-sheet.af-page-intro .entry-content-wrapper{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:center}
#top .af-course-sheet.af-page-intro .entry-content-wrapper::before,#top .af-course-sheet.af-page-intro .entry-content-wrapper::after{display:none}
#top .af-course-sheet.af-page-intro .flex_column{width:auto;margin:0;float:none}
#top .af-course-sheet.af-page-intro .av_textblock_section:first-child:has(.af-sheet-admin){grid-column:1/-1}
#top .af-course-sheet .af-intro-photo img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
#top .af-course-sheet .af-fact{padding-top:8px;border-top-width:2px;margin-bottom:0}
#top .af-course-sheet .af-fact h3{font-size:16px}
#top .af-course-sheet .af-fact .af-eyebrow{font-size:10px;line-height:1.4;margin-bottom:6px}
#top .af-course-sheet.af-program ul{columns:1;margin:6px 0;padding:0}
#top .af-course-sheet.af-program li{margin:0;padding:5px 0 5px 14px;line-height:1.6}
#top .af-course-sheet.af-program li::before{left:0}
#top .af-course-sheet.af-practical .av-special-heading-h3{margin-top:16px}
#top .af-course-sheet.af-recognition{text-align:left}
#top .af-course-sheet.af-recognition .content{padding-top:8px;padding-bottom:8px}
#top .af-course-sheet.af-recognition .avia-image-container{margin:4px auto 2px;max-width:700px}
#top .af-course-sheet.af-recognition .af-small{font-size:14px;line-height:1.5;color:#10495c;font-weight:400;opacity:1}
#top .af-course-sheet.af-recognition .af-small p{margin:2px 0 0}
#top .af-course-sheet .af-small{font-size:12px;line-height:1.5;color:#52686e}
#top .af-course-sheet.af-sheet-action{border-top:1px solid #dce1dd}
#top .af-course-sheet.af-sheet-action .af-button{margin:0 0 10px}
#top .af-course-sheet.af-sheet-action .avia-button{font-size:19px;font-weight:700;line-height:1.3;padding:16px 22px;min-height:56px;box-sizing:border-box}
#top .af-sheet-admin{font-size:12px;text-decoration:underline;text-underline-offset:3px}
/* Dialogo con un solo contenitore scorrevole e barra sempre visibile. */
#top #af-course-dialog{padding:0;border:0;margin:0 auto;inset:0;width:90vw;max-width:none;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;box-sizing:border-box;color:#10495c;background:#fff;box-shadow:0 20px 80px #0005;overflow:hidden}
#top #af-course-dialog[open]{display:flex;flex-direction:column}
#top #af-course-dialog::backdrop{background:rgba(6,25,30,.66);backdrop-filter:blur(5px)}
#top .af-sheet-toolbar{flex:0 0 auto;background:#fff;border-bottom:1px solid #d7dfdf;padding:8px 20px 0}
#top .af-sheet-toolbar-line{display:flex;align-items:center;gap:12px;min-height:44px}
#top #af-sheet-label{font-size:12px;line-height:1.4;font-weight:600;margin-right:auto}
#top .af-sheet-close{flex:0 0 44px;width:44px;height:44px;border:0;background:#eff3f2;color:#10495c;font-size:30px;line-height:1;padding:0;cursor:pointer}
#top .af-sheet-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 18px;align-items:center}
#top .af-sheet-tabs a{font-size:12px;line-height:1.3;text-decoration:underline;text-underline-offset:4px;display:flex;align-items:center;min-height:40px}
#top .af-sheet-tabs a[hidden]{display:none}
#top .af-sheet-tabs:not(:has(a:not([hidden]))){display:none}
#top .af-sheet-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;outline:none}
#top .af-sheet-loading{padding:32px;margin:0;font-size:15px}
#top .af-sheet-body .af-course-sheet{float:none;width:100%;min-width:0;clear:both;border:0;background:#fff}
#top .af-sheet-body .af-course-sheet .container{width:100%;max-width:none;padding:0 26px;box-sizing:border-box;min-width:0;display:block}
#top .af-sheet-body .af-course-sheet .content{width:100%;float:none;border:0;min-height:0;display:block;position:relative}
#top .af-sheet-body .af-course-sheet .flex_column{min-width:0}
#top .af-sheet-body .af-course-sheet:not(.af-page-intro):not(.af-course-overview):not(.af-access) .entry-content-wrapper{display:flow-root}
#top .af-sheet-toolbar a{color:#10495c}
#top .af-sheet-body .af-course-sheet:not(:last-child){border-bottom:1px solid #edf0ef}
#top .af-sheet-body .af-course-sheet.af-course-overview .entry-content-wrapper{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#top .af-sheet-body .af-course-sheet.af-course-overview .entry-content-wrapper::before,#top .af-sheet-body .af-course-sheet.af-course-overview .entry-content-wrapper::after{display:none}
#top .af-sheet-body .af-course-sheet.af-course-overview .af-fact{width:auto;margin:0;float:none}
#top .af-sheet-body .af-course-sheet .af-logo-mobile{display:none}
#top .af-sheet-body .af-course-sheet .af-logo-wide{display:block}
#top .af-sheet-body .af-course-sheet .togglecontainer{margin:8px 0}
#top .af-sheet-body .af-course-sheet .toggler{font-size:14px;padding-top:12px;padding-bottom:12px;min-height:44px;box-sizing:border-box}
#top .af-sheet-body .af-course-sheet .toggle_content{padding:12px 16px}
#top .af-sheet-body .af-course-sheet .toggle_content ul{margin:0}
#top .af-sheet-body .af-course-sheet .toggle_content li{padding:4px 0 4px 14px;margin:0}
@media(max-width:767px){
#top #af-course-dialog{width:100vw;border-radius:0}
#top .af-sheet-toolbar{padding-top:max(6px,env(safe-area-inset-top));padding-right:max(14px,env(safe-area-inset-right));padding-left:max(18px,env(safe-area-inset-left))}
#top .af-sheet-body{padding-bottom:env(safe-area-inset-bottom)}
#top .af-sheet-toolbar{padding:6px 14px 0}
#top .af-sheet-tabs{gap:0;justify-content:space-between}
#top .af-sheet-tabs a{font-size:12px}
#top .af-sheet-body .af-course-sheet .container{padding:0 18px}
#top .af-course-sheet .content{padding-top:14px;padding-bottom:14px}
#top .af-course-sheet.af-page-intro .content{padding-top:16px}
#top .af-course-sheet.af-page-intro .entry-content-wrapper{grid-template-columns:minmax(0,1fr);gap:12px}
#top .af-sheet-body .af-course-sheet.af-page-intro .entry-content-wrapper{grid-template-columns:minmax(0,1fr);gap:16px}
#top .af-sheet-body .af-course-sheet.af-page-intro .flex_column{margin:0}
#top .af-sheet-body .af-course-sheet.af-page-intro .af-intro-photo{grid-row:1;max-width:none;width:100%;margin:0}
#top .af-sheet-body .af-course-sheet.af-page-intro .af-intro-photo img{aspect-ratio:3/2;object-fit:cover}
#top .af-course-sheet h1{font-size:24px}
#top .af-course-sheet .avia_textblock{font-size:15px;line-height:1.6}
#top .af-sheet-body .af-course-sheet.af-access .entry-content-wrapper{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
#top .af-sheet-body .af-course-sheet.af-access .flex_column{float:none;width:100%;margin:0}
#top .af-course-sheet h2{font-size:20px}
#top .af-sheet-body .af-course-sheet.af-course-overview .entry-content-wrapper{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#top #wrap_all .af-course-sheet .flex_column,#top .af-sheet-body .af-course-sheet .flex_column{margin-bottom:14px}
#top .af-course-sheet .flex_column:last-child,#top .af-sheet-body .af-course-sheet .flex_column:last-child{margin-bottom:0}
#top .af-sheet-body .af-course-sheet .af-logo-mobile{display:block}
#top .af-sheet-body .af-course-sheet .af-logo-wide{display:none}
#top .af-sheet-body .af-course-sheet.af-sheet-action .af-button{display:block;width:100%}
#top .af-course-sheet.af-sheet-action .avia-button{width:100%;box-sizing:border-box;float:none}
}

/* Testata editoriale: fotografia leggibile, titolazione e invito ordinati. */
#top .af-sheet-body .af-course-sheet.af-page-intro{background:#f5f3ed;border-bottom:1px solid #e4e2da}
#top .af-course-sheet.af-page-intro .content{padding-top:24px;padding-bottom:24px}
#top .af-course-sheet.af-page-intro .af-breadcrumb{font-size:11px;line-height:1.5;letter-spacing:.25px;margin-bottom:14px}
#top .af-course-sheet.af-page-intro h1{font-size:clamp(24px,2.38vw,31px);line-height:1.12;letter-spacing:-.3px;font-weight:600}
#top .af-course-sheet.af-page-intro .af-lead{font-size:14px;line-height:1.65;margin:12px 0 16px}
#top .af-course-sheet.af-page-intro .af-intro-photo .avia-image-container{margin:0}
#top .af-course-sheet.af-page-intro .af-enrollment-cta{margin:4px 0 0;float:none;display:inline-block;max-width:100%}
#top .af-course-sheet.af-page-intro .af-enrollment-cta .avia-button{padding:15px 20px;min-height:56px}
@media(max-width:767px){
#top .af-course-sheet.af-page-intro .content{padding-top:16px;padding-bottom:20px}
#top .af-course-sheet.af-page-intro h1{font-size:24px}
#top .af-course-sheet.af-page-intro .af-breadcrumb{margin:0 0 10px}
#top .af-course-sheet.af-page-intro .af-lead{margin:10px 0 14px}
}

/* Barra della scheda: marchio leggibile prima della navigazione. */
#top .af-sheet-toolbar{display:grid;grid-template-columns:210px minmax(0,1fr);column-gap:20px;align-items:center;padding-left:26px}
#top .af-sheet-brand{grid-column:1;grid-row:1/3;width:210px;display:block}
#top .af-sheet-brand img{display:block;width:100%;height:auto}
#top .af-sheet-toolbar-line{grid-column:2;grid-row:1}
#top .af-sheet-tabs{grid-column:2;grid-row:2}
@media(min-width:768px){
#top .af-sheet-body .af-course-sheet.af-page-intro .container{padding-right:10px}
#top .af-course-sheet.af-page-intro .content{padding-top:10px;padding-bottom:10px}
#top .af-course-sheet.af-page-intro .af-intro-copy{align-self:center}
}
@media(max-width:767px){
#top .af-sheet-toolbar{grid-template-columns:155px minmax(0,1fr);column-gap:12px;padding-left:18px}
#top .af-sheet-brand{grid-row:1;width:155px}
#top .af-sheet-tabs{grid-column:1/-1;grid-row:2}
#top #af-sheet-label{font-size:10px}
}

/* Price and its terms are one fact cell; the tallest cell sets the row height. */
#top .af-course-sheet.af-course-overview .entry-content-wrapper,#top .af-sheet-body .af-course-sheet.af-course-overview .entry-content-wrapper{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));grid-auto-rows:auto;gap:14px;align-items:stretch}
#top .af-course-overview .entry-content-wrapper::before,#top .af-course-overview .entry-content-wrapper::after{display:none}
#top .af-course-overview .av_textblock_section:has(.af-price-slot),#top .af-course-overview .af-price-slot{display:contents}
#top .af-course-overview .av_textblock_section:has(.af-price-slot):not(:has(.af-price-fact)),#top .af-price-overview:not(:has(.af-price-fact)){display:none}
#top .af-course-sheet.af-course-overview .af-fact{margin:0;width:auto;float:none;box-sizing:border-box;height:100%;min-width:0}
#top .af-price-fact .af-card-price{font-family:"Josefin Sans",sans-serif;font-size:18px;line-height:1.4;margin:0;font-weight:500;color:#10495c}
#top .af-price-fact .af-card-price small,#top .af-price-fact .af-price-variants{font-family:"Open Sans",sans-serif;font-size:12px;font-weight:400;line-height:1.5;margin:3px 0 0}
@media(max-width:767px){#top .af-course-sheet.af-course-overview .entry-content-wrapper,#top .af-sheet-body .af-course-sheet.af-course-overview .entry-content-wrapper{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#top .af-price-overview .entry-content-wrapper{grid-template-columns:1fr!important}}
/* Trim only the white canvas around the authentic institutional marks. */
#top .af-course-sheet.af-recognition :is(.af-logo-wide,.af-logo-mobile) .avia-image-container-inner{overflow:hidden;display:block}
#top .af-course-sheet.af-recognition .af-logo-wide img{display:block;margin-top:-6%;margin-bottom:-6%}
#top .af-course-sheet.af-recognition .af-logo-mobile img{display:block;margin-top:-3.5%;margin-bottom:-3.5%}
#top .af-academy-bundles{margin:18px 0 0;padding:16px 0 0;border-top:1px solid #dce1dd}
#top .af-academy-bundle-item{padding:12px 0;border-bottom:1px solid #e5e9e7}
#top a.af-bundle-button{display:inline-block;background:#fff;color:#10495c;border:1px solid #10495c;padding:12px 18px;font-weight:400;text-decoration:none;max-width:100%;box-sizing:border-box;line-height:1.5}
#top a.af-bundle-button:hover,#top a.af-bundle-button:focus-visible{background:#fff;outline:2px solid #cda434;outline-offset:2px}
#top .af-academy-bundles .af-bundle-price{margin:6px 0 0;font-size:15px}
#top .af-bundle-price small{display:block;font-size:12px;line-height:1.5;font-weight:400}
@media(max-width:767px){#top a.af-bundle-button{width:100%;text-align:center}}
#top .af-preview-institutions{max-width:340px;width:100%;overflow:hidden;margin:12px auto 0}
#top .af-preview-institutions img{display:block;width:100%;height:auto;margin:-6% 0}
#top.home .af-catalog .af-preview-macro{display:block}
#top.home .af-catalog .af-preview-institutions img{width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;transform:none!important;position:static!important;border-radius:0}
@media(min-width:768px){
#top.home #orientamento .entry-content-wrapper{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:center}
#top.home #orientamento .entry-content-wrapper::before,#top.home #orientamento .entry-content-wrapper::after{display:none}
#top.home #orientamento .flex_column{width:auto;margin:0;float:none;min-width:0}
}
/* The featured cards share their natural tallest height; actions and marks sit at the foot. */
#top.home .af-catalog .af-course-card:has(.af-preview-institutions){padding-bottom:6px!important}
#top.home .af-catalog .af-course-card:has(.af-preview-institutions) .af-preview-institutions{margin-top:8px;margin-bottom:0}
@media(min-width:768px){
#top.home .af-catalog .flex_column_table:has(.af-preview-institutions){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:6%;align-items:stretch}
#top.home .af-catalog .flex_column_table:has(.af-preview-institutions)>.av-flex-placeholder{display:none}
#top.home .af-catalog .af-course-card:has(.af-preview-institutions){display:flex;flex-direction:column;width:auto!important;margin:0!important;min-width:0}
#top.home .af-catalog .af-course-card:has(.af-preview-institutions)>.av_textblock_section:last-of-type{display:flex;flex:1;flex-direction:column}
#top.home .af-catalog .af-course-card:has(.af-preview-institutions)>.av_textblock_section:last-of-type>.avia_textblock{display:flex;flex:1;flex-direction:column}
#top.home #wrap_all .af-catalog .af-course-card:has(.af-preview-institutions) .af-card-actions{margin-top:auto;padding-top:12px;flex-shrink:0}
}
#top.home .af-editorial-panel :is(h2,p){-webkit-user-select:text;user-select:text;cursor:text}
#top.home .af-editorial-panel ::selection{background:#edcf8a;color:#10495c}

@media(max-width:767px){#top .af-sheet-tabs{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}}

/* Explicit Local-only examples remain distinct from documented course facts. */
#top .af-course-overview .af-summary-demo-note{display:block;font-family:"Open Sans",sans-serif;font-size:11px;font-weight:400;line-height:1.4;color:#657477;margin-top:5px}

@media(max-width:767px){#top .af-course-overview .af-price-fact{grid-column:1/-1}}

#top .af-recognition .af-ministry-reference{max-width:160px;margin:4px auto}
#top .af-recognition .af-ministry-reference img{max-height:48px;width:auto;height:auto;object-fit:contain}

/* Conditional schedule follows the same adaptive grid as the price cell. */
#top .af-course-overview .av_textblock_section:has(.af-schedule-slot),#top .af-course-overview .af-schedule-slot{display:contents}
#top .af-course-overview .av_textblock_section:has(.af-schedule-slot):not(:has(.af-schedule-fact)){display:none}
