/* Scala unica di titoli e immagini per tutte le pagine e le lingue. Si cambia qui. */
@media screen{
  :root{--pad-blocco:clamp(44px,5.5vw,76px)}
  body h1,body .page-hero h1,body .hero h1{font-size:clamp(2.3rem,3.6vw,3.25rem)!important;line-height:1.02!important}
  body .article-hero h1{font-size:clamp(2.1rem,3.1vw,2.75rem)!important;line-height:1.05!important}
  body h2{font-size:clamp(1.7rem,2.6vw,2.25rem)!important;line-height:1.08!important}
  body .article-body h2{font-size:clamp(1.45rem,2vw,1.75rem)!important}
  body .article-body h3{font-size:1.2rem!important}
  body .offer h3{font-size:clamp(1.4rem,2vw,1.7rem)!important}
  body .lead{font-size:18px!important;line-height:1.65!important}
  body .pullquote{font-size:clamp(1.35rem,2.2vw,1.8rem)!important}
  body .tappa-year{font-size:clamp(2rem,3vw,2.8rem)!important}
  body .proof-stats .stat b{font-size:clamp(1.9rem,3vw,2.6rem)!important}
  body .contatti-mail{font-size:clamp(1.25rem,2.4vw,1.8rem)!important}
  body .article-body{font-size:18px}

  main img,section img{max-width:100%;object-fit:cover}
  main picture img,section picture img{display:block;width:100%;height:auto;max-height:360px;object-position:center 30%}
  body .hero-foto,body .chi-grid img,body .chi-foto img{display:block;width:100%!important;max-width:350px!important;max-height:470px!important;height:auto!important;margin-left:auto;margin-right:auto}
  body .hero-foto-wrap,body .chi-foto{max-width:350px;margin-left:auto;margin-right:auto}
  body .chi-grid img[src*="copertina"]{max-width:270px!important;max-height:none!important;object-fit:contain}
  body .wrap>img.reveal,body .wrap-narrow>img.reveal,body .wrap-narrow>.reveal>img{display:block;width:auto;max-width:min(100%,430px)!important;max-height:400px!important;height:auto!important;margin-left:auto;margin-right:auto;object-fit:contain}
  body .q-shots img,body .ex-shots img{display:block;width:100%;max-width:360px;max-height:500px;height:auto;margin-left:auto;margin-right:auto;object-fit:contain}
  body .q-shot--full img{max-width:560px!important;max-height:none}
  body .video-libro{max-width:560px;margin-left:auto;margin-right:auto}
  body .video-libro video{display:block;width:100%;height:auto;max-height:440px;margin-left:auto;margin-right:auto}
  body .video-lite,body .r-video{max-width:520px;margin-left:auto;margin-right:auto}
  body .tappa-foto{width:100%;max-width:210px!important;height:auto;aspect-ratio:1/1}
  body .auth-photo img{max-width:200px;height:auto}
  body .lavoro-card img{max-height:200px}

  body .cred-riga{font-size:14.5px;line-height:1.55;font-weight:700;color:var(--grigio,#6b5f55);margin-top:14px;max-width:60ch}
  body .chi-top{padding-top:118px;padding-bottom:34px}
  body .chi-testa{display:grid;grid-template-columns:1.2fr .8fr;gap:44px;align-items:center}
  body .chi-testa h1{margin:0 0 6px;font-size:clamp(2.1rem,3.2vw,2.9rem)!important}
  body .chi-ruolo{font-weight:800;font-size:18px;color:var(--corallo-scuro);margin:0 0 14px}
  body .chi-intro{font-size:18px;line-height:1.65;margin:0 0 14px}
  body .chi-link{font-size:15.5px;margin:0}
  body .chi-testa-foto{display:block;border-radius:18px;overflow:hidden;box-shadow:0 14px 34px rgba(42,33,27,.16)}
  body .chi-testa-foto img{display:block;width:100%;height:auto;max-height:320px;aspect-ratio:4/3;object-fit:cover;object-position:center 25%}
  body .profilo-griglia{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:32px}
  body .profilo-scheda{background:var(--crema,#FBF1E4);border:1px solid var(--linea-scura);border-radius:16px;padding:18px 18px 20px}
  body .profilo-scheda h2{font-family:var(--body);font-weight:800;font-size:13px!important;letter-spacing:.1em;text-transform:uppercase;line-height:1.3!important;color:var(--corallo-scuro);margin:0 0 8px}
  body .profilo-scheda p{font-size:16px;line-height:1.55;margin:0;max-width:none}
  body .bio-voce p{font-size:18px;line-height:1.7}
  body .step-lista{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:22px}
  body .step-card{background:var(--bianco);border:1px solid var(--linea-scura);border-radius:16px;overflow:hidden;box-shadow:0 8px 20px rgba(42,33,27,.06)}
  body .step-top{background:var(--corallo-scuro);color:#fff;padding:12px 16px;font-weight:800;font-size:16px}
  body .step-top span{opacity:.8;margin-right:8px}
  body .step-corpo{margin:0;padding:16px;max-width:none;font-size:17px;line-height:1.55}
  body .check{flex:none;width:26px;height:26px;border-radius:50%;background:var(--blush);color:var(--corallo-scuro);display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;line-height:1}
  body .incl-lista{list-style:none;margin:20px 0 0;padding:0;background:var(--bianco);border:1px solid var(--linea-scura);border-radius:16px;overflow:hidden}
  body .incl-lista li{display:flex;gap:12px;align-items:flex-start;padding:13px 16px;border-bottom:1px solid var(--linea-scura);font-weight:700;margin:0}
  body .incl-lista li:last-child{border-bottom:0}
  body .due-liste{display:grid;grid-template-columns:1fr 1fr;gap:34px}
  /* corpo unico lingue */
  body .pill--ai{background:rgba(16,184,164,.16);color:var(--turchese-scuro)}
  body .pill--decisioni{background:rgba(42,33,27,.09);color:var(--nero-soft)}
  body .pill--valore{background:rgba(248,183,31,.2);color:#8a5a00}
  body .nav-lang{display:flex;align-items:center;gap:7px;font-weight:800;font-size:13px;letter-spacing:.05em}
  body .nav-lang span[aria-hidden]{opacity:.5}
  body .nav-lang a:hover{color:var(--corallo)}
  body .nav-lang a{color:#FBF1E4}
  body .nav-lang span[aria-hidden]{color:#FBF1E4}
  body .step-lista:has(>:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
  body .step-lista:has(>:nth-child(5))>:last-child{grid-column:1/-1}
  body .foto-persone{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:26px 0}
  body .foto-persone[data-due],body .foto-persone:has(>:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,280px));justify-content:center}
  body .foto-persone picture{display:block;border-radius:14px;overflow:hidden;box-shadow:0 8px 20px rgba(42,33,27,.1)}
  body .foto-persone img{display:block;width:100%;height:100%;max-height:none;aspect-ratio:4/3;object-fit:cover;object-position:center 30%}
  body .lavoro-card img{object-position:center 25%}
  body .video-libro{max-width:560px!important}
  body .wrap-narrow picture{display:block;max-width:560px;margin-left:auto;margin-right:auto}

  /* un solo margine sinistro su home e Decision Lab */
  body main.scala .wrap,body main.scala .wrap-narrow{max-width:1020px}
  body main.scala .problem-list{max-width:none}
  body main.scala .lead,body main.scala .wrap>p,body main.scala .wrap-narrow>p{max-width:68ch}
  body main.scala .center>p,body main.scala .center>.lead{margin-left:auto;margin-right:auto}
  body main.scala .page-hero .wrap>img.reveal{display:block;margin-left:0;margin-right:0;max-width:202px!important}
  body .garanzia-band .btn-row{justify-content:center}
  /* titolo finale su fondo scuro: testo chiaro, sottolineatura corallo */
  body .bg-flamingo h2 .accent{color:inherit;background:linear-gradient(transparent 58%,rgba(240,114,106,.55) 58%,rgba(240,114,106,.55) 94%,transparent 94%)}

  /* testata due colonne: testo a sinistra, foto a destra, da 769 px in su */
  @media (min-width:769px){
    body .hero-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:40px}
    body .hero{padding-top:124px}
    body .hero-foto,body .hero-foto-wrap{max-width:440px!important;max-height:330px!important}
    body .hero-foto{aspect-ratio:4/3;object-fit:cover}
  }

  /* titolo lungo della home: piu piccolo, si legge in una volta */
  body .hero .hero-grid h1{font-size:clamp(1.8rem,2.9vw,2.6rem)!important;line-height:1.14!important;margin-top:0;max-width:none!important}

  @media (max-width:768px){
    body .foto-persone{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    body .due-liste{grid-template-columns:1fr;gap:22px}
    body .step-lista,body .step-lista:has(>:nth-child(4)){grid-template-columns:1fr}
    body .chi-top{padding-top:96px}
    body .chi-testa{grid-template-columns:1fr;gap:22px}
    body .profilo-griglia{grid-template-columns:1fr;margin-top:22px}
    :root{--pad-blocco:42px}
    body .nav-right .cta--small{display:none}
    body .hero .hero-grid h1{font-size:1.7rem!important;line-height:1.18!important}
    body .hero .hero-foto,body .hero .hero-foto-wrap{max-width:100%!important;max-height:none!important}
    body h1,body .page-hero h1,body .hero h1{font-size:clamp(1.9rem,7.6vw,2.4rem)!important;line-height:1.05!important}
    body .article-hero h1{font-size:clamp(1.8rem,7vw,2.2rem)!important}
    body h2{font-size:clamp(1.55rem,6vw,1.95rem)!important}
    body .article-body h2{font-size:1.4rem!important}
    body .lead{font-size:17px!important}
    body .article-body{font-size:17px}
    body .hero-foto,body .chi-grid img,body .chi-foto img,body .hero-foto-wrap,body .chi-foto{max-width:230px!important;max-height:300px!important}
    body .chi-grid img[src*="copertina"]{max-width:210px!important}
    main picture img,section picture img{max-height:260px}
    body .wrap>img.reveal,body .wrap-narrow>img.reveal,body .wrap-narrow>.reveal>img{max-width:min(100%,300px)!important;max-height:320px!important}
    body .q-shots img,body .ex-shots img{max-width:290px;max-height:420px}
    body .video-libro video{max-height:400px}
    body .tappa-foto{max-width:170px!important}
  }
}
