/* Recovery layer 2026-07-23: ripristina le regole perse dal foglio home troncato. */
.home-willy-v2 main,.home-willy-v2 section,.home-willy-v2 .wrap{min-width:0}
.home-willy-v2 img{display:block;max-width:100%}
.home-willy-v2 .home-section{padding-block:74px}
.home-willy-v2 .home-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}
.home-willy-v2 .home-section-head h2{margin:0;font-family:"Anton",Impact,sans-serif;font-size:clamp(42px,4vw,60px);font-weight:400;line-height:.98;text-transform:uppercase}
.home-willy-v2 .home-section-head>a{border-bottom:3px solid #f9d701;font-size:13px;font-weight:800;text-decoration:none}
.home-willy-v2 .home-world-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}
.home-willy-v2 .home-world{position:relative;display:block;min-height:275px;overflow:hidden;border:1px solid #e8e8e4;border-radius:20px;background:#f7f7f5;color:#fff;text-decoration:none}
.home-willy-v2 .home-world:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.82))}
.home-willy-v2 .home-world img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.home-willy-v2 .home-world>span{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:22px 18px}
.home-willy-v2 .home-world b{display:block;font-family:"Anton",Impact,sans-serif;font-size:28px;font-weight:400;line-height:1;text-transform:uppercase}
.home-willy-v2 .home-world small{display:block;margin-top:5px;font-size:12px;line-height:1.35}
.home-willy-v2 .home-world:nth-child(1){border-bottom:5px solid #f9d701}.home-willy-v2 .home-world:nth-child(2),.home-willy-v2 .home-world:nth-child(5){border-bottom:5px solid #ff3d8b}.home-willy-v2 .home-world:nth-child(3){border-bottom:5px solid #4fb8ff}.home-willy-v2 .home-world:nth-child(4){border-bottom:5px solid #7fe7c8}
.home-willy-v2 .home-smart-strip{padding:50px 0;background:#f9d701}
.home-willy-v2 .home-smart-strip>.wrap{display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:44px}
.home-willy-v2 .home-smart-copy .home-kicker{margin-bottom:15px;padding:7px 11px;border-radius:999px;background:#000;color:#fff;font-size:13px;letter-spacing:.08em}
.home-willy-v2 .home-smart-copy h2{margin:0;font-family:"Anton",Impact,sans-serif;font-size:clamp(46px,4.2vw,64px);font-weight:400;line-height:.98;text-transform:uppercase}
.home-willy-v2 .home-smart-copy h2 span{background:transparent}
.home-willy-v2 .home-smart-copy p{max-width:610px;margin:16px 0 21px;font-size:17px;line-height:1.55}
.home-willy-v2 .home-smart-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.home-willy-v2 .home-smart-cards article{min-height:126px;padding:19px 20px;border:2px solid #000;border-radius:17px;background:#fff;box-shadow:4px 4px 0 #000}
.home-willy-v2 .home-smart-cards b{display:block;margin-bottom:4px;font-size:16px}.home-willy-v2 .home-smart-cards span{color:#626262;font-size:13.5px;line-height:1.45}
.home-willy-v2 .home-all-categories .cats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.home-willy-v2 .home-all-categories .cat{display:grid;grid-template-rows:170px auto;overflow:hidden;border:1px solid #e8e8e4;border-radius:18px;background:#fff;text-decoration:none}
.home-willy-v2 .home-all-categories .cat img{width:100%;height:170px;object-fit:cover}.home-willy-v2 .home-all-categories .cat .in{min-height:84px;padding:17px}
.home-willy-v2 .home-conditions .cards4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.home-willy-v2 .home-conditions .card{border-radius:18px;box-shadow:none}
.home-willy-v2 .portale.home-portal{padding:82px 0;border:0;background:#f7f7f5}.home-willy-v2 .home-portal .feats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.home-willy-v2 .home-payment-section .pay{border:0;border-radius:20px;background:#f9d701}

/* Newsletter: contrasto esplicito e palette Willy ad alta leggibilità. */
.home-willy-v2 .newsletter-b2b.home-newsletter{position:relative;padding:72px 0;border:0;border-top:6px solid #f9d701;background:#080808;color:#fff}
.home-willy-v2 .home-newsletter .news-in{display:grid;grid-template-columns:minmax(0,.95fr) minmax(420px,1.05fr);align-items:center;gap:56px}
.home-willy-v2 .home-newsletter .news-testo{max-width:650px;color:#fff}
.home-willy-v2 .home-newsletter .news-occhiello{display:inline-flex;margin-bottom:16px;padding:7px 12px;border-radius:999px;background:#f9d701;color:#000!important;font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.home-willy-v2 .home-newsletter .news-occhiello:after{display:none}
.home-willy-v2 .home-newsletter .sec-title{margin:0;color:#fff!important;font-family:"Anton",Impact,sans-serif;font-size:clamp(42px,4.1vw,62px);font-weight:400;line-height:.98;letter-spacing:-.01em;text-transform:uppercase}
.home-willy-v2 .home-newsletter .sec-sub{max-width:610px;margin-top:17px;color:#d7d7d7!important;font-size:16px;line-height:1.62}
.home-willy-v2 .home-newsletter .news-form{display:grid;gap:11px;padding:25px;border:1px solid #303030;border-radius:22px;background:#141414;box-shadow:0 18px 45px rgba(0,0,0,.22)}
.home-willy-v2 .home-newsletter .news-form input{width:100%;min-height:52px;padding:13px 16px;border:2px solid #fff;border-radius:14px;background:#fff;color:#111!important;box-shadow:none;font-size:15px}
.home-willy-v2 .home-newsletter .news-form input::placeholder{color:#787878;opacity:1}
.home-willy-v2 .home-newsletter .news-form input:focus{border-color:#f9d701;box-shadow:0 0 0 3px rgba(249,215,1,.24);outline:none}
.home-willy-v2 .home-newsletter .news-form .btn,.home-willy-v2 .home-newsletter #newsBtn{width:100%;min-height:50px;border:2px solid #f9d701;border-radius:14px;background:#f9d701!important;color:#000!important;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.03em}
.home-willy-v2 .home-newsletter .news-form .btn:hover,.home-willy-v2 .home-newsletter #newsBtn:hover{border-color:#fff;background:#fff!important;color:#000!important}
.home-willy-v2 .home-newsletter .news-esito{min-height:18px;color:#fff!important;font-size:13px;font-weight:700}
.home-willy-v2 .home-newsletter .news-esito.ok{color:#7fe7c8!important}
.home-willy-v2 .home-newsletter .news-esito.err{color:#ff8ab8!important}
.home-willy-v2 .home-newsletter .news-nota{margin-top:2px;color:#aaa!important;font-size:11px;line-height:1.5}
.home-willy-v2 .home-newsletter .news-nota a{color:#fff!important;text-decoration-color:#f9d701;text-underline-offset:3px}

.home-willy-v2 .cta.home-final-cta{padding:86px 0;background:#fff;color:#000}.home-willy-v2 .home-final-cta h2{font-family:"Anton",Impact,sans-serif;font-size:clamp(58px,7vw,104px);font-weight:400;text-transform:uppercase}
.home-willy-v2 footer{background:#000}.home-willy-v2 footer .foot-col{min-width:0}.home-willy-v2 footer .foot-col a{overflow-wrap:anywhere}
/* [2026-08-03] Tolto il track logo da 190px: il logo e' piu' largo di cosi' e
   finiva sotto la barra di ricerca. La colonna ora e' auto (vedi
   home-willy-v2.css); qui si comprime il CONTORNO — logo, gap e bottoni — cosi'
   la ricerca resta leggibile fino a 821px, dove subentra il layout mobile. */
@media(max-width:1240px){.home-willy-v2 .home-world-grid,.home-willy-v2 .home-all-categories .cats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){
  .home-willy-v2 .home-header-main{gap:16px}
  .home-willy-v2 .home-header .logo-img{height:32px;max-width:134px}
  .home-willy-v2 .home-header-actions{gap:7px}
  .home-willy-v2 .home-header-actions .btn{min-height:42px;padding-inline:13px;font-size:12px}
  .home-willy-v2 .home-search{padding:0 6px 0 12px}
  .home-willy-v2 .home-search button{padding:0 11px}
}
@media(max-width:980px){.home-willy-v2 .wrap{padding-inline:24px}.home-willy-v2 .home-benefits>.wrap{grid-template-columns:repeat(2,minmax(0,1fr))}.home-willy-v2 .hero.home-hero{grid-template-columns:1fr}.home-willy-v2 .hero-img.home-hero-media{min-height:320px}.home-willy-v2 .home-smart-strip>.wrap{grid-template-columns:1fr;gap:34px}.home-willy-v2 .home-newsletter .news-in{grid-template-columns:1fr;gap:28px}.home-willy-v2 .home-newsletter .news-testo{max-width:760px}}
/* [2026-08-03 Jacopo] Con la hero a una colonna (<=980px) la stella del doodle,
   ancorata a left:48.5%/top:18px, finiva a ridosso di occhiello e titolo. La
   sposto nell'angolo in alto a destra, dove la copy ha spazio bianco. */
@media(max-width:980px){.home-willy-v2 .home-doodle-star{left:auto;right:16px;top:12px;width:30px}}
@media(max-width:820px){
  html,body.home-willy-v2{max-width:100%;overflow-x:hidden}
  .home-willy-v2 .wrap{width:100%;max-width:100%;padding-inline:20px}
  .home-willy-v2 .home-header{position:relative}
  .home-willy-v2 .home-header-main{position:relative;display:flex;flex-wrap:wrap;align-items:center;width:100%;min-height:132px;padding-top:10px;padding-bottom:64px;gap:10px}
  .home-willy-v2 .home-header-main .logo{margin-right:auto}
  .home-willy-v2 .home-header .logo-img{height:31px;max-width:150px}
  .home-willy-v2 .home-header-actions .btn{display:none}
  .home-willy-v2 .home-header .nav-toggle{display:flex;position:static;flex:none}
  .home-willy-v2 .home-search{position:absolute;left:20px;right:20px;bottom:10px;top:auto;width:auto;max-width:none;height:48px;padding:0 6px 0 13px;border-radius:13px}
  .home-willy-v2 .home-search input{min-width:0;width:100%;font-size:16px}
  .home-willy-v2 .home-search button{flex:none;height:36px;padding-inline:14px}
  .home-willy-v2 .home-nav-row{display:none}
  .home-willy-v2 .home-benefits{margin-top:0}
  .home-willy-v2 .home-benefits>.wrap{padding-inline:0}
  .home-willy-v2 .home-benefits article{min-width:0}
  .home-willy-v2 .home-world-grid,.home-willy-v2 .home-all-categories .cats,.home-willy-v2 .home-conditions .cards4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-willy-v2 .home-numbers .wrap{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-willy-v2 .home-section-head{align-items:flex-start;flex-direction:column;gap:10px}
}
@media(max-width:600px){
  .home-willy-v2 .wrap{padding-inline:14px}
  .home-willy-v2 .home-topbar{display:none}
  .home-willy-v2 .home-header-main{min-height:124px;padding:8px 14px 62px}
  .home-willy-v2 .home-search{left:14px;right:14px;bottom:8px;height:46px}
  .home-willy-v2 .home-benefits>.wrap{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-willy-v2 .home-benefits article{gap:8px;min-height:82px;padding:10px 8px;border-right:1px solid #e8e8e4;border-bottom:1px solid #e8e8e4}
  .home-willy-v2 .home-benefit-icon{width:36px;height:36px}.home-willy-v2 .home-benefits b,.home-willy-v2 .home-benefits small{font-size:10px}
  .home-willy-v2 .home-hero-shell{padding-top:14px}.home-willy-v2 .home-hero-copy{padding:31px 22px}.home-willy-v2 .hero h1{font-size:46px}.home-willy-v2 .hero .sub{font-size:15px}.home-willy-v2 .hero-cta{display:grid}.home-willy-v2 .hero-img.home-hero-media{min-height:235px}
  .home-willy-v2 .home-section{padding-block:48px}.home-willy-v2 .home-section-head h2{font-size:40px}
  .home-willy-v2 .home-world-grid{grid-template-columns:1fr;gap:12px}.home-willy-v2 .home-world{min-height:260px}.home-willy-v2 .home-world:nth-child(5){grid-column:auto}
  .home-willy-v2 .home-smart-strip{padding:38px 0}.home-willy-v2 .home-smart-copy h2{font-size:43px}.home-willy-v2 .home-smart-copy p{font-size:15.5px}.home-willy-v2 .home-smart-cards,.home-willy-v2 .home-conditions .cards4{grid-template-columns:1fr}
  .home-willy-v2 .home-all-categories .cats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-willy-v2 .home-all-categories .cat{grid-template-rows:120px auto}.home-willy-v2 .home-all-categories .cat img{height:120px}
  .home-willy-v2 .home-portal .feats{grid-template-columns:1fr}
  .home-willy-v2 .newsletter-b2b.home-newsletter{padding:48px 0;border-top-width:5px}
  .home-willy-v2 .home-newsletter .news-in{gap:22px}
  .home-willy-v2 .home-newsletter .sec-title{font-size:42px}
  .home-willy-v2 .home-newsletter .sec-sub{font-size:15px}
  .home-willy-v2 .home-newsletter .news-form{padding:17px;border-radius:18px}
  .home-willy-v2 .home-newsletter .news-form input{min-height:50px;font-size:16px}
  .home-willy-v2 footer .foot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:430px){.home-willy-v2 .home-newsletter .sec-title{font-size:38px}.home-willy-v2 footer .foot-grid{grid-template-columns:1fr}}

/* [2026-07-23] Fascia "Scelti per il punto vendita" su mobile: regole spostate
   QUI da vetrina.js, dove venivano iniettate come <style> a runtime. Insieme al
   passaggio del foglio nel <head> statico di index.html: il caricamento via JS
   faceva vedere per un secondo la pagina con lo stile vecchio (FOUC), poi il
   salto a quello nuovo — segnalato da Jacopo ("per un secondo viene il vecchio"). */
@media (max-width:600px){
  .home-willy-v2 .home-smart-strip{padding:34px 0 38px}
  .home-willy-v2 .home-smart-strip>.wrap{gap:26px}
  .home-willy-v2 .home-smart-copy .home-kicker{margin-bottom:12px;padding:7px 11px;font-size:12px}
  .home-willy-v2 .home-smart-copy h2{max-width:100%;font-size:42px;line-height:.94;overflow-wrap:normal;word-break:normal}
  .home-willy-v2 .home-smart-copy h2 span{display:block;width:auto;max-width:100%;margin-top:0;padding:0;white-space:normal}
  .home-willy-v2 .home-smart-copy p{margin:15px 0 19px;font-size:16px;line-height:1.5}
  .home-willy-v2 .home-smart-copy .btn{min-height:44px;padding:10px 18px}
  .home-willy-v2 .home-smart-cards{gap:11px}
  .home-willy-v2 .home-smart-cards article{grid-template-columns:44px minmax(0,1fr);column-gap:13px;min-height:112px;padding:16px 17px;border-width:1.5px;border-radius:16px;box-shadow:2px 3px 0 #000}
  .home-willy-v2 .home-smart-cards article::before{width:42px;height:42px;border-width:1.5px;border-radius:12px;background-size:22px}
  .home-willy-v2 .home-smart-cards b{font-size:15px}
  .home-willy-v2 .home-smart-cards span{font-size:13px;line-height:1.4}
}
@media (max-width:390px){
  .home-willy-v2 .home-smart-copy h2{font-size:38px}
  .home-willy-v2 .home-smart-copy .home-kicker{font-size:11px}
}
