/* Client feedback 13 October 2026: buttons, navigation, fixed brand surfaces and galleries. */
body.tma-next .tma-button{border-radius:10px}
body.tma-next .tma-button.tma-button--ghost,
body.tma-next .tma-client-nav-cta .tma-button[href*="sedi-contatti"]{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.7)}
body.tma-next .tma-button.tma-button--ghost:hover,
body.tma-next .tma-client-nav-cta .tma-button[href*="sedi-contatti"]:hover{background:rgba(255,255,255,.12);color:#fff}
body.tma-next .tma-client-nav-cta .tma-button[href*="trova-il-tuo-percorso"]{background:#ffe35b;color:#111;border-color:#ffe35b}
body.tma-next .tma-nav>a,body.tma-next .tma-nav__trigger>a{font-size:1.5rem;font-weight:700;line-height:1.4;transition:color .18s ease}
body.tma-next .tma-nav>a:hover,body.tma-next .tma-nav>a:focus-visible,
body.tma-next .tma-nav__trigger>a:hover,body.tma-next .tma-nav__trigger>a:focus-visible,
body.tma-next .tma-nav__group:hover>.tma-nav__trigger>a{color:#75d9f0}
body.tma-next .tma-architecture-menu__body h2{color:#086b80}
html[data-tma-theme=dark] body.tma-next .tma-architecture-menu__body h2{color:#75d9f0}
body.tma-next .tma-nav__group--corsi .tma-architecture-menu__links a[href$="/competenze-esperienze-complementari/"] span{color:#086b80;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
html[data-tma-theme=dark] body.tma-next .tma-nav__group--corsi .tma-architecture-menu__links a[href$="/competenze-esperienze-complementari/"] span{color:#75d9f0}
body.tma-next .tma-catalog-jumps a,html[data-tma-theme=dark] body.tma-next .tma-catalog-jumps a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:14px 20px;background:#ffe65a;color:#111;border:1px solid transparent;border-radius:10px;font-weight:700;text-decoration:none}
body.tma-next .tma-catalog-jumps a:hover{background:#f2cf24}
body.tma-next .tma-client-ecosystem>a,html[data-tma-theme=dark] body.tma-next .tma-client-ecosystem>a{background:#e9e9e9;color:#111;border-color:transparent;box-shadow:0 0 0 1px #d0d0d0}
body.tma-next .tma-client-logo.is-light,html[data-tma-theme=dark] body.tma-next .tma-client-logo.is-light{background:#fff}
body.tma-next .tma-client-logo.is-dark,html[data-tma-theme=dark] body.tma-next .tma-client-logo.is-dark{background:#242832}
body.tma-next .tma-client-ecosystem strong,html[data-tma-theme=dark] body.tma-next .tma-client-ecosystem strong{background:#e9e9e9;color:#111}
body.tma-next .tma-learning-card__photo{margin-bottom:20px;aspect-ratio:16/10;overflow:hidden}
body.tma-next .tma-learning-card__photo img{width:100%;height:100%;object-fit:cover;display:block}
body.tma-next .tma-illustrated-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
body.tma-next .tma-illustrated-card{display:block;background:#fff;color:#111;text-decoration:none;overflow:hidden}
html[data-tma-theme=dark] body.tma-next .tma-illustrated-card{background:#383838;color:#f7f7f7}
body.tma-next .tma-illustrated-card>img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
body.tma-next .tma-illustrated-card>div{padding:28px}
body.tma-next .tma-illustrated-card h2{font-size:clamp(3rem,3vw,4.5rem);margin-bottom:16px}
body.tma-next .tma-illustrated-card p{color:#555}
html[data-tma-theme=dark] body.tma-next .tma-illustrated-card p{color:#d4d4d4}
body.tma-next .tma-illustrated-card span{display:block;font-weight:700;margin-top:20px}
body.tma-next .tma-gallery__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
body.tma-next .tma-gallery__grid figure{margin:0;overflow:hidden}
body.tma-next .tma-gallery__grid figure[hidden]{display:none}
body.tma-next .tma-gallery__grid a{display:block;overflow:hidden}
body.tma-next .tma-gallery__grid img{display:block;width:100%;aspect-ratio:8/5;height:auto;object-fit:cover;transition:transform .25s ease}
body.tma-next .tma-gallery__grid a:hover img{transform:scale(1.04)}
body.tma-next .tma-gallery__controls{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px}
body.tma-next .tma-gallery__controls>[data-gallery-pagination]{display:flex;align-items:center;gap:16px}
body.tma-next .tma-gallery__controls>[hidden]{display:none}
body.tma-next .tma-gallery__controls>a{margin-left:auto;font-weight:700;text-decoration:none}
body.tma-next .tma-gallery__controls button{background:#ffe35b;color:#111;border:0;border-radius:10px;min-width:48px;min-height:48px;font-size:2rem;cursor:pointer}
body.tma-gallery-open{overflow:hidden}
body.tma-next .tma-gallery-dialog{width:min(1200px,calc(100vw - 32px));max-width:none;height:min(880px,calc(100dvh - 32px));max-height:none;padding:16px;background:#141414;color:#fff;border:0;box-sizing:border-box;overflow:hidden}
body.tma-next .tma-gallery-dialog[open]{display:flex;flex-direction:column}
.tma-gallery-dialog::backdrop{background:rgba(0,0,0,.9)}
body.tma-next .tma-gallery-dialog__tools,body.tma-next .tma-gallery-dialog__bottom{display:flex;align-items:center;gap:16px;flex-shrink:0}
body.tma-next .tma-gallery-dialog__tools{padding-bottom:12px}
body.tma-next .tma-gallery-dialog__tools>span{margin-right:auto}
body.tma-next .tma-gallery-dialog button{min-width:48px;min-height:48px;padding:10px 16px;border:0;border-radius:10px;background:#333;color:#fff;font:inherit;cursor:pointer}
body.tma-next .tma-gallery-dialog button:hover{background:#ffe65a;color:#111}
body.tma-next .tma-gallery-dialog__view{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center}
body.tma-next .tma-gallery-dialog__view img{display:block;width:100%;height:100%;object-fit:contain;max-width:100%;max-height:100%}
body.tma-next .tma-gallery-dialog.is-zoomed .tma-gallery-dialog__view{display:block}
body.tma-next .tma-gallery-dialog.is-zoomed img{width:150%;height:auto;max-width:none;max-height:none;object-fit:initial}
body.tma-next .tma-gallery-dialog__bottom{padding-top:12px;justify-content:space-between}
body.tma-next .tma-gallery-dialog__bottom p{margin:0;color:#fff;font-size:1.5rem;text-align:center}
@media(min-width:1081px){body.tma-next .tma-nav{gap:20px}body.tma-next .tma-nav__trigger{gap:8px}body.tma-next .tma-nav>a.tma-nav__link[href$="/artist-development/"]{display:inline-flex;align-items:center;gap:0}}
@media(min-width:1081px) and (max-width:1300px){body.tma-next .tma-nav{gap:14px}body.tma-next .tma-nav>a,body.tma-next .tma-nav__trigger>a{font-size:1.4rem}body.tma-next .tma-brand{max-width:150px}body.tma-next .tma-mmi-badge{max-width:50px}body.tma-next .tma-client-nav-cta .tma-button{font-size:1.15rem;padding:10px}}
@media(max-width:760px){body.tma-next .tma-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.tma-next .tma-illustrated-grid{grid-template-columns:1fr}body.tma-next .tma-gallery__controls{align-items:flex-start;flex-direction:column}body.tma-next .tma-gallery__controls>a{align-self:flex-end}body.tma-next .tma-gallery-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);padding:12px}body.tma-next .tma-gallery-dialog__tools{gap:8px}body.tma-next .tma-gallery-dialog__bottom p{font-size:1.3rem}}
@media(prefers-reduced-motion:reduce){body.tma-next .tma-gallery__grid img{transition:none}}
body.tma-next .tma-button.tma-button{border-radius:10px!important}
body.tma-next .tma-button.tma-button--ghost,body.tma-next .tma-button.tma-button--ghost:hover,body.tma-next .tma-client-nav-cta .tma-button[href*="sedi-contatti"]{color:#fff!important}
@media(min-width:1081px){body.tma-next .tma-nav{align-items:center}body.tma-next .tma-nav>a,body.tma-next .tma-nav>.tma-nav__group>.tma-nav__trigger{display:flex;align-items:center;height:88px;padding-block:0}body.tma-next .tma-nav>.tma-nav__group{height:88px}}

body.tma-next .tma-client-ecosystem>a:nth-child(2) .tma-client-logo,html[data-tma-theme=dark] body.tma-next .tma-client-ecosystem>a:nth-child(2) .tma-client-logo{background:#fff}

body.tma-next .tma-client-nav-cta .tma-button[href*="trova-il-tuo-percorso"]{color:#111!important}
@media(max-width:1080px){body.tma-next .tma-nav>a,body.tma-next .tma-nav>.tma-nav__group>.tma-nav__trigger{height:68px;min-height:68px;box-sizing:border-box;display:flex;align-items:center;padding:10px 0}body.tma-next .tma-nav>a.tma-nav__link[href$="/artist-development/"]{display:flex;align-items:center;justify-content:flex-start;gap:0}}

/* Compact homepage orientation: one image beside a single editorial block. */
body.tma-next .tma-home-orientation{padding-block:clamp(36px,4vw,64px)}
body.tma-next .tma-home-orientation .tma-client-orientation{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(28px,4vw,64px);align-items:center}
body.tma-next .tma-home-orientation figure{margin:0;aspect-ratio:4/3}
body.tma-next .tma-home-orientation .tma-eyebrow{margin:0 0 12px}
body.tma-next .tma-home-orientation h2{max-width:20ch;font-size:clamp(36px,4vw,68px);line-height:1.04;margin:0 0 20px}
body.tma-next .tma-home-orientation .tma-client-orientation__copy>p:not(.tma-eyebrow){max-width:58ch;margin:0 0 14px}
body.tma-next .tma-home-orientation .tma-actions{margin-top:22px}
@media(max-width:760px){body.tma-next .tma-home-orientation .tma-client-orientation{grid-template-columns:1fr;gap:24px}body.tma-next .tma-home-orientation figure{aspect-ratio:16/9}body.tma-next .tma-home-orientation h2{max-width:22ch;font-size:clamp(36px,8vw,54px)}}

/* Keep catalog surfaces and their text paired in dark mode. */
html[data-tma-theme=dark] body.tma-next .tma-module-catalog .tma-learning-card{background:#333333;color:#f7f7f7;border-color:transparent}
html[data-tma-theme=dark] body.tma-next .tma-module-catalog .tma-learning-card strong{color:#f7f7f7}
html[data-tma-theme=dark] body.tma-next .tma-module-catalog .tma-learning-card :is(p,small){color:#dddddd}
html[data-tma-theme=dark] body.tma-next .tma-module-catalog .tma-learning-card>span{color:#75d9f0}
html[data-tma-theme=dark] body.tma-next .tma-module-catalog .tma-learning-card[href]:hover{background:#3c3c3c;color:#f7f7f7}
html[data-tma-theme=dark] body.tma-next .tma-module-catalog__nav{background:transparent;box-shadow:none}
html[data-tma-theme=dark] body.tma-next .tma-module-catalog__nav a{background:#333333;color:#f7f7f7;border-color:transparent}
html[data-tma-theme=dark] body.tma-next .tma-module-catalog__nav a:is(:hover,:focus-visible){background:#75d9f0;color:#111111}
html[data-tma-theme=dark] body.tma-next .tma-module-catalog :is(.tma-learning-card[href],.tma-module-catalog__nav a):focus-visible{outline:3px solid #75d9f0;outline-offset:4px}

/* Performer photographs keep the same full-bleed treatment as the existing courses. */
body.tma-next .tma-subject-photo:has(.tma-photo-credit){position:relative}
body.tma-next .tma-subject-photo .tma-photo-credit{position:absolute;inset:auto 0 0;margin:0;padding:8px 16px;background:rgba(0,0,0,.8);color:#fff;font-size:13px;line-height:1.4;text-align:center}
body.tma-next .tma-subject-photo .tma-photo-credit a{color:#fff;text-decoration:underline}
