:root{--im-seo-green:#075f52;--im-seo-green-dark:#084c43;--im-seo-mint:#e8f4ef;--im-seo-ink:#172231;--im-seo-muted:#64717d;--im-seo-border:#d9e4df;--im-seo-bg:#f4f8f6;--im-seo-white:#fff}
html.im-seo-loading body{opacity:.25}
body.im-seo-route{margin:0;background:var(--im-seo-bg)!important;color:var(--im-seo-ink)!important;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
body.im-seo-route .iubenda-embed,body.im-seo-route #backToTop{display:none!important}
.im-seo-page{min-height:100vh;display:flex;flex-direction:column}
.im-seo-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px clamp(18px,4vw,64px);background:#fff;border-bottom:1px solid var(--im-seo-border);position:sticky;top:0;z-index:20}
.im-seo-brand{display:flex;align-items:center;gap:12px;color:var(--im-seo-ink);text-decoration:none}.im-seo-brand img{width:52px;height:52px;object-fit:contain;border-radius:12px}.im-seo-brand span{display:flex;flex-direction:column}.im-seo-brand strong{font-size:1rem}.im-seo-brand small{color:var(--im-seo-muted)}
.im-seo-header nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.im-seo-header nav a{color:var(--im-seo-ink);text-decoration:none;font-weight:700;padding:10px 12px;border-radius:10px}.im-seo-header nav a:hover,.im-seo-header nav a:focus-visible{background:var(--im-seo-mint);color:var(--im-seo-green)}
.im-seo-main{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:28px 0 64px;flex:1}.im-seo-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--im-seo-muted);font-size:.9rem;margin-bottom:22px}.im-seo-breadcrumb a{color:var(--im-seo-green);font-weight:700;text-decoration:none}
.im-seo-product{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(0,1.1fr);gap:clamp(28px,5vw,72px);align-items:center;background:#fff;border:1px solid var(--im-seo-border);border-radius:26px;padding:clamp(22px,4vw,52px);box-shadow:0 18px 45px rgba(10,74,63,.08)}
.im-seo-product-media{min-height:420px;display:grid;place-items:center;background:linear-gradient(145deg,#f9fbfa,#edf5f1);border-radius:22px;padding:24px}.im-seo-product-media img{max-width:100%;max-height:420px;object-fit:contain}.im-seo-eyebrow{margin:0 0 10px;color:var(--im-seo-green);font-weight:800;text-transform:uppercase;letter-spacing:.07em;font-size:.78rem}.im-seo-product h1,.im-seo-category-head h1{font-size:clamp(2rem,4vw,3.5rem);line-height:1.05;margin:0 0 18px;color:var(--im-seo-ink)}.im-seo-code{font-size:1rem;color:var(--im-seo-muted)}.im-seo-description{font-size:1.08rem;line-height:1.7;color:#3d4b57}.im-seo-details{margin:26px 0;display:grid;gap:0;border:1px solid var(--im-seo-border);border-radius:16px;overflow:hidden}.im-seo-details div{display:grid;grid-template-columns:160px 1fr;gap:16px;padding:14px 16px;border-bottom:1px solid var(--im-seo-border)}.im-seo-details div:last-child{border-bottom:0}.im-seo-details dt{font-weight:800}.im-seo-details dd{margin:0;color:#42505c}.im-seo-details a{color:var(--im-seo-green);font-weight:700}.im-seo-actions{display:flex;flex-wrap:wrap;gap:12px}.im-seo-primary,.im-seo-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:12px;text-decoration:none;font-weight:800}.im-seo-primary{background:var(--im-seo-green);color:#fff}.im-seo-primary:hover{background:var(--im-seo-green-dark)}.im-seo-secondary{background:var(--im-seo-mint);color:var(--im-seo-green)}
.im-seo-category-head{padding:34px 0}.im-seo-category-head p:last-child{color:var(--im-seo-muted);font-size:1.05rem}.im-seo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.im-seo-card{background:#fff;border:1px solid var(--im-seo-border);border-radius:18px;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}.im-seo-card:hover{transform:translateY(-3px);box-shadow:0 16px 30px rgba(10,74,63,.1)}.im-seo-card a{height:100%;display:flex;flex-direction:column;color:var(--im-seo-ink);text-decoration:none}.im-seo-card img{width:100%;height:220px;object-fit:contain;background:#f7faf8;padding:14px;box-sizing:border-box}.im-seo-card div{padding:16px}.im-seo-card h2{font-size:1rem;line-height:1.35;margin:0 0 8px}.im-seo-card p{margin:0;color:var(--im-seo-muted);font-size:.88rem}
.im-seo-empty{max-width:720px;margin:80px auto;text-align:center;background:#fff;border:1px solid var(--im-seo-border);border-radius:22px;padding:48px}.im-seo-empty h1{font-size:2rem}.im-seo-footer{padding:28px clamp(18px,4vw,64px);background:var(--im-seo-green-dark);color:#fff;text-align:center}.im-seo-footer a{color:#fff}.im-seo-footer p{margin:6px 0}
.im-seo-global-link{position:relative;z-index:2;display:flex;justify-content:center;padding:10px 16px;background:#eef6f2;border-top:1px solid #d9e4df}.im-seo-global-link a{color:#075f52;font-weight:800;text-decoration:none}
@media(max-width:900px){.im-seo-header{position:static;align-items:flex-start;flex-direction:column}.im-seo-header nav{justify-content:flex-start}.im-seo-product{grid-template-columns:1fr}.im-seo-product-media{min-height:280px}.im-seo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.im-seo-main{width:min(100% - 20px,1180px);padding-top:16px}.im-seo-header{padding:12px}.im-seo-header nav{display:grid;grid-template-columns:repeat(2,1fr);width:100%}.im-seo-header nav a{text-align:center;background:#f3f7f5}.im-seo-product{padding:18px;border-radius:18px}.im-seo-product-media{min-height:220px}.im-seo-details div{grid-template-columns:1fr;gap:4px}.im-seo-grid{grid-template-columns:1fr}.im-seo-card img{height:200px}.im-seo-actions{flex-direction:column}.im-seo-primary,.im-seo-secondary{width:100%;box-sizing:border-box}}
@media(prefers-reduced-motion:reduce){.im-seo-card{transition:none}}
.im-seo-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.im-seo-category-card{background:#fff;border:1px solid var(--im-seo-border);border-radius:18px;overflow:hidden}.im-seo-category-card a{display:block;height:100%;padding:24px;color:var(--im-seo-ink);text-decoration:none}.im-seo-category-card span{display:inline-block;margin-bottom:16px;padding:7px 10px;border-radius:999px;background:var(--im-seo-mint);color:var(--im-seo-green);font-size:.78rem;font-weight:800}.im-seo-category-card h2{margin:0 0 16px;font-size:1.15rem;line-height:1.35}.im-seo-category-card p{margin:0;color:var(--im-seo-green);font-weight:800}.im-seo-category-card:hover{box-shadow:0 16px 30px rgba(10,74,63,.1);transform:translateY(-2px)}
@media(max-width:900px){.im-seo-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.im-seo-category-grid{grid-template-columns:1fr}}

/* Responsive V5 — pagine prodotto e categoria statiche */
.im-seo-route,.im-seo-route *{box-sizing:border-box}.im-seo-route :where(img,svg,video){max-width:100%}.im-seo-route :where(h1,h2,h3,p,a,span,dd){overflow-wrap:anywhere}
@media(max-width:1024px){
  .im-seo-header{padding:14px 20px;gap:16px}.im-seo-header nav{gap:6px}.im-seo-header nav a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:9px 10px}
  .im-seo-main{width:min(100% - 28px,1180px);padding:22px 0 48px}.im-seo-product{grid-template-columns:minmax(250px,.85fr) minmax(0,1.15fr);gap:30px;padding:28px}.im-seo-product-media{min-height:320px}.im-seo-grid,.im-seo-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .im-seo-header{position:static;flex-direction:column;align-items:stretch;padding:12px}.im-seo-brand{width:100%;min-width:0}.im-seo-brand img{width:44px;height:44px}.im-seo-header nav{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.im-seo-header nav a{width:100%;text-align:center;background:#f3f7f5}
  .im-seo-main{width:calc(100% - 20px);padding-top:14px}.im-seo-breadcrumb{font-size:.82rem;margin-bottom:14px}.im-seo-product{grid-template-columns:1fr;gap:20px;padding:18px;border-radius:18px}.im-seo-product-media{min-height:220px;padding:16px;border-radius:16px}.im-seo-product h1,.im-seo-category-head h1{font-size:clamp(1.75rem,8vw,2.6rem);line-height:1.08}.im-seo-description{font-size:1rem;line-height:1.58}.im-seo-details div{grid-template-columns:1fr;gap:4px;padding:12px 14px}.im-seo-actions{display:grid;grid-template-columns:1fr}.im-seo-primary,.im-seo-secondary{width:100%;min-height:48px;box-sizing:border-box}.im-seo-grid,.im-seo-category-grid{grid-template-columns:1fr}.im-seo-card img{height:210px}.im-seo-footer{padding:24px 14px}
}
@media(max-width:420px){.im-seo-header nav{grid-template-columns:1fr}.im-seo-brand strong{font-size:.95rem}.im-seo-brand small{font-size:.76rem}.im-seo-main{width:calc(100% - 16px)}.im-seo-product{padding:14px}.im-seo-product-media{min-height:190px}.im-seo-card img{height:190px}}

/* Fix logo ufficiale I.M. Distribuzione - V10 */
.im-seo-brand img{width:88px;height:52px;object-fit:contain;object-position:center;border-radius:0;background:#fff;flex:0 0 auto}
@media(max-width:760px){.im-seo-brand img{width:76px;height:46px}}
@media(max-width:420px){.im-seo-brand img{width:68px;height:42px}}

/* V15 static SEO unified theme */
/* ---------------- STATIC SEO PAGES ---------------- */
body.im-seo-route{
  margin:0!important;background:var(--im15-bg)!important;color:var(--im15-ink)!important;
  font-family:var(--im15-font)!important
}
body.im-seo-route *{font-family:var(--im15-font)!important;box-sizing:border-box}
body.im-seo-route .im-seo-page{background:var(--im15-bg)!important;min-height:100vh}
body.im-seo-route .im-seo-header{
  position:sticky!important;top:0!important;z-index:1000!important;
  min-height:92px!important;padding:10px max(22px,calc((100% - 1340px)/2))!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:28px!important;
  background:linear-gradient(112deg,#07545d,#086a67)!important;
  border:0!important;box-shadow:0 10px 30px rgba(21,54,38,.15)!important
}
body.im-seo-route .im-seo-brand{display:grid!important;grid-template-columns:135px auto!important;align-items:center!important;gap:14px!important;text-decoration:none!important}
body.im-seo-route .im-seo-brand img{display:none!important}
body.im-seo-route .im-seo-brand::before{
  content:"";display:block;width:130px;height:65px;background:url('/assets/logo_im_compact.png') center/contain no-repeat;
}
body.im-seo-route .im-seo-brand strong{color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:18px!important}
body.im-seo-route .im-seo-brand small{color:#bfead1!important;-webkit-text-fill-color:#bfead1!important;font-size:10px!important;text-transform:uppercase!important;letter-spacing:.08em!important}
body.im-seo-route .im-seo-header nav{display:flex!important;gap:8px!important;align-items:center!important;flex-wrap:wrap!important;justify-content:flex-end!important}
body.im-seo-route .im-seo-header nav a{
  padding:11px 14px!important;border-radius:13px!important;text-decoration:none!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:12px!important;font-weight:800!important
}
body.im-seo-route .im-seo-header nav a:hover{background:rgba(255,255,255,.13)!important}
body.im-seo-route .im-seo-main{width:min(1340px,calc(100% - 34px))!important;max-width:1340px!important;margin:auto!important;padding:34px 0 60px!important}
body.im-seo-route .im-seo-breadcrumb{
  padding:12px 16px!important;border-radius:14px!important;background:var(--im15-surface)!important;
  box-shadow:var(--im15-inset)!important
}
body.im-seo-route .im-seo-product,
body.im-seo-route .im-seo-category-head,
body.im-seo-route .im-seo-card,
body.im-seo-route .im-seo-category-card,
body.im-seo-route .im-seo-category-copy{
  background:var(--im15-surface)!important;border:0!important;border-radius:22px!important;box-shadow:var(--im15-shadow)!important
}
body.im-seo-route .im-seo-product{padding:18px!important;gap:30px!important}
body.im-seo-route .im-seo-product-media{
  border-radius:17px!important;background:var(--im15-surface-2)!important;box-shadow:var(--im15-inset)!important;overflow:hidden!important
}
body.im-seo-route .im-seo-details > div{
  background:var(--im15-surface)!important;border:0!important;border-radius:14px!important;box-shadow:var(--im15-inset)!important
}
body.im-seo-route .im-seo-primary{
  background:linear-gradient(145deg,#17844e,#0d673b)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:0!important;border-radius:14px!important
}
body.im-seo-route .im-seo-secondary{
  background:var(--im15-surface)!important;color:#204130!important;-webkit-text-fill-color:#204130!important;border:0!important;border-radius:14px!important;box-shadow:var(--im15-shadow-sm)!important
}
body.im-seo-route .im-seo-footer{
  margin:0!important;padding:28px 20px!important;background:#12271b!important;color:#b9cbbf!important;border:0!important
}
body.im-seo-route .im-seo-footer a,
body.im-seo-route .im-seo-footer strong{color:#fff!important;-webkit-text-fill-color:#fff!important}

/* Responsive */
@media(max-width:1180px){
  body.imv15-home .imv14-header-main{grid-template-columns:250px minmax(300px,1fr) 190px!important}
  body.imv15-home .imv14-brand{grid-template-columns:120px 1fr!important}
  body.imv15-home .imv14-brand-logo{width:112px!important;height:60px!important}
  .imv15-header-row{grid-template-columns:240px minmax(280px,1fr) 190px;gap:16px}
  .imv15-brand{grid-template-columns:115px 1fr}.imv15-brand-mark{width:115px}.imv15-brand-mark img{width:110px}
  .imv15-actions{grid-template-columns:repeat(2,89px)}
  .imv15-action{font-size:11px}
}
@media(max-width:840px){
  .imv15-header-row{grid-template-columns:116px minmax(180px,1fr) 98px;gap:10px}
  .imv15-brand{grid-template-columns:112px}.imv15-brand-copy{display:none}.imv15-brand-mark{width:112px;height:60px}.imv15-brand-mark img{width:108px;height:55px}
  .imv15-actions{grid-template-columns:repeat(2,44px);gap:10px}.imv15-action{min-height:50px}.imv15-action span{display:none}
  .imv15-nav .imv15-shell{justify-content:flex-start;gap:7px}
  .imv15-footer-grid{grid-template-columns:1fr 1fr}
  body.im-seo-route .im-seo-header{align-items:flex-start!important;flex-direction:column!important}
}
@media(max-width:580px){
  body.imv15-home .imv14-header-main{
    grid-template-columns:120px auto!important;
    grid-template-areas:"brand actions" "search search"!important;
  }
  body.imv15-home .imv14-brand{grid-area:brand!important;grid-template-columns:115px!important}
  body.imv15-home .imv14-brand-copy{display:none!important}
  body.imv15-home .imv14-search{grid-area:search!important}
  body.imv15-home .imv14-header-actions{grid-area:actions!important}

  .imv15-header-row{
    grid-template-columns:120px auto;
    grid-template-areas:"brand actions" "search search";
    gap:10px 12px;padding:10px 0 13px
  }
  .imv15-brand{grid-area:brand}.imv15-search{grid-area:search}.imv15-actions{grid-area:actions}
  .imv15-footer-grid{grid-template-columns:1fr}
  .imv15-footer-bottom{flex-direction:column;justify-content:center;gap:5px;padding:12px 0}
  body.imv15-interior #root{padding-top:26px!important}
  body.imv15-interior #root main:not(.imb2b-shell){width:min(100% - 22px,1340px)}
  body.im-seo-route .im-seo-main{width:min(100% - 22px,1340px)!important}
}

/* V15 STATIC VARIABLE BRIDGE */
/* ============================================================
   I.M. DISTRIBUZIONE — V15 UNIFIED DESIGN SYSTEM
   ============================================================ */
:root{
  --im15-green:#0f6a3c;
  --im15-green-2:#16804b;
  --im15-deep:#07512f;
  --im15-teal:#075d63;
  --im15-teal-2:#0a6e72;
  --im15-ink:#173126;
  --im15-muted:#607269;
  --im15-bg:#edf2ee;
  --im15-surface:#edf2ee;
  --im15-surface-2:#f5f8f6;
  --im15-white:#fff;
  --im15-border:rgba(103,127,112,.14);
  --im15-shadow:10px 10px 24px rgba(104,123,111,.21),-10px -10px 24px rgba(255,255,255,.91);
  --im15-shadow-sm:6px 6px 14px rgba(104,123,111,.18),-6px -6px 14px rgba(255,255,255,.88);
  --im15-inset:inset 5px 5px 11px rgba(102,121,109,.17),inset -5px -5px 11px rgba(255,255,255,.91);
  --im15-font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI Variable","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

html{background:var(--im15-bg)}
body.imv15-site,
body.imv15-site *{font-family:var(--im15-font)!important;box-sizing:border-box}
body.imv15-site{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.imv15-raw-link-hidden,.imv15-legacy-chrome{display:none!important}
.imv15-shell{width:min(1340px,calc(100% - 34px));margin-inline:auto}



/* Fix contrasto: su mobile i pulsanti del menu avevano testo bianco su sfondo chiaro */
@media(max-width:900px){body.im-seo-route .im-seo-header nav a{background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.18)!important}}
