/* Keep the Teen age label, input and hint in distinct rows. */
html body [data-teen-age] .preventivo-contact-field{display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important}
html body [data-teen-age] input{display:block!important;width:100%!important;min-height:48px!important;box-sizing:border-box!important;margin:0!important}
html body [data-teen-age] #teen-age-help{display:block!important;margin-top:12px!important}
/* Complete guide excerpts: let copy wrap without the old two-line crop. */
html body .guide-index-grid .resource-card>div>p{height:auto!important;max-height:none!important;overflow:visible!important;flex-shrink:0!important;-webkit-line-clamp:unset!important;line-clamp:unset!important}
/* Shared treatment for text placed over real photographs. */
html body .guide-index-grid .guide-card-actions{display:flex!important;justify-content:flex-start!important;gap:8px}
html body .guide-index-grid .guide-card-actions [data-guide-share]{
  display:inline-flex!important;align-items:center;justify-content:center;gap:7px;
  width:auto!important;min-height:44px!important;padding:8px 12px!important;font:inherit;font-size:.875rem;
}
/* Keep the path descriptions comfortably readable without fixed text offsets. */
html body[class].home-page #percorsi .audience-grid--path-cards .audience-card__content{
  position:absolute!important;inset:auto 0 0!important;height:auto!important;min-height:0!important;
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;
  align-content:end!important;gap:8px!important;padding:20px 14px 16px!important;
}
html body[class].home-page #percorsi .audience-grid--path-cards .audience-card__content h3{
  position:static!important;transform:none!important;width:100%!important;height:auto!important;
  margin:0!important;padding:0!important;overflow:visible!important;display:block!important;
  font-size:clamp(1.3rem,1.95vw,1.65rem)!important;line-height:1.12!important;
}
html body[class].home-page #percorsi .audience-grid--path-cards .audience-card__content h3 small{
  min-height:0!important;margin:4px 0 0!important;font-size:.95rem!important;line-height:1.2!important;
}
html body[class].home-page #percorsi .audience-grid--path-cards .audience-card__content p{
  position:static!important;transform:none!important;min-height:2.4em!important;
  margin:0!important;padding:0!important;font-size:.9rem!important;line-height:1.2!important;
}
html body .mfe-photo-card{isolation:isolate}
html body .mfe-photo-card::after,
html body[class] :is(#guide,#percorsi,#chi-siamo,#team-locale,#esperienze,#presenza) .mfe-photo-card[class]::after,
html body .guide-index-grid .resource-card::after{
  content:"";position:absolute;inset:0!important;z-index:1!important;
  background:linear-gradient(180deg,rgba(7,17,38,.25) 0%,rgba(7,17,38,.12) 30%,rgba(7,17,38,.78) 65%,rgba(7,17,38,.97) 100%)!important;
  pointer-events:none;
}
html body .mfe-photo-card>:not(img):not(picture),
html body[class] :is(#guide,#guida-malta,#percorsi,#chi-siamo,#team-locale,#esperienze,#presenza) .mfe-photo-card[class]>div{z-index:2!important}
html body .mfe-photo-card :is(h2,h3,p){text-shadow:0 1px 3px rgba(0,0,0,.6)}
/* The same complete covers and compact proportions wherever reels appear. */
html body[class] :is(#community,.media-stories)[class] .media-stories__featured-media{
  aspect-ratio:5/8!important;background:#071126;position:relative;overflow:hidden;border-radius:7px;
}
html body[class] :is(#community,.media-stories)[class] .media-stories__featured-reel .media-stories__featured-media>img{
  object-fit:cover!important;object-position:center!important;transform:none!important;
}
/* Fill the landscape YouTube poster with its own image, keeping its lettering intact. */
html body .media-stories__featured-reel--portrait .media-stories__featured-media::before{
  content:"";position:absolute;inset:-18px;z-index:0;
  background:url("../social-video-cover-04.jpg") center/auto 160% no-repeat;
  filter:blur(12px) brightness(.82);pointer-events:none;
}
html body[class] :is(#community,.media-stories)[class] .media-stories__featured-reel--portrait .media-stories__featured-media>img{
  position:absolute!important;top:50%!important;left:0!important;width:100%!important;height:auto!important;
  min-height:0!important;max-height:none!important;aspect-ratio:4/3!important;
  object-fit:contain!important;transform:translateY(-50%)!important;clip-path:inset(15% 0);z-index:1;
}
html body .media-stories__featured-reel--portrait .media-stories__youtube-heading{z-index:2}
/* One shared partner row; narrow screens can swipe without shrinking the logos. */
html body[class] :is(#guide,#guida-malta) .home-trust-strip .home-trust-strip__logos{
  display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;
  align-items:center!important;gap:6px!important;overflow-x:auto!important;
}
html body[class] :is(#guide,#guida-malta) .home-trust-strip .home-trust-strip__logos>.home-trust-strip__logo{
  flex:0 1 auto!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box;
}
html body[class] :is(#guide,#guida-malta) .home-trust-strip .home-trust-strip__logo>img{
  width:auto!important;max-width:110px!important;height:54px!important;max-height:54px!important;object-fit:contain!important;
}
@media(max-width:1100px){
  html body[class] :is(#guide,#guida-malta) .home-trust-strip .home-trust-strip__logos{
    justify-content:flex-start!important;gap:10px!important;scroll-snap-type:x proximity;
  }
  html body[class] :is(#guide,#guida-malta) .home-trust-strip .home-trust-strip__logos>.home-trust-strip__logo{flex:0 0 112px!important;width:112px!important}
  html body[class] :is(#guide,#guida-malta) .home-trust-strip .home-trust-strip__logo>img{max-width:106px!important;height:48px!important;max-height:48px!important}
}
html body .media-stories__youtube-heading{
  position:absolute;top:5%;left:8%;right:8%;z-index:1;color:#f2ec96;text-align:center;
  font-weight:800;font-size:clamp(.75rem,1.4vw,1rem);letter-spacing:.1em;
}
html body .language-dialog .language-option .language-option__copy>span{font-weight:400!important}
html body.about-page.about-page--home main{padding-top:87px!important}
html body.about-page.about-page--home #home.about-home-hero--horizontal .about-home-hero__inner{
  min-height:550px;padding-block:64px!important;align-items:center!important;box-sizing:border-box;
}
html body.about-page.about-page--home #home .about-home-hero__eyebrow{margin-top:0!important}
html body.segment-page--teen section#prezzi .adult-pricing-grid--cards>article.adult-price-card:nth-child(n) .adult-price-card__media{aspect-ratio:7/6!important}
html body.segment-page--teen section#prezzi .adult-pricing-grid--cards>article.adult-price-card:nth-child(n) .adult-price-card__prices{gap:10px!important}
html body.segment-page--teen section#prezzi .adult-price-card:last-child .adult-price-card__media>img{object-fit:contain!important;background:#14b8ca}
html body.segment-page--docenti #prezzi .adult-price-card__price{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px}
html body.about-page--home #team .about-person-card__portrait>img{width:100%!important;height:100%!important;max-width:100%!important;left:0!important;top:0!important;object-fit:cover!important;object-position:center top}
html body.contact-page.about-page--home main .about-contact-details-section .about-contact-list>a{border:2px solid #293659!important;border-radius:8px!important;box-shadow:3px 3px 0 #f2ec96!important}
html body.contact-page.about-page--home main .about-contact-details-section .about-contact-list>a:nth-child(3n+2){box-shadow:3px 3px 0 #d3deef!important}
html body.contact-page.about-page--home main .about-contact-details-section .about-contact-list>a:nth-child(3n){box-shadow:3px 3px 0 #f4c7c4!important}
html body.contact-page #dove-siamo{background-image:none!important}
.about-history-always{display:inline-block;position:relative;padding-bottom:.12em}
.about-history-always::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:#e64a42;border-radius:2px}
@media(max-width:767px){
  html body.about-page.about-page--home main{padding-top:69px!important}
  html body.about-page.about-page--home #home.about-home-hero--horizontal .about-home-hero__inner{
    min-height:0;padding-block:36px!important;align-items:flex-start!important;
  }
}

/* Make the existing pricing swipe instruction easy to notice on phones. */
@media(max-width:760px){html body .adult-pricing-swipe-hint{display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;width:fit-content!important;max-width:100%!important;min-height:44px!important;margin:0 auto 16px!important;padding:10px 14px!important;border:1px solid #293659!important;border-radius:8px!important;background:#f2ec96!important;color:#293659!important;font-size:.95rem!important;font-weight:700!important;line-height:1.35!important;text-align:center!important}html body .adult-pricing-swipe-hint svg{flex:0 0 20px;width:20px;height:20px}}

/* Direct access from adult course types to all-inclusive offers. */
.adult-offers-action{display:flex;justify-content:center;margin-top:30px}.adult-offers-action .button{max-width:100%;white-space:normal;text-align:center}

/* Approved final annotations: programme dialogs and newsletter collection shell. */
.teacher-program-course-card{display:flex;flex-direction:column}
.teacher-program-course-card .teacher-program-open{margin-top:auto;align-self:flex-start;min-height:44px;border:2px solid #293659;background:#fff;color:#293659}
.teacher-program-course-card p{margin-bottom:20px}
.teacher-program-dialog{max-height:calc(100dvh - 32px);overflow:auto}
.teacher-program-dialog .path-dialog__intro{margin-block:22px;line-height:1.65}
.teacher-program-dialog .button{margin-top:16px}
.teacher-program-dialog .path-dialog__close{font-size:26px;line-height:1}
.newsletter-content{max-width:760px;margin-inline:auto}
.newsletter-form{display:grid;gap:20px;margin-top:28px;padding:clamp(20px,4vw,36px);border:1px solid #cbd2df;border-radius:18px;background:#fff}
.newsletter-form label{display:grid;gap:8px}
.newsletter-form input:not([type=checkbox]){box-sizing:border-box;width:100%;min-height:48px;padding:12px;border:1px solid #aab5cc;border-radius:8px;font:inherit}
.newsletter-form .newsletter-consent{display:flex;align-items:flex-start;gap:12px;line-height:1.6}
.newsletter-consent input{flex:none;width:20px;height:20px;margin-top:4px}
.newsletter-status{padding:16px;border-radius:8px;background:#f2ec96;color:#293659;line-height:1.6}
.newsletter-form button:disabled{opacity:.6;cursor:not-allowed}
.guide-edition-note{padding:18px;border-left:4px solid #e64a42;background:#fff9dc}

/* General English weekly programme */
.teacher-program-dialog--detailed{width:min(960px,calc(100vw - 32px));max-width:960px;scrollbar-gutter:stable}
.teacher-program-dialog--detailed .path-dialog__header{position:sticky;top:-24px;background:#fff;z-index:2;padding-block:14px;border-bottom:1px solid #d7dce6}
.teacher-program-facts{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding:0;margin:20px 0 24px}
.teacher-program-facts li{border:1px solid #293659;border-radius:8px;padding:8px 12px;background:#f2ec96;font-size:.9rem;font-weight:700}
.teacher-program-week{display:grid;gap:16px;margin:0;padding:0}
.teacher-program-day{border:1px solid #cdd4e1;border-radius:12px;overflow:hidden;background:#fff}
.teacher-program-day>h3{margin:0;padding:12px 18px;background:#293659;color:#fff;font-size:1.1rem}
.teacher-program-day__lessons{display:grid;grid-template-columns:1fr 1fr;gap:0}
.teacher-program-day__lessons>div{padding:18px;min-width:0}
.teacher-program-day__lessons>div+div{border-left:1px solid #d7dce6}
.teacher-program-day__lessons span{display:block;color:#66728d;font-size:.8rem;margin-bottom:8px}
.teacher-program-day__lessons h4{font-size:1rem;line-height:1.4;margin:0 0 8px;color:#293659}
.teacher-program-day__lessons p,.teacher-program-note p{font-size:.95rem;line-height:1.65;margin:0}
.teacher-program-note{margin-top:18px;background:#f6f8fc;border-radius:10px;padding:18px}
.teacher-program-note h3{font-size:1rem;margin:0 0 8px}
.teacher-program-disclaimer{margin:22px 0 8px;padding-left:14px;border-left:3px solid #e64a42;line-height:1.6;font-size:.95rem}
.teacher-program-actions{display:flex;flex-wrap:wrap;gap:12px}
.teacher-program-actions .button{border:2px solid #293659}
.teacher-program-pdf-note{font-size:.8rem;margin:8px 0 0;color:#66728d}
@media(max-width:600px){.teacher-program-day__lessons{grid-template-columns:1fr}.teacher-program-day__lessons>div+div{border-left:0;border-top:1px solid #d7dce6}.teacher-program-dialog--detailed .path-dialog__header{top:-20px}.teacher-program-actions .button{width:100%;white-space:normal;text-align:center}}
html body .teacher-program-dialog .teacher-program-day>h3{color:#fff!important}
html body .teacher-program-dialog--detailed .path-dialog__header{top:0}

/* Complete week: five open cards in the existing site dialog. */
html body .teacher-program-dialog--week{width:min(1320px,calc(100vw - 40px));max-width:1320px;border-radius:20px}
html body .teacher-program-dialog--week .path-dialog__panel{padding:24px}
html body .teacher-program-dialog--week .path-dialog__header{border:0;padding:4px 0 14px;gap:18px}
html body .teacher-program-dialog--week .path-dialog__header h2{font-size:clamp(23px,2.3vw,30px)!important;line-height:1.2!important}
html body .teacher-program-dialog--week .teacher-program-facts{margin:6px 0 22px;gap:10px}
html body .teacher-program-dialog--week .teacher-program-facts li{background:#fff;border:1px solid #d1d8e5;font-size:12px;border-radius:7px;padding:7px 11px}
html body .teacher-program-dialog--week .teacher-program-facts li:first-child{background:#f2ec96;border-color:#f2ec96}
html body .teacher-program-dialog--week .teacher-program-week{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;align-items:stretch}
html body .teacher-program-dialog--week .teacher-program-day{background:#fff;border:1px solid #d4dbe7;border-radius:12px;box-shadow:0 5px 15px #29365906;min-width:0}
html body .teacher-program-dialog--week .teacher-program-day__header{padding:18px 14px 14px;text-align:center}
html body .teacher-program-dialog--week .teacher-program-day__icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid #e1ddc8;border-radius:50%;background:#fbf8db;color:#293659;margin:0 auto 12px}
html body .teacher-program-dialog--week .teacher-program-day:nth-child(even) .teacher-program-day__icon{background:#fff0ef;border-color:#efd8d6;color:#e64a42}
html body .teacher-program-dialog--week .teacher-program-day__icon svg{width:22px;height:22px}
html body .teacher-program-dialog--week .teacher-program-day__header h3{margin:0;padding:0;background:none;color:#293659!important;font-size:17px!important;line-height:1.3!important}
html body .teacher-program-dialog--week .teacher-program-day__lessons{display:flex;flex-direction:column;gap:0}
html body .teacher-program-dialog--week .teacher-program-day__lessons>div{padding:14px;border:0}
html body .teacher-program-dialog--week .teacher-program-day__lessons>div+div{border-top:1px solid #e3e7ee}
html body .teacher-program-dialog--week .teacher-program-day__lessons span{font-size:11px;line-height:1.4;color:#61708a;margin-bottom:8px}
html body .teacher-program-dialog--week .teacher-program-day__lessons h4{font-size:14px!important;line-height:1.4!important;margin:0 0 9px;font-weight:700}
html body .teacher-program-dialog--week .teacher-program-day__lessons p{font-size:13px!important;line-height:1.65!important;color:#52627e}
html body .teacher-program-dialog--week .teacher-program-support{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
html body .teacher-program-dialog--week .teacher-program-note{margin:0;padding:14px 16px;border:1px solid #e0e5ee;border-radius:10px;background:#f9fafc}
html body .teacher-program-dialog--week .teacher-program-note h3{font-size:14px!important;line-height:1.4!important;margin:0 0 6px}
html body .teacher-program-dialog--week .teacher-program-note p{font-size:12px!important;line-height:1.6!important}
html body .teacher-program-dialog--week .teacher-program-disclaimer{font-size:12px;line-height:1.6;margin:16px 0 0}
html body .teacher-program-dialog--week .teacher-program-actions .button{margin-top:16px;min-height:44px}
@media(max-width:1149px){html body .teacher-program-dialog--week .teacher-program-week{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:849px){html body .teacher-program-dialog--week .teacher-program-week{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){html body .teacher-program-dialog--week{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}html body .teacher-program-dialog--week .path-dialog__panel{padding:18px}html body .teacher-program-dialog--week .teacher-program-week,html body .teacher-program-dialog--week .teacher-program-support{grid-template-columns:1fr}html body .teacher-program-dialog--week .teacher-program-day__header{display:flex;gap:12px;align-items:center;padding:16px;text-align:left}html body .teacher-program-dialog--week .teacher-program-day__icon{margin:0;flex:none}html body .teacher-program-dialog--week .teacher-program-day__lessons>div{padding:16px}html body .teacher-program-dialog--week .teacher-program-day__lessons p{font-size:14px!important}html body .teacher-program-dialog--week .teacher-program-day__lessons h4{font-size:15px!important}}

/* Approved second-audit controls; existing font and footer unchanged. */
.teacher-period-field{display:grid;gap:8px;max-width:320px;margin-block:18px;color:#293659}
.teacher-period-field input{font:inherit;color:inherit;min-height:48px;padding:10px 14px;border:1px solid #aebbd1;border-radius:8px;background:#fff;max-width:100%}
.teacher-period-undecided{max-width:320px}
html body.contact-page #contatti h1{font-family:var(--font-heading),sans-serif;font-size:clamp(32px,4vw,48px);line-height:1.15;color:var(--navy);margin:20px 0}
html body.contact-page main>#contatti{padding-top:64px}
html body.contact-page #dove-siamo h2{font-size:clamp(32px,4vw,48px);line-height:1.15}
@media(max-width:600px){html body.contact-page main>#contatti{padding-top:32px}}

html body .guide-article__body h2.guide-heading-preserve-bold{font:inherit!important;font-weight:700!important;line-height:inherit!important;letter-spacing:inherit!important;margin:1em 0!important;padding:0!important}
@media(max-width:760px){html body.contact-page[data-mobile-layout] main>.about-contact-details-section{order:0!important}html body.contact-page[data-mobile-layout] main>.about-contact-form-section{order:0!important}}
