/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #1a52cc;
  --green-dark: #1444ad;
  --green-dim:  #1a52cc;
  --bg:         #ffffff;
  --bg-2:       #f4f6f9;
  --bg-3:       #edf0f5;
  --accent:     #eef2fc;
  --heading:    #111827;
  --text:       #374151;
  --text-muted: #6b7280;
  --border:     #e2e6ee;
  --white:      #ffffff;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 2px 16px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.10);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  margin: 0 auto 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--green); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: var(--transition);
}

/* Nav dropdown */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-parent {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-parent::after {
  content: '▾';
  font-size: 0.65rem;
  display: inline-block;
  transition: transform var(--transition);
}

.nav-item-dropdown:hover .nav-parent::after,
.nav-item-dropdown.open .nav-parent::after {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 200;
}

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.nav-dropdown a:hover { background: var(--accent); }

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(26,82,204,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(26,82,204,0.04) 0%, transparent 55%),
    linear-gradient(160deg, #ffffff 0%, #f0f4fc 50%, #f7f9fb 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--heading);
  margin-bottom: 20px;
  max-width: 700px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(26,82,204,0.22);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,82,204,0.28); }

.btn-outline {
  background: transparent;
  color: var(--heading);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }

.hero-badge {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.badge-icon { color: var(--green); font-size: 0.6rem; }

/* ===========================
   SECTIONS
=========================== */
.section { padding: 96px 0; }
.section-light  { background: var(--bg-2); }
.section-dark   { background: var(--bg-2); }
.section-accent { background: var(--accent); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading);
  margin-bottom: 16px;
}

.section-header-light h2 { color: var(--heading); }

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===========================
   CHI SIAMO
=========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.975rem;
  line-height: 1.8;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.value-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); }

.value-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.value-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   SERVIZI
=========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===========================
   SERVIZI BLOCKS
=========================== */
#servizi .section-header { margin-bottom: 32px; }

.srv-block {
  border-top: 1px solid var(--border);
  padding: 60px 0;
}
.srv-block:last-child { border-bottom: 1px solid var(--border); }
.srv-alt { background: var(--bg); }

.srv-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}

.srv-lead {
  position: sticky;
  top: 84px;
}

.srv-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--border);
  margin-bottom: 14px;
}

.srv-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 16px;
}

.srv-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
}

.srv-intro {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  font-weight: 500;
  margin-bottom: 20px;
}

.srv-content > p:not(.srv-intro) {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.srv-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.srv-features li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}

.srv-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.55;
}

/* ===========================
   PRODOTTI BLOCKS
=========================== */
.pb-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 96px 24px 72px;
}

.pb-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 72px;
}

.pb-block {
  border-top: 1px solid var(--border);
  padding: 72px 0;
}
.pb-block:last-of-type { border-bottom: 1px solid var(--border); }
.pb-alt { background: var(--bg-2); }

.pb-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  cursor: pointer;
}
.pb-card-link:hover {
  box-shadow: 0 8px 32px rgba(26,82,204,0.13);
  transform: translateY(-3px);
  border-color: var(--blue);
}
.pb-card-link .pb-icon svg { width: 52px; height: 52px; }
.pb-card-link .pb-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--heading);
}

.pb-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.pb-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.pb-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--border);
  line-height: 1;
}

.pb-icon { display: flex; align-items: center; }
.pb-icon svg { width: 56px; height: 56px; flex-shrink: 0; }

.pb-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 20px;
}

.pb-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.pb-desc:last-child { margin-bottom: 0; }

/* Aside — highlights panel */
.pb-aside {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
}
.pb-alt .pb-aside { background: var(--white); }

.pb-aside-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.pb-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-highlights li {
  font-size: 0.875rem;
  color: var(--text);
  padding-left: 21px;
  position: relative;
  line-height: 1.5;
}
.pb-highlights li::before {
  content: '';
  position: absolute;
  left: 7px; top: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.pb-highlights li.pb-highlight-star {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(26,82,204,0.07);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  padding: 6px 10px 6px 22px;
}
.pb-highlights li.pb-highlight-star::before {
  content: '★';
  width: auto; height: auto;
  background: none;
  border-radius: 0;
  top: 6px;
  font-size: 0.75rem;
  color: var(--primary);
}
.pb-highlights li.pb-highlight-star a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* WF-01 extended detail */
.pb-detail {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

/* ===========================
   PRODOTTO (existing detail)
=========================== */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 72px;
}

.product-visual {}

.product-diagram {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  min-width: 90px;
  text-align: center;
  background: var(--white);
}

.node-icon { font-size: 1.5rem; }

.node-sensor  { border-color: #1a52cc; background: rgba(26,82,204,0.06); }
.node-gateway { border-color: #2980b9; background: rgba(41,128,185,0.06); }
.node-cloud   { border-color: #8e44ad; background: rgba(142,68,173,0.06); }

.diagram-arrow {
  font-size: 1.4rem;
  color: #c0c8d4;
  flex-shrink: 0;
}

.product-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.spec-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
}

.spec-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.product-intro {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 28px;
  border-left: 3px solid var(--green);
  padding-left: 18px;
  background: rgba(26,82,204,0.04);
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.product-components h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.component-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.component-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.comp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 6px;
  flex-shrink: 0;
}

.component-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--heading);
  margin-bottom: 4px;
}

.component-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* TECH SPECS TABS */
.tech-specs {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.tech-specs h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  padding: 22px 28px 0;
}

.specs-tabs {
  display: flex;
  gap: 0;
  padding: 16px 28px 0;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  margin-bottom: -1px;
}
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.tab-btn:hover:not(.active) { color: var(--heading); }

.tab-content { display: none; padding: 24px 28px; }
.tab-content.active { display: block; }

.specs-table { display: flex; flex-direction: column; gap: 0; }

.spec-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.spec-row:last-child { border-bottom: none; }

.spec-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 200px;
  flex-shrink: 0;
}

.spec-val {
  font-size: 0.85rem;
  color: var(--heading);
}

/* ===========================
   COME FUNZIONA
=========================== */
.steps-grid {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 72px;
}

.step-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.step-number {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 10px;
}

.step-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.865rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.step-tag {
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.step-connector {
  font-size: 1.8rem;
  color: #8fa3c8;
  flex-shrink: 0;
}

/* APP FEATURE */
.app-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
}

.app-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
}

.app-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.app-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-features-list li {
  font-size: 0.875rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.app-features-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Phone mockup */
.app-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 220px;
  background: #1c2333;
  border: 2px solid #2e3a50;
  border-radius: 28px;
  padding: 16px 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.phone-screen {
  background: #111827;
  border-radius: 18px;
  overflow: hidden;
  padding-bottom: 12px;
}

.screen-header {
  background: var(--green);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 10px 14px;
  text-align: center;
  letter-spacing: 0.05em;
}

.screen-map {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  min-height: 80px;
  align-items: center;
}

.map-node {
  font-size: 0.9rem;
}
.map-node.active { color: #4a7ee0; }
.map-node.warn { color: #f39c12; }

.screen-stats {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #8b9ab0;
  padding: 6px 8px;
  background: #1f2937;
  border-radius: 6px;
}

.stat-val.ok { color: #4a7ee0; }

/* ===========================
   APPLICAZIONI
=========================== */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.app-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.app-card-large {
  grid-column: span 2;
}

.app-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.app-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 10px;
}

.app-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===========================
   VANTAGGI
=========================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.benefit-item:hover { border-color: var(--green); box-shadow: var(--shadow-md); }

.benefit-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.benefit-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 10px;
  line-height: 1.35;
}

.benefit-item p {
  font-size: 0.835rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===========================
   PORTFOLIO
=========================== */
.portfolio-intro {
  font-size: 0.975rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  line-height: 1.8;
}

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

.portfolio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.portfolio-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.portfolio-card-icon {
  font-size: 1.8rem;
}

.portfolio-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}

.portfolio-card > p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.portfolio-activities-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portfolio-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
}

.portfolio-list li {
  font-size: 0.855rem;
  color: var(--text);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.portfolio-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.portfolio-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}

@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ===========================
   CONTATTI
=========================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); }

.contact-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.contact-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 340px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--green); }

.footer-copy {
  font-size: 0.8rem;
  color: #a0aab8;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .services-grid      { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid      { grid-template-columns: repeat(2, 1fr); }
  .product-showcase   { grid-template-columns: 1fr; gap: 40px; }
  .product-specs-grid { grid-template-columns: repeat(4, 1fr); }
  .pb-inner { grid-template-columns: 1fr; gap: 36px; }
  .pb-aside { position: static; }
  .pb-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .pb-block { padding: 48px 0; }
  .pb-section-header { padding: 64px 24px 48px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .about-grid       { grid-template-columns: 1fr; gap: 40px; }
  .services-grid    { grid-template-columns: 1fr; }
  .applications-grid { grid-template-columns: 1fr; }
  .app-card-large   { grid-column: span 1; }
  .benefits-grid    { grid-template-columns: 1fr 1fr; }
  .contact-grid     { grid-template-columns: 1fr 1fr; }

  .steps-grid       { flex-direction: column; }
  .step-connector   { transform: rotate(90deg); }

  .app-feature {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 36px;
  }

  .product-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-row { flex-direction: column; gap: 4px; }
  .spec-name { min-width: unset; }

  .diagram-arrow { display: none; }
  .product-diagram { flex-wrap: wrap; gap: 10px; }

  /* Dropdown in mobile nav */
  .nav-item-dropdown { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
  .nav-parent { width: 100%; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    padding: 4px 0;
    min-width: unset;
    width: 100%;
    margin-left: 16px;
    display: none;
  }
  .nav-item-dropdown:hover .nav-dropdown { display: none; }
  .nav-item-dropdown.open .nav-dropdown { display: block; }
  .nav-dropdown a { padding: 8px 12px; white-space: normal; }
}

@media (max-width: 480px) {
  .hero h1       { font-size: 2rem; }
  .hero-cta      { flex-direction: column; }
  .hero-badge    { flex-direction: column; gap: 12px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .specs-tabs    { flex-wrap: wrap; padding: 12px 16px 0; }
  .tab-content   { padding: 16px; }
}

/* ===========================
   PRODUCT PAGES
=========================== */
.product-breadcrumb {
  padding: 84px 0 0;
}

.product-breadcrumb .container {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.product-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.product-back:hover { color: var(--green); }

/* Preview card CTA */
.pb-cta { margin-top: 24px; }
