/* ══ PAGE HERO ══ */
.page-hero {
  padding: 180px 0 120px;
  min-height: 55vh;
  position: relative;
  overflow: hidden;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,15,30,0.82) 0%,
    rgba(8,15,30,0.70) 50%,
    rgba(8,15,30,0.88) 100%
  );
  z-index: 0;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p  { font-size: 1.1rem; max-width: 560px; margin: 0 auto; color: rgba(255,255,255,0.8); }

/* ══ SETTORE SECTION ══ */
.settore-section { padding: 100px 0; }

/* Sfondi */
.settore-section.bg-dark  { background: var(--clr-bg); }
.settore-section.bg-white { background: #f4f6f9; }
.settore-section.bg-blue  { background: var(--clr-blue); }

/* Testi bg-white */
.settore-section.bg-white h2 { color: #0d1628; }
.settore-section.bg-white .settore-section-content p { color: #4a5568; }

/* Testi bg-blue */
.settore-section.bg-blue h2 { color: #ffffff; }
.settore-section.bg-blue .settore-section-content p { color: rgba(255,255,255,0.75); }

/* Grid layout */
.settore-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.settore-section-content { min-width: 0; }

.settore-section-inner.reverse .settore-section-content { order: 2; }
.settore-section-inner.reverse .settore-visual { order: 1; }

/* Titolo */
.settore-section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.25rem;
}

.settore-section-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Accent bianco su blu */
.text-accent-white {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
  text-underline-offset: 4px;
}

/* Visual immagine */
.settore-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  min-width: 0;
  width: 100%;
}

.settore-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Placeholder */
.settore-visual--placeholder {
  background: rgba(110,168,254,0.06);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.settore-visual--placeholder span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(110,168,254,0.3);
  text-align: center;
  padding: 1rem;
}

.bg-white .settore-visual--placeholder { background: #e8ecf2; border-color: #d0d7e3; }
.bg-white .settore-visual--placeholder span { color: #a0aab8; }
.bg-blue  .settore-visual--placeholder { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.bg-blue  .settore-visual--placeholder span { color: rgba(255,255,255,0.4); }

/* Responsive */
@media (max-width: 768px) {
  .settore-section { padding: 70px 0; }
  .settore-section-inner,
  .settore-section-inner.reverse { grid-template-columns: 1fr; gap: 2.5rem; }
  .settore-section-inner.reverse .settore-section-content { order: 0; }
  .settore-section-inner.reverse .settore-visual { order: 0; }
  .settore-visual { height: 260px; }
}

/* ══ CTA finale — sfondo chiaro (evita scuro-scuro col footer) ══ */
.settori-cta-section {
  background: #f4f6f9;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.settori-cta-section .section-badge { border-color: rgba(30,80,180,0.3); color: var(--clr-blue); }
.settori-cta-section h2 { color: #0d1628; }
.settori-cta-section h2 .text-accent { color: var(--clr-blue); }
.settori-cta-section p { color: #4a5568; }

.settori-cta-section .btn--outline {
  border-color: rgba(30,80,180,0.4);
  color: var(--clr-blue);
}
.settori-cta-section .btn--outline:hover {
  background: rgba(30,80,180,0.08);
}
