/* Home All filter: approved outline, rectangular corners matching the other filters. */
html body.home-preview :is(#mfe-filter-a#mfe-filter-b#mfe-filter-c#mfe-filter-d,#home-guide-filter-all){border:2px solid #293659!important;border-radius:10px!important;box-shadow:2px 2px 0 rgba(242,236,150,.56)!important;background:#fff!important;color:#293659!important}
html body.home-preview :is(#mfe-filter-a#mfe-filter-b#mfe-filter-c#mfe-filter-d,#home-guide-filter-all):focus-visible{outline:3px solid #293659;outline-offset:4px}

/* Approved: reveal more of the photo by moving Home guide copy down 19px. */
html body.home-preview #guide-panel .resource-card--featured-guide>div>:is(.resource-card__category,.resource-card__reading-time,h3,p,a){transform:translateY(19px)!important}

/* Home refinements approved with the Outfit/Figtree rollout. */
html body.home-preview :is(#mfe-note-a#mfe-note-b#mfe-note-c,#home .hero__copy>.eyebrow){box-shadow:none!important;text-shadow:none!important;filter:none!important}
html body.home-preview :is(#mfe-photo-trial#mfe-photo-trial-never#mfe-photo-trial-extra#mfe-note-contrast,#percorsi .audience-card.mfe-photo-card)::after{background:linear-gradient(to top,#071b36 0px,rgba(7,27,54,.96) 70px,rgba(7,27,54,.90) 114px,rgba(7,27,54,.45) 154px,rgba(7,27,54,0) 205px)!important}
html body.youth-mode.home-page #recensioni .review-grid .review-card:first-child .review-theme.review-theme--title{background:#f2ec96!important;color:#293659!important}
html body.home-preview :is(#mfe-note-a#mfe-note-b#mfe-note-c,.experience-card__copy p){font-size:clamp(.92rem,1.05vw,1rem)!important;font-weight:400!important;line-height:1.45!important}

/* Latest Home annotations: natural paragraph wrap on phones, explicit desktop line. */
@media(min-width:981px){.home-hero-lead-line{display:block}}
html body.home-preview :is(#mfe-guide-photo-a#mfe-guide-photo-b#mfe-guide-photo-c#mfe-guide-photo-d,#guide-panel .resource-card--featured-guide)>img[src*="34-blog-vacanze-studio-malta-ragazzi"]{transform:translateY(-76px)!important;object-position:center top!important;transition:none!important;mask-image:linear-gradient(to bottom,#000 calc(100% - 55px),transparent 100%)!important}
html body.home-preview #guide-panel .resource-card--featured-guide:has(>img[src*="34-blog-vacanze-studio-malta-ragazzi"]){background:#071b36!important}

/* Teen path: keep the full text block over a larger dark-blue area. */
html body.home-preview :is(#mfe-teen-copy-a#mfe-teen-copy-b#mfe-teen-copy-c,#percorsi .audience-card) .audience-card__content>*{transform:translateY(12px)!important}
html body.home-preview :is(#mfe-teen-fade-a#mfe-teen-fade-b#mfe-teen-fade-c#mfe-teen-fade-d#mfe-teen-fade-e,#percorsi .audience-card)::after{display:block!important;background:linear-gradient(to top,#071b36 0px,rgba(7,27,54,.98) 82px,rgba(7,27,54,.70) 100px,rgba(7,27,54,0) 126px)!important}

/* Keep the group above the text area; fade only the lower edge of the photograph. */
html body.home-preview :is(#mfe-teen-image-a#mfe-teen-image-b#mfe-teen-image-c#mfe-teen-image-d,#percorsi .audience-card)>img{height:calc(100% - 82px)!important;object-position:center center!important;filter:none!important}
html body.home-preview #percorsi .audience-card{background:#071b36!important}
html body.home-preview :is(#mfe-teen-image-a#mfe-teen-image-b#mfe-teen-image-c#mfe-teen-image-d,#teen-12-17)>img{object-position:center 72%!important}

/* Mobile path descriptions retain breathing room inside the lower blue area. */
@media(max-width:767px){html body.home-preview :is(#mfe-teen-copy-a#mfe-teen-copy-b#mfe-teen-copy-c,#percorsi .audience-card) .audience-card__content>*{transform:none!important}}

/* Home annotations: clean hero button, raised FSL photo and a separate press surface. */
html body.home-preview :is(#mfe-clean-cta-a#mfe-clean-cta-b#mfe-clean-cta-c,#home .hero__actions a.button--outline),
html body.home-preview :is(#mfe-clean-cta-a#mfe-clean-cta-b#mfe-clean-cta-c,#home .hero__actions a.button--outline):hover{box-shadow:none!important;filter:none!important;text-shadow:none!important}
html body.home-preview :is(#mfe-fsl-photo-a#mfe-fsl-photo-b#mfe-fsl-photo-c#mfe-fsl-photo-d,#guide-panel .resource-card--featured-guide[data-resource-topic="school"])>img{transform:translateY(-45px)!important;object-position:center top!important;transition:none!important;mask-image:linear-gradient(to bottom,#000 calc(100% - 55px),transparent 100%)!important}
html body.home-preview #guide-panel .resource-card--featured-guide[data-resource-topic="school"]{background:#071b36!important}
html body.home-preview #community .media-stories__layout{background:#edf3fb!important;border-radius:18px;padding:24px;box-sizing:border-box}
@media(min-width:761px){html body.home-preview .home-trust-strip__logos{grid-template-columns:repeat(10,minmax(0,1fr))!important}}
@media(max-width:760px){html body.home-preview #community .media-stories__layout{padding:20px 16px}}

html body.home-preview #home .hero__copy>.eyebrow{position:relative;top:-8px}
