/* ====================================================================
   Tenveo Italia — Sito ufficiale distributore Econnet srl
   Design: stile WeDoInnov — bianco, blu, animazioni fluide
   Carousel hero + schede prodotto + split-view zoom
   Pure CSS — no framework, no dipendenze
   ==================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #FFFFFF;
  color: #1A2533;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Design tokens ---------- */
:root {
  --blue: #0064FF;
  --blue-bright: #00B8E6;
  --blue-gradient: linear-gradient(135deg, #0064FF, #00B8E6);
  --navy: #053C80;
  --navy-deep: #0B1726;
  --text: #1A2533;
  --text-muted: #5C6B7A;
  --text-dim: #8A99A8;
  --bg-white: #FFFFFF;
  --bg-soft: #F4F7FB;
  --bg-tint: #EAF2FB;
  --border: #E1E7EE;
  --border-strong: #C7D2DD;
  --shadow-sm: 0 1px 3px rgba(11,23,38,.06), 0 1px 2px rgba(11,23,38,.04);
  --shadow: 0 4px 14px rgba(11,23,38,.08), 0 2px 6px rgba(11,23,38,.05);
  --shadow-lg: 0 18px 40px rgba(11,23,38,.12), 0 6px 14px rgba(11,23,38,.07);
  --shadow-blue: 0 8px 24px rgba(0,100,255,.22);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --container: 1240px;
  --ease: cubic-bezier(.25,.46,.45,.94);
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--navy-deep); }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
p { color: var(--text-muted); }
.lead { font-size: 1.12rem; color: var(--text-muted); max-width: 620px; }
.grad-text {
  background: var(--blue-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue);
  padding: 6px 14px; border: 1px solid #CCE0FB; border-radius: 100px;
  background: #F0F6FF; margin-bottom: 18px; font-weight: 500;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; background: var(--blue);
  border-radius: 50%; box-shadow: 0 0 8px rgba(0,100,255,.4);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 100px; font-weight: 600; font-size: .95rem;
  transition: all .3s var(--ease); white-space: nowrap;
}
.btn-primary {
  background: var(--blue-gradient); color: #FFF; box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,100,255,.32); }
.btn-ghost {
  background: #FFF; color: var(--navy); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid #EEF2F7; transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.97); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; color: var(--navy-deep); }
.brand-logo { height: 38px; width: auto; }
.brand-logo img { height: 100%; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: .6rem; color: var(--text-muted); font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 16px; border-radius: 100px; font-size: .92rem; font-weight: 500;
  color: var(--text-muted); transition: all .25s var(--ease);
}
.nav-links a:hover { color: var(--blue); background: #F0F6FF; }
.nav-links a.active { color: var(--blue); background: #F0F6FF; font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: #FFF;
  align-items: center; justify-content: center; color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ====================================================================
   NAV DROPDOWN — Categorie prodotti (Telecamere PTZ / Speakerphone /
   Controller PTZ / Video Switcher). Si apre su hover e focus-within.
   ==================================================================== */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-caret {
  width: 13px; height: 13px; flex: none;
  transition: transform .2s var(--ease);
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret,
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 248px; margin: 0; padding: 6px; list-style: none;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 1000;
}
.nav-dropdown-menu li a {
  display: block; padding: 11px 14px; border-radius: 9px;
  font-size: .92rem; font-weight: 500; color: var(--text);
  white-space: nowrap; transition: all .18s var(--ease);
}
.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a:focus-visible { background: #F0F6FF; color: var(--blue); }
.nav-dropdown-menu li a.active { color: var(--blue); background: #F0F6FF; font-weight: 600; }

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* ---------- HERO SPLIT (stile WeDoInnov) ---------- */
.hero {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(0,100,255,.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 30%, rgba(0,184,230,.05), transparent 60%),
    linear-gradient(180deg, #FFF 0%, var(--bg-soft) 100%);
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-title { margin-bottom: 20px; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 520px; margin-bottom: 32px; }
.hero-sub strong { color: var(--navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 36px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat .num { font-size: 1.9rem; font-weight: 800; color: var(--navy); font-family: var(--mono); }
.hero-stat .lbl { font-size: .84rem; color: var(--text-muted); }
.hero-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; background: #FFF;
}
.hero-visual img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.hero-badge {
  position: absolute; bottom: 20px; left: 20px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong); padding: 10px 16px;
  border-radius: 100px; font-size: .82rem; font-family: var(--mono);
  color: var(--navy); font-weight: 600; box-shadow: var(--shadow); z-index: 2;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px; background: var(--blue);
  border-radius: 50%; box-shadow: 0 0 10px rgba(0,100,255,.5);
  animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.75)} }

/* ====================================================================
   CAROUSEL (hero novità — autoplay, frecce, dots)
   ==================================================================== */
.carousel {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  background: #FFF;
}
.carousel-track {
  display: flex; transition: transform .6s var(--ease);
  will-change: transform;
}
.carousel-slide {
  min-width: 100%; width: 100%; flex-shrink: 0;
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: linear-gradient(135deg, #FFF 0%, var(--bg-tint) 100%);
  overflow: hidden;
}
.carousel-slide-content { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.carousel-slide-tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  background: var(--blue-gradient); color: #FFF;
  font-size: .74rem; font-weight: 700; padding: 6px 14px;
  border-radius: 100px; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: var(--shadow-blue); margin-bottom: 20px;
}
.carousel-slide h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.carousel-slide p { font-size: 1rem; color: var(--text-muted); margin-bottom: 20px; max-width: 440px; }
.carousel-slide-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.carousel-slide-chips .chip {
  font-size: .78rem; background: #FFF; border: 1px solid var(--border-strong);
  color: var(--navy); padding: 5px 12px; border-radius: 100px; font-weight: 500;
}
.carousel-slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.carousel-slide-media {
  position: relative; background: linear-gradient(135deg, var(--bg-tint), var(--bg-soft));
  display: grid; place-items: center; overflow: hidden; min-height: 320px;
}
.carousel-slide-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 32px;
  transition: transform .5s var(--ease);
}
.carousel-slide:hover .carousel-slide-media img { transform: scale(1.04); }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.95); border: 1px solid var(--border-strong);
  display: grid; place-items: center; color: var(--navy);
  box-shadow: var(--shadow); transition: all .25s var(--ease);
}
.carousel-arrow:hover { background: var(--blue); color: #FFF; border-color: var(--blue); }
.carousel-arrow-prev { left: 16px; }
.carousel-arrow-next { right: 16px; }
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 100px;
  background: rgba(11,23,38,.18); transition: all .3s var(--ease);
}
.carousel-dot.active { background: var(--blue); width: 28px; }
.carousel-progress {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--blue-gradient); z-index: 10;
  transition: width .1s linear;
}

/* ====================================================================
   CARD PRODOTTO (stile WeDoInnov con chips specs)
   ==================================================================== */
.prod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.prod-card {
  background: #FFF; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all .35s var(--ease); display: flex; flex-direction: column;
}
.prod-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: #B8D4F8;
}
.prod-media {
  position: relative; aspect-ratio: 16/11; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-tint), var(--bg-soft));
  display: grid; place-items: center;
}
.prod-media img { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: transform .5s var(--ease); }
.prod-card:hover .prod-media img { transform: scale(1.06); }
.prod-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--blue-gradient); color: #FFF;
  font-size: .7rem; font-weight: 700; padding: 5px 12px;
  border-radius: 100px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: var(--shadow-blue); z-index: 2;
}
.prod-badge-new {
  background: linear-gradient(120deg, #DC2626, #F59E0B);
}
.prod-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.prod-sub { font-size: .82rem; color: var(--blue); font-family: var(--mono); margin-bottom: 12px; line-height: 1.4; }
.prod-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.prod-chips .chip {
  font-size: .72rem; background: #F0F6FF; border: 1px solid #D6E6FB;
  color: var(--navy); padding: 4px 10px; border-radius: 100px;
}
.prod-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid #EEF2F7;
}
.prod-price { font-size: 1.3rem; font-weight: 800; color: var(--navy-deep); font-family: var(--mono); }
.prod-price .cur { font-size: .85rem; color: var(--blue); margin-right: 2px; }
.prod-link {
  font-size: .86rem; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.prod-link svg { width: 16px; height: 16px; transition: transform .25s; }
.prod-card:hover .prod-link svg { transform: translateX(4px); }

/* ====================================================================
   SEZIONE CATEGORIE (stile WeDoInnov — numbered sections)
   ==================================================================== */
.cat-section { margin-bottom: 72px; }
.cat-header {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px;
  padding-bottom: 14px; border-bottom: 2px solid var(--bg-tint);
}
.cat-num {
  font-family: var(--mono); font-size: .8rem; color: var(--blue);
  background: #F0F6FF; padding: 4px 12px; border-radius: 100px;
  border: 1px solid #D6E6FB; font-weight: 600; white-space: nowrap;
}
.cat-header h2 { font-size: 1.7rem; }
.cat-count { font-size: .85rem; color: var(--text-dim); margin-left: auto; font-family: var(--mono); }
.cat-desc { color: var(--text-muted); font-size: .95rem; margin-bottom: 28px; max-width: 720px; }

/* ====================================================================
   PARTNERSHIP / STATS / SOLUZIONI (stile WeDoInnov)
   ==================================================================== */
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.partner-card {
  background: #FFF; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 36px; box-shadow: var(--shadow-sm);
}
.partner-card h3 { margin-bottom: 8px; }
.partner-role { color: var(--blue); font-family: var(--mono); font-size: .8rem; margin-bottom: 16px; }
.partner-card > p { font-size: .92rem; margin-bottom: 18px; }
.partner-list { display: flex; flex-direction: column; gap: 10px; }
.partner-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .88rem; color: var(--text);
}
.partner-list li::before {
  content: ''; flex: 0 0 16px; height: 16px; margin-top: 3px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

.stats-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; text-align: center;
}
.stat-item .num {
  font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 800; font-family: var(--mono);
  background: var(--blue-gradient);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 6px;
}
.stat-item .lbl { font-size: .88rem; color: var(--text-muted); }

.sol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.sol-card {
  background: #FFF; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow-sm);
  transition: all .35s var(--ease);
}
.sol-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #B8D4F8; }
.sol-icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: linear-gradient(135deg, #F0F6FF, var(--bg-tint));
  border: 1px solid #D6E6FB; display: grid; place-items: center;
  margin-bottom: 18px; color: var(--blue);
}
.sol-icon svg { width: 26px; height: 26px; }
.sol-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.sol-card p { font-size: .88rem; margin-bottom: 14px; }
.sol-link { color: var(--blue); font-size: .84rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ====================================================================
   CERT BAND / CTA / FOOTER
   ==================================================================== */
.cert-band { border-top: 1px solid #EEF2F7; border-bottom: 1px solid #EEF2F7; padding: 26px 0; background: #FFF; }
.cert-row { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.cert { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-weight: 600; font-size: .95rem; opacity: .75; }
.cert:hover { opacity: 1; color: var(--navy); }
.cert svg { width: 22px; height: 22px; color: var(--blue); }

.cta-band {
  border-radius: var(--radius-lg); padding: 60px 48px; text-align: center;
  border: 1px solid #CCE0FB;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0,100,255,.09), transparent 70%),
    linear-gradient(135deg, var(--bg-tint), var(--bg-soft));
}
.cta-band p { max-width: 540px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.site-footer { margin-top: auto; background: var(--navy-deep); color: #C9D4E0; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { margin-bottom: 18px; color: #FFF; }
.footer-brand .brand-logo { filter: brightness(0) invert(1); }
.footer-brand .brand-text small { color: #8A99A8; }
.footer-brand p { font-size: .88rem; margin-bottom: 20px; max-width: 320px; color: #8A99A8; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #FFF; margin-bottom: 18px; font-family: var(--mono); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .9rem; color: #AEB9C4; transition: color .2s; }
.footer-col a:hover { color: #FFF; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: #AEB9C4; margin-bottom: 12px; }
.footer-contact li svg { width: 18px; height: 18px; color: var(--blue-bright); flex: 0 0 18px; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .8rem; color: #8A99A8; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  display: grid; place-items: center; color: #AEB9C4; transition: all .25s;
}
.social-row a:hover { color: #FFF; border-color: var(--blue); background: rgba(0,100,255,.15); }

/* ====================================================================
   PAGINA PRODOTTO DETTAGLIO
   ==================================================================== */
.product-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(0,100,255,.06), transparent 55%),
    linear-gradient(180deg, #FFF 0%, var(--bg-soft) 100%);
}
.product-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-gallery { position: sticky; top: 100px; min-width: 0; }
.product-gallery > * { min-width: 0; }
.gallery-main {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: linear-gradient(135deg, var(--bg-tint), var(--bg-soft));
  aspect-ratio: 4/3; display: grid; place-items: center; box-shadow: var(--shadow-lg);
  cursor: crosshair;
}
.gallery-main img#gallery-main-img { width: 100%; height: 100%; object-fit: cover; cursor: crosshair; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.gallery-thumb {
  width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid var(--border); cursor: pointer; transition: all .25s;
  background: var(--bg-soft);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.gallery-thumb:hover { border-color: var(--blue); transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,100,255,.15); }

/* Split-view zoom */
.zoom-panel {
  position: absolute; top: 0; left: 100%; margin-left: 16px;
  width: 100%; height: 100%; background-color: #FFF; background-repeat: no-repeat;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  pointer-events: none; z-index: 50; overflow: hidden;
}
.zoom-panel.active { opacity: 1; visibility: visible; }
.zoom-marker {
  position: absolute; border: 1.5px solid rgba(255,255,255,.9);
  background: rgba(0,100,255,.12);
  box-shadow: 0 0 0 1px var(--blue), 0 0 8px rgba(0,0,0,.2);
  pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 10;
}
.zoom-marker.active { opacity: 1; }

.product-info { padding-top: 8px; }
.product-breadcrumb { display: flex; gap: 8px; font-size: .82rem; color: var(--text-dim); margin-bottom: 18px; font-family: var(--mono); }
.product-breadcrumb span { color: var(--blue); }
.product-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.badge-new {
  background: linear-gradient(120deg, #DC2626, #F59E0B); color: #FFF;
  font-size: .76rem; font-weight: 700; padding: 6px 14px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .05em;
  box-shadow: 0 4px 14px rgba(220,38,38,.3);
}
.badge-model {
  background: #F0F6FF; color: var(--blue); border: 1px solid #D6E6FB;
  font-size: .78rem; font-weight: 600; padding: 6px 14px; border-radius: 100px; font-family: var(--mono);
}
.product-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.product-tagline { font-size: 1.05rem; color: var(--blue); font-family: var(--mono); margin-bottom: 22px; font-weight: 500; }
.product-keyspecs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.keyspec-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px;
  background: var(--bg-soft); border-radius: var(--radius-sm); border: 1px solid #EEF2F7;
}
.keyspec-item svg { width: 20px; height: 20px; color: var(--blue); flex: 0 0 20px; margin-top: 2px; }
.keyspec-item .k { font-size: .7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }
.keyspec-item .v { font-size: .9rem; font-weight: 600; color: var(--navy-deep); }
.product-price-block {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 22px;
}
.price-label { font-size: .76rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.price-value { font-size: 2.1rem; font-weight: 800; color: var(--navy-deep); font-family: var(--mono); }
.price-value .cur { font-size: 1.1rem; color: var(--blue); margin-right: 4px; }
.price-note { font-size: .82rem; color: var(--text-muted); margin-top: 6px; }
/* Placeholder statico "€ -" — prezzo reale in arrivo da prezzi.js (listino XML) */
.price-pending { opacity: .5; color: var(--text-dim); }
.price-pending .cur { color: var(--text-dim); }
/* Disponibilità (DISPONIBILE TRUE/FALSE nel listino XML) */
.price-iva { font-size: .82rem; margin-top: 8px; padding: 8px 12px; border-radius: 9px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; line-height: 1.35; }
.price-iva::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.price-iva.in-stock { color: #0A7D3C; background: #E6F6EC; border: 1px solid #BCE5CB; font-weight: 600; }
.price-iva.in-stock::before { background: #18A558; box-shadow: 0 0 0 3px rgba(24,165,88,.18); }
.price-iva.on-order { color: var(--text-muted); background: #F1F4F8; border: 1px solid var(--border); }
.price-iva.on-order::before { background: var(--text-dim); }
/* Prezzo su richiesta — when XML listino has empty/missing price */
.price-on-request, .prod-price.price-on-request { font-size: .9rem !important; font-weight: 600; color: var(--text-muted); font-family: var(--body-font, inherit); letter-spacing: 0; }
.price-on-request-label { color: var(--text-muted); font-weight: 600; font-size: .9rem; font-family: var(--body-font, inherit); }
.product-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.product-trust { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: var(--text-muted); }
.product-trust span { display: inline-flex; align-items: center; gap: 6px; }
.product-trust svg { width: 16px; height: 16px; color: var(--blue); }

.product-section { padding: 60px 0; border-top: 1px solid #EEF2F7; }
.product-section h2 { margin-bottom: 14px; font-size: 1.75rem; }
.pfeatures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 30px; }
.pfeature-card { background: #FFF; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.pfeature-icon {
  width: 48px; height: 48px; border-radius: 12px; background: #F0F6FF;
  border: 1px solid #D6E6FB; display: grid; place-items: center; margin-bottom: 14px; color: var(--blue);
}
.pfeature-icon svg { width: 24px; height: 24px; }
.pfeature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pfeature-card p { font-size: .9rem; }

.spec-table { width: 100%; border-collapse: collapse; background: #FFF; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.spec-table tr { border-bottom: 1px solid #EEF2F7; }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th, .spec-table td { padding: 14px 20px; text-align: left; font-size: .9rem; overflow-wrap: anywhere; }
.spec-table th {
  background: var(--bg-soft); color: var(--text-muted); font-weight: 500;
  font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; width: 32%;
}
.spec-table td { color: var(--navy-deep); font-weight: 500; }

.usecases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 30px; }
.usecase-card { background: #FFF; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.usecase-icon { width: 52px; height: 52px; border-radius: 50%; background: #F0F6FF; display: grid; place-items: center; margin: 0 auto 12px; color: var(--blue); }
.usecase-icon svg { width: 26px; height: 26px; }
.usecase-card h4 { font-size: .96rem; margin-bottom: 5px; }
.usecase-card p { font-size: .8rem; }

.box-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 26px; }
.box-item {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: #FFF; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.box-item svg { width: 24px; height: 24px; color: var(--blue); flex: 0 0 24px; }
.box-item .t { font-weight: 600; font-size: .88rem; color: var(--navy-deep); }
.box-item .q { font-size: .76rem; color: var(--text-muted); }

.compat-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-top: 30px; }
.compat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); }
.compat-item svg { width: 34px; height: 34px; color: var(--blue); }
.compat-item span { font-size: .8rem; font-weight: 500; }

/* ---------- Pagina hero (inner pages) ---------- */
.page-hero {
  padding: 72px 0 52px; border-bottom: 1px solid #EEF2F7;
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(0,100,255,.06), transparent 60%),
    linear-gradient(180deg, #FFF 0%, var(--bg-soft) 100%);
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { max-width: 620px; font-size: 1.06rem; }
.breadcrumb { display: flex; gap: 8px; font-size: .82rem; color: var(--text-dim); margin-bottom: 18px; font-family: var(--mono); }
.breadcrumb span { color: var(--blue); }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card { background: #FFF; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.contact-card .ic {
  width: 46px; height: 46px; border-radius: 12px; background: #F0F6FF;
  border: 1px solid #D6E6FB; display: grid; place-items: center;
  margin-bottom: 14px; color: var(--blue);
}
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h4 { margin-bottom: 6px; }
.form-card { background: #FFF; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 13px 16px; background: var(--bg-soft);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--navy-deep); font-size: .95rem; transition: all .25s;
}
.form-control:focus { outline: none; border-color: var(--blue); background: #FFF; box-shadow: 0 0 0 3px rgba(0,100,255,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none; background: #DCFCE7; border: 1px solid rgba(22,163,74,.3);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 20px;
  color: #16A34A; font-size: .9rem;
}
.form-success.show { display: block; }

/* ---------- Scroll top / Toast ---------- */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px;
  border-radius: 12px; background: var(--blue-gradient); color: #FFF;
  display: grid; place-items: center; box-shadow: var(--shadow-blue);
  z-index: 90; opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all .3s var(--ease);
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top svg { width: 22px; height: 22px; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--navy-deep); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm); padding: 14px 22px; color: #FFF;
  font-size: .9rem; box-shadow: var(--shadow-lg); z-index: 300;
  display: flex; align-items: center; gap: 10px; opacity: 0; transition: all .4s var(--ease);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Animazioni reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ---------- Media queries ---------- */
@media (max-width: 1100px), (pointer: coarse) {
  .zoom-panel, .zoom-marker { display: none !important; }
  .gallery-main, .gallery-main img#gallery-main-img { cursor: zoom-in; }
}
@media (max-width: 980px) {
  .hero-grid, .product-hero-grid, .partner-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 540px; }
  .carousel-slide { grid-template-columns: 1fr; }
  .carousel-slide-media { min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .product-gallery { position: static; }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #FFF;
    border-bottom: 1px solid var(--border); padding: 16px 24px 24px; gap: 6px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.mobile-open a { padding: 12px 16px; }
  /* Nel pannello mobile il dropdown delle categorie resta sempre espanso inline */
  .nav-links.mobile-open .nav-dropdown { width: 100%; }
  .nav-links.mobile-open .nav-dropdown-trigger { width: 100%; }
  .nav-links.mobile-open .nav-caret { display: none; }
  .nav-links.mobile-open .nav-dropdown-menu {
    position: static; display: block; visibility: visible; opacity: 1; transform: none;
    box-shadow: none; border: none; padding: 0 0 0 16px; margin: 2px 0 6px;
    min-width: 0; background: transparent;
  }
  .nav-links.mobile-open .nav-dropdown-menu li a { padding: 9px 14px; font-size: .9rem; color: var(--text-muted); }
  .hero { padding: 48px 0 44px; }
  .product-keyspecs { grid-template-columns: 1fr; }
  .product-cta-row { flex-direction: column; }
  .product-cta-row .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .spec-table th { width: 40%; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 100px; border: 2px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
::selection { background: var(--blue); color: #FFF; }

/* ====================================================================
   CATALOGO v2.4 — card minimali (immagine + nome + scheda) e nav famiglie
   ==================================================================== */
.cat-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 36px 0 6px; }
.cat-nav a {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .92rem; font-weight: 600; color: var(--navy);
  background: #FFF; border: 1px solid var(--border); border-radius: 100px;
  padding: 10px 20px; box-shadow: var(--shadow-sm);
  transition: all .25s var(--ease);
}
.cat-nav a:hover { border-color: #B8D4F8; transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--blue); }
.cat-nav a .n {
  font-family: var(--mono); font-size: .72rem; color: var(--blue);
  background: #F0F6FF; border-radius: 100px; padding: 2px 9px;
  border: 1px solid #D6E6FB;
}
.cat-all { margin-left: auto; font-size: .88rem; font-weight: 600; color: var(--blue); white-space: nowrap; }
.cat-all:hover { text-decoration: underline; }
@media (max-width: 640px) { .cat-all { margin-left: 0; } .cat-header { flex-wrap: wrap; } }

.prod-card.mini .prod-media img { padding: 26px; }
.prod-card.mini .prod-body { padding: 16px 20px 20px; align-items: center; text-align: center; }
.prod-card.mini .prod-body h3 { font-size: 1rem; margin-bottom: 2px; }
.prod-card.mini .prod-foot { justify-content: center; border-top: none; padding-top: 10px; }
.prod-card.mini .prod-link { font-size: .9rem; }
