/* Approved Teacher page styling, matching the Home. */
/* Approved Home CTA buttons. Keep the original colours and honour reduced motion. */

html body.segment-page--docenti :is(#mfe-home-buttons#mfe-home-buttons-specificity,a.button,button.button,a.guide-all-button,a.nav-cta--whatsapp){
--mfe-control-radius:12px;min-height:50px!important;height:auto!important;box-sizing:border-box!important;padding:12px 20px!important;border-radius:12px!important;gap:10px!important;align-items:center!important;justify-content:center!important;line-height:1.35!important;transition:transform 180ms ease,box-shadow 180ms ease!important;}
html body.segment-page--docenti :is(#mfe-home-buttons#mfe-home-buttons-specificity,a.button,button.button,a.guide-all-button,a.nav-cta--whatsapp) :is(svg,i[data-lucide],span[data-lucide]){width:20px!important;height:20px!important;flex:0 0 20px!important;}
html body.segment-page--docenti :is(#mfe-home-buttons#mfe-home-buttons-specificity,a.button,button.button,a.guide-all-button,a.nav-cta--whatsapp):focus-visible{outline:3px solid #293659!important;outline-offset:4px!important;}
@media(hover:hover)and(pointer:fine){html body.segment-page--docenti :is(#mfe-home-buttons#mfe-home-buttons-specificity,a.button,button.button,a.guide-all-button,a.nav-cta--whatsapp):hover{transform:translateY(-2px)!important;box-shadow:0 6px 14px #29365926!important;}}
html body.segment-page--docenti :is(#mfe-home-buttons#mfe-home-buttons-specificity,a.button,button.button,a.guide-all-button,a.nav-cta--whatsapp):active{transform:translateY(0)!important;}
@media(prefers-reduced-motion:reduce){html body.segment-page--docenti :is(#mfe-home-buttons#mfe-home-buttons-specificity,a.button,button.button,a.guide-all-button,a.nav-cta--whatsapp){transition:none!important;transform:none!important;}}

/* Approved Home photographic cards: original images, single gradient and motion only on desktop hover. */

html body.segment-page--docenti :is(#mfe-photo-trial#mfe-photo-trial-never#mfe-photo-trial-extra,.audience-card.mfe-photo-card,.team-service-card.mfe-photo-card,.experience-grid>.mfe-photo-card,.resource-card--featured-guide.mfe-photo-card){border-radius:16px!important;overflow:hidden!important;isolation:isolate;}
html body.segment-page--docenti :is(#mfe-photo-trial#mfe-photo-trial-never#mfe-photo-trial-extra,.audience-card.mfe-photo-card,.team-service-card.mfe-photo-card,.experience-grid>.mfe-photo-card,.resource-card--featured-guide.mfe-photo-card)::before{background:none!important;}
html body.segment-page--docenti :is(#mfe-photo-trial#mfe-photo-trial-never#mfe-photo-trial-extra,.audience-card.mfe-photo-card,.team-service-card.mfe-photo-card,.experience-grid>.mfe-photo-card,.resource-card--featured-guide.mfe-photo-card)::after{content:""!important;position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none!important;background:linear-gradient(180deg,rgba(7,17,38,.24) 0%,rgba(7,17,38,.06) 28%,rgba(7,17,38,.48) 58%,rgba(7,17,38,.94) 100%)!important;}
html body.segment-page--docenti :is(#mfe-photo-trial#mfe-photo-trial-never#mfe-photo-trial-extra,.audience-card.mfe-photo-card,.team-service-card.mfe-photo-card,.experience-grid>.mfe-photo-card,.resource-card--featured-guide.mfe-photo-card)>img{transition:transform 320ms ease!important;transform:scale(1)!important;}
html body.segment-page--docenti :is(#mfe-photo-trial#mfe-photo-trial-never#mfe-photo-trial-extra,.audience-card.mfe-photo-card,.team-service-card.mfe-photo-card,.experience-grid>.mfe-photo-card,.resource-card--featured-guide.mfe-photo-card) :is(h2,h3,p,.resource-meta,.resource-card__meta){text-shadow:0 1px 3px #07112670;}
html body.segment-page--docenti :is(#mfe-grid-trial#mfe-grid-trial-never#mfe-grid-trial-extra,.audience-grid--path-cards,.team-service-grid,.experience-grid,#guide-panel){gap:24px!important;}
@media(max-width:760px){html body.segment-page--docenti :is(#mfe-grid-trial#mfe-grid-trial-never#mfe-grid-trial-extra,.audience-grid--path-cards,.team-service-grid,.experience-grid,#guide-panel){gap:20px!important;}}
@media(hover:hover)and(pointer:fine){html body.segment-page--docenti :is(#mfe-photo-trial#mfe-photo-trial-never#mfe-photo-trial-extra,.audience-card.mfe-photo-card,.team-service-card.mfe-photo-card,.experience-grid>.mfe-photo-card,.resource-card--featured-guide.mfe-photo-card):hover>img{transform:scale(1.025)!important;}}
@media(prefers-reduced-motion:reduce){html body.segment-page--docenti :is(#mfe-photo-trial#mfe-photo-trial-never#mfe-photo-trial-extra,.audience-card.mfe-photo-card,.team-service-card.mfe-photo-card,.experience-grid>.mfe-photo-card,.resource-card--featured-guide.mfe-photo-card)>img{transition:none!important;transform:none!important;}}

/* Approved Home tags. Preserve text, dimensions and original palette. */

html body.segment-page--docenti :is(#mfe-tag-trial#mfe-tag-trial-never#mfe-tag-trial-extra,.home-malta-tag){min-height:44px!important;box-sizing:border-box!important;padding:6px 14px!important;gap:8px!important;align-items:center!important;box-shadow:2px 2px 0 rgba(242,236,150,.56)!important;}
html body.segment-page--docenti :is(#mfe-tag-trial#mfe-tag-trial-never#mfe-tag-trial-extra,.home-malta-tag):nth-child(3n+2){box-shadow:2px 2px 0 rgba(109,147,205,.22)!important;}
html body.segment-page--docenti :is(#mfe-tag-trial#mfe-tag-trial-never#mfe-tag-trial-extra,.home-malta-tag):nth-child(3n){box-shadow:2px 2px 0 rgba(239,65,54,.18)!important;}
html body.segment-page--docenti :is(#mfe-tag-trial#mfe-tag-trial-never#mfe-tag-trial-extra,.home-malta-tag)>svg{width:16px!important;height:16px!important;flex:0 0 16px!important;}
html body.segment-page--docenti :is(#mfe-tag-grid#mfe-tag-grid-never#mfe-tag-grid-extra,.home-malta-tags){gap:12px!important;}
@media(max-width:760px){html body.segment-page--docenti :is(#mfe-tag-trial#mfe-tag-trial-never#mfe-tag-trial-extra,.home-malta-tag){padding:6px 12px!important;}}

/* Approved once-only Home section entrance. Content stays visible without JavaScript. */
@keyframes mfe-home-section-arrival{from{opacity:.65;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
body.segment-page--docenti main>section>.container.home-section-enter{animation:mfe-home-section-arrival 420ms cubic-bezier(.2,.65,.3,1) both!important;}
@media(prefers-reduced-motion:reduce){body.segment-page--docenti main>section>.container.home-section-enter{animation:none!important;transform:none!important;opacity:1!important;}}

html body.segment-page--docenti :is(#adult-card-trial#adult-card-trial-never#adult-card-trial-extra,.adult-price-card,.segment-choice-card--photo){border-radius:16px!important;overflow:hidden!important;}
