/* AICAST – Home a blocchi.
   Ogni testo, immagine e pulsante si modifica da Pagine → Home.
   Le classi hm-* (Avanzate → Classi CSS aggiuntive) danno la grafica a ogni sezione.
   Struttura: impostazioni generali, sezioni nell’ordine della pagina,
   foto e varianti delle sezioni, icone. */
.hm,.editor-styles-wrapper{--navy:#063d72;--deep:#042a50;--blue:#0a78c7;--cyan:#19a9db;--red:#e61e3a;--green:#159b5c;--amber:#e8901c;--ink:#133b61;--muted:#4f677c;--line:#dbe6ef;--sky:#f1f7fb;--skew:-18deg}
.hm{font-family:"Manrope","Avenir Next","Segoe UI",system-ui,sans-serif;color:#2a4660;overflow:hidden}
.hm *,.hm *::before,.hm *::after{box-sizing:border-box}
.hm .wp-block-group__inner-container{display:contents}
.hm .wp-block-group,.hm figure,.hm .wp-block-buttons,.hm ul{margin:0}
.hm h1,.hm h2,.hm h3{font-family:inherit;letter-spacing:-.025em;color:var(--navy);margin:0;text-transform:none}
.hm p{margin:0}
.hm h3{font-weight:800}
.hm a{text-decoration:none}
.hm img{max-width:100%;height:auto;display:block}
.hm>.alignfull{width:100%;max-width:none;margin:0}
.hm-wrap{max-width:1240px;margin:0 auto!important;padding:0 28px;position:relative}
.hm-tone-green{--tone:#159b5c;--tone2:#0d7a47;--tint:#e5f5ec}
.hm-tone-red{--tone:#e61e3a;--tone2:#b5122a;--tint:#fde8eb}
.hm-tone-cyan{--tone:#19a9db;--tone2:#0b80b0;--tint:#e3f5fb}
.hm-tone-navy{--tone:#063d72;--tone2:#042a50;--tint:#e4ecf4}
.hm-tone-blue{--tone:#0a78c7;--tone2:#075a96;--tint:#e7f2fa}
.hm-tone-amber{--tone:#e8901c;--tone2:#c06d06;--tint:#fdf1e1}
.hm-eyebrow{display:flex;align-items:center;gap:12px;font-size:.76rem!important;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--blue);margin:0 0 14px!important}
.hm-eyebrow::before{content:"";flex:none;width:34px;height:12px;background:linear-gradient(var(--red),var(--red)) 0 0/9px 100% no-repeat,linear-gradient(var(--blue),var(--blue)) 13px 0/9px 100% no-repeat,linear-gradient(var(--navy),var(--navy)) 26px 0/8px 100% no-repeat;transform:skewX(var(--skew))}
.hm-eyebrow-light{color:#8fd0f5}
.hm-eyebrow-light::before{background:linear-gradient(var(--red),var(--red)) 0 0/9px 100% no-repeat,linear-gradient(#8fd0f5,#8fd0f5) 13px 0/9px 100% no-repeat,linear-gradient(#fff,#fff) 26px 0/8px 100% no-repeat}
.hm-head{margin:0 0 34px!important}
.hm-head h2{font-size:clamp(1.9rem,3.6vw,2.6rem);font-weight:800;line-height:1.1}
.hm-intro{margin-top:14px!important;font-size:1.08rem;line-height:1.6;color:var(--muted)}
.hm-head-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px}
.hm-linkp a{display:inline-flex;align-items:center;gap:6px;font-weight:800;color:var(--navy);transition:gap .2s}
.hm-linkp a:hover{gap:10px}
.hm-link-light a{color:#fff}
.hm-center{display:flex!important;justify-content:center;margin-top:36px!important}
.hm-actions{display:flex;flex-wrap:wrap;gap:12px}
/* Hero */
.hm-hero{position:relative;color:#d6e4f1;padding:84px 0 150px;background:repeating-linear-gradient(115deg,rgba(255,255,255,.03) 0 2px,transparent 2px 22px),radial-gradient(900px 520px at 85% 0%,rgba(25,169,219,.32),transparent 60%),linear-gradient(120deg,var(--deep) 0%,var(--navy) 55%,#0a4f8f 100%)}
.hm-hero::after{content:"";position:absolute;right:6%;top:-10%;bottom:-10%;width:22px;background:linear-gradient(180deg,rgba(230,30,58,.9),rgba(230,30,58,.1));transform:skewX(var(--skew));pointer-events:none}
.hm-hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:56px;align-items:center;z-index:1}
.hm-hero .hm-title{color:#fff;font-size:clamp(2.5rem,5.4vw,4.1rem);line-height:1.02;letter-spacing:-.045em;font-weight:800}
.hm-lead{margin-top:18px!important;font-size:clamp(1.12rem,1.8vw,1.35rem);line-height:1.45;color:#fff;font-weight:700}
.hm-hero-text{margin:14px 0 30px!important;font-size:1.02rem;line-height:1.65;color:#c9dcee;max-width:600px}
.hm-hero-stats{margin:36px 0 0!important;padding:24px 0 0;border-top:1px solid rgba(255,255,255,.16);display:flex;flex-wrap:wrap;gap:16px 44px}
.hm-stat{display:flex;flex-direction:column}
.hm-stat-num{font-size:2.3rem;font-weight:800;color:#fff;line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.hm-stat-label{margin-top:6px!important;font-size:.86rem;font-weight:600;color:#b9d0e4}
/* Servizi rapidi */
.hm-quick{position:relative;z-index:2;margin-top:-96px!important;padding-bottom:30px}
.hm-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.hm-qcard{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 1px 2px rgba(6,61,114,.06),0 16px 40px rgba(6,61,114,.12);transition:transform .28s cubic-bezier(.2,.7,.2,1),box-shadow .28s}
.hm-qcard::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--tone)}
.hm-qcard:hover{transform:translateY(-6px);box-shadow:0 2px 4px rgba(6,61,114,.06),0 28px 60px rgba(6,61,114,.2)}
.hm-qcard h3::before{content:"";display:block;width:52px;height:52px;border-radius:14px;background:var(--ic) center/28px no-repeat,linear-gradient(135deg,var(--tone),var(--tone2));margin-bottom:14px;box-shadow:0 8px 18px rgba(6,61,114,.18)}
.hm-qcard h3{font-size:1.14rem;font-weight:800}
.hm-qcard h3 a,.hm-why-card h3 a,.hm-tier h3 a{color:inherit}
.hm-qcard h3 a::after,.hm-why-card h3 a::after,.hm-tier h3 a::after{content:"";position:absolute;inset:0;z-index:3}
.hm-qcard p{color:var(--muted);font-size:.94rem;line-height:1.55}
.hm-qcard>p:not(.hm-more),.hm-qcard .wp-block-group__inner-container>p:not(.hm-more){flex:1}
.hm .hm-more{display:inline-flex;align-items:center;gap:6px;margin-top:6px!important;font-weight:800;font-size:.9rem;color:var(--tone2,var(--navy));flex:none}
.hm-quick-all{text-align:right;margin-top:16px!important}
.hm-quick-all a{color:var(--blue)}
/* News */
.hm-news{padding:70px 0 90px}
.hm-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:-6px 0 28px}
.hm-chip{min-height:42px;padding:0 18px;border-radius:999px;border:1.5px solid #c9d9e7;background:#fff;font:inherit;font-size:.88rem;font-weight:700;color:var(--ink);cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.hm-chip:hover{border-color:var(--navy)}
.hm-chip[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.hm-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.hm-ncard{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 1px 2px rgba(6,61,114,.06),0 12px 32px rgba(6,61,114,.08);transition:transform .28s,box-shadow .28s}
.hm-ncard[hidden]{display:none}
.hm-ncard:hover{transform:translateY(-6px);box-shadow:0 28px 60px rgba(6,61,114,.16)}
.hm-nimg{display:block;aspect-ratio:16/9;background:linear-gradient(135deg,#84b7d8,#254f78) center/cover no-repeat}
.hm-nbody{padding:20px 22px 22px;display:flex;flex-direction:column;gap:10px;flex:1}
.hm-nmeta{display:flex;align-items:center;gap:10px;font-size:.8rem;color:var(--muted)}
.hm-tag{font-size:.68rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--blue);background:#e7f2fa;padding:5px 10px;border-radius:999px}
.hm-nbody h3{font-size:1.18rem;line-height:1.3}
.hm-nbody h3 a{color:var(--navy)}
.hm-nbody>p{color:var(--muted);font-size:.94rem;line-height:1.6;flex:1}
.hm-nbody .hm-nmeta{flex:none}
.hm-nlink{font-weight:800;color:var(--navy)!important}
.hm-news-empty{margin-top:12px!important;color:var(--muted)}
/* Formazione */
.hm-fz{position:relative;padding:96px 0;color:#d6e4f1;background:repeating-linear-gradient(115deg,rgba(255,255,255,.03) 0 2px,transparent 2px 22px),radial-gradient(1000px 520px at 10% 0%,rgba(21,155,92,.22),transparent 60%),linear-gradient(120deg,var(--deep) 0%,var(--navy) 60%,#0a4f8f 100%)}
.hm-fz::after{content:"";position:absolute;left:8%;top:-10%;bottom:-10%;width:18px;background:rgba(230,30,58,.7);transform:skewX(var(--skew))}
.hm-fz .hm-wrap{z-index:1}
.hm-fz-head{max-width:760px}
.hm-fz-head h2{color:#fff}
.hm-fz-head h2 strong{color:#5fd39a}
.hm-fz-text{margin-top:14px!important;font-size:1.06rem;line-height:1.65;color:#c9dcee}
.hm-fz-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.hm-fz-card{display:flex;flex-direction:column;background:#fff;color:#2a4660;border-radius:24px;overflow:hidden;box-shadow:0 30px 70px rgba(2,20,40,.4)}
.hm-fz-top{position:relative;padding:26px 96px 24px 28px;background:linear-gradient(135deg,var(--tone),var(--tone2));color:#fff;overflow:hidden}
.hm-fz-top::after{content:"";position:absolute;right:34px;top:-30%;bottom:-30%;width:24px;background:rgba(255,255,255,.15);transform:skewX(var(--skew))}
.hm-fz-top::before{content:"";position:absolute;right:24px;top:22px;width:46px;height:46px;background:var(--ic) center/contain no-repeat;opacity:.9}
.hm-fz-pill{display:inline-block;font-size:.72rem!important;font-weight:800;letter-spacing:.1em;text-transform:uppercase;background:#fff;color:var(--tone2);padding:6px 12px;border-radius:999px}
.hm-fz-top h3{color:#fff;font-size:1.6rem;line-height:1.15;margin-top:14px!important;font-weight:800}
.hm-fz-top h3 strong{color:#fff;opacity:.85}
.hm-fz-sub{margin-top:8px!important;font-weight:600;color:rgba(255,255,255,.9)}
.hm-check{list-style:none;margin:0;padding:22px 28px 6px!important;display:grid;gap:12px;flex:1}
.hm-check li{position:relative;padding-left:30px;line-height:1.5;color:var(--ink);margin:0;list-style:none}
.hm-check li::before{content:"";position:absolute;left:2px;top:.42em;width:12px;height:7px;border-left:2.6px solid var(--tone);border-bottom:2.6px solid var(--tone);transform:rotate(-45deg)}
.hm-fz-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;padding:18px 28px 28px}
/* Metodo */
.hm-method{padding:96px 0 70px}
.hm-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.hm-step{position:relative;background:#fff;border:1px solid var(--line);border-radius:20px;padding:30px 26px 26px;box-shadow:0 12px 32px rgba(6,61,114,.08)}
.hm-steps .hm-step:not(:last-child)::after{content:"→";position:absolute;right:-20px;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:800;font-size:.9rem;z-index:1}
.hm-step-num{display:block;font-size:3.2rem!important;font-weight:800;line-height:1;letter-spacing:-.05em;background:linear-gradient(135deg,var(--red),var(--blue));-webkit-background-clip:text;background-clip:text;color:transparent;margin-bottom:14px!important}
.hm-step h3{font-size:1.15rem;line-height:1.3;margin-bottom:8px!important}
.hm-step p:not(.hm-step-num){color:var(--muted);line-height:1.6;font-size:.96rem}
.hm-proof{margin-top:36px!important;display:grid;grid-template-columns:1.4fr repeat(4,1fr);align-items:center;gap:20px;padding:30px 34px;border-radius:24px;color:#fff;background:repeating-linear-gradient(115deg,rgba(255,255,255,.04) 0 2px,transparent 2px 22px),linear-gradient(120deg,var(--deep),var(--navy) 60%,#0a4f8f);box-shadow:0 24px 60px rgba(6,61,114,.25);position:relative;overflow:hidden}
.hm-proof::after{content:"";position:absolute;right:30%;opacity:.45;top:-20%;bottom:-20%;width:16px;background:rgba(230,30,58,.7);transform:skewX(var(--skew))}
.hm-proof-title{font-size:1.25rem;line-height:1.3;font-weight:800;position:relative;z-index:1}
.hm-proof-item{position:relative;z-index:1;text-align:center;padding-left:16px;border-left:1px solid rgba(255,255,255,.18)}
.hm-num{font-size:2.2rem!important;font-weight:800;letter-spacing:-.04em;line-height:1;font-variant-numeric:tabular-nums;color:#fff}
.hm-proof-label{margin-top:6px!important;font-size:.84rem;color:#b9d0e4;font-weight:600}
/* Perché sceglierci */
.hm-why{padding:96px 0;background:var(--sky);position:relative}
.hm-why::before{content:"";position:absolute;right:6%;top:0;bottom:0;width:140px;background:rgba(10,120,199,.05);transform:skewX(var(--skew))}
.hm-why-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;position:relative}
.hm-why-card{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:6px;min-height:340px;padding:24px;border-radius:22px;overflow:hidden;background:#2c5b88;color:#fff;box-shadow:0 18px 44px rgba(6,61,114,.18);transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s}
.hm-why-card:hover{transform:translateY(-8px);box-shadow:0 30px 60px rgba(6,61,114,.28)}
.hm-why-img{position:absolute!important;inset:0;z-index:-1;margin:0!important}
.hm-why-img img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.hm-why-card:hover .hm-why-img img{transform:scale(1.05)}
.hm-why-img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,42,80,.05) 20%,rgba(4,42,80,.92) 100%);transition:background .3s}
.hm-why-card:hover .hm-why-img::after{background:linear-gradient(180deg,rgba(4,42,80,.25) 0%,rgba(4,42,80,.96) 100%)}
.hm-why-card::before{content:"";position:absolute;left:24px;top:24px;width:48px;height:48px;border-radius:14px;background:var(--icr) center/26px no-repeat,rgba(255,255,255,.95)}
.hm-why-card h3{color:#fff;font-size:1.35rem;font-weight:800}
.hm-why-text{font-size:.94rem;line-height:1.5;color:#dce8f3}
/* Network */
.hm-net{padding:96px 0}
.hm-net-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.hm-tier{position:relative;display:flex;flex-direction:column;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 32px rgba(6,61,114,.08);overflow:hidden;transition:transform .28s,box-shadow .28s,border-color .28s}
.hm-tier::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,var(--red) 0 18%,var(--blue) 18% 100%);transform:scaleX(0);transform-origin:left;transition:transform .35s}
.hm-tier:hover{transform:translateY(-6px);box-shadow:0 28px 60px rgba(6,61,114,.16);border-color:#c5d9ea}
.hm-tier:hover::before{transform:scaleX(1)}
.hm-tier-num{position:absolute;right:20px;font-size:2.6rem!important;font-weight:800;letter-spacing:-.05em;line-height:1}
.hm-tier h3::before{content:"";display:block;border-radius:16px;background:var(--ic) center/30px no-repeat,linear-gradient(135deg,var(--navy),var(--blue));margin-bottom:16px;border:4px solid #fff;box-shadow:0 10px 24px rgba(6,61,114,.25)}
.hm-tier h3{font-size:1.18rem;line-height:1.25;color:var(--navy);position:relative}
.hm-tier-note{color:var(--muted);font-size:.9rem}
/* CTA finale */
.hm-cta{position:relative;padding:64px 0;color:#d6e4f1;background:radial-gradient(1200px 500px at 90% -20%,rgba(25,169,219,.28),transparent 60%),linear-gradient(135deg,var(--deep) 0%,var(--navy) 55%,#0a4f8f 100%);overflow:hidden}
.hm-cta::before{content:"";position:absolute;right:9%;top:-10%;bottom:-10%;width:120px;background:linear-gradient(180deg,rgba(10,120,199,.35),rgba(10,120,199,.05));transform:skewX(var(--skew))}
.hm-cta::after{content:"";position:absolute;right:calc(9% + 150px);top:-10%;bottom:-10%;width:22px;background:linear-gradient(180deg,rgba(230,30,58,.85),rgba(230,30,58,.15));transform:skewX(var(--skew))}
.hm-cta-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:28px;z-index:1}
.hm-cta-title{display:block;color:#fff;font-size:clamp(1.7rem,3vw,2.3rem)!important;font-weight:800;letter-spacing:-.025em;line-height:1.15}
.hm-cta-text{margin-top:8px!important;color:#c9dcee;font-size:1.06rem;max-width:620px}
/* Animazioni */
@media (prefers-reduced-motion:no-preference){
  .hm-js .hm-reveal{opacity:0;transform:translateY(26px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0s)}
  .hm-js .hm-reveal.is-in{opacity:1;transform:none}
  .hm .hm-hero-copy>*,.hm .hm-hero-copy>.wp-block-group__inner-container>*{animation:hmRise .8s cubic-bezier(.2,.7,.2,1) both}
}
@keyframes hmRise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@media (max-width:1024px){
  .hm-hero-grid{grid-template-columns:minmax(0,1fr);gap:44px}
  .hm-quick-grid,.hm-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-why-grid,.hm-net-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-proof{grid-template-columns:repeat(2,1fr)}
  .hm-proof-title{grid-column:1/-1}
}
@media (max-width:781px){
  .hm-wrap{padding:0 16px}
  .hm-hero{padding:48px 0 120px}
  .hm-hero::after{right:-4%}
  .hm-hero-stats{gap:14px 26px}
  .hm-stat-num{font-size:1.9rem}
  .hm-actions .wp-block-button{flex:1 1 100%}
  .hm-actions .wp-block-button__link{width:100%}
  .hm-quick{margin-top:-80px!important}
  .hm-quick-grid,.hm-news-grid,.hm-fz-cards,.hm-steps{grid-template-columns:minmax(0,1fr);gap:16px}
  .hm-quick-all{text-align:left}
  .hm-steps .hm-step:not(:last-child)::after{right:50%;top:auto;bottom:-22px;transform:translateX(50%) rotate(90deg)}
  .hm-steps{gap:28px}
  .hm-why-grid,.hm-net-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .hm-why-card{min-height:260px}
  .hm-proof{grid-template-columns:repeat(2,1fr);padding:24px 20px;gap:18px}
  .hm-proof-item{padding-left:10px}
  .hm-num{font-size:1.8rem!important}
  .hm-fz,.hm-news,.hm-method,.hm-why,.hm-net{padding:64px 0}
  .hm-fz-top{padding:22px 76px 22px 20px}
  .hm-check,.hm-fz-actions{padding-left:20px!important;padding-right:20px!important}
  .hm-fz-top h3{font-size:1.35rem}
  .hm-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}
  .hm-chip{flex:none;white-space:nowrap}
  .hm-cta-row .hm-actions{width:100%}
}
/* ═════════ Foto e varianti delle sezioni ═════════ */
/* ── Titoli delle sezioni allineati a sinistra ── */
.hm .wp-block-buttons.hm-center{display:flex;width:100%;justify-content:flex-start}
.hm .hm-head{text-align:left}
/* ── Banner a tutta larghezza e introduzione ── */
.hm .hm-banner{background:#042a50;padding:0;line-height:0}
.hm .hm-banner-img{margin:0!important}
.hm .hm-banner-img img{width:100%;max-width:none;height:auto;display:block}
.hm .hm-hero-strip{padding:60px 0 150px}
.hm .hm-hero-strip .hm-hero-grid{grid-template-columns:minmax(0,1fr)}
.hm .hm-hero-strip .hm-hero-copy{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);column-gap:64px;align-items:start}
.hm .hm-hero-strip .hm-hero-copy>*,.hm .hm-hero-strip .hm-hero-copy .wp-block-group__inner-container>*{grid-column:1}
.hm .hm-hero-strip .hm-hero-stats{grid-column:2!important;grid-row:1 / span 6;align-self:center;margin:0!important;padding:8px 0 8px 44px;border-top:0;border-left:1px solid rgba(255,255,255,.18);flex-direction:column;gap:26px}
.hm .hm-hero-strip .hm-lead{margin-top:0!important;font-size:clamp(1.3rem,2.2vw,1.7rem)}
.hm .hm-hero-strip .hm-hero-text{margin-bottom:26px!important}
@media (max-width:900px){
  .hm .hm-hero-strip .hm-hero-copy{grid-template-columns:minmax(0,1fr)}
  .hm .hm-hero-strip .hm-hero-stats{grid-column:1!important;grid-row:auto;flex-direction:row;border-left:0;border-top:1px solid rgba(255,255,255,.16);padding:22px 0 0;margin-top:30px!important}
}
@media (max-width:781px){
  .hm .hm-hero-strip{padding:40px 0 110px}
}
/* ── Servizi rapidi: foto in testa alle card ── */
.hm-qcard{padding:0 0 22px!important}
.hm-qcard::before{z-index:3}
.hm .hm-qcard-img{align-self:stretch;width:100%;height:150px;margin:0 0 2px!important;overflow:hidden;position:relative}
.hm .hm-qcard-img img{width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .6s}
.hm-qcard:hover .hm-qcard-img img{transform:scale(1.06)}
.hm-qcard-img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,42,80,0) 45%,rgba(4,42,80,.45) 100%)}
.hm-qcard>:not(.hm-qcard-img),.hm-qcard .wp-block-group__inner-container>:not(.hm-qcard-img){margin-left:24px!important;margin-right:24px!important}
.hm-qcard h3::before{margin-top:-40px;position:relative;z-index:2;border:4px solid #fff}
/* ── Formazione: foto dell'aula come sfondo di tutta la sezione ── */
.hm .hm-fz{position:relative;isolation:isolate;overflow:hidden}
.hm .hm-fz::after{z-index:0}
.hm .hm-fz .hm-wrap,.hm .hm-fz .hm-fz-head{position:static}
.hm .hm-fz .hm-fz-head{display:block;max-width:760px;margin-bottom:40px!important}
.hm .hm-fz>*:not(.hm-fz-photo){position:relative}
.hm .hm-fz-cards{position:relative;z-index:1}
.hm .hm-fz-photo{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0!important;z-index:-1;pointer-events:none}
.hm .hm-fz-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,42,80,.9) 0%,rgba(4,42,80,.74) 50%,rgba(4,42,80,.6) 100%)}
.hm .hm-fz-photo img{position:relative;z-index:1;display:block;width:100%;height:100%;max-width:none;aspect-ratio:auto;object-fit:cover;object-position:center 35%;border-radius:0;box-shadow:none}
@media (max-width:900px){
  .hm .hm-fz-photo img{object-position:center}
  .hm .hm-fz-photo::after{background:rgba(4,42,80,.8)!important}
}
/* ── Perché sceglierci: card con foto ── */
.hm .hm-why-img,.hm .hm-why-img img{width:100%;height:100%;max-width:none}
.hm .hm-why-img img{object-fit:cover;object-position:center}
.hm-why-card{justify-content:flex-end}
.hm-why-text{min-height:4.5em}
/* ── Rete: card con foto ── */
.hm-why-grid,.hm-net-grid{align-items:stretch}
.hm-tier{padding:0 0 24px!important;gap:8px}
.hm-tier::before{z-index:3}
.hm .hm-tier-img{align-self:stretch;width:100%;height:170px;margin:0 0 4px!important;overflow:hidden;position:relative}
.hm .hm-tier-img img{width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .6s}
.hm-tier-img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,42,80,0) 40%,rgba(4,42,80,.55) 100%)}
.hm-tier:hover .hm-tier-img img{transform:scale(1.06)}
.hm-tier>:not(.hm-tier-img):not(.hm-tier-num),.hm-tier .wp-block-group__inner-container>:not(.hm-tier-img):not(.hm-tier-num){margin-left:24px!important;margin-right:24px!important}
.hm-tier h3::before{margin-top:-46px;position:relative;z-index:2;width:60px;height:60px}
.hm-tier-num{z-index:2;color:rgba(255,255,255,.9);text-shadow:0 2px 12px rgba(0,0,0,.35);top:14px}
.hm .hm-tier .hm-more,.hm .hm-qcard .hm-more{margin-top:auto!important;padding-top:6px}
@media (max-width:781px){
  .hm .hm-tier-img{height:190px}
  .hm-why-text{min-height:0}
}
/* ── Foto delle card: inquadratura ── */
.hm .hm-why-img img,.hm .hm-tier-img img,.hm .hm-qcard-img img{object-position:center 30%}
/* Icone: aggiungi alla card la classe hm-ic-NOME (card, check, coins, document, education, envelope, federation, globe, handshake, people, pin, scale, shield, star, target, trending) */
.hm-ic-card{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='38' height='26' rx='4'/%3E%3Cpath d='M5 19h38M12 29h9'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='38' height='26' rx='4'/%3E%3Cpath d='M5 19h38M12 29h9'/%3E%3C/svg%3E")}
.hm-ic-check{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 25 8 8 16-17'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 25 8 8 16-17'/%3E%3C/svg%3E")}
.hm-ic-coins{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='22' cy='12' rx='13' ry='5'/%3E%3Cpath d='M9 12v8c0 2.8 5.8 5 13 5s13-2.2 13-5v-8M9 20v8c0 2.8 5.8 5 13 5s13-2.2 13-5v-8M9 28v8c0 2.8 5.8 5 13 5s13-2.2 13-5v-8'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='22' cy='12' rx='13' ry='5'/%3E%3Cpath d='M9 12v8c0 2.8 5.8 5 13 5s13-2.2 13-5v-8M9 20v8c0 2.8 5.8 5 13 5s13-2.2 13-5v-8M9 28v8c0 2.8 5.8 5 13 5s13-2.2 13-5v-8'/%3E%3C/svg%3E")}
.hm-ic-document{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='9' width='24' height='31' rx='2'/%3E%3Cpath d='M18 6v7M30 6v7M18 21h12M18 28h12M18 35h7'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='9' width='24' height='31' rx='2'/%3E%3Cpath d='M18 6v7M30 6v7M18 21h12M18 28h12M18 35h7'/%3E%3C/svg%3E")}
.hm-ic-education{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17 24 8l19 9-19 9zM11 21v11l13 7 13-7V21M18 35v6h12v-6'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17 24 8l19 9-19 9zM11 21v11l13 7 13-7V21M18 35v6h12v-6'/%3E%3C/svg%3E")}
.hm-ic-envelope{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='13' width='34' height='24' rx='3'/%3E%3Cpath d='m9 15 15 12 15-12'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='13' width='34' height='24' rx='3'/%3E%3Cpath d='m9 15 15 12 15-12'/%3E%3C/svg%3E")}
.hm-ic-federation{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='14' cy='16' r='6'/%3E%3Ccircle cx='34' cy='12' r='6'/%3E%3Ccircle cx='34' cy='34' r='6'/%3E%3Cpath d='M19 18l10-4M34 18v10'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='14' cy='16' r='6'/%3E%3Ccircle cx='34' cy='12' r='6'/%3E%3Ccircle cx='34' cy='34' r='6'/%3E%3Cpath d='M19 18l10-4M34 18v10'/%3E%3C/svg%3E")}
.hm-ic-globe{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='24' r='17'/%3E%3Cpath d='M6 24h36M24 7a26 26 0 0 1 0 34 26 26 0 0 1 0-34Z'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='24' r='17'/%3E%3Cpath d='M6 24h36M24 7a26 26 0 0 1 0 34 26 26 0 0 1 0-34Z'/%3E%3C/svg%3E")}
.hm-ic-handshake{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 18l8-7 9 7-8 8zM24 18l8-7 8 7-8 8zM16 25l8 7 8-7'/%3E%3Cpath d='M9 31l7 6m23-6-7 6'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 18l8-7 9 7-8 8zM24 18l8-7 8 7-8 8zM16 25l8 7 8-7'/%3E%3Cpath d='M9 31l7 6m23-6-7 6'/%3E%3C/svg%3E")}
.hm-ic-people{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='14' r='7'/%3E%3Ccircle cx='32' cy='16' r='6'/%3E%3Cpath d='M5 36c1-8 6-12 13-12s12 4 13 12M27 28c8-3 14 1 16 8'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='14' r='7'/%3E%3Ccircle cx='32' cy='16' r='6'/%3E%3Cpath d='M5 36c1-8 6-12 13-12s12 4 13 12M27 28c8-3 14 1 16 8'/%3E%3C/svg%3E")}
.hm-ic-pin{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 43s12-12 12-22a12 12 0 1 0-24 0c0 10 12 22 12 22Z'/%3E%3Ccircle cx='24' cy='20' r='4'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 43s12-12 12-22a12 12 0 1 0-24 0c0 10 12 22 12 22Z'/%3E%3Ccircle cx='24' cy='20' r='4'/%3E%3C/svg%3E")}
.hm-ic-scale{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 6v8M12 16h24M12 16 6 28a6 6 0 0 0 12 0ZM36 16l-6 12a6 6 0 0 0 12 0Z'/%3E%3Cpath d='M17 42h14M24 30v12'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 6v8M12 16h24M12 16 6 28a6 6 0 0 0 12 0ZM36 16l-6 12a6 6 0 0 0 12 0Z'/%3E%3Cpath d='M17 42h14M24 30v12'/%3E%3C/svg%3E")}
.hm-ic-shield{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 6 39 12v10c0 10-6 16-15 20C15 38 9 32 9 22V12Z'/%3E%3Cpath d='m17 24 5 5 10-11'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 6 39 12v10c0 10-6 16-15 20C15 38 9 32 9 22V12Z'/%3E%3Cpath d='m17 24 5 5 10-11'/%3E%3C/svg%3E")}
.hm-ic-star{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m24 7 5 10 11 1-8 7 3 11-11-6-11 6 3-11-8-7 11-1Z'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m24 7 5 10 11 1-8 7 3 11-11-6-11 6 3-11-8-7 11-1Z'/%3E%3C/svg%3E")}
.hm-ic-target{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='24' r='15'/%3E%3Cpath d='m24 13 3 8 8 3-8 3-3 8-3-8-8-3 8-3Z'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='24' r='15'/%3E%3Cpath d='m24 13 3 8 8 3-8 3-3 8-3-8-8-3 8-3Z'/%3E%3C/svg%3E")}
.hm-ic-trending{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 20v9h6l17 10V11L12 20Z'/%3E%3Cpath d='M28 17a9 9 0 0 1 0 14'/%3E%3Cpath d='M34 12a17 17 0 0 1 0 24'/%3E%3Cpath d='M12 29v6a3 3 0 0 0 6 0v-4'/%3E%3C/svg%3E");--icr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23e61e3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 20v9h6l17 10V11L12 20Z'/%3E%3Cpath d='M28 17a9 9 0 0 1 0 14'/%3E%3Cpath d='M34 12a17 17 0 0 1 0 24'/%3E%3Cpath d='M12 29v6a3 3 0 0 0 6 0v-4'/%3E%3C/svg%3E")}
