/* Pacchetto 10: correzioni mirate senza alterare il restyling P7. */
.site-header .brand .brand-word{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:none!important;
}
.site-header .brand .brand-word>strong{
  background:var(--p7-gradient,linear-gradient(100deg,#ff7418,#ed228b,#8d3ce9));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
}
.event-cover-editor{display:grid;grid-template-columns:minmax(220px,360px) minmax(0,1fr);gap:22px;align-items:start}
.event-cover-preview{overflow:hidden;min-height:190px;border:1px solid var(--border,#e4e7ec);border-radius:18px;background:linear-gradient(145deg,#111831,#31164a);display:grid;place-items:center;color:#fff;text-align:center}
.event-cover-preview img{display:block;width:100%;height:100%;max-height:280px;object-fit:cover}
.event-form-section{padding-top:4px}
.event-form-section+.event-form-section{margin-top:12px;padding-top:24px;border-top:1px solid var(--border,#e4e7ec)}
.event-form-section>h2{margin:0 0 5px}
.event-form-section>p{margin:0 0 18px;color:var(--muted,#667085)}
.qr-preview-card{text-align:center}
.qr-preview-card .qr-box{min-height:230px}
.role-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.role-hub-card{display:flex;flex-direction:column;min-height:220px}
.role-hub-card .actions{margin-top:auto}
@media(max-width:760px){.event-cover-editor,.role-hub-grid{grid-template-columns:1fr}}

/* =========================================================
   01/08/2026 · Centratura homepage
   Correzione isolata: non modifica pagine operative o SSO.
   ========================================================= */

/* Il layout P7 imposta margin:0 sull'header globale.
   Nella homepage, dove era rimasto max-width:1440px, questo
   ancorava visivamente la testata al bordo sinistro. */
.home-page{
  width:100%;
  max-width:100%;
  overflow-x:clip;
}
.home-page .site-header{
  width:100%;
  max-width:none;
  margin:0;
  padding-left:max(28px,calc((100% - 1380px)/2));
  padding-right:max(28px,calc((100% - 1380px)/2));
}
.home-page .page-shell{
  width:100%;
  max-width:none;
  margin-left:auto;
  margin-right:auto;
  padding-left:0;
  padding-right:0;
  overflow-x:clip;
}

/* Contenitore canonico della homepage: stessa mezzeria in tutte
   le sezioni e nessuna dipendenza dalle regole globali P7. */
.home-page .home-container{
  width:calc(100% - 56px);
  max-width:1380px;
  margin-left:auto;
  margin-right:auto;
}

/* Impedisce a griglie, immagini e testi lunghi di allargare il
   viewport e simulare un disallineamento laterale. */
.home-page .home-hero-grid,
.home-page .home-feature-grid,
.home-page .home-event-grid,
.home-page .home-path-grid,
.home-page .home-workflow-grid,
.home-page .home-vip-grid,
.home-page .home-network-grid,
.home-page .home-final-cta-inner,
.home-page .home-hero-copy,
.home-page .home-hero-visual,
.home-page .home-event-card,
.home-page .home-path-card,
.home-page .home-network-card{
  min-width:0;
}

@media(max-width:900px){
  .home-page .site-header{
    padding-left:20px;
    padding-right:20px;
  }
  /* Sostituisce width:min(100% - 32px,760px), non valida. */
  .home-page .home-container{
    width:calc(100% - 32px);
    max-width:760px;
  }
}

@media(max-width:680px){
  .home-page .site-header{
    padding-left:17px;
    padding-right:17px;
  }
  .home-page .home-container{
    width:calc(100% - 28px);
    max-width:620px;
  }
}
