/* Shared macro home team; original portrait, scoped layout and sector palette. */
.s4-home-team{background:var(--paper,#fff)}
.s4-team-grid{display:grid;grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr);gap:3.1rem;align-items:center}
.s4-team-grid>*{min-width:0}.s4-team-photo{width:100%;max-width:21.25rem;margin:0;justify-self:center;border-radius:var(--radius,4px);overflow:hidden;background:var(--paper,#fff)}
.s4-team-photo img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:52% 20%}
.s4-team-copy h2{max-width:46rem}.s4-team-copy p{font-size:1rem;line-height:1.75;max-width:42rem;margin-top:1.2rem}.s4-team-name strong{font-size:1.15rem;color:var(--ink)}.s4-team-name span{display:block;font-size:1rem}.s4-team-copy .hero-actions{margin-top:1.5rem}
@media(max-width:820px){.s4-team-grid{grid-template-columns:minmax(0,1fr);gap:2rem}.s4-team-copy{order:1}.s4-team-photo{order:2}}
.large-text .s4-team-grid{grid-template-columns:minmax(0,1fr)}.large-text .s4-team-copy{order:1}.large-text .s4-team-photo{order:2}

/* Same informational modules as the other commercial macros. */
/* The long illustrated gallery needs its real geometry before later controls.
   Keep the established deferred rendering for the other unchanged sections. */
.progetto-page #demo,.progetto-page #team{content-visibility:visible;contain-intrinsic-size:none}
.progetto-page #attivita{background:var(--paper)}.home-activity-index{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem 1.5rem}.home-activity-index a{display:block;padding:.7rem 0;text-decoration:underline;text-underline-offset:3px}
.home-demo-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.home-demo-card{padding:0;overflow:hidden;display:flex;flex-direction:column;background:var(--paper)}.home-demo-preview{display:block;position:relative}.home-demo-preview img{display:block;width:100%;height:auto;aspect-ratio:1265/712;object-fit:contain}.home-demo-preview span{display:block;padding:.6rem 1.25rem;font-size:.9rem;font-weight:700;border-bottom:1px solid var(--line)}.home-demo-copy{display:flex;flex-direction:column;flex:1;padding:1.4rem;gap:1rem}.home-demo-copy h3{font-size:1.25rem}.home-demo-copy p{font-size:1rem;line-height:1.75}.home-demo-copy .card-links{margin-top:auto;flex-wrap:wrap}
.home-initial-paths{margin-top:2rem;padding:1.5rem;border:1px solid var(--line);background:var(--soft)}.home-initial-paths>h3{font-size:1.35rem;margin-bottom:.75rem}.home-initial-paths>.grid{margin-top:1.25rem}.home-initial-paths h4{font-size:1.1rem;line-height:1.4;margin-bottom:.75rem}.home-initial-paths p{font-size:1rem;line-height:1.75}.s4-home-team .eyebrow{color:var(--ink)}
@media(max-width:1000px){.home-demo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.home-activity-index,.home-demo-grid{grid-template-columns:minmax(0,1fr)}.home-initial-paths{padding:1rem}.home-initial-paths .grid{grid-template-columns:minmax(0,1fr)}}.large-text .home-demo-grid,.large-text .home-initial-paths>.grid,.large-text .home-activity-index{grid-template-columns:minmax(0,1fr)}
