/* ═══════════════════════════════════════════════════════════════
   TECHNO TOOLS – Main Stylesheet
   Clean B2B/industrial design
═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
  --navy:        #111111;
  --navy-mid:    #1A1A1A;
  --navy-light:  #2D2D2D;
  --blue:        #CC0000;
  --blue-hover:  #AA0000;
  --blue-pale:   #FFF5F5;
  --blue-mid:    #FECACA;
  --text:        #1E293B;
  --text-muted:  #64748B;
  --text-light:  #94A3B8;
  --border:      #E2E8F0;
  --border-dark: #CBD5E1;
  --bg:          #F8FAFC;
  --bg-alt:      #F1F5F9;
  --white:       #FFFFFF;
  --accent:      #CC0000;

  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   12px;
  --radius-xl:   16px;

  --shadow-sm:   0 1px 2px rgba(0,0,0,.06);
  --shadow:      0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.06);
  --shadow-xl:   0 20px 25px rgba(0,0,0,.12), 0 8px 10px rgba(0,0,0,.06);

  --header-h:    92px; /* topbar + nav combined */
  --transition:  0.2s ease;
}

/* ── Bootstrap CSS overrides (il nostro CSS carica dopo Bootstrap) ──────── */
/* Protegge link, liste, nav e header dal reset di Bootstrap                 */
a { color: var(--blue); text-decoration: none !important; }
a:hover { color: var(--blue-hover); }
ul, ol { margin: 0; padding: 0; }
/* Rimuovi margin-bottom Bootstrap sui <p> nelle aree di layout (non content) */
.topbar p, .main-nav p, .site-header p, .footer p,
.page-hero p, .sidebar p, .product-card p { margin-bottom: 0; }

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-hover); }
ul { list-style: none; }
address { font-style: normal; }

/* ── Container ────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* ═══════════════════════════════
   HEADER
═══════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

/* Topbar */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  height: 40px;
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.topbar-link {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: color var(--transition);
}
.topbar-link:hover { color: rgba(255,255,255,.75); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar-hours {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
}
.lang-switch {
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  padding: 2px 8px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.lang-switch:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* Main nav */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  position: relative;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  margin-right: 2.5rem;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.site-logo img {
  display: block;
  height: auto;
  width: auto;
  max-height: 55px;
}
.logo-main {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.logo-accent { color: var(--blue); }
.logo-sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 0;
  flex: 1;
}
.main-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.main-nav .nav-item.has-mega {
  position: static;
}
.main-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 14px;
  height: 56px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.main-nav .nav-link:hover,
.nav-item.active > .main-nav .nav-link,
.main-nav .nav-item.active > .nav-link {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.main-nav .nav-arrow { transition: transform var(--transition); flex-shrink: 0; }
.main-nav .nav-item.has-mega:hover .nav-arrow,
.main-nav .nav-item.has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown simple – prefixed .main-nav to override Bootstrap's display:none on .dropdown-menu */
.main-nav .dropdown-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 240px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1100;
}
.main-nav .nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 13.5px;
  color: rgba(255,255,255,.8);
  transition: background var(--transition), color var(--transition);
}
.main-nav .dropdown-menu li a:hover,
.main-nav .dropdown-menu li a.active { background: rgba(255,255,255,.08); color: #fff; }

/* Mega dropdown */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--navy);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  min-width: max-content;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1100;
}
.nav-item.has-mega:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.mega-col h4.mega-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mega-col ul li a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-item-icon {
  flex-shrink: 0;
  opacity: .55;
  transition: opacity var(--transition);
}
.mega-col ul li a:hover .nav-item-icon,
.mega-col ul li.active a .nav-item-icon { opacity: 1; }
.mega-col ul li a:hover,
.mega-col ul li.active a { color: #fff; }

/* Nav CTA button */
.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--blue);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--blue-hover); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 16px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ═══════════════════════════════
   PAGE HERO / BREADCRUMB BANNER
═══════════════════════════════ */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 40px 0 36px;
}
.page-hero .container { display: flex; flex-direction: column; gap: 12px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: .4; }
.breadcrumb li:last-child { color: rgba(255,255,255,.85); }
.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.page-hero .hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  max-width: 680px;
}

/* Category hero variant */
.cat-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); }
.cat-hero h1 { font-size: 2.25rem; }
.cat-hero .hero-badge {
  display: inline-block;
  width: fit-content;
  background: rgba(204,0,0,.4);
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(204,0,0,.5);
  margin-bottom: 8px;
}

/* ═══════════════════════════════
   HOME PAGE
═══════════════════════════════ */
.home-hero {
  background: #111;
  color: #fff;
  padding: 80px 0 72px;
  overflow: hidden;
  position: relative;
}

/* Carousel di sfondo */
.hero-bg-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-carousel .carousel-inner,
.hero-bg-carousel .carousel-item {
  height: 100%;
}
.hero-bg-carousel .carousel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  margin: 0 !important;
}

/* Overlay: gradiente scuro a sinistra (testo) + velo generale */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(0,0,0,.80) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.35) 100%),
    linear-gradient(to top,   rgba(0,0,0,.4)  0%, transparent 50%);
}

.home-hero .container { position: relative; z-index: 2; }
.home-hero-inner { max-width: 680px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  background: rgba(204,0,0,.1);
  border: 1px solid rgba(204,0,0,.3);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.home-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.home-hero h1 .highlight { color: var(--blue); }
.home-hero .hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 16px;
  letter-spacing: 0.1px;
}
.home-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px;
       border-radius: var(--radius); font-size: 15px; font-weight: 600;
       cursor: pointer; border: 2px solid transparent; transition: all var(--transition); text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(204,0,0,.4); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); color: #fff; }
.btn-blue-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-blue-outline:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Trust bar */
.trust-bar { background: var(--navy-mid); border-top: 1px solid rgba(255,255,255,.06); padding: 16px 0; }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500; }
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* Features 3-col strip */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-title { font-size: 1.75rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.section-sub { font-size: 1rem; color: var(--text-muted); margin-bottom: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* Feature card */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--blue);
}
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Product grid cards (category overview) */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.product-card-img {
  background: var(--bg-alt);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-img .placeholder-icon {
  color: var(--text-light);
  font-size: 48px;
  line-height: 1;
}
.product-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); }
.product-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.product-card p { font-size: 13px; color: var(--text-muted); flex: 1; }
.product-card-footer { padding: 0 20px 20px; }
.product-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--blue);
}
.product-card-link:hover { gap: 8px; }

/* ═══════════════════════════════
   PRODUCT / CONTENT PAGES
═══════════════════════════════ */
.page-layout {
  padding: 48px 0 64px;
}
.page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.page-content { min-width: 0; }
.page-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.page-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 24px 0 8px; }
.page-content p { margin-bottom: 16px; color: var(--text); line-height: 1.7; }
.page-content ul { margin: 0 0 16px 1.5rem; list-style: disc; }
.page-content li { margin-bottom: 4px; }

/* Specs table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.specs-table th {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.specs-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-align: center;
}
.specs-table th:first-child,
.specs-table td:first-child {
  text-align: left;
}
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:nth-child(even) td { background: var(--bg); }
.specs-table tr:hover td { background: var(--blue-pale); }

/* Product page – rich static content */
.table-wrap { overflow-x: auto; margin: 16px 0 32px; }
.product-intro {
  font-size: 15px; line-height: 1.8; color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.page-content .product-features {
  list-style: none; padding: 0; margin: 0 0 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px;
}
.product-features li {
  padding: 6px 0 6px 24px; position: relative;
  font-size: 14px; color: var(--text);
  line-height: 1.5;
}
.product-features li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--blue); font-weight: 700;
}
.product-series-title {
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin: 36px 0 12px; padding-top: 20px;
  border-top: 2px solid var(--border);
}
.product-series-title:first-of-type { margin-top: 20px; }
.product-note {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.7;
  background: var(--blue-pale); border: 1px solid var(--blue-mid);
  border-radius: var(--radius); padding: 18px 22px; margin-top: 36px;
}
@media (max-width: 600px) {
  .page-content .product-features { grid-template-columns: 1fr; }
}
.product-series-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 16px;
}
.product-series-header > div > p { margin-bottom: 0; }
.product-series-img {
  max-width: 240px;
  margin: 0;
  flex-shrink: 0;
}
.product-series-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
@media (max-width: 640px) {
  .product-series-header { grid-template-columns: 1fr; }
  .product-series-img { max-width: 100%; }
}

/* PDF download box */
.pdf-downloads { margin: 28px 0; }
.pdf-downloads h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 12px; }
.pdf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  margin: 4px 4px 4px 0;
  transition: all var(--transition);
}
.pdf-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.pdf-btn svg { flex-shrink: 0; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sidebar-card-header {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-card-body { padding: 16px; }
.sidebar-card-body p { font-size: 14px; color: var(--text); margin-bottom: 8px; }

/* Contact card */
.sidebar-contact-intro {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.contact-block { display: flex; flex-direction: column; gap: 2px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition);
}
a.contact-row:hover { background: var(--bg-alt); }
.contact-icon {
  font-size: 18px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-pale);
  border-radius: 8px;
  flex-shrink: 0;
}
.contact-detail { display: flex; flex-direction: column; }
.contact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; }
.contact-value { font-size: 14px; font-weight: 700; color: var(--text); }
a.contact-row:hover .contact-value { color: var(--blue); }
.sidebar-cta-btn {
  display: block; text-align: center;
  background: var(--blue); color: #fff;
  padding: 12px; border-radius: var(--radius);
  font-weight: 700; font-size: 14px; margin-top: 12px;
  transition: background var(--transition);
}
.sidebar-cta-btn:hover { background: var(--blue-hover); color: #fff; }

/* Related products in sidebar */
.related-list { display: flex; flex-direction: column; gap: 4px; }
.related-list a {
  display: block; padding: 8px 12px;
  font-size: 13.5px; color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.related-list a:hover { background: var(--blue-pale); color: var(--blue); }
.related-list a.active { background: var(--blue); color: #fff; font-weight: 600; }

/* ═══════════════════════════════
   BLOG
═══════════════════════════════ */
.blog-listing { padding: 48px 0 64px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card-body { padding: 20px; }
.blog-cat-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--blue);
  background: var(--blue-pale);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.blog-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--blue); }
.blog-card p { font-size: 13.5px; color: var(--text-muted); }
.blog-card-footer { padding: 12px 20px; border-top: 1px solid var(--border); }
.blog-read-more { font-size: 13px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; }

/* Blog article */
.blog-article-layout { padding: 48px 0 64px; }
.blog-article-grid { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.article-content { max-width: 760px; }
.article-header { margin-bottom: 32px; }
.article-title { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
.article-body p { margin-bottom: 18px; color: var(--text); line-height: 1.75; font-size: 1rem; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 36px 0 14px; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.article-body address { display: none; }
.article-body p.reading-time {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.article-body ul, .article-body ol { margin: 0 0 18px 1.5rem; }
.article-body li { margin-bottom: 6px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article-body th { background: var(--navy); color: #fff; padding: 8px 12px; text-align: left; }
.article-body td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.article-body tr:nth-child(even) td { background: var(--bg); }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 8px; margin-top: 40px; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius);
  border: 1px solid var(--border); font-size: 14px; color: var(--text);
  transition: all var(--transition);
}
.page-link:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.page-link.active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; }

/* ═══════════════════════════════
   CTA SECTION
═══════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-section h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════
   SERVICE PAGES
═══════════════════════════════ */
.service-layout { padding: 48px 0 64px; }
.service-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* Pricing table */
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 24px 0; }
.price-table th { background: var(--navy); color: #fff; padding: 12px 16px; text-align: left; }
.price-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--blue-pale); }

/* Partner cards (chi siamo) */
.partner-card { text-align: center; }
.partner-logo-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.partner-logo-wrap img {
  max-height: 60px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter var(--transition);
}
.partner-card:hover .partner-logo-wrap img { filter: grayscale(0%); }
.partner-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}

/* Steps list (taratura procedure) */
.steps-list { counter-reset: steps; display: flex; flex-direction: column; gap: 16px; }
.step-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--blue); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.step-body h4 { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.step-body p { font-size: 14px; color: var(--text-muted); }

/* Noleggio page */
.cat-hero-img,
.noleggio-hero {
  background-size: cover;
  background-position: center;
  position: relative;
}
.cat-hero-img::before,
.noleggio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,35,66,0.88) 45%, rgba(11,35,66,0.45) 100%);
}
.cat-hero-img .container,
.noleggio-hero .container { position: relative; z-index: 1; }
.noleggio-intro-wrap { max-width: 800px; margin-bottom: 48px; }
.noleggio-section-h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--navy);
  margin: 0 0 28px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.noleggio-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 56px;
}
.noleggio-benefit {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 20px;
}
.nb-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  margin-bottom: 14px;
}
.noleggio-benefit h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.noleggio-benefit p  { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; margin: 0; }
.noleggio-product-group { margin-bottom: 48px; }
.noleggio-cat-title {
  font-size: 1.15rem; font-weight: 700; color: var(--navy);
  margin: 0 0 20px; padding-left: 12px;
  border-left: 4px solid var(--blue);
}
.noleggio-cta {
  background: var(--blue-pale); border: 1px solid var(--blue-mid);
  border-radius: var(--radius-lg); padding: 36px 28px;
  margin-top: 48px; text-align: center; max-width: 800px;
}
.noleggio-cta--full { max-width: none; }
.noleggio-cta h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 10px; }
.noleggio-cta p  { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.noleggio-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 900px) {
  .noleggio-benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .noleggio-benefits { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); }
.footer-top { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr; gap: 40px; }
.footer-logo { margin-bottom: 14px; }
.footer-logo .logo-main { font-size: 22px; }
.footer-logo-img { height: 48px; width: auto; display: block; }
.footer-tagline { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  background: rgba(204,0,0,.15); border: 1px solid rgba(204,0,0,.3);
  color: rgba(255,255,255,.8); padding: 3px 10px; border-radius: 20px;
}
.footer-col h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: #fff; margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-address p { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.footer-address a { color: rgba(255,255,255,.8); }
.footer-address a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.45); }

/* ═══════════════════════════════
   404
═══════════════════════════════ */
.page-404 { padding: 96px 0; text-align: center; }
.page-404 h1 { font-size: 5rem; font-weight: 900; color: var(--border); margin-bottom: 0; }
.page-404 h2 { font-size: 1.5rem; color: var(--navy); margin-bottom: 12px; }
.page-404 p { color: var(--text-muted); margin-bottom: 28px; }

/* ═══════════════════════════════
   UTILITIES
═══════════════════════════════ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .page-grid { grid-template-columns: 1fr 260px; }
}

@media (max-width: 768px) {
  .topbar-hours { display: none; }
  .topbar-contacts { gap: 1rem; font-size: 15px; }
  .confronta-open-btn,
  .coppia-open-btn { display: none; }

  .hamburger { display: flex; }
  .nav-cta { display: none; }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    height: auto;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 999;
    padding: 16px 0 40px;
    gap: 0;
  }
  .nav-menu.open { transform: translateX(0); }

  .main-nav .nav-item { flex-direction: column; align-items: stretch; }
  .main-nav .nav-link {
    height: auto;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.85);
    font-size: 15px;
    border-left: none;
    justify-content: space-between;
  }
  .main-nav .nav-link:hover,
  .main-nav .nav-item.active > .nav-link { border-bottom-color: rgba(255,255,255,.1); color: #fff; }

  .mega-dropdown,
  .main-nav .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,.05);
    border-radius: 0;
    padding: 0 0 8px 0;
    display: none;
  }
  .nav-item.open .mega-dropdown,
  .main-nav .nav-item.open .dropdown-menu { display: block; }
  .nav-item.has-mega.open .mega-dropdown { transform: none; }

  .mega-grid { grid-template-columns: 1fr; gap: 0; }
  .mega-col { padding: 0; }
  .mega-col h4.mega-heading { padding: 10px 24px 6px 32px; margin: 0; border: none; font-size: 11px; color: rgba(255,255,255,.4); }
  .mega-col ul li a { padding: 8px 24px 8px 32px; color: rgba(255,255,255,.7); font-size: 14px; }
  .main-nav .dropdown-menu { min-width: unset; }
  .main-nav .dropdown-menu li a { padding: 10px 24px 10px 32px; }

  .nav-arrow { margin-left: auto; }

  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { order: 1; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .home-hero { padding: 56px 0 48px; }
  .trust-inner { gap: 20px; }
  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .home-hero h1 { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .topbar-contacts { font-size: 12px; }
  .topbar-link span { display: none; }
}

/* ═══════════════════════════════════════════════════════
   LEGACY CONTENT STYLES
   Compatibilità con classi UIkit e Bootstrap dal DB
═══════════════════════════════════════════════════════ */

/* ── Immagini float (pull-left / pull-right da Joomla) ── */
.page-content img.pull-left,
.page-content .pull-left img {
  float: left;
  max-width: 260px;
  width: 100%;
  height: auto;
  margin: 0 24px 20px 0;
  border-radius: var(--radius);
}
.page-content img.pull-right,
.page-content .pull-right img {
  float: right;
  max-width: 260px;
  width: 100%;
  height: auto;
  margin: 0 0 20px 24px;
  border-radius: var(--radius);
}
.page-content::after { content: ''; display: table; clear: both; }

/* ── Tabelle Joomla/UIkit/Bootstrap ── */
.page-content table,
.page-content .uk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 24px 0;
  background: var(--white);
  /* no border-radius: non funziona con border-collapse:collapse */
}
.page-content table th,
.page-content .uk-table th {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  border: none;
}
.page-content table td,
.page-content .uk-table td {
  padding: 8px 14px;
  vertical-align: middle;
  color: var(--text);
  border-radius: 0 !important;
  /* nessun border-bottom di default: le tabelle Joomla hanno già i propri bordi inline */
}
/* Striping solo per le uk-table esplicite; le tabelle inline hanno già i propri stili */
.page-content .uk-table-striped tr:nth-child(even) td { background: var(--bg); }
/* Nessun hover: le tabelle con sfondo personalizzato (header scuro, box nero) verrebbero sovrascritti */

/* ── Box "La qualità al primo posto" (tabella sfondo nero) ── */
.page-content table[style*="background-color: #000"] {
  margin: 24px 0;
}
.page-content table[style*="background-color: #000"] td {
  border: none;
  color: #fff;
  padding: 20px 32px !important;
}
/* Riga titolo */
.page-content table[style*="background-color: #000"] tr:first-child td {
  text-align: center !important;
  padding-bottom: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.15) !important;
}
.page-content table[style*="background-color: #000"] h2 {
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 0.5px;
}
/* Riga contenuto: flex per affiancare img e testo */
.page-content table[style*="background-color: #000"] td p {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.75;
}
.page-content table[style*="background-color: #000"] td p img {
  float: none !important;
  margin: 0 !important;
  width: 120px !important;
  height: auto !important;
  flex-shrink: 0;
  border-radius: var(--radius);
}
.page-content table[style*="background-color: #000"] td p span {
  color: #fff;
}
.page-content table[style*="background-color: #000"] strong { color: #fff; }

/* ── Override Bootstrap table variants nel contenuto ── */
.page-content .table { margin: 24px 0; }
.page-content .table > :not(caption) > * > * {
  padding: 8px 14px;
  border-bottom-color: var(--border);
  border-radius: 0 !important;
}
.page-content .table-bordered { border: 1px solid var(--border); }
.page-content .table-striped > tbody > tr:nth-of-type(odd) > * { background: var(--bg); }

/* ── Oleodinamica 700 bar: tabelle normalizzate (stili inline rimossi via PHP) ── */
.oleo-data-table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #000;
}
.oleo-data-table td,
.oleo-data-table th {
  background: #fff;
  color: #222;
  border: 1px solid #000;
  padding: 8px 12px;
  vertical-align: middle;
  text-align: center;
}
/* Righe header */
.oleo-data-table tr.oleo-header td,
.oleo-data-table tr.oleo-header th {
  background: #000;
  color: #fff;
  font-weight: bold;
  text-align: center;
}
.oleo-data-table tr.oleo-header * {
  color: #fff;
}

/* Bottone Scheda Tecnica nelle pagine oleodinamica */
.oleo-scheda-btn {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}
.oleo-scheda-btn:hover {
  background: #666;
  color: #fff;
}

/* Wrapper scroll orizzontale */
.page-content .uk-overflow-container,
.page-content .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}
.page-content .uk-overflow-container table,
.page-content .table-responsive table { margin: 0; }

/* ── Alert UIkit ── */
.page-content .uk-alert,
.page-content .uk-alert-danger {
  background: #fff8e6;
  border: 1px solid #ffc107;
  border-left: 4px solid #ffc107;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  color: #4a3200;
}
.page-content .uk-alert p { margin: 0; color: inherit; }

/* ── Bottoni UIkit → stile sito ── */
.page-content .uk-button {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.page-content .uk-button-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.page-content .uk-button-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.page-content .uk-button-small { padding: 5px 12px; font-size: 12px; }
/* Nascondi icone UIkit (font non caricato) */
.page-content [class*="uk-icon-"] { display: none; }

/* ── Override bottoni Bootstrap nel contenuto (btn-danger, btn-dark, ecc.) ── */
.page-content .btn {
  border-radius: var(--radius) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
}
.page-content .btn-danger  { background: #dc2626; border-color: #dc2626; color: #fff; }
.page-content .btn-warning { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-content .btn-dark    { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-content .btn-outline-secondary { background: transparent; border-color: var(--border-dark); color: var(--text); }
.page-content .btn-outline-danger    { background: transparent; border-color: #dc2626; color: #dc2626; }
.page-content .d-grid { display: block !important; }

/* ── Alert Bootstrap nel contenuto ── */
.page-content .alert {
  border-radius: var(--radius) !important;
  border-left-width: 4px;
  padding: 12px 16px;
  font-size: 14px;
}
.page-content .alert-success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #14532d;
}
.page-content .alert-danger {
  background: #fff8e6;
  border-color: #fca5a5;
  color: #7f1d1d;
}

/* ── Bootstrap Carousel – solo visual, struttura gestita da Bootstrap CSS ── */
.page-content .carousel {
  border-radius: var(--radius-lg);
  margin: 0 0 28px;
  overflow: hidden;
}
/* w-80 non esiste in Bootstrap 5 – forziamo larghezza piena, altezza naturale */
.page-content .carousel-item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

/* ── Testo centrato con stelle ── */
.page-content hr { border: none; border-top: 1px solid var(--border-dark); margin: 24px 0; opacity: 1; }
/* .page-content strong: NON forzare il colore – le tabelle con sfondo scuro usano span bianchi sopra strong */

/* ── Titoli h3 da Joomla (spesso usati come intro grigi) ── */
.page-content > h3:first-child {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .page-content img.pull-left,
  .page-content img.pull-right {
    float: none;
    max-width: 100%;
    margin: 0 0 16px 0;
  }
}

/* ═══════════════════════════════════════════════════════
   NAVBOX CARDS – Product navigation tiles
═══════════════════════════════════════════════════════ */

.navbox-section     { padding: 56px 0; }
.navbox-section-alt { background: var(--bg); }

.serr-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.serr-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}
.serr-section-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}
.serr-section-link {
  flex-shrink: 0;
  font-size: 13px;
  padding: 7px 16px;
  white-space: nowrap;
}

.navbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.navbox-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid var(--border);
}
.navbox-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
  color: var(--text);
  text-decoration: none;
}

.navbox-card-img {
  height: 200px;
  background: var(--bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.navbox-card-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.navbox-card-header {
  background: var(--navy);
  color: #fff;
  padding: 11px 16px;
  flex-shrink: 0;
}
.navbox-card-header h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
}

.navbox-specs {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  font-size: 12.5px;
  flex-shrink: 0;
}
.navbox-specs li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.navbox-specs li:last-child { border-bottom: none; }
.navbox-spec-key {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.navbox-desc {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.navbox-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 9px 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: auto;
}
.navbox-rental {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 20px;
  margin-right: auto;
}
.navbox-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

@media (max-width: 768px) {
  .navbox-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .navbox-grid { grid-template-columns: 1fr; }
  .navbox-section { padding: 36px 0; }
}

/* ═══════════════════════════════════════════════════════════════
   CONFRONTA TECNOLOGIE — sidebar widget + modal
   ═══════════════════════════════════════════════════════════════ */

/* Sidebar widget button */
.confronta-open-btn {
  display: block;
  width: 100%;
  background: var(--red, #c0392b);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.confronta-open-btn:hover { background: #a93226; }

/* Overlay */
.confronta-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.confronta-overlay.is-open { display: flex; }
body.confronta-open { overflow: hidden; }

/* Modal box */
.confronta-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Header */
.confronta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000000;
  color: #fff;
  padding: 18px 24px;
  border-radius: 10px 10px 0 0;
  position: sticky;
  top: 0;
  z-index: 1;
}
.confronta-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.confronta-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.confronta-close-btn:hover { background: rgba(255,255,255,0.15); }

/* Body */
.confronta-body { padding: 24px; }

/* Counter */
.confronta-counter {
  font-size: 13px;
  color: #666;
  margin-bottom: 14px;
}
.confronta-counter strong { color: #000000; font-size: 16px; }

/* Quick-filter chips */
.confronta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.confronta-chip {
  background: #f0f2f5;
  border: 1px solid #d0d4dc;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  color: #333;
}
.confronta-chip:hover,
.confronta-chip.active {
  background: #000000;
  border-color: #000000;
  color: #fff;
}

/* Checkbox grid */
.confronta-cb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  background: #f8f9fb;
  border: 1px solid #e0e3ea;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.confronta-cb {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.12s;
  user-select: none;
}
.confronta-cb:hover { background: #edf0f7; }
.confronta-cb.is-current { font-weight: 700; }
.confronta-cb input[type=checkbox] { display: none; }
.confronta-cb-mark {
  width: 18px; height: 18px;
  border: 2px solid #aaa;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  background: #fff;
  transition: background 0.12s, border-color 0.12s;
}
.confronta-cb input:checked ~ .confronta-cb-mark {
  background: #c0392b;
  border-color: #c0392b;
}
.confronta-cb input:checked ~ .confronta-cb-mark::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 6px; height: 10px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.confronta-cb-name { font-size: 13px; line-height: 1.3; color: #222; }
.confronta-cb.is-current .confronta-cb-name { color: #c0392b; }

/* Limit message */
.confronta-limit-msg {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  color: #856404;
  margin-bottom: 12px;
}

/* Chart + table layout */
.confronta-viz {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}
.confronta-radar-wrap {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
}
.confronta-nosel {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 40px 0;
}

/* Comparison table */
.confronta-table-wrap { overflow-x: auto; }
.confronta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.confronta-table th,
.confronta-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: center;
  vertical-align: middle;
}
.confronta-table thead th {
  background: #000000;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.confronta-table th.ct-current,
.confronta-table td.ct-current {
  background: #fff5f5;
  border-color: #c0392b;
}
.confronta-table thead th.ct-current { background: #c0392b; }
.confronta-table .ct-param {
  text-align: left;
  font-weight: 600;
  color: #333;
  background: #f5f6f8;
  white-space: nowrap;
}
.confronta-table td { position: relative; padding-bottom: 18px; }
.ct-bar {
  display: block;
  position: absolute;
  bottom: 4px;
  left: 10%;
  height: 3px;
  background: #c0392b;
  border-radius: 2px;
  max-width: 80%;
  transition: width 0.3s;
}
.confronta-table td.ct-current .ct-bar { background: #c0392b; }
.confronta-table td:not(.ct-current) .ct-bar { background: #2980b9; }
.ct-best { font-weight: 700; }
.ct-star { color: #c0392b; }

/* Category page inline widget */
.confronta-inline-banner {
  background: #f0f2f7;
  border: 1px solid #d0d4e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  margin-bottom: 32px;
}
.confronta-inline-banner p {
  margin: 0;
  font-size: 14px;
  color: #444;
}
.confronta-inline-banner strong { color: #000000; }

@media (max-width: 700px) {
  .confronta-viz { grid-template-columns: 1fr; }
  .confronta-cb-grid { grid-template-columns: 1fr; }
  .confronta-inline-banner { flex-direction: column; text-align: center; }
}

/* ── Coppia di Serraggio Calculator ─────────────────────────────────────── */
.coppia-open-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
}
.coppia-open-btn:hover { background: #a93226; }

.coppia-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9500;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.coppia-overlay.is-open { display: flex; }

.coppia-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  position: relative;
}

.coppia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #000000;
  color: #fff;
  flex-shrink: 0;
}
.coppia-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.coppia-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.7;
}
.coppia-close-btn:hover { opacity: 1; }

.coppia-body {
  overflow-y: auto;
  padding: 16px;
  flex: 1;
}

.coppia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.coppia-section {
  border: 1px solid #d0d4e0;
  border-radius: 6px;
  overflow: hidden;
}

.coppia-section-title {
  background: #000000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 6px 12px;
}

.coppia-db-btn {
  display: block;
  width: calc(100% - 20px);
  margin: 10px 10px 2px;
  padding: 7px 10px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
}
.coppia-db-btn:hover { background: #a93226; }

.coppia-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
}
.coppia-field label {
  width: 130px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  margin: 0;
}
.coppia-field input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 12px;
  background: #f5f6f8;
  width: auto;
  font-weight: normal;
}
.coppia-field input:not([readonly]) {
  background: #fff;
  border-color: #aab;
}
.cop-unit {
  font-size: 11px;
  color: #777;
  white-space: nowrap;
  min-width: 24px;
}

.coppia-results-section { background: #fafbff; }

.coppia-result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid #eef0f7;
}
.coppia-result-row label {
  width: 160px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  margin: 0;
}
.coppia-result-val {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  text-align: right;
}
.coppia-result-main {
  background: #fff5f5;
  border-bottom: none;
  padding: 10px 12px;
}
.coppia-result-main .coppia-result-val {
  font-size: 24px;
  color: #c0392b;
}
.coppia-result-main .cop-unit {
  font-size: 13px;
  font-weight: 700;
  color: #c0392b;
}

.coppia-calcola-btn {
  display: block;
  width: calc(100% - 20px);
  margin: 10px 10px 4px;
  padding: 9px;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.coppia-calcola-btn:hover { background: #219a52; }

.coppia-formula-note {
  font-size: 10px;
  color: #aaa;
  text-align: center;
  padding: 3px 10px 8px;
  margin: 0;
  line-height: 1.4;
}
.coppia-footer {
  padding: 12px 16px;
  border-top: 1px solid #e0e4ef;
  flex-shrink: 0;
  background: #fff;
}
.coppia-footer[hidden] { display: none; }

.coppia-print-btn {
  display: block;
  width: 100%;
  padding: 9px 16px;
  background: #1a3a6b;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.coppia-print-btn:hover { background: #15306b; }

/* Sub-selection panels (absolute within coppia-overlay) */
.coppia-panel {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.coppia-panel[hidden] { display: none; }

.coppia-panel-inner {
  background: #fff;
  border-radius: 8px;
  width: 580px;
  max-width: 88vw;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  overflow: hidden;
}

.coppia-panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #000000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.coppia-panel-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  opacity: 0.7;
}
.coppia-panel-close:hover { opacity: 1; }

.coppia-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}
.coppia-panel-list li { border-bottom: 1px solid #f0f2f7; }
.coppia-panel-list li a {
  display: block;
  padding: 7px 16px;
  font-size: 12px;
  color: #000000;
  text-decoration: none;
  transition: background 0.12s;
}
.coppia-panel-list li a:hover {
  background: #f0f4ff;
  color: #c0392b;
  text-decoration: none;
}

@media (max-width: 700px) {
  .coppia-grid { grid-template-columns: 1fr; }
  .coppia-panel-inner { width: 94vw; }
}
