/* CSS home page. Tutto e' limitato al contenitore .home, non tocca testata e footer del sito.
   --hh = altezza della testata fissa del sito (serve a calcolare l'altezza dell'hero), da adattare. */
.home{font-family:Roboto,Arial,Helvetica,sans-serif;font-size:17px;line-height:1.55;color:#333;background:#fff}
.home{--red:#ae2220;--red-d:#8c1a18;--ink:#1d1d1f;--txt:#333;--mut:#666;--line:#e3e3e3;--w:1180px;--hh:84px}
.home,.home *{box-sizing:border-box}
.home img,.home video{max-width:100%;display:block}
.home a{color:inherit}
.home h1,.home h2,.home h3,.home p,.home figure,.home ul{margin:0}
.home ul{padding:0;list-style:none}
.home .wrap{width:100%;max-width:var(--w);margin:0 auto;padding:0 28px}
.home :focus-visible{outline:3px solid #ffbf47;outline-offset:3px}
/* HERO: un video alla volta a tutta larghezza, in sequenza */
.home .herohome{position:relative;height:min(56.25vw,calc(100vh - var(--hh)));min-height:440px;background:#111;border-bottom:8px solid var(--red);overflow:hidden}
.home .hslide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .9s ease,visibility .9s}
.home .hslide.on{opacity:1;visibility:visible}
.home .hslide>a{position:absolute;inset:0;display:block;text-decoration:none;color:#fff}
.home .hslide video{width:100%;height:100%;object-fit:cover}
.home .hslide.todo>a{display:flex;align-items:center;justify-content:center;text-align:center;background:linear-gradient(135deg,#1b3f86,#2b57a8);font-weight:500;font-size:20px}
.home .hslide.todo b{display:block;font-size:34px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px}
.home .herohome::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,18,48,.28) 0%,rgba(8,18,48,0) 30%,rgba(8,18,48,.1) 55%,rgba(8,18,48,.78) 100%);pointer-events:none;z-index:2}
.home .herohome-text{position:absolute;left:0;right:0;bottom:78px;z-index:3;color:#fff;pointer-events:none}
.home .herohome h1{font-size:clamp(32px,5.3vw,76px);line-height:1.04;font-weight:900;text-transform:uppercase;letter-spacing:-.01em;max-width:1240px;text-shadow:0 3px 18px rgba(0,0,0,.55)}
.home .herohome h1 .r{color:#e0342f}
.home .herohome p{font-size:clamp(16px,1.7vw,21px);max-width:860px;margin-top:12px;text-shadow:0 2px 10px rgba(0,0,0,.65);font-weight:500}
.home .hnav{position:absolute;left:0;right:0;bottom:0;z-index:4}
.home .hnav .wrap{display:flex;align-items:stretch;gap:10px;max-width:1400px}
.home .hnav .items{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;flex:1;min-width:0}
.home .hbtn{position:relative;background:transparent;border:0;border-top:4px solid rgba(255,255,255,.35);color:#fff;font:700 13px Roboto,Arial,sans-serif;letter-spacing:.07em;text-transform:uppercase;text-align:left;padding:12px 4px 16px;cursor:pointer;text-shadow:0 1px 8px rgba(0,0,0,.8)}
.home .hbtn::before{content:"";position:absolute;left:0;top:-4px;height:4px;width:100%;background:#fff;transform:scaleX(0);transform-origin:left center}
.home .hbtn.on::before{transform:scaleX(1)}
.home .hbtn.on.run::before{transform:scaleX(0);animation:hfill linear forwards;animation-duration:var(--d,8s)}
.home .hbtn.on.run.hold::before{animation-play-state:paused}
@keyframes hfill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.home .hbtn:hover{border-top-color:#fff}
.home .hpause{align-self:center;background:rgba(0,0,0,.35);border:2px solid #fff;color:#fff;font:700 12px Roboto,Arial,sans-serif;text-transform:uppercase;letter-spacing:.06em;padding:6px 12px;border-radius:2px;cursor:pointer;margin-bottom:6px}
.home .hpause:hover{background:#fff;color:var(--red)}
.home .btn{display:inline-block;background:var(--red);color:#fff;font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:15px;padding:14px 24px;text-decoration:none;border:2px solid var(--red);border-radius:2px}
.home .btn:hover{background:var(--red-d);border-color:var(--red-d)}
.home .btn.dark{background:transparent;color:var(--red)}
.home .btn.dark:hover{background:var(--red);color:#fff}
.home .btn.light{background:transparent;border-color:#fff;color:#fff}
.home .btn.light:hover{background:#fff;color:var(--red)}
/* blocchi */
.home section{padding:44px 0;scroll-margin-top:calc(var(--hh) + 10px)}
.home .eyebrow{font-size:14px;font-weight:700;color:var(--red);text-transform:uppercase;letter-spacing:.12em;margin-bottom:6px}
.home h2{font-size:clamp(26px,3vw,38px);line-height:1.12;font-weight:700;text-transform:uppercase;color:var(--ink)}
.home h3{font-size:20px;line-height:1.25;font-weight:700;color:var(--ink);text-transform:uppercase}
.home .head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 28px;margin-bottom:22px}
.home .head p{max-width:640px;color:#444}
.home .more{font-weight:700;color:var(--red);text-transform:uppercase;letter-spacing:.04em;font-size:15px;text-decoration:none;white-space:nowrap}
.home .more:hover{text-decoration:underline}
/* news in alto: una comunicazione alla volta, scorrimento dal basso verso l'alto */
.home .news{padding:26px 0 22px;border-bottom:1px solid var(--line);background:#fafafa;--nh:122px}
.home .news .bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.home .news .bar h2{font-size:24px}
.home .news .tools{display:flex;align-items:center;gap:18px}
.home .news .count{font-size:14px;color:var(--mut);font-weight:500;min-width:34px;text-align:right}
.home .ticker{border-top:3px solid var(--red);max-height:260px;overflow:auto}
.home .ticker.live{max-height:none;height:var(--nh);overflow:hidden}
.home .ticker .track{will-change:transform}
.home .ticker article{padding:12px 0 6px;min-height:var(--nh)}
.home .ticker.live article{height:var(--nh);overflow:hidden}
.home .ticker time{display:block;font-weight:700;color:var(--red);text-transform:uppercase;font-size:13px;letter-spacing:.07em;margin-bottom:4px}
.home .ticker h3{text-transform:none;font-size:19px;margin-bottom:4px}
.home .ticker p{font-size:16px;color:#444;max-width:900px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.home .ticker:not(.live) p{display:block;-webkit-line-clamp:unset;overflow:visible}
.home .ticker:not(.live) article{border-bottom:1px solid var(--line);height:auto}
.home .ticker.single{height:auto}
.home .intro{padding-bottom:20px}
.home .intro .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:20px 48px;align-items:start}
.home .intro p{font-size:18px;color:#444}
.home .intro p+p{margin-top:12px}
@media (max-width:900px){
  .home .intro .wrap{grid-template-columns:1fr}
}
/* griglia linee di prodotto */
.home .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
.home .pl{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-bottom:4px solid var(--red)}
.home .pl.wide{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.home .pl .media{display:grid;gap:3px;background:#fff}
.home .pl .media.three{grid-template-columns:repeat(3,1fr)}
.home .pl .media.two{grid-template-columns:repeat(2,1fr)}
.home .vid{position:relative;background:#222;overflow:hidden;aspect-ratio:16/9}
.home .vid video{width:100%;height:100%;object-fit:cover}
.home .pl .media.three .vid,.home .pl .media.two .vid,.home .pl .media.three .slot{aspect-ratio:4/3}
.home .pl .media.four .vid,.home .pl .media.four .slot{aspect-ratio:16/10}
.home .vid .tag{position:absolute;left:10px;bottom:8px;color:#fff;font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:12px;text-shadow:0 1px 6px rgba(0,0,0,.8)}
.home .pl.wide .media.three{grid-template-columns:repeat(3,minmax(0,1fr));align-content:stretch}
.home .pl .media.four{grid-template-columns:repeat(2,minmax(0,1fr))}
.home .pl .body{padding:20px 24px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.home .pl .body p{font-size:16px;color:#444}
.home .pl .body .more{margin-top:auto;padding-top:6px}
.home .pl .body .sub a{color:var(--red);font-weight:500}
.home .slot{min-width:0;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;text-align:center;padding:16px;border:2px dashed #9a9a9a;background:repeating-linear-gradient(135deg,#f4f4f4 0 14px,#ececec 14px 28px);color:#666;font-weight:500;font-size:15px}
.home .slot b{display:block;color:var(--ink);text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}
/* rimandi azienda e certificazioni */
.home .dual{display:grid;grid-template-columns:repeat(2,1fr);gap:26px}
.home .dual a.box{display:block;text-decoration:none;background:#f4f4f4;border-left:6px solid var(--red);padding:26px 30px}
.home .dual a.box:hover{background:#ececec}
.home .dual .box h2{font-size:26px;margin-bottom:6px}
.home .dual .box p{font-size:16px;color:#444;margin-bottom:10px}
.home .dual .box span{font-weight:700;color:var(--red);text-transform:uppercase;letter-spacing:.04em;font-size:14px}
@media (max-width:900px){
  .home{--hh:68px}
  .home .herohome{height:auto;aspect-ratio:auto;min-height:0;height:calc(100vw*9/16 + 320px)}
  .home .hslide{bottom:320px}
  .home .herohome-text{bottom:112px}
  .home .hnav .items{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
  .home .hbtn{font-size:10.5px;letter-spacing:.02em}
  .home .grid,.home .dual{grid-template-columns:1fr}
  .home .news{--nh:156px}
  .home .pl.wide{grid-template-columns:1fr}
  .home section{padding:34px 0}
}
@media (max-width:560px){
  .home .wrap{padding:0 20px}
  .home .hnav .wrap{flex-wrap:wrap}
  .home .hnav .items{flex-basis:100%}
  .home .hpause{position:absolute;right:20px;top:-46px;margin:0}
  .home .hbtn{font-size:9px;letter-spacing:0;padding-right:6px;line-height:1.2}
}