/* ============================================================
   VARIABILI CSS
   ============================================================ */
:root {
  --orange-primary: #e9530e;
  --yellow-primary: #f9af17;
  --red-accent: #c0392b;
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
}

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

img {
  max-width: 100%;
}

a {
  text-decoration: none;
}

/* ============================================================
   BOOTSTRAP GRID
   ============================================================ */

/* Container */
.container,
.container-fluid {
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-right: auto;
  margin-left: auto;
}

.container {
  max-width: 1200px;
}

/* Row */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  margin-left: calc(var(--bs-gutter-x) * -0.5);
  margin-top: calc(var(--bs-gutter-y) * -1);
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

/* Columns – xs (mobile-first) */
.col {
  flex: 1 0 0%;
}
.col-auto {
  flex: 0 0 auto;
  width: auto;
}
.col-1 {
  flex: 0 0 auto;
  width: 8.333333%;
}
.col-2 {
  flex: 0 0 auto;
  width: 16.666667%;
}
.col-3 {
  flex: 0 0 auto;
  width: 25%;
}
.col-4 {
  flex: 0 0 auto;
  width: 33.333333%;
}
.col-5 {
  flex: 0 0 auto;
  width: 41.666667%;
}
.col-6 {
  flex: 0 0 auto;
  width: 50%;
}
.col-7 {
  flex: 0 0 auto;
  width: 58.333333%;
}
.col-8 {
  flex: 0 0 auto;
  width: 66.666667%;
}
.col-9 {
  flex: 0 0 auto;
  width: 75%;
}
.col-10 {
  flex: 0 0 auto;
  width: 83.333333%;
}
.col-11 {
  flex: 0 0 auto;
  width: 91.666667%;
}
.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

/* Gutter helpers */
.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}
.g-1 {
  --bs-gutter-x: 0.25rem;
  --bs-gutter-y: 0.25rem;
}
.g-2 {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
}
.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}
.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}
.g-5 {
  --bs-gutter-x: 3rem;
  --bs-gutter-y: 3rem;
}

/* md ≥ 768px */
@media (min-width: 768px) {
  .col-md-1 {
    flex: 0 0 auto;
    width: 8.333333%;
  }
  .col-md-2 {
    flex: 0 0 auto;
    width: 16.666667%;
  }
  .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  .col-md-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  .col-md-5 {
    flex: 0 0 auto;
    width: 41.666667%;
  }
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  .col-md-7 {
    flex: 0 0 auto;
    width: 58.333333%;
  }
  .col-md-8 {
    flex: 0 0 auto;
    width: 66.666667%;
  }
  .col-md-9 {
    flex: 0 0 auto;
    width: 75%;
  }
  .col-md-10 {
    flex: 0 0 auto;
    width: 83.333333%;
  }
  .col-md-11 {
    flex: 0 0 auto;
    width: 91.666667%;
  }
  .col-md-12 {
    flex: 0 0 auto;
    width: 100%;
  }
  .offset-md-1 {
    margin-left: 8.333333%;
  }
  .offset-md-2 {
    margin-left: 16.666667%;
  }
  .offset-md-3 {
    margin-left: 25%;
  }
  .d-md-flex {
    display: flex !important;
  }
  .d-md-block {
    display: block !important;
  }
  .d-md-none {
    display: none !important;
  }
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
}

/* lg ≥ 992px */
@media (min-width: 992px) {
  .col-lg-1 {
    flex: 0 0 auto;
    width: 8.333333%;
  }
  .col-lg-2 {
    flex: 0 0 auto;
    width: 16.666667%;
  }
  .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.666667%;
  }
  .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  .col-lg-7 {
    flex: 0 0 auto;
    width: 58.333333%;
  }
  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.666667%;
  }
  .col-lg-9 {
    flex: 0 0 auto;
    width: 75%;
  }
  .col-lg-10 {
    flex: 0 0 auto;
    width: 83.333333%;
  }
  .col-lg-11 {
    flex: 0 0 auto;
    width: 91.666667%;
  }
  .col-lg-12 {
    flex: 0 0 auto;
    width: 100%;
  }
  .offset-lg-0 {
    margin-left: 0;
  }
  .offset-lg-1 {
    margin-left: 8.333333%;
  }
  .offset-lg-2 {
    margin-left: 16.666667%;
  }
  .d-lg-flex {
    display: flex !important;
  }
  .d-lg-block {
    display: block !important;
  }
  .d-lg-none {
    display: none !important;
  }
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
}

/* xl ≥ 1200px */
@media (min-width: 1200px) {
  .container {
    max-width: 1320px;
  }
  .col-xl-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  .col-xl-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  .col-xl-8 {
    flex: 0 0 auto;
    width: 66.666667%;
  }
  .col-xl-12 {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* ============================================================
   DISPLAY
   ============================================================ */
.d-none {
  display: none !important;
}
.d-block {
  display: block !important;
}
.d-inline {
  display: inline !important;
}
.d-inline-block {
  display: inline-block !important;
}
.d-flex {
  display: flex !important;
}
.d-inline-flex {
  display: inline-flex !important;
}
.d-grid {
  display: grid !important;
}

/* ============================================================
   FLEXBOX UTILITIES
   ============================================================ */
.flex-row {
  flex-direction: row !important;
}
.flex-column {
  flex-direction: column !important;
}
.flex-row-reverse {
  flex-direction: row-reverse !important;
}
.flex-wrap {
  flex-wrap: wrap !important;
}
.flex-nowrap {
  flex-wrap: nowrap !important;
}
.flex-fill {
  flex: 1 1 auto !important;
}
.flex-grow-0 {
  flex-grow: 0 !important;
}
.flex-grow-1 {
  flex-grow: 1 !important;
}
.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.justify-content-start {
  justify-content: flex-start !important;
}
.justify-content-end {
  justify-content: flex-end !important;
}
.justify-content-center {
  justify-content: center !important;
}
.justify-content-between {
  justify-content: space-between !important;
}
.justify-content-around {
  justify-content: space-around !important;
}
.justify-content-evenly {
  justify-content: space-evenly !important;
}

.align-items-start {
  align-items: flex-start !important;
}
.align-items-end {
  align-items: flex-end !important;
}
.align-items-center {
  align-items: center !important;
}
.align-items-baseline {
  align-items: baseline !important;
}
.align-items-stretch {
  align-items: stretch !important;
}

.align-self-start {
  align-self: flex-start !important;
}
.align-self-end {
  align-self: flex-end !important;
}
.align-self-center {
  align-self: center !important;
}
.align-self-stretch {
  align-self: stretch !important;
}

.gap-0 {
  gap: 0 !important;
}
.gap-1 {
  gap: 0.25rem !important;
}
.gap-2 {
  gap: 0.5rem !important;
}
.gap-3 {
  gap: 1rem !important;
}
.gap-4 {
  gap: 1.5rem !important;
}
.gap-5 {
  gap: 3rem !important;
}

/* ============================================================
   SPACING – MARGIN
   ============================================================ */
.m-0 {
  margin: 0 !important;
}
.m-1 {
  margin: 0.25rem !important;
}
.m-2 {
  margin: 0.5rem !important;
}
.m-3 {
  margin: 1rem !important;
}
.m-4 {
  margin: 1.5rem !important;
}
.m-5 {
  margin: 3rem !important;
}
.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}
.my-auto {
  margin-top: auto !important;
  margin-bottom: auto !important;
}

.mt-0 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: 0.25rem !important;
}
.mt-2 {
  margin-top: 0.5rem !important;
}
.mt-3 {
  margin-top: 1rem !important;
}
.mt-4 {
  margin-top: 1.5rem !important;
}
.mt-5 {
  margin-top: 3rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 0.25rem !important;
}
.mb-2 {
  margin-bottom: 0.5rem !important;
}
.mb-3 {
  margin-bottom: 1rem !important;
}
.mb-4 {
  margin-bottom: 1.5rem !important;
}
.mb-5 {
  margin-bottom: 3rem !important;
}

.ms-0 {
  margin-left: 0 !important;
}
.ms-1 {
  margin-left: 0.25rem !important;
}
.ms-2 {
  margin-left: 0.5rem !important;
}
.ms-3 {
  margin-left: 1rem !important;
}
.ms-4 {
  margin-left: 1.5rem !important;
}
.ms-5 {
  margin-left: 3rem !important;
}

.me-0 {
  margin-right: 0 !important;
}
.me-1 {
  margin-right: 0.25rem !important;
}
.me-2 {
  margin-right: 0.5rem !important;
}
.me-3 {
  margin-right: 1rem !important;
}
.me-4 {
  margin-right: 1.5rem !important;
}
.me-5 {
  margin-right: 3rem !important;
}

.mx-0 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.mx-1 {
  margin-left: 0.25rem !important;
  margin-right: 0.25rem !important;
}
.mx-2 {
  margin-left: 0.5rem !important;
  margin-right: 0.5rem !important;
}
.mx-3 {
  margin-left: 1rem !important;
  margin-right: 1rem !important;
}
.mx-4 {
  margin-left: 1.5rem !important;
  margin-right: 1.5rem !important;
}
.mx-5 {
  margin-left: 3rem !important;
  margin-right: 3rem !important;
}

.my-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.my-1 {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}
.my-2 {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}
.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}
.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}
.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

/* ============================================================
   SPACING – PADDING
   ============================================================ */
.p-0 {
  padding: 0 !important;
}
.p-1 {
  padding: 0.25rem !important;
}
.p-2 {
  padding: 0.5rem !important;
}
.p-3 {
  padding: 1rem !important;
}
.p-4 {
  padding: 1.5rem !important;
}
.p-5 {
  padding: 3rem !important;
}

.pt-0 {
  padding-top: 0 !important;
}
.pt-1 {
  padding-top: 0.25rem !important;
}
.pt-2 {
  padding-top: 0.5rem !important;
}
.pt-3 {
  padding-top: 1rem !important;
}
.pt-4 {
  padding-top: 1.5rem !important;
}
.pt-5 {
  padding-top: 3rem !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}
.pb-1 {
  padding-bottom: 0.25rem !important;
}
.pb-2 {
  padding-bottom: 0.5rem !important;
}
.pb-3 {
  padding-bottom: 1rem !important;
}
.pb-4 {
  padding-bottom: 1.5rem !important;
}
.pb-5 {
  padding-bottom: 3rem !important;
}

.ps-0 {
  padding-left: 0 !important;
}
.ps-1 {
  padding-left: 0.25rem !important;
}
.ps-2 {
  padding-left: 0.5rem !important;
}
.ps-3 {
  padding-left: 1rem !important;
}
.ps-4 {
  padding-left: 1.5rem !important;
}
.ps-5 {
  padding-left: 3rem !important;
}

.pe-0 {
  padding-right: 0 !important;
}
.pe-1 {
  padding-right: 0.25rem !important;
}
.pe-2 {
  padding-right: 0.5rem !important;
}
.pe-3 {
  padding-right: 1rem !important;
}
.pe-4 {
  padding-right: 1.5rem !important;
}
.pe-5 {
  padding-right: 3rem !important;
}

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.px-1 {
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}
.px-2 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}
.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.py-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}
.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}
.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.text-start {
  text-align: left !important;
}
.text-center {
  text-align: center !important;
}
.text-end {
  text-align: right !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}
.text-lowercase {
  text-transform: lowercase !important;
}
.text-capitalize {
  text-transform: capitalize !important;
}

.text-wrap {
  white-space: normal !important;
}
.text-nowrap {
  white-space: nowrap !important;
}

.text-decoration-none {
  text-decoration: none !important;
}
.text-decoration-underline {
  text-decoration: underline !important;
}

/* Colors */
.text-white {
  color: #fff !important;
}
.text-black {
  color: #000 !important;
}
.text-muted {
  color: #6c757d !important;
}
.text-warning {
  color: #ffc107 !important;
}
.text-danger {
  color: #dc3545 !important;
}
.text-success {
  color: #198754 !important;
}
.text-info {
  color: #0dcaf0 !important;
}
.text-primary {
  color: var(--orange-primary) !important;
}

/* Font weight */
.fw-light {
  font-weight: 300 !important;
}
.fw-normal {
  font-weight: 400 !important;
}
.fw-medium {
  font-weight: 500 !important;
}
.fw-semibold {
  font-weight: 600 !important;
}
.fw-bold {
  font-weight: 700 !important;
}
.fw-bolder {
  font-weight: 800 !important;
}

/* Font style */
.fst-italic {
  font-style: italic !important;
}
.fst-normal {
  font-style: normal !important;
}

/* Display headings */
.display-1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 300;
  line-height: 1.2;
}
.display-2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.2;
}
.display-3 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.2;
}
.display-4 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
}
.display-5 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
}
.display-6 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.2;
}

/* Lead */
.lead {
  font-size: 1.25rem;
  font-weight: 300;
}
.small {
  font-size: 0.875em !important;
}

/* ============================================================
   SIZING
   ============================================================ */
.w-25 {
  width: 25% !important;
}
.w-50 {
  width: 50% !important;
}
.w-75 {
  width: 75% !important;
}
.w-100 {
  width: 100% !important;
}
.w-auto {
  width: auto !important;
}

.h-25 {
  height: 25% !important;
}
.h-50 {
  height: 50% !important;
}
.h-75 {
  height: 75% !important;
}
.h-100 {
  height: 100% !important;
}
.h-auto {
  height: auto !important;
}

.mw-100 {
  max-width: 100% !important;
}
.mh-100 {
  max-height: 100% !important;
}
.min-vw-100 {
  min-width: 100vw !important;
}
.min-vh-100 {
  min-height: 100vh !important;
}
.vw-100 {
  width: 100vw !important;
}
.vh-100 {
  height: 100vh !important;
}

/* ============================================================
   POSITION
   ============================================================ */
.position-static {
  position: static !important;
}
.position-relative {
  position: relative !important;
}
.position-absolute {
  position: absolute !important;
}
.position-fixed {
  position: fixed !important;
}
.position-sticky {
  position: sticky !important;
}

.top-0 {
  top: 0 !important;
}
.top-50 {
  top: 50% !important;
}
.top-100 {
  top: 100% !important;
}
.bottom-0 {
  bottom: 0 !important;
}
.start-0 {
  left: 0 !important;
}
.start-50 {
  left: 50% !important;
}
.end-0 {
  right: 0 !important;
}

.translate-middle {
  transform: translate(-50%, -50%) !important;
}
.translate-middle-x {
  transform: translateX(-50%) !important;
}
.translate-middle-y {
  transform: translateY(-50%) !important;
}

/* ============================================================
   OVERFLOW
   ============================================================ */
.overflow-auto {
  overflow: auto !important;
}
.overflow-hidden {
  overflow: hidden !important;
}
.overflow-visible {
  overflow: visible !important;
}
.overflow-scroll {
  overflow: scroll !important;
}
.overflow-x-auto {
  overflow-x: auto !important;
}
.overflow-x-hidden {
  overflow-x: hidden !important;
}
.overflow-y-hidden {
  overflow-y: hidden !important;
}

/* ============================================================
   BORDER
   ============================================================ */
.border {
  border: 1px solid #dee2e6 !important;
}
.border-0 {
  border: 0 !important;
}
.border-top-0 {
  border-top: 0 !important;
}
.border-bottom-0 {
  border-bottom: 0 !important;
}

.rounded {
  border-radius: 0.375rem !important;
}
.rounded-0 {
  border-radius: 0 !important;
}
.rounded-1 {
  border-radius: 0.25rem !important;
}
.rounded-2 {
  border-radius: 0.375rem !important;
}
.rounded-3 {
  border-radius: 0.5rem !important;
}
.rounded-4 {
  border-radius: 1rem !important;
}
.rounded-5 {
  border-radius: 2rem !important;
}
.rounded-circle {
  border-radius: 50% !important;
}
.rounded-pill {
  border-radius: 50rem !important;
}

/* ============================================================
   SHADOW
   ============================================================ */
.shadow-none {
  box-shadow: none !important;
}
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ============================================================
   BACKGROUND
   ============================================================ */
.bg-white {
  background-color: #fff !important;
}
.bg-transparent {
  background-color: transparent !important;
}
.bg-primary {
  background-color: var(--orange-primary) !important;
}
.bg-light {
  background-color: #f8f9fa !important;
}
.bg-dark {
  background-color: #212529 !important;
}

/* ============================================================
   VISIBILITY
   ============================================================ */
.visible {
  visibility: visible !important;
}
.invisible {
  visibility: hidden !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(
    90deg,
    var(--orange-primary, #e9530e),
    var(--yellow-primary, #f9af17)
  );
  border-color: var(--orange-primary, #e9530e);
}

.btn-primary:hover {
  opacity: 0.9;
  color: #fff;
}

.btn-secondary {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.btn-outline-light:hover {
  color: #212529;
  background-color: #fff;
  border-color: #fff;
}

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

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

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  border-radius: 0.5rem;
}

/* Extra button variants usati nella pagina */
.btn-white {
  color: var(--orange-primary);
  background-color: #ffffff;
  border: none;
  font-weight: 600;
}

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

.btn-large {
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
}

/* ============================================================
   LIST GROUP
   ============================================================ */
.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  border-radius: 0.375rem;
}

.list-group-item {
  position: relative;
  display: block;
  padding: 0.5rem 1rem;
  color: #212529;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
}

.list-group-item + .list-group-item {
  border-top-width: 0;
}

.list-group-item.active {
  z-index: 2;
  color: #fff;
  background-color: var(--orange-primary);
  border-color: var(--orange-primary);
}

/* ============================================================
   CARD (usata nella sezione team commentata ma presente nel CSS)
   ============================================================ */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.375rem;
}

.card-body {
  flex: 1 1 auto;
  padding: 1rem;
}

.card-img-top {
  width: 100%;
  border-top-left-radius: calc(0.375rem - 1px);
  border-top-right-radius: calc(0.375rem - 1px);
}

/* ============================================================
   FORM
   ============================================================ */
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  appearance: none;
  border-radius: 0.375rem;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #212529;
  background-color: #fff;
  border-color: #ffb300;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(255, 179, 0, 0.25);
}

.form-label {
  margin-bottom: 0.5rem;
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: 0.125rem;
}

.form-check-input {
  float: left;
  margin-left: -1.5em;
  width: 1em;
  height: 1em;
  margin-top: 0.25em;
  vertical-align: top;
  appearance: none;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 0.25em;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--orange-primary);
  border-color: var(--orange-primary);
}

.form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  appearance: none;
}

/* ============================================================
   UTILITY MISTE
   ============================================================ */
.user-select-none {
  user-select: none !important;
}
.pe-none {
  pointer-events: none !important;
}
.pe-auto {
  pointer-events: auto !important;
}

.object-fit-cover {
  object-fit: cover !important;
}
.object-fit-contain {
  object-fit: contain !important;
}

.z-0 {
  z-index: 0 !important;
}
.z-1 {
  z-index: 1 !important;
}
.z-2 {
  z-index: 2 !important;
}
.z-3 {
  z-index: 3 !important;
}

.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}
.ratio-4x3 {
  --bs-aspect-ratio: 75%;
}
.ratio-1x1 {
  --bs-aspect-ratio: 100%;
}

/* ============================================================
   CTA SECTION (mancava completamente)
   ============================================================ */
.cta-section {
  background: linear-gradient(
    90deg,
    var(--orange-primary, #e9530e),
    var(--yellow-primary, #f9af17)
  );
  padding: 80px 10%;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 60px 6%;
  }
  .cta-section h2 {
    font-size: 1.5rem;
  }
  .cta-section p {
    font-size: 1rem;
  }
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background-color: #ffffffe3;
}

/* ============================================================
   MESSAGGI DI VALIDAZIONE
   ============================================================ */
.asterisk {
  position: absolute;
  top: 2px;
  right: 13px;
  font-size: 12px;
  color: #570505;
  z-index: 999;
}

.asterisk-text {
  font-size: 17px !important;
  text-shadow: 1px 1px 0px rgb(0, 0, 0);
  color: #ffffff;
  padding: 5px;
}

.field-error {
  display: block;
  color: #ffffff;
  letter-spacing: 1px;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

div.form-message {
  margin-top: 10px;
  font-size: 18px;
  color: #ffffff !important;
}

/* ============================================================
   LAYER PARTICELLE
   ============================================================ */
#particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--orange-primary, #e9530e);
  border-radius: 50%;
  opacity: 0.9;
  box-shadow: 0 0 10px rgba(233, 172, 61, 0.6);
}

.line {
  position: absolute;
  width: 2px;
  height: 0px;
  background: linear-gradient(
    90deg,
    var(--orange-primary, #e9530e),
    var(--yellow-primary, #f9af17)
  );
  opacity: 0.9;
  transform-origin: top left;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(233, 172, 61, 0.6);
  pointer-events: none;
}

/* ============================================================
   HERO
   ============================================================ */
html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "Lato", sans-serif;
  overflow-x: hidden;
}

.bg-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.hero {
  min-height: 100dvh;
  margin: 2% auto;
  padding: 20px;
}

.hero img {
  width: 25%;
  padding: 18px 0;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(
    90deg,
    var(--orange-primary, #e9530e),
    var(--yellow-primary, #f9af17)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.4rem;
  max-width: 550px;
}

/* ============================================================
   CTA BUTTONS
   ============================================================ */
.btn-cta {
  color: #ffffff;
  background: linear-gradient(
    90deg,
    var(--orange-primary, #e9530e),
    var(--yellow-primary, #f9af17)
  );
  border: none;
  padding: 16px 32px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(233, 172, 61, 0.5);
}

.btn-cta-outline {
  background: var(--orange-primary, #e9530e);
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
  border: none;
  color: #fff;
}

.btn-cta-outline:hover {
  transform: translateY(-3px);
  background: var(--yellow-primary, #f9af17);
  box-shadow: 0 0 20px rgba(233, 172, 61, 0.5);
  color: #fff;
}

.btn-primary:disabled {
  background: linear-gradient(
    135deg,
    var(--red-accent) 0%,
    var(--orange-primary) 100%
  ) !important;
  border-color: var(--orange-primary) !important;
  color: #fff !important;
  opacity: 1;
}

/* ============================================================
   KPI BOX
   ============================================================ */
#section-kpi {
  padding-top: 100px;
}

.kpi-box {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  width: 70%;
  display: flex;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08),
    inset 0 2px 6px rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.kpi-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 60%
  );
  transform: rotate(25deg);
  animation: shine 6s infinite linear;
  pointer-events: none;
}

.kpi-box::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 20%;
  width: 60%;
  height: 10px;
  border-radius: 50px;
  filter: blur(30px);
  opacity: 0.7;
}

.kpi-box:hover {
  box-shadow:
    0 10px 10px rgba(255, 140, 0, 0.25),
    inset 0 2px 8px rgba(255, 255, 255, 1);
}

.kpi-box h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ff7b00;
}

.kpi-box p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: #333;
  margin: 0;
}

@keyframes shine {
  from {
    transform: translateX(-100%) rotate(25deg);
  }
  to {
    transform: translateX(100%) rotate(25deg);
  }
}

.counter[data-suffix]::after {
  content: attr(data-suffix);
  margin-left: 4px;
}

/* ============================================================
   CHI SIAMO
   ============================================================ */
#about-section {
  background: #fefbf8;
  padding: 60px 10%;
  position: relative;
  overflow: hidden;
}

.about-title {
  font-size: 3rem;
  font-weight: 700;
}

.about-desc {
  color: #000000;
  font-size: 1.5rem;
  line-height: 1.7;
  opacity: 0.9;
}

.content {
  font-weight: 700;
  background: linear-gradient(90deg, #e9530e, #f9af17);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  padding-top: 20px;
}

/* ============================================================
   SERVIZI
   ============================================================ */
#service-section {
  padding: 60px 10%;
}

.service-card-it {
  padding: 35px 50px 10px 50px;
  background: #fefbf8;
  border-radius: 20px;
  transition: border-radius 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.04);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}

.card-title {
  height: 60px;
  display: flex;
  align-items: end;
}

.card-title h3 {
  background-image: linear-gradient(90deg, #f9af17, #e9530e);
  border-bottom: 2px solid transparent;
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: bottom left;
  width: 100%;
  font-size: 1.5rem;
}

#service-section h3 {
  padding-bottom: 15px;
}

#service-section p {
  font-size: 1.2rem !important;
  margin-bottom: 20px;
}

.service-row {
  margin-top: 50px;
  --bs-gutter-y: 6.5rem;
}

.service-img-card {
  position: absolute;
  width: 30%;
  height: 50%;
  object-fit: contain;
  top: -20%;
  left: 50%;
  transform: translate(-50%, -20%);
  z-index: 200;
}

/* ============================================================
   LISTA SERVIZI
   ============================================================ */
.service-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-style: italic;
}

.service-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: linear-gradient(90deg, #f9af17, #e9530e);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M11.102 7.37a.75.75 0 1 0-1.06-1.06L7.54 8.81 6.508 7.78a.75.75 0 0 0-1.06 1.06l1.407 1.408a.968.968 0 0 0 1.37 0l2.877-2.878Z'/><path fill='black' fill-rule='evenodd' d='M15 7.995a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-1.5 0a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z' clip-rule='evenodd'/></svg>")
    no-repeat center;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M11.102 7.37a.75.75 0 1 0-1.06-1.06L7.54 8.81 6.508 7.78a.75.75 0 0 0-1.06 1.06l1.407 1.408a.968.968 0 0 0 1.37 0l2.877-2.878Z'/><path fill='black' fill-rule='evenodd' d='M15 7.995a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-1.5 0a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z' clip-rule='evenodd'/></svg>")
    no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

/* ============================================================
   ELEMENTI COMUNI
   ============================================================ */
.linee {
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, #e9ac3d, #ed733a);
}

.section-label {
  font-size: 0.85rem !important;
  letter-spacing: 2px;
  font-weight: 600;
  color: #e9ac3d;
  margin-bottom: 0;
}

.gradient-text {
  background: linear-gradient(to right, #e9ac3d, #ed733a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   ORBIT SYSTEM
   ============================================================ */
.circle-wrapper {
  position: relative;
  width: 420px;
  height: 420px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(233, 172, 61, 0.4);
  border-radius: 50%;
  top: 0;
  left: 0;
}

.orbit1 {
  width: 420px;
  height: 420px;
  animation: rotateClockwise 22s linear infinite;
}

.orbit2 {
  width: 330px;
  height: 330px;
  top: 45px;
  left: 45px;
  animation: rotateCounter 16s linear infinite;
}

.orbit3 {
  width: 240px;
  height: 240px;
  top: 90px;
  left: 90px;
  animation: rotateClockwise 10s linear infinite;
}

.dot {
  width: 8px;
  height: 8px;
  background: #e9ac3d;
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(233, 172, 61, 0.6);
}

.center-circle {
  position: absolute;
  width: 180px;
  height: 180px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(233, 172, 61, 0.3);
  z-index: 5;
}

.center-circle h3 {
  font-weight: 700;
  background: linear-gradient(to right, #e9ac3d, #ed733a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.orbit-label {
  position: absolute;
  background: white;
  border: 1px solid rgba(233, 172, 61, 0.4);
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 6px;
  color: #e9ac3d;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.label-ai {
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
}
.label-api {
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
}
.label-crm {
  bottom: 25px;
  right: 25px;
}
.label-erp {
  bottom: 25px;
  left: 25px;
}

@keyframes rotateClockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateCounter {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* ============================================================
   SETTORI
   ============================================================ */
#vertical-expertise-section {
  background: #fefbf8;
  padding: 60px 10%;
}

.bg-grid {
  position: relative;
  overflow: hidden;
}

.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(233, 172, 61, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(233, 172, 61, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 18s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 80px 80px;
  }
}

.sector-list {
  border-right: 1px solid #eee;
  padding-right: 28px;
}

.sector-item {
  cursor: pointer;
  padding: 20px 14px;
  margin-bottom: 12px;
  border-left: 5px solid transparent;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.sector-item:hover {
  background: linear-gradient(135deg, #ffffff 0%, #fff6e0 100%);
  border-left-color: #ffb300;
  transform: translateX(2px);
}

.sector-item.active {
  background: linear-gradient(135deg, #ffffff 0%, #fff6e0 100%);
  border-left-color: #ffa000;
  transform: translateX(2px);
}

.sector-description {
  display: none;
  padding: 54px 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #fff6e0 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.desc {
  min-height: 100%;
}

.sector-description.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.sector-description h3 {
  font-size: 2.4rem;
  font-weight: 800;
}

.sector-description p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.55;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   STACK TECNOLOGICO
   ============================================================ */
#stack-tech-section {
  text-align: center;
  padding: 60px 10%;
  background: transparent;
}

.tech-row {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 30px 0;
}

.tech-track {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.tech-row-right .tech-track {
  width: 100%;
}
.tech-row-left .tech-track {
  width: 85%;
}

.tech-card {
  background: #ffffff;
  padding: 10px 22px 6px;
  border-radius: 14px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  transition: all 0.25s ease;
}

.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.tech-card span {
  font-size: 0.75rem;
  color: #777;
  margin-top: 4px;
}

.tech-card img {
  width: 25px;
}

.tech-row-right .tech-track {
  animation: scroll-left 60s linear infinite;
}
.tech-row-left .tech-track {
  animation: scroll-right 60s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

/* ============================================================
   DISCOVERY CALL
   ============================================================ */
.section-call-expert {
  position: relative;
  overflow: hidden;
}

.call-expert-overlay {
  background: rgba(0, 0, 0, 0.3);
  padding: 60px 10%;
}

.section-call-expert p {
  line-height: 1.7;
  margin-bottom: 1.4rem;
  text-shadow: 1px 1px 5px rgb(0, 0, 0);
  color: white;
}

.section-call-expert .col-lg-6.mb-5 {
  padding: 85px 40px;
  text-shadow: 1px 0px 1px #e9ac3d;
}

.section-call-expert .row {
  align-items: center;
}

.contact-label {
  display: none !important;
}

.tittle-call {
  text-shadow: 1px 1px 5px rgb(0, 0, 0);
}

.mini-form-card {
  position: relative;
  padding: 30px;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}

.space-stars-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.bg-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  animation: animateBg 50s linear infinite;
  filter: hue-rotate(10deg) saturate(1.4);
}

@keyframes animateBg {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Stelle cadenti */
.star {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
  animation: animateStar 3s linear infinite;
  box-shadow:
    0 0 0 4px #c17b1e21,
    0 0 0 8px rgb(255 102 0 / 4%),
    0 0 20px #ed733a33;
}

.star::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, #c97912, transparent);
}

@keyframes animateStar {
  0% {
    transform: rotate(320deg) translateX(0);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: rotate(320deg) translateX(-1000px);
    opacity: 0;
  }
}

.star:nth-child(1) {
  top: 0;
  right: 0;
  left: initial;
  animation-delay: 0s;
  animation-duration: 1s;
}
.star:nth-child(2) {
  top: 0;
  right: 100px;
  left: initial;
  animation-delay: 0.2s;
  animation-duration: 3s;
}
.star:nth-child(3) {
  top: 0;
  right: 220px;
  left: initial;
  animation-delay: 2.75s;
  animation-duration: 2.75s;
}
.star:nth-child(4) {
  top: 0;
  right: -220px;
  left: initial;
  animation-delay: 1.6s;
  animation-duration: 1.6s;
}

/* Campi form mini-card */
.mini-form-card .form-control {
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid #ddd;
  background: #fafafa;
  transition: all 0.25s ease;
  box-shadow: 1px 1px 2px rgb(240, 177, 60);
}

.mini-form-card .form-control:focus {
  border-color: #ffb300;
  background: #ffffff;
  box-shadow: 0 0 0 0.15rem rgba(255, 179, 0, 0.35);
}

input::placeholder {
  font-family: "Lato", Sans-serif;
  font-size: 16px;
  color: #201f1f !important;
  opacity: 1;
}

/* ============================================================
   SEZIONE TEAM
   ============================================================ */
.team-strength-section {
  padding: 60px 10%;
  text-align: center;
  position: relative;
}

.team-strength-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

.team-strength-section .gradient-text {
  background: linear-gradient(90deg, #ff8c00, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-strength-section h3 {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.team-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 10px 5px;
}

.team-card .card-img-top {
  width: 240px;
  height: 340px;
  margin: 0 auto;
  object-fit: cover;
  display: block;
}

.team-card .card-body {
  padding: 10px 0 0;
}

.team-card .member-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.team-card .member-role {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
}

.team-strength-section .mb-5 {
  margin-bottom: 3rem !important;
}

.team-strength-section .row.g-4 {
  row-gap: 1.5rem !important;
}

.strength-text {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #333;
}

.strength-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 25px;
}

.badge-strength {
  padding: 10px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffb347, #ff8c00);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

/* ============================================================
   WHY MACMARK
   ============================================================ */
#why-chose-us-section {
  background: transparent;
  padding: 60px 10%;
}

/* ============================================================
   CAREERS
   ============================================================ */
#careers-section {
  position: relative;
  overflow: hidden;
}

.bg-careers {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  z-index: -1;
  height: 100%;
}

.careers-overlay {
  background: rgba(0, 0, 0, 0.55);
  padding: 60px 10%;
}

.row-careers {
  padding-top: 50px;
}

.careers-text {
  color: whitesmoke;
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 500;
}

.careers-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge-career {
  padding: 8px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffb347, #ff8c00);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.careers-form {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
}

.careers-input {
  padding: 10px 15px;
  border-radius: 10px;
  border: none;
  margin-top: 20px;
}

.careers-label {
  display: none !important;
}

.careers-input:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.4) !important;
}

.privacy-consent {
  color: #e8e8e8 !important;
  text-shadow: 1px 2px 2px rgb(0, 0, 0) !important;
  font-size: 12px !important;
}

.checkbox-group label a {
  color: #e54d13;
  text-decoration: none;
}

.checkbox-group input[type="checkbox"] {
  accent-color: #e54d13;
  cursor: pointer;
}

.careers-cv {
  color: #e8e8e8 !important;
  text-shadow: 1px 2px 2px rgb(0, 0, 0) !important;
}

/* ============================================================
   ANIMAZIONI FADE
   ============================================================ */
.fade {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade.visible {
  opacity: 1;
}

.fade,
.fade-up,
.fade-down,
.fade-left,
.fade-right {
  will-change: opacity, transform;
}

.fade-up,
.fade-down {
  opacity: 0;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.fade-left,
.fade-right {
  opacity: 0;
  transition:
    opacity 0.25s ease-out,
    transform 0.35s ease-out;
}

.visible {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

.fade-up,
.fade-down,
.fade-left,
.fade-right {
  opacity: 0;
  transition: all 0.6s ease;
}

.fade-up {
  transform: translateY(30px);
}

.fade-down {
  transform: translateY(-30px);
}

.fade-left {
  transform: translateX(-30px);
}

.fade-right {
  transform: translateX(30px);
}

.fade-up.visible,
.fade-down.visible,
.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 {
  transition-delay: 0.4s;
}
.delay-2 {
  transition-delay: 0.6s;
}
.delay-3 {
  transition-delay: 0.8s;
}
.delay-4 {
  transition-delay: 1s;
}
.delay-5 {
  transition-delay: 1.2s;
}
.delay-6 {
  transition-delay: 1.4s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .service-card-it {
    padding: 35px 20px 10px 20px;
  }
}

@media (max-width: 1024px) {
  p {
    font-size: 1.4rem;
  }
  .hero img {
    width: 25%;
  }
  .hero-title {
    font-size: 3.8rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .btn-cta-outline,
  .btn-cta {
    padding: 12px 28px;
  }
  .sector-description {
    padding: 42px 30px;
  }
  .center {
    margin-top: 0;
  }
  .left-top,
  .right-top {
    margin-top: 20px;
  }
  .left-bottom,
  .right-bottom {
    margin-top: 40px;
  }
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .circle-wrapper {
    width: 320px;
    height: 320px;
    margin-top: 40px;
  }
  .orbit1 {
    width: 320px;
    height: 320px;
  }
  .orbit2 {
    width: 250px;
    height: 250px;
    top: 35px;
    left: 35px;
  }
  .orbit3 {
    width: 180px;
    height: 180px;
    top: 70px;
    left: 70px;
  }
  .center-circle {
    width: 140px;
    height: 140px;
  }
  .section-label {
    font-size: 0.7rem !important;
  }
  .sector-description {
    padding: 20px 30px;
  }
  .sector-description h3 {
    font-size: 2.2rem;
    font-weight: 800;
  }
  .tech-card {
    min-width: 100px;
    padding: 8px 16px 5px;
    font-size: 0.85rem;
  }
  .tech-card span {
    font-size: 0.7rem;
  }
  .tech-row {
    height: 100px;
  }
  .tech-track {
    gap: 20px;
  }
  .section-call-expert .col-lg-6.mb-5 {
    padding: 20px 40px;
  }
}

@media (max-width: 768px) {
  body,
  html {
    overflow-x: clip;
  }
  .hero {
    padding: 30px;
  }
  .hero img {
    width: 40%;
    padding-top: 80px;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 0.8rem;
  }
  .btn-cta-outline,
  .btn-cta {
    padding: 10px 26px;
  }
  .sector-description {
    padding: 10px 30px;
  }
  .sector-item h5 {
    font-size: 1rem;
  }
  .tech-card {
    min-width: 85px;
    padding: 6px 12px 4px;
    font-size: 0.75rem;
  }
  .tech-card span {
    font-size: 0.65rem;
  }
  .tech-row {
    height: 70px;
  }
  .tech-track {
    gap: 14px;
  }
  .strength-text {
    font-size: 1.1rem;
  }
  .badge-strength {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
  .badge-career {
    font-size: 0.85rem;
  }
  .careers-form {
    margin-bottom: 30px;
  }

  .careers-overlay {
    padding: 2rem;
  }
  #careers-form {
    width: 100%;
    padding: 0;
  }
  .call-expert-overlay {
    padding: 1rem;
  }
  .form-overlay {
    padding: 0rem !important;
  }
  .col-lg-6 .mini-form-card {
    width: 100%;
  }
  #discovery-form {
    width: 100% !important;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 0.7rem;
  }
  .btn-cta,
  .btn-cta-outline {
    padding: 10px 18px;
    font-size: 14px;
  }
  .sector-description h3 {
    font-size: 2rem;
    font-weight: 800;
  }
  .tech-card {
    min-width: 70px;
    padding: 5px 10px 3px;
    font-size: 0.7rem;
  }
  .tech-card span {
    font-size: 0.6rem;
  }
  .tech-row {
    height: 80px;
    width: 100% !important;
  }
  .tech-track {
    gap: 10px;
  }
  .badge-career {
    font-size: 0.8rem;
  }
  .strength-text {
    font-size: 1rem;
  }
  .badge-strength {
    font-size: 0.8rem;
    padding: 7px 14px;
  }
  .circle-wrapper {
     position: relative;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    transform-origin: center;
    margin: 0 auto;
  }
}

h2 {
  justify-self: normal;
}

/* Azzera qualsiasi sfondo su form, div e figli diretti dentro il wrapper */
.careers-form,
.careers-form form,
.careers-form > div,
.careers-form > form > div {
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

/* Solo .careers-form ha lo stile visivo */
.careers-form {
  background: rgba(255, 255, 255, 0.3) !important;
  border: 1px solid rgba(236, 236, 236, 0.15) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  margin-top: 1px;
}

/* Fix gap enorme tra i campi */
.careers-input {
  margin-top: 0 !important;
}

.careers-form .mb-3 {
  margin-bottom: 0.5rem !important;
}

.form-group {
  margin: 0;
  padding: 1rem 0;
}

.careers-form .form-group {
  padding: 1rem;
}

.careers-form .col-12 {
  margin-top: 0.5rem;
}
