/* ==========================================================================
   APD S.r.l. - Design System inspired by TechUp (#82872)
   Palette: #141d28 (ds), #233142 (ds ms), #ffffff (ls), #f8f8f9 (ls ms), #0ac775 (accent)
   ========================================================================== */

:root {
  --darkgrey: #141d28;
  --dark: #233142;
  --dark-overlay: #222739;
  --light: #ffffff;
  --light-muted: #f8f8f9;
  --accent: #0ac775;
  --accent-hover: #08aa63;
  --accent-dark: #05663c;
  --accent-blue: #288ef7;
  --text-light: #5c6f87;
  --text-dark: #aeb1b4;
  --border-dark: #343d48;
  --border-light: rgba(20, 29, 40, 0.1);
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', 'Poppins', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --container-max: 1170px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-light);
  background-color: var(--light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 15px;
}

/* Section themes matching TechUp */
.ds {
  background-color: var(--darkgrey);
  color: var(--text-dark);
}
.ds h1, .ds h2, .ds h3, .ds h4, .ds h5, .ds h6 {
  color: var(--light);
}
.ds.ms {
  background-color: var(--dark);
}

.ls {
  background-color: var(--light);
  color: var(--text-light);
}
.ls h1, .ls h2, .ls h3, .ls h4, .ls h5, .ls h6 {
  color: var(--darkgrey);
}
.ls.ms {
  background-color: var(--light-muted);
}

.section-pad {
  padding: 96px 0;
}
.section-pad-lg {
  padding: 120px 0;
}
@media (max-width: 991px) {
  .section-pad, .section-pad-lg {
    padding: 64px 0;
  }
}

/* Special Heading (vertical green bar + green <mark>) */
.special-heading {
  font-size: 2.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.special-heading .heading-inner {
  display: inline-block;
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  padding-top: 4px;
  padding-bottom: 4px;
  text-align: left;
}
.special-heading mark {
  background: transparent;
  color: var(--accent);
  padding: 0;
}
.special-heading.text-center {
  text-align: center;
}
.section-header-center {
  text-align: center;
  margin-bottom: 58px;
}
.section-subtitle {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Buttons (Pill for Hero, Sharp Rectangular for Content/CTA) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 34px;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}
.btn-pill {
  border-radius: 35px;
}
.btn-rect {
  border-radius: 0;
}
.btn-main {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--darkgrey);
}
.btn-main:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--light);
  transform: translateY(-2px);
}
.btn-outline-main {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--light);
}
.ls .btn-outline-main {
  color: var(--darkgrey);
}
.btn-outline-main:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--darkgrey);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header & Topbar
   ========================================================================== */
.site-header-wrap {
  position: relative;
  z-index: 900;
  background-color: var(--darkgrey);
}

.page-topline {
  background-color: var(--darkgrey);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 0;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.85);
}
.topline-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topline-contacts {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.topline-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
}
.topline-contacts a:hover {
  color: var(--accent);
}
.topline-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topline-socials a {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
}
.topline-socials a:hover {
  color: var(--accent);
}

.page-header {
  background-color: var(--darkgrey);
  height: 92px;
  display: flex;
  align-items: center;
  transition: height 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.page-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 950;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.header-placeholder {
  display: none;
  height: 92px;
}
.header-placeholder.active {
  display: block;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo svg {
  width: 42px;
  height: 42px;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--light);
  padding: 10px 0;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 225px;
  background-color: var(--light);
  box-shadow: 0 18px 40px rgba(20, 29, 40, 0.18);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 980;
  border-top: 3px solid var(--accent);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 22px;
  font-size: 0.88rem;
  color: var(--darkgrey);
  font-weight: 500;
}
.nav-dropdown a:hover {
  color: var(--accent);
  background-color: var(--light-muted);
  padding-left: 26px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-trigger {
  background: transparent;
  border: none;
  color: var(--light);
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.search-trigger:hover {
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--light);
  padding: 8px;
}

@media (max-width: 1099px) {
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .topline-inner {
    flex-direction: column;
    gap: 6px;
  }
  .page-header {
    height: 76px;
  }
}

/* Mobile Fullscreen Menu */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 29, 40, 0.98);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  overflow-y: auto;
}
.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.mobile-close-btn {
  width: 42px;
  height: 42px;
  border: none;
  background-color: var(--accent);
  color: var(--darkgrey);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}
.mobile-menu-list > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  color: var(--light);
  font-size: 1.1rem;
  font-weight: 500;
}
.mobile-menu-list a.active,
.mobile-menu-list a:hover {
  color: var(--accent);
}
.mobile-sublist {
  padding-left: 18px;
  padding-bottom: 10px;
}
.mobile-sublist a {
  padding: 9px 4px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* Search Modal Overlay (Full-width white top bar like TechUp) */
.search-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 29, 40, 0.72);
  z-index: 1250;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.search-overlay.open {
  opacity: 1;
  visibility: visible;
}
.search-bar-panel {
  background-color: var(--light);
  padding: 28px 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.search-form-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 10px;
}
.search-form-row input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.25rem;
  font-family: var(--font-sans);
  color: var(--darkgrey);
  background: transparent;
}
.search-submit-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  padding: 6px;
  display: inline-flex;
}
.search-close-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  padding: 4px 10px;
}
.search-results-box {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  max-height: 360px;
  overflow-y: auto;
}
.search-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border-light);
  background: var(--light-muted);
  transition: var(--transition);
}
.search-result-card:hover {
  border-color: var(--accent);
}
.search-result-card img {
  width: 58px;
  height: 44px;
  object-fit: cover;
  flex-shrink: 0;
}
.search-result-card strong {
  display: block;
  color: var(--darkgrey);
  font-size: 0.9rem;
}
.search-result-card span {
  font-size: 0.78rem;
  color: var(--accent-dark);
}

/* ==========================================================================
   Hero Slider (Diagonal bottom clip + 01/02/03 + Vertical NEXT/PREC)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--light);
  overflow: hidden;
}
.hero-slider-wrap {
  position: relative;
  height: 670px;
  clip-path: polygon(0 0, 100% 0, 100% 89%, 0 100%);
  background-color: var(--dark-overlay);
}
@media (max-width: 991px) {
  .hero-slider-wrap {
    height: 580px;
    clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
  }
}
@media (max-width: 640px) {
  .hero-slider-wrap {
    height: 540px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, transform 0.9s ease;
  transform: scale(1.03);
  display: flex;
  align-items: center;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(20, 29, 40, 0.92) 0%,
    rgba(20, 29, 40, 0.78) 52%,
    rgba(20, 29, 40, 0.45) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 4;
  max-width: 780px;
  padding-bottom: 32px;
}
.hero-headline-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 22px;
}
.hero-slide-num {
  font-family: var(--font-display);
  font-size: 6.2rem;
  font-weight: 700;
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.14);
  user-select: none;
  flex-shrink: 0;
}
.hero-divider {
  width: 2px;
  height: 112px;
  background-color: var(--accent);
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 3.45rem;
  font-weight: 300;
  color: var(--light);
  line-height: 1.12;
  margin: 0;
}
.hero-title span {
  display: block;
  font-weight: 700;
  color: var(--accent);
}
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 767px) {
  .hero-slide-num {
    font-size: 3.5rem;
  }
  .hero-divider {
    height: 70px;
  }
  .hero-headline-row {
    gap: 16px;
  }
  .hero-title {
    font-size: 2.15rem;
  }
}

/* Vertical rotated NEXT / PREC arrows on right edge */
.hero-vertical-nav {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.hero-v-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px;
  transition: var(--transition);
}
.hero-v-btn span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-v-btn:hover,
.hero-v-btn.accent-label {
  color: var(--accent);
}
.hero-v-btn.accent-label:hover {
  color: var(--light);
}
@media (max-width: 640px) {
  .hero-vertical-nav {
    right: 10px;
    gap: 14px;
  }
}

/* ==========================================================================
   Section 2: Come Lavoriamo (3 circular steps + dashed curved arrows)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
  position: relative;
}
.step-card {
  text-align: center;
  position: relative;
  padding: 0 12px;
}
.step-circle {
  width: 220px;
  height: 220px;
  margin: 0 auto 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--light-muted);
  box-shadow: 0 14px 36px rgba(20, 29, 40, 0.12);
  position: relative;
  transition: var(--transition);
}
.step-card:hover .step-circle {
  transform: translateY(-6px);
  border-color: rgba(10, 199, 117, 0.35);
}
.step-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-title {
  font-size: 1.32rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  max-width: 280px;
  margin: 0 auto;
}
.step-arrow {
  position: absolute;
  top: 78px;
  right: -46px;
  width: 72px;
  height: 36px;
  pointer-events: none;
  z-index: 3;
}
@media (max-width: 991px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .step-arrow {
    display: none;
  }
}

/* ==========================================================================
   Section 3: Core Features Grid (.ds.ms #233142, 3x2)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px 38px;
}
.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.feature-icon {
  flex-shrink: 0;
  color: var(--accent);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.feature-body h4 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-body h4 a:hover {
  color: var(--accent);
}
.feature-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.65;
}
@media (max-width: 991px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 28px;
  }
}
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Section 4: Product Showcase (Asymmetric col-lg-3 + col-lg-9 carousel)
   ========================================================================== */
.products-split {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 42px;
  align-items: start;
}
.products-aside p {
  margin: 20px 0 28px;
  font-size: 0.92rem;
}
.carousel-arrows {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.icon-square-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-light);
  background: var(--light);
  color: var(--darkgrey);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.icon-square-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--darkgrey);
}

.product-cards-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--light);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--light-muted);
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-media img {
  transform: scale(1.06);
}
.product-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: var(--accent);
  color: var(--darkgrey);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 11px;
}
.product-card-body {
  padding: 20px 14px 12px;
  text-align: center;
}
.product-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--darkgrey);
}
.product-card:hover .product-card-title {
  color: var(--accent-hover);
}
.product-card-cat {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}
.product-card-specs {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 1099px) {
  .products-split {
    grid-template-columns: 1fr;
  }
  .products-aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }
  .products-aside p {
    margin: 8px 0 0;
    max-width: 520px;
  }
}
@media (max-width: 767px) {
  .product-cards-track {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Section 5: Perché Sceglierci (.ls.ms #f8f8f9 + bg image right)
   ========================================================================== */
.why-us-section {
  position: relative;
  overflow: hidden;
}
.why-us-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.reasons-list {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.reason-item {
  padding-left: 24px;
}
.reason-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: #8b99ab;
  margin-bottom: 6px;
}
.reason-item.is-primary .reason-num {
  color: var(--accent);
}
.reason-title {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--darkgrey);
  margin-bottom: 8px;
}
.reason-desc {
  margin: 0;
  font-size: 0.92rem;
}
.why-us-visual {
  position: relative;
}
.why-us-frame {
  position: relative;
  border: 10px solid var(--light);
  box-shadow: 0 24px 60px rgba(20, 29, 40, 0.12);
  overflow: hidden;
}
.why-us-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.why-us-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--darkgrey);
  color: var(--light);
  padding: 14px 20px;
  border-left: 4px solid var(--accent);
}
.why-us-tag strong {
  display: block;
  font-size: 1.05rem;
  color: var(--accent);
}
.why-us-tag span {
  font-size: 0.82rem;
  color: var(--text-dark);
}
@media (max-width: 991px) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Section 6: Full-Width Gallery Strip (4 edge-to-edge tiles, zero gutter)
   ========================================================================== */
.gallery-strip-section {
  position: relative;
  padding: 0;
}
.gallery-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 29, 40, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
}
.gallery-tile:hover img {
  transform: scale(1.08);
}
.gallery-tile:hover .gallery-tile-overlay {
  opacity: 1;
}
.gallery-plus {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 300;
}
.gallery-tile-caption {
  color: var(--light);
  font-size: 0.9rem;
  font-weight: 500;
}
@media (max-width: 991px) {
  .gallery-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .gallery-strip-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Section 7: Settori & Applicazioni (Synced Circular Avatars + Quote Block)
   ========================================================================== */
.sectors-box {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.sector-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 36px;
}
.sector-avatar-btn {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid transparent;
  padding: 0;
  background: var(--light);
  opacity: 0.55;
  transform: scale(0.86);
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(20, 29, 40, 0.1);
}
.sector-avatar-btn.active {
  width: 122px;
  height: 122px;
  opacity: 1;
  transform: scale(1);
  border-color: var(--accent);
}
.sector-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sector-quote-wrap {
  position: relative;
  padding: 0 56px;
}
.sector-quote-text {
  font-size: 1.04rem;
  font-style: italic;
  color: var(--text-light);
  margin: 0 0 24px;
  line-height: 1.8;
}
.sector-author {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--darkgrey);
  margin-bottom: 4px;
}
.sector-role {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
}
.sector-nav-arrow {
  position: absolute;
  top: 22px;
  background: transparent;
  border: none;
  color: var(--text-light);
  padding: 8px;
  transition: var(--transition);
}
.sector-nav-arrow:hover {
  color: var(--accent);
}
.sector-nav-prev { left: 0; }
.sector-nav-next { right: 0; }
@media (max-width: 600px) {
  .sector-avatars { gap: 12px; }
  .sector-avatar-btn { width: 68px; height: 68px; }
  .sector-avatar-btn.active { width: 90px; height: 90px; }
  .sector-quote-wrap { padding: 0 26px; }
}

/* ==========================================================================
   Section 8: Dark Split CTA Banner (.ds.ms #233142, sharp rect buttons)
   ========================================================================== */
.cta-banner {
  padding: 0;
  overflow: hidden;
}
.cta-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}
.cta-banner-media {
  position: relative;
  height: 100%;
  min-height: 410px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 32px;
}
.cta-banner-media img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}
.cta-banner-content {
  padding: 72px 0;
}
.cta-banner-title {
  font-size: 2.85rem;
  font-weight: 700;
  color: var(--light);
  line-height: 1.15;
  margin-bottom: 18px;
}
.cta-banner-title span {
  display: block;
  font-weight: 300;
  color: var(--accent);
}
.cta-banner-content p {
  color: var(--text-dark);
  margin-bottom: 32px;
  max-width: 470px;
}
.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 991px) {
  .cta-banner-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cta-banner-media {
    min-height: 280px;
    padding-top: 40px;
  }
  .cta-banner-content {
    padding: 44px 0 64px;
  }
  .cta-banner-title {
    font-size: 2.2rem;
  }
}

/* ==========================================================================
   Section 9: Focus Tecnico / Tiled Asymmetric Layout (col-lg-8 + col-lg-4)
   ========================================================================== */
.tiled-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 30px;
  align-items: start;
}
.tiled-main-card {
  position: relative;
}
.tiled-media {
  position: relative;
  overflow: hidden;
}
.tiled-media img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tiled-main-card .tiled-media img {
  height: 370px;
}
.tiled-side-card .tiled-media img {
  height: 220px;
}
.tiled-main-card:hover .tiled-media img,
.tiled-side-card:hover .tiled-media img {
  transform: scale(1.04);
}
.tiled-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--accent);
  color: var(--darkgrey);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 14px;
  z-index: 3;
}
.tiled-main-content {
  position: relative;
  background-color: var(--light);
  margin: -72px 30px 0;
  padding: 36px 40px;
  box-shadow: 0 18px 45px rgba(20, 29, 40, 0.08);
  z-index: 4;
}
.tiled-main-content h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.tiled-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.tiled-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--darkgrey);
  border-bottom: 1px solid var(--darkgrey);
  padding-bottom: 4px;
}
.tiled-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.tiled-side-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.tiled-side-card {
  position: relative;
}
.tiled-side-content {
  position: relative;
  background-color: var(--darkgrey);
  color: var(--text-dark);
  margin: -56px 20px 0;
  padding: 26px 28px;
  z-index: 4;
}
.tiled-side-content h4 {
  color: var(--light);
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.tiled-side-content h4 a:hover {
  color: var(--accent);
}
.tiled-side-content .tiled-meta {
  color: var(--text-dark);
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .tiled-grid {
    grid-template-columns: 1fr;
  }
  .tiled-main-content {
    margin: -48px 16px 0;
    padding: 26px 24px;
  }
}

/* ==========================================================================
   Footer & Copyright Bar
   ========================================================================== */
.page-footer {
  background-color: var(--darkgrey);
  color: var(--text-dark);
  padding: 80px 0 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 48px;
}
.footer-heading {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.footer-about p {
  margin: 0 0 24px;
  font-size: 0.92rem;
  line-height: 1.75;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-socials a {
  color: var(--light);
  opacity: 0.85;
}
.footer-socials a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-links li:last-child {
  border-bottom: none;
}
.footer-links a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  font-size: 0.92rem;
  color: var(--light);
}
.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}
.footer-links .chev {
  color: var(--accent);
  font-weight: 700;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.footer-contact-item svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-item strong {
  display: block;
  color: var(--light);
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.footer-contact-item span,
.footer-contact-item a {
  color: var(--text-dark);
  font-size: 0.9rem;
}
.footer-contact-item a:hover {
  color: var(--accent);
}

.page-copyright {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 20px 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  background-color: var(--accent);
  color: var(--light);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 880;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(10, 199, 117, 0.32);
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background-color: var(--accent-hover);
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ==========================================================================
   Secondary Pages: Page Title Banner, Catalog Filters, FAQ, Contact Form
   ========================================================================== */
.page-title-banner {
  position: relative;
  padding: 105px 0 88px;
  text-align: center;
  background-color: var(--darkgrey);
  overflow: hidden;
}
.page-title-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.page-title-inner {
  position: relative;
  z-index: 2;
}
.page-title-inner h1 {
  font-size: 2.9rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 12px;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-dark);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb .current {
  color: var(--accent);
}

/* Filter Pills */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.filter-pill {
  border: 1px solid var(--border-light);
  background: var(--light);
  color: var(--darkgrey);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 22px;
  transition: var(--transition);
}
.filter-pill:hover,
.filter-pill.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--darkgrey);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.catalog-card {
  background: var(--light);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 29, 40, 0.1);
  border-color: rgba(10, 199, 117, 0.45);
}
.catalog-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--light-muted);
}
.catalog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.catalog-card:hover .catalog-card-img img {
  transform: scale(1.06);
}
.catalog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.catalog-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.catalog-card-body p {
  font-size: 0.9rem;
  margin: 0 0 18px;
  flex: 1;
}
.catalog-card-actions {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.catalog-card-actions .btn {
  padding: 10px 16px;
  font-size: 0.8rem;
  flex: 1;
}
@media (max-width: 991px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

/* FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--light);
  border: 1px solid var(--border-light);
}
.faq-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--darkgrey);
}
.faq-trigger .faq-plus {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}
.faq-panel {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-light);
}
.faq-item.open .faq-panel {
  display: block;
}

/* Contact Info & Form */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contact-info-card {
  background: var(--light);
  border: 1px solid var(--border-light);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.contact-info-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.contact-info-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(10, 199, 117, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.contact-info-card p, .contact-info-card a {
  margin: 0;
  font-size: 0.9rem;
}
@media (max-width: 991px) {
  .contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .contact-cards-grid { grid-template-columns: 1fr; }
}

.contact-form-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: var(--light);
  padding: 48px;
  box-shadow: 0 18px 50px rgba(20, 29, 40, 0.06);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group-full {
  grid-column: 1 / -1;
}
.form-field {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(20, 29, 40, 0.14);
  background: var(--light-muted);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--darkgrey);
  outline: none;
  transition: border-color 0.25s ease;
}
.form-field:focus {
  border-color: var(--accent);
  background: var(--light);
}
textarea.form-field {
  min-height: 150px;
  resize: vertical;
}
.form-feedback {
  margin-top: 18px;
  padding: 16px 20px;
  background: rgba(10, 199, 117, 0.12);
  border-left: 4px solid var(--accent);
  color: var(--darkgrey);
  font-weight: 500;
  display: none;
}
.form-feedback.show {
  display: block;
}
@media (max-width: 640px) {
  .contact-form-wrap { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Modals: Product Detail Modal & Lightbox
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 29, 40, 0.85);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.product-modal-box {
  background: var(--light);
  max-width: 940px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.modal-close-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  background: var(--darkgrey);
  color: var(--light);
  font-size: 1.3rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-close-x:hover {
  background: var(--accent);
  color: var(--darkgrey);
}
.product-modal-gallery {
  background: var(--light-muted);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-modal-main-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--light);
}
.product-modal-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-modal-thumb {
  width: 68px;
  height: 52px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
}
.product-modal-thumb.active,
.product-modal-thumb:hover {
  border-color: var(--accent);
  opacity: 1;
}
.product-modal-info {
  padding: 36px 32px;
}
.product-modal-tag {
  display: inline-block;
  background: rgba(10, 199, 117, 0.14);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.product-modal-info h2 {
  font-size: 1.65rem;
  color: var(--darkgrey);
  margin-bottom: 12px;
}
.product-modal-specs {
  margin: 20px 0 28px;
  border-top: 1px solid var(--border-light);
}
.product-modal-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
}
.product-modal-specs li strong {
  color: var(--darkgrey);
}

/* Lightbox */
.lightbox-box {
  position: relative;
  max-width: 1020px;
  width: 100%;
  text-align: center;
}
.lightbox-box img {
  max-height: 78vh;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
  color: var(--light);
  margin-top: 14px;
  font-size: 0.96rem;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  background: rgba(20, 29, 40, 0.8);
  color: var(--light);
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover {
  background: var(--accent);
  color: var(--darkgrey);
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

@media (max-width: 767px) {
  .product-modal-box {
    grid-template-columns: 1fr;
  }
}
