/* ===================================================
   PUDU ROBOTICS ITALY - Dealer Site
   CSS Globale
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #ff4d00;   /* arancio Pudu */
  --primary-dk: #cc3d00;
  --dark:       #111111;
  --dark-2:     #1a1a1a;
  --dark-3:     #222222;
  --mid:        #444444;
  --light:      #f5f5f5;
  --white:      #ffffff;
  --border:     #e0e0e0;
  --text:       #333333;
  --text-light: #666666;

  --nav-h:      72px;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,0,0,.10);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --trans:      .25s ease;

  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ---------- Typography ---------- */
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { line-height: 1.75; color: var(--text-light); }

/* ---------- Utility ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans), color var(--trans);
  border: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-outline-dark { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-3); }

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  background: var(--light);
  color: var(--mid);
}
.tag-orange { background: rgba(255,77,0,.12); color: var(--primary); }

.section-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title { color: var(--dark); margin-bottom: 16px; }

/* ---------- HEADER / NAVBAR ---------- */
#main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 9999;
  transition: background var(--trans);
}

#main-header.scrolled { background: rgba(255,255,255,.97); backdrop-filter: blur(8px); }

.navbar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  flex-shrink: 0;
}

.nav-logo img { height: 28px; width: auto; }

/* Separatore verticale tra logo Pudu e testo PRIME Robotics */
.nav-logo-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.02em;
}
.nav-logo-text span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-item > a, .nav-item > button {
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: .92rem;
  font-weight: 500;
  color: var(--dark);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  gap: 5px;
  transition: color var(--trans);
}
.nav-item > a:hover, .nav-item > button:hover { color: var(--primary); }

.nav-item > a.active, .nav-item > button.active { color: var(--primary); }

.nav-caret { font-size: .7rem; transition: transform var(--trans); }
.nav-item:hover .nav-caret { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  min-width: 200px;
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 3px solid var(--primary);
  z-index: 100;
}
.nav-item:hover .nav-dropdown { display: block; }

.nav-dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: .9rem;
  color: var(--text);
  transition: background var(--trans), color var(--trans);
}
.nav-dropdown a:hover { background: var(--light); color: var(--primary); }

/* CTA nav */
.nav-cta {
  margin-left: 16px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform var(--trans), opacity var(--trans);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
#mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 9998;
  padding: 20px 0 32px;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
#mobile-nav.open { display: block; }

.mobile-nav-link {
  display: block;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: color var(--trans), background var(--trans);
}
.mobile-nav-link:hover { color: var(--primary); background: var(--light); }

.mobile-nav-sub { background: var(--light); }
.mobile-nav-sub a {
  display: block;
  padding: 11px 44px;
  font-size: .9rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  transition: color var(--trans);
}
.mobile-nav-sub a:hover { color: var(--primary); }

/* ---------- HERO SLIDER ---------- */
#hero {
  margin-top: var(--nav-h);
  position: relative;
  background: var(--dark);
  overflow: hidden;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 580px;
  height: 70vh;
  max-height: 720px;
  align-items: center;
}
.hero-slide.active { display: flex; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  max-width: 600px;
}

.hero-content .section-label { color: #ff8c5a; }
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content p { color: rgba(255,255,255,.82); margin-bottom: 32px; font-size: 1.05rem; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  border: none;
}
.hero-dot.active { background: var(--primary); transform: scale(1.2); }

/* Hero arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,.15);
  color: white;
  border: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--trans);
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255,255,255,.35); }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

/* ---------- SECTION GENERIC ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--dark); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { max-width: 600px; margin: 12px auto 0; font-size: 1.05rem; }

/* ---------- PRODUCT CATEGORIES ---------- */
.product-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-2);
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans);
}
.product-cat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.2); }

.product-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-cat-card:hover img { transform: scale(1.05); }

.product-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
}

.product-cat-info {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 24px 20px;
}
.product-cat-info h3 { color: var(--white); margin-bottom: 12px; }
.product-cat-info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  opacity: .85;
  transition: opacity var(--trans), gap var(--trans);
}
.product-cat-info a:hover { opacity: 1; gap: 10px; }

/* ---------- STATS STRIP ---------- */
.stats-strip {
  background: var(--primary);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .label { font-size: .9rem; color: rgba(255,255,255,.85); }

/* ---------- SECTORS ---------- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.sector-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
}
.sector-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(255,77,0,.12);
  transform: translateY(-4px);
}

.sector-icon {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: background var(--trans);
}
.sector-card:hover .sector-icon { background: rgba(255,77,0,.12); }

.sector-card h4 { font-size: .95rem; color: var(--dark); }

/* ---------- PRODUCTS PAGE ---------- */
.products-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 22px;
  border-radius: 24px;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--trans), background var(--trans), color var(--trans);
  color: var(--mid);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--trans), transform var(--trans);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.product-card-img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-body { padding: 24px; }
.product-card-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.product-card-body p { font-size: .9rem; margin-bottom: 18px; }
.product-card-body .tag { margin-bottom: 14px; }

.product-detail-hero {
  background: var(--dark);
  color: var(--white);
  padding: 100px 0 60px;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.product-spec-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.product-spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.product-spec-table td:first-child { font-weight: 600; width: 40%; background: var(--light); }

/* ---------- SECTORS PAGE ---------- */
.sector-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
}
.sector-hero h1 { color: var(--white); margin-bottom: 16px; }
.sector-hero p { color: rgba(255,255,255,.75); max-width: 580px; margin: 0 auto 32px; font-size: 1.05rem; }

.sectors-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.sector-full-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow var(--trans);
}
.sector-full-card:hover { box-shadow: var(--shadow); }
.sector-full-card-img { aspect-ratio: 1; overflow: hidden; }
.sector-full-card-img img { width: 100%; height: 100%; object-fit: cover; }
.sector-full-card-body { padding: 28px 24px; }
.sector-full-card-body h3 { margin-bottom: 12px; }
.sector-full-card-body p { font-size: .92rem; }

/* ---------- CASE STUDIES ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.case-card {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--trans), transform var(--trans);
}
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.case-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--light); }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.case-card:hover .case-card-img img { transform: scale(1.05); }
.case-card-body { padding: 24px; }
.case-card-body .tag { margin-bottom: 12px; }
.case-card-body h3 { margin-bottom: 8px; }
.case-card-body p { font-size: .9rem; }

/* ---------- NEWS / BLOG ---------- */
.news-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
}
.news-tab {
  padding: 12px 28px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  background: none;
  border-left: none; border-right: none; border-top: none;
  transition: color var(--trans), border-color var(--trans);
}
.news-tab:hover { color: var(--primary); }
.news-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.news-card {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--trans), transform var(--trans);
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.news-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--light); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 20px; }
.news-card-date { font-size: .82rem; color: var(--text-light); margin-bottom: 8px; }
.news-card-body h3 { font-size: 1rem; margin-bottom: 8px; }
.news-card-body p { font-size: .88rem; }

/* ---------- WHO WE ARE / ABOUT ---------- */
.about-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  color: var(--white);
  padding: 140px 0 80px;
}
.about-hero h1 { color: var(--white); margin-bottom: 20px; }
.about-hero p { color: rgba(255,255,255,.78); max-width: 640px; font-size: 1.05rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.value-card .icon { font-size: 2rem; margin-bottom: 12px; }
.value-card h4 { margin-bottom: 8px; }

.milestones { position: relative; padding-left: 32px; }
.milestones::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.milestone {
  position: relative;
  padding: 0 0 32px 16px;
}
.milestone::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.milestone .year { font-size: .85rem; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.milestone h4 { margin-bottom: 6px; }
.milestone p { font-size: .9rem; }

/* ---------- SUPPORT ---------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.support-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow var(--trans), transform var(--trans);
}
.support-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.support-card .icon { font-size: 2.5rem; margin-bottom: 16px; }
.support-card h3 { margin-bottom: 12px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  gap: 16px;
  transition: color var(--trans);
}
.faq-question:hover { color: var(--primary); }
.faq-icon { flex-shrink: 0; font-size: 1.2rem; transition: transform var(--trans); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }
.faq-answer p { font-size: .95rem; }

/* ---------- CONTACTS ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .95rem;
  font-family: var(--font);
  transition: border-color var(--trans);
  color: var(--text);
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,77,0,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check input { width: auto; margin-top: 3px; accent-color: var(--primary); }
.form-check label { font-size: .88rem; font-weight: 400; }

.contact-info-card {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 24px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-info-icon { font-size: 1.3rem; flex-shrink: 0; }
.contact-info-item h4 { color: var(--white); margin-bottom: 4px; font-size: .95rem; }
.contact-info-item p { color: rgba(255,255,255,.7); font-size: .9rem; }

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #111;
  color: #fff;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  z-index: 99999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-left: 4px solid #22c55e; }
.toast.error   { border-left: 4px solid #ef4444; }

/* ---------- DOWNLOAD ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.download-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow var(--trans);
  background: var(--white);
}
.download-card:hover { box-shadow: var(--shadow); }
.download-icon { font-size: 2rem; flex-shrink: 0; }
.download-card h4 { margin-bottom: 6px; }
.download-card p { font-size: .88rem; }

/* ---------- PRIVACY / LEGAL ---------- */
.legal-wrap { max-width: 800px; margin: 0 auto; }
.legal-wrap h2 { margin: 40px 0 14px; font-size: 1.3rem; }
.legal-wrap p, .legal-wrap li { font-size: .95rem; margin-bottom: 12px; color: var(--text); }
.legal-wrap ul { list-style: disc; padding-left: 24px; }

/* ---------- SITEMAP ---------- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.sitemap-group h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.sitemap-group ul { display: flex; flex-direction: column; gap: 8px; }
.sitemap-group ul li a { font-size: .92rem; color: var(--text-light); transition: color var(--trans); }
.sitemap-group ul li a:hover { color: var(--primary); }

/* ---------- NEWSLETTER STRIP ---------- */
.newsletter-strip {
  background: var(--dark-2);
  padding: 56px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter-inner h2 { color: var(--white); font-size: 1.6rem; }
.newsletter-inner p { color: rgba(255,255,255,.7); max-width: 400px; }
.newsletter-form { display: flex; gap: 0; flex-shrink: 0; }
.newsletter-form input {
  padding: 13px 20px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: .95rem;
  width: 280px;
  font-family: var(--font);
}
.newsletter-form button {
  padding: 13px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: 700;
  cursor: pointer;
  font-size: .95rem;
  white-space: nowrap;
  transition: background var(--trans);
}
.newsletter-form button:hover { background: var(--primary-dk); }

/* ---------- FOOTER ---------- */
#main-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo-text { color: var(--white); font-size: 1.5rem; margin: 12px 0 16px; }
.footer-brand .nav-logo-text span { color: var(--primary); }
.footer-brand p { font-size: .9rem; max-width: 280px; margin-bottom: 20px; }

.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: .9rem;
  transition: background var(--trans);
  text-decoration: none;
}
.social-btn:hover { background: var(--primary); }

.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--trans); }
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.45); transition: color var(--trans); }
.footer-bottom a:hover { color: var(--primary); }

.footer-legal-note {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 14px;
  padding-top: 14px;
  font-size: .75rem;
  color: rgba(255,255,255,.28);
  line-height: 1.6;
  text-align: center;
}

/* ---------- PAGE HERO (generic) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1c2a3a 100%);
  padding: 130px 0 70px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.5); transition: color var(--trans); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ---------- BACK TO TOP ---------- */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 9990;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--trans), transform var(--trans), background var(--trans);
  box-shadow: 0 4px 12px rgba(255,77,0,.35);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--primary-dk); }

/* ---------- COOKIE BANNER ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark-2);
  color: rgba(255,255,255,.85);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 99990;
  font-size: .9rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s ease;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner a { color: var(--primary); }
#cookie-banner-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept-btn { padding: 9px 20px; background: var(--primary); color: white; border: none; border-radius: 4px; font-weight: 700; cursor: pointer; font-size: .9rem; }
.cookie-reject-btn { padding: 9px 20px; background: transparent; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2); border-radius: 4px; font-weight: 600; cursor: pointer; font-size: .9rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .product-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .sectors-full-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-slide { height: 55vh; min-height: 420px; }
  .hero-content { padding: 40px 0; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .about-values { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .product-categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; border-radius: 4px; }
  .newsletter-form button { border-radius: 4px; }
  .contact-form-wrap { padding: 24px; }
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================================
   PAGINE PRODOTTO DETTAGLIO
   ======================================== */

/* Hero prodotto */
.product-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #0d1f35 100%);
  padding: 110px 0 0;
  overflow: hidden;
}
.product-hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  padding-bottom: 60px;
}
.product-hero-content { color: var(--white); }
.product-hero-content .tag { margin-bottom: 16px; }
.product-hero-content h1 { color: var(--white); margin-bottom: 16px; }
.product-hero-content .hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
  line-height: 1.7;
}
.product-hero-content .hero-badges {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px;
}
.hero-badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
}
.product-hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  height: 460px;
}
.product-hero-img img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.5));
}

/* Spec strip */
.spec-strip {
  background: var(--primary);
  color: var(--white);
  padding: 28px 0;
}
.spec-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.spec-strip-item {
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,.25);
}
.spec-strip-item:last-child { border-right: none; }
.spec-strip-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}
.spec-strip-item span {
  font-size: .85rem;
  opacity: .85;
}

/* Sezione features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--trans), transform var(--trans);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-icon {
  width: 52px; height: 52px;
  background: rgba(255,77,0,.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.feature-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: var(--text-light); line-height: 1.6; }

/* Specifiche tecniche tabella */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: .95rem;
}
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td {
  padding: 14px 16px;
  vertical-align: top;
}
.specs-table td:first-child {
  font-weight: 600;
  color: var(--mid);
  width: 35%;
  background: var(--light);
}
.specs-table tr:nth-child(even) td:first-child { background: #eeeeee; }

/* Video embed */
.video-section { background: var(--dark); padding: 80px 0; }
.video-section h2 { color: var(--white); text-align: center; margin-bottom: 12px; }
.video-section .section-sub { color: rgba(255,255,255,.6); text-align: center; margin-bottom: 40px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}
.video-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-single .video-embed-wrap { max-width: 860px; margin: 0 auto; }

/* Sezione gallery */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.product-gallery img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans);
}
.product-gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* CTA prodotto */
.product-cta-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  padding: 64px 0;
  text-align: center;
  color: var(--white);
}
.product-cta-bar h2 { color: var(--white); margin-bottom: 12px; }
.product-cta-bar p { opacity: .9; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.product-cta-bar .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Prodotti correlati */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

/* Responsive pagine prodotto */
@media (max-width: 1100px) {
  .product-hero-inner { grid-template-columns: 1fr 340px; gap: 40px; }
  .product-hero-img { max-width: 340px; height: 400px; }
}
@media (max-width: 900px) {
  .product-hero-inner { grid-template-columns: 1fr; padding-bottom: 0; }
  .product-hero-img { height: 300px; max-width: 100%; margin: 0 auto; }
  .product-hero-img img { max-height: 100%; width: auto; max-width: 100%; }
  .spec-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .spec-strip-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); padding: 12px 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .product-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  .spec-strip-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .product-gallery { grid-template-columns: repeat(2, 1fr); }
}
