:root{--primary:#49c5b6;--secondary:#4fa3d9;--accent:#d9c2a3;--dark:#082f52;--text:#17304f;--light:#f6fbff}
*{margin:0;padding:0;box-sizing:border-box}
html,body{overflow-x:hidden;max-width:100%}
body{font-family:Inter,sans-serif;background:var(--light);color:var(--text);-webkit-font-smoothing:antialiased}
.hero{min-height:calc(100vh - 76px);display:flex;align-items:center;justify-content:center;padding:54px 5% 64px;background:radial-gradient(circle at 50% 15%,rgba(73,197,182,.20),transparent 38%),linear-gradient(180deg,rgba(255,255,255,.92),rgba(246,251,255,1))}
.hero-inner{width:100%;max-width:1280px;margin:0 auto}
.hero-heading{text-align:center;max-width:900px;margin:0 auto 38px}
.kicker{display:inline-flex;align-items:center;justify-content:center;padding:9px 16px;border-radius:999px;background:rgba(73,197,182,.10);color:#0b8d83;font-family:Manrope,sans-serif;font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;margin-bottom:18px}
.hero h1{font-family:Manrope,sans-serif;font-size:clamp(38px,5vw,68px);line-height:1.02;letter-spacing:-.055em;color:var(--dark);margin-bottom:18px}
.hero p{font-size:17px;line-height:1.75;color:#4d6882;max-width:760px;margin:0 auto}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.category-card{border:none;text-align:left;cursor:pointer;border-radius:34px;padding:24px 26px 22px;background:linear-gradient(180deg,#fff,#f7fbff);box-shadow:0 18px 46px rgba(8,36,58,.09);border:1px solid rgba(6,28,53,.055);transition:.42s cubic-bezier(.2,.8,.2,1);position:relative;overflow:hidden}
.category-card:before{content:"";position:absolute;inset:auto -40px -70px auto;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(73,197,182,.18),transparent 70%)}
.category-card:hover{transform:translateY(-8px);box-shadow:0 30px 78px rgba(8,36,58,.16)}
.category-icon{width:60px;height:60px;margin-bottom:10px}
.category-icon img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 20px rgba(73,197,182,.22))}
.category-card span{display:inline-block;font-family:Manrope,sans-serif;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#0b8d83;margin-bottom:12px}
.category-card h2{font-family:Manrope,sans-serif;font-size:24px;line-height:1.12;letter-spacing:-.045em;color:var(--dark);margin-bottom:14px}
.category-card p{font-size:14px;line-height:1.65;color:#526d86}
.category-count{position:absolute;right:22px;bottom:20px;font-family:Manrope,sans-serif;font-weight:800;font-size:13px;color:#0b8d83;background:rgba(73,197,182,.10);border-radius:999px;padding:8px 12px}
.category-modal-overlay{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(3,16,31,.58);backdrop-filter:blur(18px) saturate(130%);-webkit-backdrop-filter:blur(18px) saturate(130%);z-index:3000}
.category-modal-overlay.active{display:flex;animation:fadeIn .25s ease both}
.category-modal{width:min(1120px,100%);max-height:92vh;overflow:hidden;border-radius:36px;background:rgba(255,255,255,.94);box-shadow:0 34px 90px rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.38);position:relative;display:grid;grid-template-rows:auto 1fr}
.modal-header{padding:34px 42px 24px;border-bottom:1px solid rgba(8,47,82,.08)}
.modal-header span{display:inline-flex;padding:8px 12px;border-radius:999px;background:rgba(73,197,182,.10);color:#0b8d83;font-family:Manrope,sans-serif;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:12px}
.modal-header h2{font-family:Manrope,sans-serif;font-size:clamp(30px,4vw,46px);line-height:1.05;letter-spacing:-.05em;color:var(--dark)}
.close-modal{position:absolute;top:22px;right:22px;width:42px;height:42px;border:none;border-radius:50%;background:white;color:var(--dark);font-size:26px;cursor:pointer;box-shadow:0 10px 28px rgba(0,0,0,.12);z-index:5}
.products-carousel{position:relative;padding:26px 42px 42px;overflow:hidden;max-height:calc(92vh - 145px)}
.products-track{display:flex;gap:22px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:8px 58px 18px;scrollbar-width:none;align-items:stretch;overscroll-behavior:contain}
.products-track::-webkit-scrollbar{display:none}
.product-slide{flex:0 0 330px;scroll-snap-align:center;background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid rgba(6,28,53,.06);border-radius:30px;overflow-y:auto;max-height:calc(92vh - 230px);box-shadow:0 16px 44px rgba(8,36,58,.08);display:flex;flex-direction:column;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;cursor:pointer;transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease}
.product-slide:hover{transform:translateY(-4px);box-shadow:0 26px 58px rgba(8,36,58,.15);border-color:rgba(73,197,182,.28)}
.product-slide::-webkit-scrollbar{width:6px}.product-slide::-webkit-scrollbar-thumb{background:rgba(79,163,217,.35);border-radius:999px}
.product-image{height:170px!important;flex:0 0 auto;background:#edf7fb;overflow:hidden}
.product-image img{width:100%;height:100%;object-fit:cover;display:block}
.product-content{padding:24px;display:flex;flex-direction:column;gap:14px;flex:1;overflow:visible}
.product-content h3{font-family:Manrope,sans-serif;font-size:26px;line-height:1.05;letter-spacing:-.045em;color:var(--dark)}
.product-content p{font-size:14px;line-height:1.7;color:#4d6882}
.product-info{display:grid;gap:8px;margin-top:4px}
.info-box{background:rgba(73,197,182,.08);border-radius:18px;padding:11px}
.info-box strong{display:block;font-size:11px;font-family:Manrope,sans-serif;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#0b8d83;margin-bottom:5px}
.info-box span{font-size:13px;line-height:1.55;color:#405d78}
.product-footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,.84),#ffffff 45%);padding-top:14px;padding-bottom:2px}
.price{font-family:Manrope,sans-serif;font-size:24px;font-weight:800;color:#078f86}
.buy-btn,.details-btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:999px;background:linear-gradient(135deg,#49c5b6,#d9c2a3);color:#03263f;font-family:Manrope,sans-serif;font-weight:800;font-size:13px;border:none;cursor:pointer;white-space:nowrap}
.carousel-controls{display:flex;justify-content:center;gap:12px;margin-top:16px}
.carousel-controls button{width:44px;height:44px;border:none;border-radius:50%;background:#082f52;color:white;font-size:24px;cursor:pointer}
.side-arrow{position:absolute;top:118px!important;transform:none!important;width:48px;height:48px;border:none;border-radius:50%;background:rgba(8,47,82,.92);color:white;font-size:30px;font-weight:300;cursor:pointer;z-index:20;box-shadow:0 14px 34px rgba(0,0,0,.18);transition:.25s ease;display:flex;align-items:center;justify-content:center}
.side-arrow:hover{transform:scale(1.08)!important;background:#4fa3d9}.side-prev{left:14px}.side-next{right:14px}
.area-switcher{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.area-switcher button{border:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:11px 15px;border-radius:999px;background:rgba(73,197,182,.12);color:#08335c;font-family:Manrope,sans-serif;font-size:12px;font-weight:800;transition:.25s ease}
.area-switcher button:hover{background:linear-gradient(135deg,#49c5b6,#d9c2a3);transform:translateY(-2px)}

/* Upgrade 29 - Popup singolo prodotto dentro macroarea */
.single-product-overlay{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(3,16,31,.68);backdrop-filter:blur(20px) saturate(135%);-webkit-backdrop-filter:blur(20px) saturate(135%);z-index:4200}
.single-product-overlay.active{display:flex;animation:fadeIn .25s ease both}
.single-product-modal{width:min(900px,100%);display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border-radius:34px;background:rgba(255,255,255,.96);box-shadow:0 36px 96px rgba(0,0,0,.34);border:1px solid rgba(255,255,255,.44);position:relative;animation:singleCardIn .34s cubic-bezier(.2,.85,.25,1) both}
.single-product-image{min-height:430px;background:#edf7fb;position:relative;overflow:hidden}
.single-product-image img{width:100%;height:100%;object-fit:cover;display:block}.single-product-image:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(6,28,53,.16));pointer-events:none}
.single-product-content{padding:42px;display:flex;flex-direction:column;justify-content:center}.single-product-badge{align-self:flex-start;padding:8px 13px;border-radius:999px;background:rgba(73,197,182,.12);color:#1f4f7a;font-family:Manrope,sans-serif;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:18px}.single-product-content h3{font-family:Manrope,sans-serif;font-size:clamp(32px,4vw,46px);line-height:1.04;letter-spacing:-.05em;color:var(--dark);margin-bottom:16px}.single-product-content p{font-size:15px;line-height:1.8;color:#405974;margin-bottom:20px}.single-product-info{display:grid;grid-template-columns:1fr;gap:10px;margin:4px 0 22px}.single-product-price{font-family:Manrope,sans-serif;font-size:30px;font-weight:800;color:#078f86;margin-bottom:24px}.single-product-actions{display:flex;gap:12px;flex-wrap:wrap}.single-product-actions a,.single-product-actions button{text-decoration:none;border:none;display:inline-flex;align-items:center;justify-content:center;padding:14px 20px;border-radius:999px;font-size:13px;font-family:Manrope,sans-serif;font-weight:800;cursor:pointer}.single-product-whatsapp{background:linear-gradient(135deg,#49c5b6,#d9c2a3);color:#03263f}.single-product-secondary{background:#082f52;color:white}.single-product-close{position:absolute;top:18px;right:18px;width:42px;height:42px;border-radius:50%;border:none;background:rgba(255,255,255,.9);color:#082f52;font-size:26px;cursor:pointer;z-index:5;box-shadow:0 10px 28px rgba(0,0,0,.12)}
@keyframes singleCardIn{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}

.footer{padding:64px 5% 34px;background:linear-gradient(135deg,#4fa3d9,#2d6ea1);color:white}.footer-inner{max-width:1180px;margin:0 auto;display:flex;justify-content:space-between;gap:34px;flex-wrap:wrap}.footer p,.footer a{color:white;line-height:1.8;text-decoration:none}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@media(max-width:1100px){.hero{min-height:auto}.category-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.header{padding:8px 4%}.header-inner{flex-direction:column;gap:7px}.logo-img{width:112px}.nav{justify-content:center;gap:6px}.nav a{font-size:12px;padding:7px 10px}.hero{padding:42px 5% 58px}.hero-heading{margin-bottom:28px}.hero h1{font-size:38px}.hero p{font-size:15.5px}.category-grid{grid-template-columns:1fr;gap:16px}.category-card{padding:18px 20px 16px;border-radius:28px}
.category-icon{width:54px;height:54px;margin-bottom:8px}.category-modal-overlay{padding:12px;align-items:flex-end}.category-modal{max-height:94vh;border-radius:28px 28px 0 0}.modal-header{padding:28px 24px 18px}.products-carousel{padding:18px 18px 28px;max-height:calc(94vh - 130px)}.product-slide{flex:0 0 86vw;max-height:calc(94vh - 190px)}.product-image{height:145px!important}.product-content{padding:18px;gap:11px}.product-content h3{font-size:24px}.product-content p,.info-box span{font-size:13px}.info-box strong{font-size:10px}.close-modal{top:16px;right:16px}.side-arrow{top:92px!important;width:42px;height:42px;font-size:26px;background:rgba(8,47,82,.88)}.side-prev{left:6px}.side-next{right:6px}.products-track{padding-left:44px;padding-right:44px}.area-switcher{gap:8px;margin-top:18px}.area-switcher button{flex:1;font-size:11px;padding:10px 11px}.single-product-overlay{padding:12px;align-items:flex-end}.single-product-modal{grid-template-columns:1fr;border-radius:28px 28px 0 0;max-height:92vh;overflow:auto}.single-product-image{min-height:235px;height:235px}.single-product-content{padding:28px}.single-product-content h3{font-size:34px}.single-product-actions a,.single-product-actions button{width:100%}.single-product-close{top:12px;right:12px}}


/* Upgrade 30 - Card prodotto essenziali nel carousel e macroaree più ordinate */
.category-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.category-card p{
  margin-bottom:18px;
  max-width:92%;
}
.category-count{
  position:relative !important;
  right:auto !important;
  bottom:auto !important;
  margin-top:auto;
  align-self:flex-start;
  z-index:2;
}
.product-slide{
  overflow:hidden;
}
.product-content{
  min-height:260px;
}
.product-content p{
  margin-bottom:16px;
}
.product-content .product-info{
  display:none !important;
}
.product-footer{
  position:relative;
  bottom:auto;
  margin-top:auto;
  background:transparent;
  padding-top:10px;
}

@media(max-width:720px){
  .category-card{
    min-height:230px;
  }
  .category-card h2{
    max-width:94%;
  }
  .category-card p{
    max-width:96%;
    margin-bottom:16px;
  }
  .product-content{
    min-height:230px;
  }
}


/* Step 5E - Icone informative macroaree prodotti
   Non modifica le immagini prodotto o le schede prodotto. */
.category-icon{
  width:72px !important;
  height:72px !important;
  margin-bottom:12px !important;
}
.category-icon img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}

@media(max-width:720px){
  .category-icon{
    width:84px !important;
    height:84px !important;
    margin-bottom:20px !important;
  }
}


/* Step 6 - Foglietto illustrativo prodotto */
.single-product-more{
border:none;
cursor:pointer;
display:inline-flex;
align-items:center;
justify-content:center;
padding:13px 18px;
border-radius:999px;
background:linear-gradient(135deg,var(--primary),var(--accent));
color:#03263f;
font-family:Manrope,sans-serif;
font-weight:800;
font-size:13px;
text-decoration:none;
transition:transform .25s ease, box-shadow .25s ease;
}
.single-product-more:hover{
transform:translateY(-2px);
box-shadow:0 14px 30px rgba(73,197,182,.22);
}

.leaflet-overlay{
position:fixed;
inset:0;
display:none;
align-items:center;
justify-content:center;
padding:22px;
background:rgba(3,16,31,.72);
backdrop-filter:blur(12px);
-webkit-backdrop-filter:blur(12px);
z-index:4200;
}
.leaflet-overlay.active{
display:flex;
}
.leaflet-modal{
width:min(980px,100%);
max-height:92vh;
background:#ffffff;
border-radius:30px;
box-shadow:0 34px 90px rgba(0,0,0,.32);
position:relative;
overflow:hidden;
display:grid;
grid-template-rows:auto 1fr auto;
border:1px solid rgba(255,255,255,.42);
}
.leaflet-close{
position:absolute;
top:18px;
right:18px;
width:42px;
height:42px;
border:none;
border-radius:50%;
background:#eef7fb;
color:var(--dark);
font-size:26px;
cursor:pointer;
z-index:3;
box-shadow:0 10px 28px rgba(0,0,0,.12);
}
.leaflet-header{
padding:28px 34px 18px;
border-bottom:1px solid rgba(8,47,82,.08);
padding-right:76px;
}
.leaflet-header span{
display:inline-flex;
padding:8px 12px;
border-radius:999px;
background:rgba(73,197,182,.10);
color:#0b8d83;
font-family:Manrope,sans-serif;
font-size:10px;
font-weight:800;
letter-spacing:.14em;
text-transform:uppercase;
margin-bottom:10px;
}
.leaflet-header h3{
font-family:Manrope,sans-serif;
font-size:clamp(24px,3vw,34px);
line-height:1.08;
letter-spacing:-.045em;
color:var(--dark);
}

.leaflet-viewer img{
display:block;
width:auto;
max-width:100%;
height:auto;
max-height:none;
margin:0 auto;
object-fit:contain;
border-radius:18px;
box-shadow:0 16px 44px rgba(8,36,58,.10);
}
.leaflet-note{
padding:14px 24px 20px;
font-size:12px;
line-height:1.55;
color:#526d86;
text-align:center;
background:#fff;
}
@media(max-width:720px){
.leaflet-overlay{
padding:10px;
align-items:flex-start;
}
.leaflet-modal{
border-radius:22px;
max-height:94vh;
margin-top:10px;
}
.leaflet-header{
padding:22px 22px 14px;
padding-right:68px;
}
.leaflet-close{
top:14px;
right:14px;
width:38px;
height:38px;
font-size:24px;
}

.leaflet-note{
font-size:11px;
padding:12px 16px 16px;
}
}

/* Step Menu Uniforme - allineamento menu come Contatti */
@media(max-width:720px){
}



/* Step 8 - Icone informative macroaree prodotti ingrandite
   Non modifica immagini prodotto né foglietti illustrativi. */
.category-card{
  min-height:320px !important;
}
.category-icon{
  width:72px !important;
  height:72px !important;
  margin:0 auto 12px 0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.category-icon img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  display:block !important;
}

/* Step 9 - Prodotti macroaree visibili senza slot vuoti */
.products-track{
  justify-content:flex-start !important;
  gap:22px !important;
  padding-left:12px !important;
  padding-right:12px !important;
  scroll-padding-left:12px !important;
  scroll-padding-right:12px !important;
}
/* Il carosello resta allineato a sinistra (parte dal 1o prodotto): mai
   justify-content:center su un contenitore che scorre, perche' spinge la prima
   card fuori schermo. Le card vengono centrate SOLO quando entrano tutte senza
   scroll (.no-overflow lo imposta il JS): in quel caso non c'e' overflow, quindi
   il centraggio e' sicuro. Metodo compatibile con Safari iPhone. */
.products-carousel.no-overflow .products-track{
  justify-content:center !important;
}
.products-track.product-count-1 .product-slide,
.products-track.product-count-2 .product-slide,
.products-track.product-count-3 .product-slide{
  flex:0 0 min(330px, 100%) !important;
}
.products-track.product-count-1 ~ .carousel-controls,
.products-track.product-count-1 ~ .carousel-controls button{
  display:none !important;
}
.products-carousel.no-overflow .side-arrow,
.products-carousel.no-overflow .carousel-controls{
  display:none !important;
}
.product-slide{
  scroll-snap-align:center !important;
}

@media(max-width:720px){
  .category-card{
    min-height:250px !important;
  }
  .category-icon{
    width:96px !important;
    height:96px !important;
    margin-bottom:102px !important;
  }
  .products-track{
    padding-left:8px !important;
    padding-right:8px !important;
    scroll-padding-left:8px !important;
    scroll-padding-right:8px !important;
    justify-content:flex-start !important;
  }
  .products-track.product-count-1{
    justify-content:center !important;
  }
  .products-track.product-count-1 .product-slide{
    flex:0 0 86vw !important;
  }
  .products-track.product-count-2 .product-slide,
  .products-track.product-count-3 .product-slide{
    flex:0 0 82vw !important;
  }
}


/* Step 14 - Sfondo prodotto ottanio/turchese trasparente */
:root{
  --safira-product-bg: rgba(73, 197, 182, 0.18);
  --safira-product-bg-soft: rgba(79, 163, 217, 0.10);
}

.product-image,
.single-product-image{
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.42), rgba(255,255,255,0) 58%),
    linear-gradient(135deg, var(--safira-product-bg), var(--safira-product-bg-soft)) !important;
}

.single-product-image:after{
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(73,197,182,.06)) !important;
}


/* Fix 14.1 Premium - Riquadro immagine prodotto bianco/grigio */
:root{
  --safira-product-panel:#ffffff;
}

.product-slide .product-image,
.single-product-image{
  background:
    radial-gradient(circle at 50% 28%,
      rgba(255,255,255,.99) 0%,
      rgba(252,252,252,.98) 38%,
      rgba(245,247,249,.98) 74%,
      rgba(236,240,243,.99) 100%) !important;
  box-shadow:
      inset 0 1px 0 rgba(255,255,255,.95),
      inset 0 -12px 28px rgba(8,47,82,.04) !important;
  border-bottom:1px solid rgba(8,47,82,.05);
}

.product-slide .product-image::after,
.single-product-image:after{
  background:linear-gradient(
      180deg,
      rgba(255,255,255,0),
      rgba(8,47,82,.025)
  ) !important;
}

.product-slide .product-image img,
.single-product-image img{
  object-fit:contain !important;
  background:transparent !important;
}
/* Modifica 3 - Menu rapido aree terapeutiche */
.quick-area-menu{
  width:100%;
  max-width:980px;
  margin:30px auto 34px;
  padding:22px;
  border-radius:30px;
  background:rgba(255,255,255,.74);
  border:1px solid rgba(73,197,182,.22);
  box-shadow:0 20px 54px rgba(8,36,58,.10);
  backdrop-filter:blur(14px) saturate(130%);
  -webkit-backdrop-filter:blur(14px) saturate(130%);
}
.quick-area-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:16px;
  font-family:Manrope,sans-serif;
  font-size:11px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#0b8d83;
}
.quick-area-title:before,
.quick-area-title:after{
  content:"";
  width:34px;
  height:1px;
  background:rgba(73,197,182,.46);
}
.quick-area-list{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.quick-area-link{
  border:none;
  cursor:pointer;
  min-height:58px;
  padding:13px 14px;
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff,#f5fbff);
  color:#08335c;
  font-family:Manrope,sans-serif;
  font-size:13px;
  font-weight:800;
  line-height:1.18;
  text-align:center;
  box-shadow:0 10px 26px rgba(8,36,58,.07);
  border:1px solid rgba(6,28,53,.06);
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.quick-area-link:hover,
.quick-area-link:focus-visible{
  transform:translateY(-3px);
  background:linear-gradient(135deg,var(--primary),var(--accent));
  color:#03263f;
  box-shadow:0 18px 38px rgba(73,197,182,.22);
}
.quick-area-link:active{
  transform:translateY(-1px) scale(.98);
}
.category-card{
  scroll-margin-top:120px;
}
.category-card.quick-scroll-focus{
  box-shadow:0 30px 78px rgba(73,197,182,.24), 0 0 0 2px rgba(73,197,182,.28) !important;
  border-color:rgba(73,197,182,.38) !important;
}

@media(max-width:900px){
  .quick-area-menu{
    margin:26px auto 30px;
    padding:18px;
    border-radius:26px;
  }
  .quick-area-list{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:720px){
  .quick-area-menu{
    margin:22px auto 26px;
    padding:16px;
    border-radius:24px;
  }
  .quick-area-title{
    font-size:10px;
    margin-bottom:14px;
  }
  .quick-area-title:before,
  .quick-area-title:after{
    width:22px;
  }
  .quick-area-list{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .quick-area-link{
    min-height:54px;
    padding:12px 10px;
    border-radius:18px;
    font-size:12px;
  }
  .category-card{
    scroll-margin-top:150px;
  }
}


/* Modifica 3B - Menu rapido snello orizzontale, centrato e funzionale */
.quick-area-menu{
  width:100% !important;
  max-width:820px !important;
  margin:26px auto 30px !important;
  padding:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
.quick-area-title{
  display:none !important;
}
.quick-area-list{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px 12px !important;
  width:100% !important;
}
.quick-area-link{
  appearance:none !important;
  border:none !important;
  min-height:0 !important;
  height:38px !important;
  width:auto !important;
  padding:0 18px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.70) !important;
  color:#08335c !important;
  font-family:Manrope,Inter,sans-serif !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1 !important;
  letter-spacing:-.01em !important;
  text-align:center !important;
  white-space:nowrap !important;
  box-shadow:0 8px 22px rgba(8,36,58,.065) !important;
  border:1px solid rgba(73,197,182,.20) !important;
  transition:transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease !important;
}
.quick-area-link:hover,
.quick-area-link:focus-visible{
  transform:translateY(-2px) !important;
  background:linear-gradient(135deg,#49c5b6,#d9c2a3) !important;
  color:#03263f !important;
  box-shadow:0 14px 30px rgba(73,197,182,.22) !important;
  outline:none !important;
}
.quick-area-link:active{
  transform:translateY(0) scale(.98) !important;
}
.category-card{
  scroll-margin-top:120px !important;
}
.category-card.quick-scroll-focus{
  box-shadow:0 30px 78px rgba(73,197,182,.24),0 0 0 2px rgba(73,197,182,.30) !important;
  border-color:rgba(73,197,182,.45) !important;
}
@media(max-width:720px){
  .quick-area-menu{
    max-width:100% !important;
    margin:22px auto 28px !important;
  }
  .quick-area-list{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    max-width:620px !important;
    margin:0 auto !important;
  }
  .quick-area-link{
    height:36px !important;
    padding:0 10px !important;
    font-size:12px !important;
    width:100% !important;
  }
  .category-card{
    scroll-margin-top:150px !important;
  }
}


/* Fix v20 - Menu rapido senza JS bloccante: evidenziazione tramite anchor :target */
.category-card:target{
  box-shadow:0 30px 78px rgba(73,197,182,.24),0 0 0 2px rgba(73,197,182,.30) !important;
  border-color:rgba(73,197,182,.45) !important;
}
.category-card{
  scroll-margin-top:120px !important;
}
@media(max-width:720px){
  .category-card{scroll-margin-top:150px !important;}
}

/* Fix v21 - Scroll separato del menu rapido via anchor HTML/CSS
   Nessun JavaScript: non interferisce con l'apertura delle macroaree. */
html{
  scroll-behavior:smooth;
}
.category-card{
  scroll-margin-top:max(110px, calc((100vh - 330px) / 2)) !important;
}
.category-card:target{
  border-color:rgba(73,197,182,.48) !important;
  box-shadow:0 30px 78px rgba(73,197,182,.25), 0 0 0 2px rgba(73,197,182,.32) !important;
}
@media(max-width:720px){
  .category-card{
    scroll-margin-top:145px !important;
  }
}


/* v22 - Footer macroarea con pill "Apri" + badge prodotti
   Il pulsante Apri è visivo: la card resta cliccabile tramite JS esistente. */
.category-footer{
  width:100%;
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  position:relative;
  z-index:2;
}

.category-open-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-width:92px;
  height:34px;
  padding:0 16px;
  border-radius:999px;
  background:rgba(73,197,182,.10);
  color:#0b8d83;
  font-family:Manrope,Inter,sans-serif;
  font-size:13px;
  font-weight:800;
  line-height:34px;
  white-space:nowrap;
  box-shadow:0 8px 20px rgba(73,197,182,.08);
  transition:transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.category-card:hover .category-open-pill{
  transform:translateY(-1px);
  background:rgba(73,197,182,.16);
  box-shadow:0 12px 26px rgba(73,197,182,.15);
}

.category-footer .category-count{
  position:relative !important;
  right:auto !important;
  bottom:auto !important;
  margin:0 !important;
  align-self:center !important;
  white-space:nowrap;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

@media(max-width:720px){
  .category-footer{
    gap:10px;
  }
  .category-open-pill{
    min-width:84px;
    height:32px;
    font-size:12px;
    padding:0 14px;
  }
  .category-footer .category-count{
    min-height:32px;
    font-size:12px;
  }
}

/* ============================================================
   FIX TAP/ZOOM iPhone (v22.7)
   Impedisce il doppio-tap-zoom di Safari sui controlli e rende
   i tap singoli immediati. NON disabilita il pinch-zoom della
   pagina (resta accessibile): agisce solo sugli elementi tappabili.
   ============================================================ */
.category-card,
.product-slide,
.side-arrow,
.carousel-controls button,
.area-switcher button,
.close-modal,
.single-product-close,
.single-product-more,
.single-product-secondary,
.single-product-actions button,
.single-product-actions a,
.leaflet-close,
.cart-add-btn,
.details-btn,
.quick-area-link{
  touch-action: manipulation;
}

/* ============================================================
   V42 — RIFINITURA HERO PAGINA PRODOTTI
   - Maggiore distanza tra menu principale fisso e contenuto Hero
   - Menu rapido leggermente più arioso
   - Icone macroaree più grandi e uniformi
   - Nessuna modifica a popup, caroselli, prodotti o JS
   ============================================================ */

.hero{
  padding:135px 5% 64px !important;
}

.quick-area-menu{
  margin-top:32px !important;
  margin-bottom:34px !important;
}

.quick-area-link{
  height:42px !important;
  padding:0 20px !important;
  border-radius:999px !important;
  box-shadow:0 10px 24px rgba(8,36,58,.07) !important;
}

.category-icon{
  width:72px !important;
  height:72px !important;
  margin:0 auto 12px 0 !important;
}

@media(max-width:1100px){
  .hero{
    padding-top:125px !important;
  }

  .category-icon{
    width:56px !important;
    height:56px !important;
  }
}

@media(max-width:720px){
  .hero{
    padding:120px 5% 58px !important;
  }

  .hero-heading{
    margin-bottom:30px !important;
  }

  .quick-area-menu{
    margin:24px auto 30px !important;
  }

  .quick-area-link{
    height:40px !important;
    padding:0 12px !important;
    font-size:12px !important;
  }

  .category-icon{
    width:62px !important;
    height:62px !important;
    margin-bottom:10px !important;
  }
}

@media(max-width:390px){
  .hero{
    padding-top:116px !important;
  }

  .quick-area-link{
    height:38px !important;
    font-size:11.5px !important;
  }

  .category-icon{
    width:58px !important;
    height:58px !important;
  }
}

/* ============================================================
   V43 — MENU RAPIDO PREMIUM SFUMATO
   - Stesse dimensioni dei tasti V42
   - Solo testo, senza icone
   - Testo bianco e perfettamente centrato
   - Gradiente verde ottanio → turchese → celestino
   - Hover e focus discreti
   ============================================================ */

.quick-area-link{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  background:linear-gradient(
    135deg,
    #1f8fa3 0%,
    #49c5b6 52%,
    #8fd7e7 100%
  ) !important;
  color:#ffffff !important;
  border:1px solid rgba(255,255,255,.26) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 10px 24px rgba(31,143,163,.18) !important;
  text-shadow:0 2px 8px rgba(8,47,82,.18) !important;
  font-weight:800 !important;
  letter-spacing:.01em !important;
  text-decoration:none !important;
  overflow:hidden !important;
}

.quick-area-link:hover,
.quick-area-link:focus-visible{
  background:linear-gradient(
    135deg,
    #238fa5 0%,
    #56cbbb 50%,
    #9adff0 100%
  ) !important;
  color:#ffffff !important;
  transform:translateY(-2px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    0 14px 30px rgba(31,143,163,.26) !important;
  filter:brightness(1.04) !important;
  outline:none !important;
}

.quick-area-link:active{
  transform:translateY(0) scale(.985) !important;
  filter:brightness(.98) !important;
  box-shadow:
    inset 0 2px 8px rgba(8,47,82,.12),
    0 7px 18px rgba(31,143,163,.18) !important;
}

.quick-area-link[aria-current="true"],
.quick-area-link.is-active{
  color:#ffffff !important;
  box-shadow:
    0 0 0 3px rgba(73,197,182,.24),
    0 12px 30px rgba(31,143,163,.30) !important;
}

@media(max-width:720px){
  .quick-area-link{
    height:40px !important;
    min-height:40px !important;
    padding:0 12px !important;
    font-size:12px !important;
    line-height:1.15 !important;
  }
}

@media(max-width:390px){
  .quick-area-link{
    height:38px !important;
    min-height:38px !important;
    padding:0 9px !important;
    font-size:11.5px !important;
  }
}

/* ============================================================
   V45 — FOOTER UNIFICATO SAFIRA
   Modifica limitata esclusivamente alla parte finale azzurra.
   ============================================================ */
.footer{
  padding:64px 7% 32px !important;
  background:linear-gradient(135deg,#4fa3d9,#2d6ea1) !important;
  color:#fff !important;
}
.footer-grid{
  max-width:1130px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:46px;
}
.footer-grid h3,.footer-grid h4{
  margin:0 0 12px;
  color:#fff;
  font-family:'Manrope',sans-serif;
  font-weight:800;
}
.footer-grid h3{font-size:20px}
.footer-grid h4{font-size:16px}
.footer-grid p,.footer-grid a{
  color:#fff;
  font-family:'Inter',sans-serif;
  font-size:14px;
  line-height:1.8;
  text-decoration:none;
}
.footer-grid a{
  display:block;
  width:fit-content;
  margin-bottom:7px;
}
.footer-grid p a{
  display:inline;
  margin:0;
}
.legal-footer-links{
  max-width:1130px;
  margin:22px auto 0;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.18);
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  align-items:center;
  font-family:'Inter',sans-serif;
  font-size:13px;
}
.legal-footer-links a{
  color:#d7e3ef;
  text-decoration:none;
}
.legal-footer-links span{
  color:rgba(255,255,255,.35);
}
@media(max-width:820px){
  .footer{padding:58px 6% 30px !important}
  .footer-grid{
    grid-template-columns:1fr;
    gap:30px;
    text-align:center;
  }
  .footer-grid a{
    margin-left:auto;
    margin-right:auto;
  }
  .footer-grid p a{
    display:inline;
    margin:0;
  }
}
@media(max-width:480px){
  .footer{padding:54px 6% 28px !important}
  .footer-grid p,.footer-grid a{font-size:13px}
  .legal-footer-links{font-size:12px;gap:8px}
}

/* ============================================================
   V46 — MENU LATERALE FLOTTANTE CONDIVISO
   Stesse immagini, dimensioni, posizione e animazioni della Home.
   ============================================================ */
body button.cart-float,
body a.search-float,
body a.whatsapp,
body .cart-float,
body .search-float,
body .whatsapp{
  position:fixed !important;
  right:16px !important;
  width:62px !important;
  height:62px !important;
  min-width:62px !important;
  min-height:62px !important;
  max-width:62px !important;
  max-height:62px !important;
  border-radius:0 !important;
  background:none !important;
  background-color:transparent !important;
  background-image:none !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:pointer !important;
  z-index:900 !important;
  overflow:visible !important;
  text-decoration:none !important;
  -webkit-tap-highlight-color:transparent !important;
  touch-action:manipulation !important;
  transition:transform .22s ease, filter .22s ease !important;
  filter:drop-shadow(0 6px 14px rgba(6,28,53,.20)) !important;
  font-size:0 !important;
  line-height:0 !important;
  color:transparent !important;
  text-shadow:none !important;
}

body .cart-float{bottom:180px !important}
body .search-float{bottom:102px !important}
body .whatsapp{bottom:24px !important}

body .cart-float::before,
body .search-float::before,
body .whatsapp::before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:contain !important;
}

body .cart-float::before{
  background-image:url('../assets/img/icon-carrello-v2.png') !important;
}
body .search-float::before{
  background-image:url('../assets/img/icon-ricerca-v2.png') !important;
}
body .whatsapp::before{
  background-image:url('../assets/img/icon-whatsapp-v2.png') !important;
}

body .cart-float::after,
body .search-float::after,
body .whatsapp::after{
  content:none !important;
  display:none !important;
}

body .cart-float:hover,
body .search-float:hover,
body .whatsapp:hover{
  transform:translateY(-3px) scale(1.06) !important;
  filter:drop-shadow(0 10px 20px rgba(31,143,163,.32)) !important;
}

body .cart-float:active,
body .search-float:active,
body .whatsapp:active{
  transform:scale(.95) !important;
}

body .cart-float:focus-visible,
body .search-float:focus-visible,
body .whatsapp:focus-visible{
  outline:2px solid #49c5b6 !important;
  outline-offset:4px !important;
  border-radius:12px !important;
}

body .cart-float .cart-count,
body .cart-float [data-cart-count]{
  position:absolute !important;
  top:-2px !important;
  right:-2px !important;
  min-width:24px !important;
  height:24px !important;
  padding:0 6px !important;
  border-radius:999px !important;
  border:0 !important;
  background:#123a63 !important;
  color:#fff !important;
  font-family:'Inter',sans-serif !important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-shadow:0 2px 6px rgba(6,28,53,.30) !important;
  z-index:3 !important;
}

@media(max-width:390px){
  body button.cart-float,
  body a.search-float,
  body a.whatsapp,
  body .cart-float,
  body .search-float,
  body .whatsapp{
    right:12px !important;
    width:56px !important;
    height:56px !important;
    min-width:56px !important;
    min-height:56px !important;
    max-width:56px !important;
    max-height:56px !important;
  }

  body .cart-float{bottom:180px !important}
  body .search-float{bottom:102px !important}
  body .whatsapp{bottom:24px !important}
}

/* ============================================================
   TASTO "APRI SCHEDA" — allineato al design degli altri tasti
   In alcuni punti risultava rettangolare: qui viene forzato a pillola,
   con la stessa altezza e lo stesso carattere degli altri pulsanti.
   ============================================================ */
.single-product-more,
button.single-product-more,
#singleProductMore,
.product-modal-whatsapp,
button.product-modal-whatsapp,
#modalOpenLeaflet{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:16px 24px !important;   /* area di tocco >= 44px */
  min-height:46px !important;
  border:none !important;
  border-radius:999px !important;                       /* PILLOLA, non rettangolo */
  background:linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color:#03263f !important;
  font-family:Manrope, sans-serif !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1 !important;
  text-decoration:none !important;
  cursor:pointer !important;
  box-shadow:0 10px 24px rgba(73,197,182,.20) !important;
  transition:transform .25s ease, box-shadow .25s ease !important;
  touch-action:manipulation;
  -webkit-appearance:none;
  appearance:none;
}
.single-product-more:hover,
.product-modal-whatsapp:hover,
#modalOpenLeaflet:hover{
  transform:translateY(-2px) !important;
  box-shadow:0 16px 32px rgba(73,197,182,.28) !important;
}

/* ============================================================
   V47 — SFONDI ILLUSTRATI MACROAREE
   ============================================================ */
.category-card{
  background-color:#fff !important;
  background-repeat:no-repeat !important;
  background-position:right center !important;
  background-size:cover !important;
  isolation:isolate;
}

.category-card::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  border-radius:inherit;
  /* Velatura piu' leggera: l'immagine di sfondo si vede bene, ma resta
     abbastanza densa dove c'e' il testo (a sinistra) da tenerlo leggibile. */
  background:linear-gradient(
      100deg,
      rgba(255,255,255,.93) 0%,
      rgba(255,255,255,.80) 34%,
      rgba(255,255,255,.55) 58%,
      rgba(255,255,255,.24) 80%,
      rgba(255,255,255,.08) 100%
    );
}

.category-card > *{
  position:relative;
  z-index:2;
}

.category-card-gastro{
  background-image:url('../assets/img/backgrounds/bg-gastro.webp') !important;
}
.category-card-cardio{
  background-image:url('../assets/img/backgrounds/bg-cardio.webp') !important;
}
.category-card-neuro{
  background-image:url('../assets/img/backgrounds/bg-neuro.webp') !important;
}
.category-card-energy{
  background-image:url('../assets/img/backgrounds/bg-energy.webp') !important;
}
.category-card-uro{
  background-image:url('../assets/img/backgrounds/bg-uro.webp') !important;
}

.category-card:hover{
  background-position:calc(100% + 8px) center !important;
}

@media(max-width:1100px){
  .category-card{
    background-size:auto 100% !important;
  }
  .category-card::after{
    background:linear-gradient(
      100deg,
      rgba(255,255,255,.93) 0%,
      rgba(255,255,255,.80) 34%,
      rgba(255,255,255,.55) 58%,
      rgba(255,255,255,.24) 80%,
      rgba(255,255,255,.08) 100%
    );
  }
}

@media(max-width:720px){
  .category-card{
    background-size:auto 100% !important;
  }
  .category-card::after{
    background:linear-gradient(
      100deg,
      rgba(255,255,255,.93) 0%,
      rgba(255,255,255,.80) 34%,
      rgba(255,255,255,.55) 58%,
      rgba(255,255,255,.24) 80%,
      rgba(255,255,255,.08) 100%
    );
  }
  .category-card h2,
  .category-card p{
    max-width:74% !important;
  }
}

@media(max-width:420px){
  .category-card::after{
    background:linear-gradient(
      100deg,
      rgba(255,255,255,.93) 0%,
      rgba(255,255,255,.80) 34%,
      rgba(255,255,255,.55) 58%,
      rgba(255,255,255,.24) 80%,
      rgba(255,255,255,.08) 100%
    );
  }
  .category-card h2,
  .category-card p{
    max-width:78% !important;
  }
}

/* ============================================================
   VISUALIZZATORE PDF (PDF.js)
   Le pagine del PDF vengono disegnate qui dentro, una sotto l'altra:
   si scorre per sfogliarle. Essendo vettoriale, lo zoom RIDISEGNA il
   testo, che resta sempre nitido (non si sgrana mai).
   ============================================================ */
.leaflet-viewer{
  position:relative !important;
  background:#eef3f7 !important;
  padding:14px !important;
  display:block !important;          /* pagine IMPILATE, non affiancate */
  flex-direction:column !important;
  align-items:center !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  -webkit-overflow-scrolling:touch;
  min-height:56vh;
  max-height:66vh;
  border-radius:0 !important;
  text-align:center !important;
}
.leaflet-viewer .pdf-pagina{
  display:block !important;
  margin:0 auto 14px !important;
  max-width:100% !important;
  width:auto !important;
  height:auto !important;
  background:#ffffff;
  border-radius:8px;
  box-shadow:0 8px 22px rgba(8,36,58,.14);
}
.leaflet-viewer .pdf-pagina:last-child{margin-bottom:0}

.pdf-attesa,
.pdf-messaggio{
  text-align:center;
  padding:40px 24px;
  color:#5b7a93;
  font-size:14px;
}
.pdf-messaggio a{color:#1f8fa3; font-weight:700; text-decoration:underline}

.leaflet-zoom{
  display:flex; align-items:center; justify-content:center;
  gap:10px; padding:14px 20px 4px;
}
.leaflet-zoom-btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:46px; height:46px; padding:0 16px;
  border:none; border-radius:999px;
  background:#eef7fb; color:#082f52;
  font-family:Manrope, sans-serif; font-size:19px; font-weight:800;
  cursor:pointer; box-shadow:0 6px 16px rgba(8,36,58,.08);
  transition:transform .2s ease, background .2s ease;
  touch-action:manipulation;
}
.leaflet-zoom-btn:hover{transform:translateY(-2px); background:#e2f1f8}
.leaflet-zoom-btn:active{transform:scale(.96)}
.leaflet-zoom-reset{
  font-size:12px; letter-spacing:.10em; text-transform:uppercase;
  background:linear-gradient(135deg, var(--primary), var(--accent));
  color:#03263f;
}
@media (max-width:720px){
  .leaflet-viewer{min-height:50vh; max-height:60vh; padding:10px !important}
  .leaflet-zoom{padding:12px 16px 2px; gap:8px}
  .leaflet-zoom-btn{min-width:44px; height:44px}
}

/* ============================================================
   TASTO "APRI SCHEDA" — a pillola, come gli altri tasti
   ============================================================ */
.single-product-more,
button.single-product-more,
#singleProductMore{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:16px 24px !important;
  min-height:46px !important;
  border:none !important;
  border-radius:999px !important;
  background:linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color:#03263f !important;
  font-family:Manrope, sans-serif !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1 !important;
  cursor:pointer !important;
  box-shadow:0 10px 24px rgba(73,197,182,.20) !important;
  transition:transform .25s ease, box-shadow .25s ease !important;
  -webkit-appearance:none; appearance:none;
}
.single-product-more:hover{
  transform:translateY(-2px) !important;
  box-shadow:0 16px 32px rgba(73,197,182,.28) !important;
}

/* ============================================================
   SCHEDA PRODOTTO — immagine piu' piccola su telefono
   Prima l'immagine era 235px e spingeva i tasti (Aggiungi, Apri scheda,
   Torna alla macroarea) fuori dallo schermo. Ridotta cosi' i tasti
   restano visibili senza dover scorrere.
   ============================================================ */
@media (max-width:720px){
  .single-product-image{
    min-height:150px !important;
    height:150px !important;
  }
  .single-product-image img{
    object-fit:contain !important;
    padding:8px !important;
  }
  .single-product-content{
    padding:20px 22px 22px !important;
  }
  /* riquadri ingredienti/caratteristiche un filo piu' compatti */
  .single-product-content .info-box{
    padding:12px 14px !important;
  }
}
@media (max-width:720px) and (max-height:740px){
  .single-product-image{min-height:120px !important; height:120px !important}
}
@media (max-width:720px) and (max-height:670px){
  .single-product-image{min-height:100px !important; height:100px !important}
  .single-product-content{padding:16px 20px 18px !important}
}


/* Schermi bassi: comprimo tutta la scheda cosi' i 3 tasti entrano
   sempre senza scorrere. */
@media (max-width:720px) and (max-height:740px){
  .single-product-content{padding:16px 20px 16px !important}
  .single-product-content h3{font-size:26px !important; margin-bottom:6px !important}
  .single-product-content > p{font-size:13.5px !important; margin-bottom:10px !important; line-height:1.4 !important}
  .single-product-content .info-box{padding:10px 13px !important; margin-bottom:8px !important}
  .single-product-content .info-box span{font-size:12.5px !important; line-height:1.4 !important}
  .single-product-content .info-box strong{font-size:10px !important}
  .single-product-price{font-size:26px !important; margin:8px 0 12px !important}
  .single-product-actions{gap:8px !important}
  .single-product-actions a, .single-product-actions button{padding:13px 18px !important; min-height:46px !important}
}
@media (max-width:720px) and (max-height:670px){
  .single-product-content h3{font-size:23px !important}
  .single-product-content > p{font-size:13px !important; margin-bottom:8px !important}
  .single-product-price{font-size:23px !important; margin:6px 0 10px !important}
  .single-product-actions a, .single-product-actions button{padding:12px 16px !important; min-height:44px !important}
}


/* Il modale non supera mai l'altezza dello schermo; se il contenuto
   e' piu' alto (schermi molto bassi), scorre internamente cosi' i
   tasti restano sempre raggiungibili. */
@media (max-width:720px){
  .single-product-modal{
    max-height:94vh !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
  }
}
@media (max-width:720px) and (max-height:710px){
  .single-product-image{min-height:92px !important; height:92px !important}
  .single-product-content{padding:14px 20px 16px !important}
  .single-product-content .info-box{padding:9px 12px !important; margin-bottom:7px !important}
}

/* ============================================================
   SCHEDA PRODOTTO — immagine piu' piccola (correzione definitiva)
   L'immagine era definita 7 volte con altezze diverse (fino a 430px):
   su alcuni telefoni vinceva quella grande e spingeva i tasti
   "Aggiungi al carrello / Apri scheda / Torna alla macroarea" fuori
   schermo. Qui la fisso piccola con una regola che vince su tutte,
   e rendo il modale scorrevole come rete di sicurezza.
   ============================================================ */
.single-product-modal{
  max-height:94vh !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch;
}
.single-product-image{
  min-height:150px !important;
  height:150px !important;
  max-height:150px !important;
}
.single-product-image img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;   /* la confezione si vede intera, non tagliata */
  padding:10px !important;
}
.single-product-content{
  padding:22px 24px 24px !important;
}
/* tasti sempre comodi da toccare */
.single-product-actions{
  gap:10px !important;
  margin-top:14px !important;
}

/* schermi bassi (iPhone SE e simili): immagine ancora piu' compatta */
@media (max-height:740px){
  .single-product-image{min-height:120px !important; height:120px !important; max-height:120px !important}
  .single-product-content{padding:18px 20px 20px !important}
}
@media (max-height:670px){
  .single-product-image{min-height:96px !important; height:96px !important; max-height:96px !important}
  .single-product-content{padding:14px 18px 16px !important}
}

/* ============================================================
   BOX AREE BENESSERE — icone piu' grandi + testo allineato a sinistra
   1) Icone raddoppiate (da ~60px a 120px).
   2) Il paragrafo aveva un margin-left di 34px che lo staccava dal
      bordo: rimosso, cosi' il testo parte allineato al titolo.
   ============================================================ */
.category-card .category-icon{
  width:120px !important;
  height:120px !important;
  margin-bottom:14px !important;
}
.category-card .category-icon img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}

/* testo descrittivo attaccato al bordo sinistro, come il titolo */
.category-card p{
  margin-left:0 !important;
  padding-left:0 !important;
  text-indent:0 !important;
  text-align:left !important;
}

@media (max-width:720px){
  .category-card .category-icon{
    width:112px !important;
    height:112px !important;
  }
}

/* ============================================================
   VISUALIZZATORE PDF — zoom stabile via CSS transform
   Il contenitore .pdf-contenuto viene ingrandito/spostato con transform
   (leggero, non ridisegna). touch-action:none impedisce a Safari di
   fare il suo zoom nativo, che prima chiudeva il modale.
   ============================================================ */
.leaflet-viewer{
  /* pan-y: lo scorrimento verticale con un dito resta al browser (fluido),
     il pinch a due dita lo gestiamo noi. Cosi' si scorre E si zooma. */
  touch-action:pan-y !important;
  overscroll-behavior:contain !important;
  overflow-y:auto !important;           /* scorrimento verticale per vedere tutte le pagine */
  overflow-x:hidden !important;
  -webkit-overflow-scrolling:touch;
  position:relative !important;
}
/* quando si e' ingranditi, blocco lo scroll nativo: il dito serve a spostare */
.leaflet-viewer.pdf-zoomato{
  touch-action:none !important;
  overflow:hidden !important;
}
.leaflet-viewer .pdf-contenuto{
  transform-origin:center top;
  display:block;
  width:100%;
}
/* durante il pinch/trascinamento tolgo la transizione per fluidita' */
.leaflet-viewer.pdf-zoomato .pdf-contenuto{
  transition:none;
  cursor:grab;
}
.leaflet-viewer .pdf-pagina{
  display:block !important;
  margin:0 auto 12px !important;
  max-width:100% !important;
  background:#fff;
  border-radius:8px;
  box-shadow:0 8px 22px rgba(8,36,58,.14);
  -webkit-user-select:none; user-select:none;
  -webkit-user-drag:none;
}
.leaflet-viewer .pdf-pagina:last-child{margin-bottom:0}


/* --- ZOOM ATTIVO --- */
.leaflet-viewer.pdf-zoomato .pdf-contenuto{
  transition:transform .12s ease-out;
  will-change:transform;
}

/* ============================================================
   DOPPIO PREZZO: pubblico barrato + scontato in evidenza
   ============================================================ */
.prezzo-old{
  display:inline-block;
  font-size:0.62em;              /* piu' piccolo del prezzo scontato */
  font-weight:600;
  color:#9aa8b4;
  text-decoration:line-through;
  margin-right:8px;
  vertical-align:middle;
}
.prezzo-nuovo{
  display:inline-block;
  font-weight:800;
  color:#078f86;                 /* verde brand, in evidenza */
  vertical-align:middle;
}
/* nella scheda dettaglio il prezzo e' piu' grande */
#singleProductPrice .prezzo-old{ font-size:0.55em; }


/* il blocco prezzo (barrato + scontato) su una riga, allineato in basso */
.price{ display:flex !important; align-items:baseline !important; gap:8px !important; flex-wrap:wrap; }
.price .prezzo-old{ margin-right:0 !important; }


/* ============================================================
   V23 — CORREZIONI SOLO DESKTOP (PC)
   Tutte le regole sono dentro @media (min-width:721px):
   il telefono NON viene toccato.

   1) Modale "macro area": prezzo e tasti delle schede prodotto
      restavano tagliati fuori dal riquadro.
      Causa: l'altezza delle schede era calcolata con una formula
      fissa - calc(92vh - 230px) - che non teneva conto dell'altezza
      reale dell'intestazione (titolo lungo + tasti Area precedente /
      successiva). Il pezzo in eccedenza veniva nascosto da
      "overflow:hidden".
      Soluzione: niente piu' calcoli in vh, il carosello si adatta
      allo spazio realmente disponibile e la scheda, se proprio non
      ci sta, scorre al suo interno con prezzo e tasti sempre fissi
      in basso.

   2) Scheda prodotto singola: immagine bloccata a 150px di altezza.
      Regola nata per il telefono ma scritta senza media query,
      quindi valeva anche su PC dove la colonna e' alta ~450px.
   ============================================================ */

@media (min-width:721px){

  /* ---------- 1) MODALE MACRO AREA ---------- */
  .category-modal{
    max-height:92vh !important;
    overflow:hidden !important;
  }

  /* intestazione un filo piu' compatta: recupera spazio per le schede */
  .modal-header{
    padding:26px 42px 18px !important;
  }
  .modal-header h2{
    font-size:clamp(26px,2.7vw,38px) !important;
  }
  .area-switcher{
    margin-top:16px !important;
  }

  /* il carosello riempie lo spazio che resta, senza calcoli fissi */
  .products-carousel{
    display:flex !important;
    flex-direction:column !important;
    min-height:0 !important;
    max-height:none !important;
    justify-content:center !important;
    padding:18px 42px 24px !important;
    overflow:hidden !important;
  }
  /* flex:0 1 auto = la fila prende l'altezza della scheda piu' alta,
     ma puo' rimpicciolirsi se lo spazio non basta (invece di essere
     tagliata). Cosi' le schede non si gonfiano a vuoto. */
  .products-track{
    flex:0 1 auto !important;
    min-height:0 !important;
    align-items:stretch !important;
    padding-top:6px !important;
    padding-bottom:12px !important;
  }
  .carousel-controls{
    flex:0 0 auto !important;
    margin-top:10px !important;
  }

  /* la scheda non esce mai dal riquadro: al massimo scorre dentro */
  .product-slide{
    max-height:100% !important;
    overflow-y:auto !important;
  }
  .product-content{
    min-height:0 !important;
  }

  /* prezzo e tasti restano ancorati in basso e sempre visibili */
  .product-slide .product-footer{
    position:sticky !important;
    bottom:0 !important;
    margin-top:auto !important;
    background:linear-gradient(180deg,rgba(255,255,255,0),#ffffff 42%) !important;
    padding-top:12px !important;
    padding-bottom:4px !important;
  }

  /* ---------- 2) SCHEDA PRODOTTO SINGOLA ---------- */
  .single-product-modal{
    max-height:92vh !important;
    overflow-y:auto !important;
  }
  .single-product-image{
    min-height:420px !important;
    height:auto !important;
    max-height:none !important;
    align-self:stretch !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:30px !important;
  }
  .single-product-image img{
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    padding:0 !important;
    margin:0 auto !important;
  }
}

/* PC con schermo basso (portatili 1280x800 e simili): tutto un po'
   piu' compatto cosi' non serve scorrere. */
@media (min-width:721px) and (max-height:820px){
  .modal-header{padding:20px 42px 14px !important}
  .area-switcher{margin-top:12px !important}
  .products-carousel .product-image{height:140px !important}
  .products-carousel .product-content{padding:18px !important; gap:10px !important}
  .products-carousel .product-content h3{font-size:22px !important}
  .single-product-image{min-height:300px !important; padding:20px !important}
}
