/* ==========================================================================
   QUANTEK - Classic Banded Multi-Page Design System & Stylesheet
   - Identical Content & Colors (#00819D Primary, #F05D00 Accent, #222222 Slate)
   - Real Slider Background Images & Overlays
   - Classic Full-Width Banded Sections (No heavy elevated floating containers)
   - Nomisma-style Products Showcase with Clean, Streamlined Content
   - Full-Width Map Background with Overlaid Contact Card (No Form)
   ========================================================================== */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand Palette */
  --primary: #00819D;          /* Quantek Teal/Cyan */
  --primary-dark: #006880;     /* Dark Cyan */
  --primary-deep: #09212D;     /* High-Tech Navy */
  --primary-light: #00A99D;    /* Vibrant Teal */
  --primary-soft: #F0F8FA;     /* Soft Cyan Tint */
  
  --accent: #F05D00;           /* Quantek Energy Orange */
  --accent-hover: #D84F00;     /* Darker Orange */
  --accent-soft: #FFF5EE;      /* Soft Orange Tint */
  
  --dark: #222222;             /* Quantek Slate Charcoal */
  --text: #475569;             /* Body Text Gray */
  --text-muted: #64748B;       /* Subtitle Muted */
  
  /* Band Backgrounds */
  --bg-white: #FFFFFF;
  --bg-light-1: #F8FAFC;       /* Very Light Cool Gray */
  --bg-light-2: #EEF2F6;       /* Soft Slate */
  --bg-band-primary: #00819D;  /* Official Quantek Primary Band */
  --bg-band-dark: #0A2230;     /* Corporate Dark Band */
  
  --border-color: #E2E8F0;
  --border-dark: #CBD5E1;
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Open Sans', sans-serif;
  
  /* Border Radius */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 9999px;
  
  /* Flat / Subtle Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-clean: 0 4px 16px rgba(0, 0, 0, 0.08);
  
  --transition: all 0.25s ease-in-out;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

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

/* --- CONTAINERS & BANDS --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.band {
  width: 100%;
  padding: 4.5rem 0;
  position: relative;
}

.band-sm {
  padding: 3rem 0;
}

.band-lg {
  padding: 6rem 0;
}

.band-white {
  background-color: var(--bg-white);
  color: var(--text);
}

.band-light {
  background-color: var(--bg-light-1);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.band-slate {
  background-color: var(--bg-light-2);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.band-primary {
  background-color: var(--bg-band-primary);
  color: #FFFFFF;
}

.band-primary h1,
.band-primary h2,
.band-primary h3,
.band-primary h4 {
  color: #FFFFFF;
}

.band-primary p {
  color: #F0F9FB;
}

.band-dark {
  background-color: var(--bg-band-dark);
  color: #E2E8F0;
}

.band-dark h1,
.band-dark h2,
.band-dark h3,
.band-dark h4 {
  color: #FFFFFF;
}

.band-dark p {
  color: #CBD5E1;
}

/* --- HEADINGS & LABELS --- */
.section-header {
  margin-bottom: 3rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.section-tag.accent {
  color: var(--accent);
}

.section-tag.white {
  color: #7BE0D8;
}

.section-title {
  font-size: 2.15rem;
  color: var(--dark);
  margin-bottom: 0.85rem;
  letter-spacing: -0.3px;
}

.band-primary .section-title,
.band-dark .section-title {
  color: #FFFFFF;
}

.section-title-divider {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.section-header.text-center .section-title-divider {
  margin-left: auto;
  margin-right: auto;
}

.band-primary .section-title-divider {
  background: var(--accent);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.band-primary .section-subtitle,
.band-dark .section-subtitle {
  color: #D1E5ED;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-xs);
  border: 2px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #FFFFFF;
}

.btn-accent {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #FFFFFF;
}

.btn-outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.btn-outline-white:hover {
  background-color: #FFFFFF;
  color: var(--primary);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* --- TOP BAR --- */
.top-bar {
  background-color: #0B1E28;
  color: #A0AEC0;
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #CBD5E1;
}

.top-bar-item:hover {
  color: var(--accent);
}

.top-bar-item svg {
  color: var(--primary-light);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}

.social-icon:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.lang-switch-wrapper {
  display: inline-flex;
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.785rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  color: #CBD5E1;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  text-decoration: none;
}

.lang-switch:hover,
.lang-switch:focus {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}

.lang-switch img.lang-flag,
.lang-switch img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
  display: inline-block;
  vertical-align: middle;
}

/* Hide Google Translate Banner & Floats */
.goog-te-banner-frame.skiptranslate,
body > .skiptranslate,
.goog-te-banner-frame {
  display: none !important;
}
body {
  top: 0px !important;
}
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* --- SITE HEADER & NAV --- */
header.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-subtle);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
}

.mobile-menu-scroll {
  display: flex;
  align-items: center;
}

.mobile-menu-extras {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.885rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--dark);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active,
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a,
.nav-menu li.current-menu-ancestor > a {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-menu li.current-menu-item > a::after,
.nav-menu li.current_page_item > a::after,
.nav-menu li.current-menu-ancestor > a::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--dark);
  transition: var(--transition);
}

/* --- HERO SLIDER (RECOVERING ACTUAL SITE BACKGROUND IMAGES) --- */
.hero-slider-section {
  position: relative;
  overflow: hidden;
  height: 500px;
  background-color: #061923;
}

.hero-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out, transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide.slide-1 {
  background-image: url('../images/sfondo-01.jpg');
}

.hero-slide.slide-2 {
  background-image: url('../images/slide03.jpg');
}

.hero-slide.slide-3 {
  background-image: url('../images/sfondo-10.jpg');
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide.slide-1 .hero-slide-overlay,
.hero-slide.slide-2 .hero-slide-overlay {
  background-color: rgba(0, 129, 157, 0.72);
}

.hero-slide.slide-3 .hero-slide-overlay {
  background-color: rgba(0, 0, 0, 0.65);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 0 1.5rem;
  color: #FFFFFF;
}

.hero-slide-heading {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.hero-slide-description {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 300;
  color: #FFFFFF;
  line-height: 1.45;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.hero-slide-btn-wrap {
  display: flex;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease 0.45s, transform 0.6s ease 0.45s;
}

.hero-slide.active .hero-slide-heading,
.hero-slide.active .hero-slide-description,
.hero-slide.active .hero-slide-btn-wrap {
  opacity: 1;
  transform: translateY(0);
}

/* --- BARRA DI PROGRESSO LINEARE (COUNTDOWN EVIDENTE) --- */
.hero-slider-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.22);
  z-index: 25;
  overflow: hidden;
}

.hero-slider-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00819D 0%, #F05D00 100%);
  box-shadow: 0 0 10px rgba(240, 93, 0, 0.7);
  transition: none;
}

.hero-slider-progress-fill.running {
  animation: hero-slider-linear-progress 5s linear forwards;
}

@keyframes hero-slider-linear-progress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* --- FRECCE DI NAVIGAZIONE (DISCRETE ED ELEGANTI) --- */
.hero-slider-nav-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1.25rem;
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: none;
}

.slider-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(6, 25, 35, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.45;
  transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.25s ease;
}

/* Posizionamento assoluto autonomo di fallback */
.hero-slider-section > .slider-arrow-btn.prev {
  position: absolute;
  top: 50%;
  left: 1.25rem;
  transform: translateY(-50%);
  z-index: 20;
}

.hero-slider-section > .slider-arrow-btn.next {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  z-index: 20;
}

/* Diventano più visibili solo quando il cursore entra nella hero */
.hero-slider-section:hover .slider-arrow-btn {
  opacity: 0.75;
}

.slider-arrow-btn:hover {
  opacity: 1 !important;
  background: rgba(0, 129, 157, 0.85);
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  transform: scale(1.08);
}

.hero-slider-section > .slider-arrow-btn.prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.hero-slider-section > .slider-arrow-btn.next:hover {
  transform: translateY(-50%) scale(1.08);
}

/* Pause progress animation on hover */
.hero-slider-section:hover .hero-slider-progress-fill.running {
  animation-play-state: paused;
}

/* --- SUBPAGE HERO BANNER --- */
.subpage-hero-band {
  background-color: var(--bg-band-primary);
  color: #FFFFFF;
  padding: 3.5rem 0;
  border-bottom: 3px solid var(--accent);
}

.subpage-hero-title {
  font-size: 2.35rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.subpage-hero-subtitle {
  font-size: 1.1rem;
  color: #E2F4F7;
  max-width: 780px;
}

/* --- HOMEPAGE SECTIONS --- */
.about-band-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-img-wrap {
  text-align: center;
}

.about-img-wrap img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  padding: 0.5rem;
}

.about-text-wrap h2 {
  font-size: 1.85rem;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.about-lead {
  font-size: 1.05rem;
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.nomisma-note {
  background: #FFFFFF;
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.nomisma-note strong a {
  color: var(--primary);
  text-decoration: underline;
}

.mission-offerta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.mission-col h2,
.offerta-col h2 {
  font-size: 1.75rem;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}

.mission-col p,
.offerta-col p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #FFFFFF;
}

.pillars-grid,
.pillars-classic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  margin-top: 2.5rem;
}

.pillar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.75rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  height: 100%;
}

.pillar-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-clean);
}

.pillar-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-light-1);
}

.pillar-item h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.pillar-item p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.pillar-item .btn {
  margin-top: auto;
}

/* --- PRODOTTI PAGE (NOMISMA MODEL STYLE WITH CLEAN CONTENT) --- */
.models-master-detail {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
}

.detail-layout-2col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
}

.model-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.model-sidebar-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.885rem;
  color: var(--dark);
  background: var(--bg-light-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.model-sidebar-nav li.active a,
.model-sidebar-nav li a:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.sidebar-contact-box {
  background: var(--bg-light-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 1.25rem;
}

.sidebar-contact-box h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.sidebar-contact-box p {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.sidebar-contact-box a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.product-pane {
  display: none;
}

.product-pane.active {
  display: block;
}

.product-pane-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.product-pane-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(0, 129, 157, 0.2);
}

.product-pane-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.product-pane-subtitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.product-pane-content {
  margin-bottom: 2rem;
  color: var(--dark);
  font-size: 1.05rem;
  line-height: 1.75;
}

.product-pane-content p {
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.tech-box {
  background: var(--bg-light-1);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin-top: 1.75rem;
  margin-bottom: 2.25rem;
}

.tech-box h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.85rem;
}

.tech-box ul {
  list-style: disc;
  padding-left: 1.35rem;
  margin: 0;
}

.tech-box li {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.tech-box li:last-child {
  margin-bottom: 0;
}

.product-pane-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
}

.product-pane-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 1.75rem;
}

.product-pane-desc p {
  margin-bottom: 1rem;
}

.product-action-box {
  background: var(--primary-soft);
  border: 1px solid #C4E7EE;
  border-radius: var(--radius-xs);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.product-action-text h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.product-action-text p {
  font-size: 0.875rem;
  color: var(--text);
  margin: 0;
}

.pronto-band {
  background-color: var(--bg-band-dark);
  color: #FFFFFF;
  text-align: center;
  padding: 4.5rem 0;
}

.pronto-band h2 {
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.pronto-band p {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.7;
}

/* --- SERVICES SUBNAV BAR --- */
.services-subnav-band {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 80px;
  z-index: 900;
  padding: 0.85rem 0;
}

.subnav-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.subnav-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.desktop-subnav-pills {
  display: flex;
}

.services-mobile-select-wrap {
  display: none;
}

.subnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--bg-light-1);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.subnav-pill svg {
  color: var(--primary);
  transition: var(--transition);
}

.subnav-pill:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

.subnav-pill:hover svg {
  transform: scale(1.1);
  color: var(--accent);
}

.subnav-pill.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 129, 157, 0.25);
}

.subnav-pill.active svg {
  color: #FFFFFF;
}

/* Scroll margin so sticky header + subnav do not obscure titles */
#energia,
#gas,
#rinnovabili,
#processo {
  scroll-margin-top: 145px;
}

.service-sector-band {
  padding: 4.5rem 0;
}

.sector-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: center;
}

.sector-header-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sector-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.sector-title {
  font-size: 1.75rem;
  text-transform: uppercase;
  color: var(--primary);
}

.sector-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dark);
}

.sector-offer-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2rem;
}

.band-white .sector-offer-box {
  background: var(--bg-light-1);
}

.sector-offer-box h4 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.clean-bullet-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
}

.clean-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.925rem;
  color: var(--dark);
}

.clean-bullet-item svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.lifecycle-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.lifecycle-step-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2rem 1.5rem;
}

.lifecycle-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.lifecycle-step-card h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.lifecycle-step-card p {
  font-size: 0.925rem;
  color: var(--text);
  line-height: 1.6;
}

/* --- RICERCA & SVILUPPO --- */
.rnd-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.rnd-pillar-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
}

.rnd-pillar-box.prescriptive {
  border-top: 3px solid var(--accent);
}

.rnd-pillar-box.predictive {
  border-top: 3px solid var(--primary);
}

.rnd-pillar-box h3 {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

.rnd-pillar-box p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

/* ==========================================================================
   CONTATTI PAGE: MAPPA A TUTTO SCHERMO COME SFONDO CON SCHEDA SOVRAPPOSTA
   (Senza modulo di contatto, esattamente come sul sito originale)
   ========================================================================== */
.contact-map-immersive-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 120px);
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.contact-map-bg-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.contact-overlay-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  pointer-events: none;
}

.contact-overlay-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 2.75rem 2.25rem;
  max-width: 440px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.contact-card-title {
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-card-divider {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}

.contact-card-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dark);
}

.contact-card-body p {
  margin-bottom: 1.25rem;
}

.contact-card-body strong {
  color: var(--dark);
  font-weight: 700;
}

.contact-card-body a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.contact-card-body a:hover {
  color: var(--accent);
}

.contact-card-cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
}

/* --- FOOTER --- */
footer.site-footer {
  background-color: #071720;
  color: #A0AEC0;
  font-size: 0.885rem;
  padding-top: 3.5rem;
  border-top: 3px solid var(--primary);
  margin-top: auto;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo img {
  height: 44px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 0.85rem;
  color: #CBD5E1;
  line-height: 1.6;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #CBD5E1;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom-bar {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #718096;
}

.footer-credits-link {
  color: #94A3B8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-credits-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .detail-layout-2col {
    grid-template-columns: 1fr;
  }
  .sector-layout {
    grid-template-columns: 1fr;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-band-layout {
    grid-template-columns: 1fr;
  }
  .mission-offerta-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pillars-grid,
  .pillars-classic-grid {
    grid-template-columns: 1fr;
  }
  .lifecycle-process-grid {
    grid-template-columns: 1fr;
  }
  .rnd-pillars-grid {
    grid-template-columns: 1fr;
  }

  /* --- MOBILE TOGGLE & HEADER CTA --- */
  .mobile-toggle {
    display: flex;
  }
  .header-cta .btn {
    display: none;
  }

  /* --- FULL MOBILE MENU DRAWER --- */
  .header-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    background: #FFFFFF;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border-color);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }

  .header-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-scroll {
    padding: 1.5rem 1.25rem 3rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .nav-menu li.nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-menu li.nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.3px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active,
  .nav-menu li.current-menu-item > a,
  .nav-menu li.current_page_item > a {
    color: var(--primary);
    font-weight: 700;
    padding-left: 0.75rem;
  }

  .mobile-menu-extras {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.5rem;
  }

  .mobile-menu-cta-wrap .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius-xs);
    box-shadow: 0 4px 12px rgba(224, 86, 36, 0.25);
  }

  .mobile-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
  }

  .mobile-menu-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .mobile-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-size: 0.92rem;
    text-decoration: none;
  }

  .mobile-contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
  }

  .mobile-contact-item:hover {
    color: var(--primary);
  }

  .mobile-menu-footer {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-lang-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .mobile-lang-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
  }

  .mobile-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    cursor: pointer;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .mobile-lang-switch:hover {
    border-color: var(--primary);
  }

  .mobile-social-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .mobile-social-links .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    background: #E2E8F0;
    color: var(--dark);
  }

  .mobile-social-links .social-icon:hover {
    background: var(--primary);
    color: #FFFFFF;
  }

  /* Hamburger transformation into X */
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  .top-bar-contact {
    display: none;
  }
  .top-bar-inner {
    justify-content: flex-end;
  }
  .hero-slider-section {
    height: 380px;
  }
  .hero-slide-heading {
    font-size: 2rem;
  }
  .hero-slide-description {
    font-size: 1.05rem;
  }
  .clean-bullet-list {
    grid-template-columns: 1fr;
  }
  .product-action-box {
    flex-direction: column;
    text-align: center;
  }
  .contact-map-immersive-section {
    height: auto;
    min-height: 520px;
    padding: 2rem 0;
  }
  .contact-overlay-card {
    max-width: 100%;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* --- SERVICES MOBILE SELECT --- */
  .desktop-subnav-pills {
    display: none !important;
  }

  .services-mobile-select-wrap {
    display: block;
    width: 100%;
  }

  .services-select-custom {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
  }

  .services-select-custom:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 129, 157, 0.15);
  }

  .services-select-custom .select-icon-left {
    position: absolute;
    left: 14px;
    color: var(--primary);
    pointer-events: none;
  }

  .services-select-custom .select-chevron {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    pointer-events: none;
  }

  .services-subnav-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.6rem;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
    background: transparent;
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
  }

  .services-subnav-band {
    padding: 0.75rem 0;
  }

  /* --- PRODOTTI MOBILE OPTIMIZATIONS (SPACING & BREATHING ROOM) --- */
  .models-master-detail {
    padding: 1.25rem 0.85rem;
    margin-bottom: 2rem;
  }

  .detail-layout-2col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .model-sidebar {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.15rem;
    margin-bottom: 0.5rem;
  }

  .model-sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0;
  }

  .model-sidebar-nav li a {
    justify-content: center;
    text-align: center;
    padding: 0.7rem 0.5rem;
    font-size: 0.825rem;
  }

  .sidebar-contact-box {
    display: none;
  }

  .product-pane-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .product-pane-title {
    font-size: 1.65rem;
    margin-bottom: 0.35rem;
  }

  .product-pane-subtitle {
    font-size: 0.98rem;
    line-height: 1.45;
    margin-bottom: 1.15rem;
    padding-bottom: 0.85rem;
  }

  .product-pane-content {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }

  .product-pane-content p {
    margin-bottom: 1rem;
  }

  .tech-box {
    padding: 1rem 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    border-left-width: 3px;
  }

  .tech-box h4 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }

  .tech-box ul {
    padding-left: 1.15rem;
  }

  .tech-box li {
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
    line-height: 1.5;
  }

  .product-pane-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
  }

  .product-pane-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  .subpage-hero-band {
    padding: 2.25rem 0;
  }

  .subpage-hero-title {
    font-size: 1.75rem;
  }

  .subpage-hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .container {
    padding: 0 1rem;
  }
}

/* ==========================================================================
   WORDPRESS CORE COMPATIBILITY & STANDARD PAGES
   ========================================================================== */
.site-logo img,
.custom-logo-link img {
  height: 48px;
  width: auto;
  display: block;
}

.standard-page-content {
  padding: 4rem 0 5rem 0;
}

.entry-content {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content a {
  color: var(--primary);
  text-decoration: underline;
}

.entry-content a:hover {
  color: var(--accent);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* 404 Page Styling */
.error-404-section {
  padding: 6rem 0;
  text-align: center;
}
.error-404-code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-404-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.25rem;
}
.error-404-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem auto;
}
