/* Fix per hero full width - rimuove spazi laterali */
  html {
    overflow-x: hidden !important;
  }

  body {
    overflow-x: hidden !important;
    margin: 0 !important;
    padding-top: 75px !important;
  }

  /* Media query per padding su mobile */
  @media (max-width: 991px) {
    body {
      padding-top: 75px !important;
    }
  }

  @media (max-width: 576px) {
    body {
      padding-top: 65px !important;
    }
  }

  body * {
    box-sizing: border-box;
  }

  main#content {
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    width: 100% !important;
  }

  /* Force full width breakout */
  .hero-premium-slider {
    position: relative !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    background: #0b3c8c url('../images/prova.webp') center/cover no-repeat !important;
    overflow: hidden !important;
    min-height: 60vh !important;
    height: 60vh !important;
  }

  .hero-premium-slider .hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.05s ease;
  }

  .hero-premium-slider .hero-bg-slider.loaded {
    opacity: 1;
  }

  .hero-premium-slider .hero-slide-item {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 60vh;
    background: #0b3c8c;
  }

  .hero-premium-slider .hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: opacity;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.05s ease-in-out;
  }

  .hero-premium-slider .hero-slide-overlay {
    display: none;
  }

  .hero-premium-slider .hero-slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    cursor: pointer;
    transition: background 0.05s ease;
  }

  .hero-premium-slider .hero-slide-link:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .hero-premium-slider .hero-overlay {
    position: relative;
    z-index: 100;
    pointer-events: none;
    min-height: 60vh;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-premium-slider .hero-overlay .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .hero-premium-slider .hero-overlay .promo-card,
  .hero-premium-slider .hero-overlay .btn,
  .hero-premium-slider .hero-overlay input,
  .hero-premium-slider .hero-overlay select,
  .hero-premium-slider .hero-overlay a,
  .hero-premium-slider .hero-overlay form {
    pointer-events: all;
  }

  .hero-premium-slider .owl-nav {
    display: none !important;
  }

  .hero-premium-slider .owl-dots {
    display: none !important;
  }

  .hero-premium-slider .owl-stage-outer,
  .hero-premium-slider .owl-stage,
  .hero-premium-slider .owl-item {
    height: 100%;
  }

  /* Indicatori slide semplificati */
  .hero-slide-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 50px;
  }

  .slide-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: none;
    padding: 0;
  }

  .slide-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.15);
  }

  .slide-indicator.active {
    width: 32px;
    border-radius: 5px;
    background: #fff;
  }

  /* Animazione testi semplificata */
  .hero-dynamic-title,
  .hero-dynamic-subtitle {
    transition: opacity 0.4s ease, transform 0.05s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }

  /* Hero full screen less header */
  .hero {
    height: calc(100vh - 75px);
    min-height: calc(100vh - 75px);
  }

  .hero-overlay {
    height: calc(100vh - 75px);
    min-height: calc(100vh - 75px);
  }

  /* Mobile optimization */
  @media(max-width: 768px) {
    .hero {
      min-height: calc(100vh - 70px) !important;
      height: calc(100vh - 70px) !important;
    }

    .hero-overlay {
      height: calc(100vh - 70px) !important;
      min-height: calc(100vh - 70px) !important;
    }

    .hero-title {
      font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
      margin-bottom: 0.5rem;
    }

    .hero-sub {
      font-size: clamp(1.2rem, 5vw, 1.6rem) !important;
    }

    .promo-card {
      padding: 1.2rem !important;
      margin-top: 1.5rem !important;
    }

    .promo-text {
      font-size: 1.1rem !important;
      margin-bottom: 0.8rem !important;
    }
  }

  @media(max-width: 576px) {

    .header {
      padding-top: 65px;
    }

    .hero {
      min-height: calc(100vh - 65px) !important;
      height: calc(100vh - 65px) !important;
    }

    .hero-overlay {
      height: calc(100vh - 65px) !important;
      min-height: calc(100vh - 65px) !important;
    }

    .hero-title {
      font-size: 1.4rem !important;
    }

    .hero-sub {
      font-size: 0.95rem !important;
    }
  }

  /* Stili specifici per la pagina Home */

  /* ===== Intro / Missione ===== */
  .intro-section {
    padding: 40px 0;
    margin: 0;
    position: relative;
    overflow: hidden;
  }

  .intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
  }

  .intro-title {
    color: var(--brand-primary);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw + .5rem, 3.2rem);
    line-height: 1.15;
    margin: 0 0 1rem 0;
    letter-spacing: -.01em;
  }

  .intro-title span {
    display: block;
    color: var(--brand-accent);
    font-weight: 600;
    font-size: clamp(1.3rem, 2.8vw + .3rem, 2.2rem);
    margin-top: 0.5rem;
    line-height: 1.3;
  }

  .intro-description {
    color: #0b3c8c;
    font-size: clamp(1rem, 2vw + .2rem, 1.2rem);
    line-height: 1.6;
    margin: 0 0 2rem 0;
    font-weight: 400;
  }

  /* Hero title e subtitle ridimensionati */
  .hero-title {
    font-size: clamp(2.2rem, 4.5vw + .5rem, 3.6rem) !important;
    font-weight: 800;
    line-height: 1.1;
    position: relative;
    z-index: 2;
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.6),
      0 4px 8px rgba(0, 0, 0, 0.55),
      0 8px 16px rgba(0, 0, 0, 0.5),
      0 12px 24px rgba(0, 0, 0, 0.45);
  }

  .hero-sub {
    font-size: clamp(1.3rem, 2.8vw + .3rem, 2rem) !important;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.6),
      0 4px 8px rgba(0, 0, 0, 0.55),
      0 8px 16px rgba(0, 0, 0, 0.5),
      0 12px 24px rgba(0, 0, 0, 0.45);
  }

  /* ===== TRANSITION SPACER ===== */
  .section-spacer {
    background: linear-gradient(180deg, #fff 0%, #f3bc86ff 100%);
    min-height: 90px;
    position: relative;
  }

  .section-spacer-reverse {
    background: linear-gradient(180deg, #f3bc86ff 0%, #fff 100%);
    min-height: 90px;
    position: relative;
  }

  /* ===== MISSION TABLE ===== */
  .mission-table-section {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background-color: #f3bc86ff;
  }

  .mission-table {
    width: 90vw;
    max-width: 1200px;
    border-collapse: separate;
    border-spacing: 32px 32px;
    table-layout: fixed;
  }

  .mission-table td {
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 36px 32px;
    font-size: 1.15rem;
    color: #fff;
    font-family: 'OpenSauce', system-ui, -apple-system, sans-serif;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.05s ease;
    overflow: hidden;
  }

  .mission-table td strong {
    position: relative;
    z-index: 2;
    color: #fff;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, text-shadow 0.05s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    vertical-align: middle;
  }

  .mission-table td:hover strong {
    color: #0b3c8c;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(11, 60, 140, 0.25);
  }

  .mission-table td .mission-table-text {
    max-height: 0;
    opacity: 0;
    transition: none;
    overflow: hidden;
    margin-top: 18px;
    color: #0b3c8c;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    transform: translateY(-10px);
  }

  .mission-table td:hover {
    box-shadow: 0 24px 60px rgba(11, 60, 140, 0.18), 0 0 0 2px #f28c2a44;
    transform: scale(1.04);
    z-index: 2;
  }

  .mission-table td:hover .mission-table-text {
    max-height: 200px;
    opacity: 1;
    color: #0b3c8c;
    transform: translateY(0);
  }

  .mission-table-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #7490d6;
    color: #fff;
    font-size: 1.7rem;
    margin-bottom: 12px;
    margin-right: 10px;
    transition: opacity 0.2s ease, transform 0.05s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
    vertical-align: middle;
  }

  .mission-table td:hover .mission-table-icon {
    opacity: 1;
    transform: scale(1.05);
  }

  .mission-table-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.05s ease;
    filter: brightness(0.85);
    border-radius: 20px;
  }

  .mission-table-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  .mission-table td::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.05s ease;
    border-radius: 20px;
  }

  .mission-table td:hover::after {
    opacity: 1;
  }

  .mission-table td:hover .mission-table-bg {
    opacity: 1;
  }

  @media (max-width: 1000px) {
    .mission-table {
      width: calc(100vw - 24px);
      max-width: calc(100vw - 24px);
      margin: 0 auto;
      border-spacing: 0;
      display: block;
      padding: 0 12px;
    }

    .mission-table tr {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 12px;
    }

    .mission-table td {
      padding: 20px 14px;
      font-size: 0.9rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .mission-table-icon {
      margin-bottom: 10px;
      margin-right: 0;
      width: 42px;
      height: 42px;
      font-size: 1.4rem;
    }

    .mission-table td strong {
      display: block;
      margin-bottom: 6px;
      font-size: 0.9rem;
    }

    .mission-table td .mission-table-text {
      text-align: left;
      font-size: 0.85rem;
    }

    .mission-table td:hover .mission-table-text {
      max-height: 500px;
    }

    .mission-table td:hover {
      overflow: visible;
    }
  }

  /* ===== IMAGE TEXT GRID SECTION ===== */
  .image-text-grid-section {
    padding: 80px 0;
    background: #fff;
  }

  .image-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: stretch;
    /* Assicura che i blocchi si allunghino all'altezza della riga */
  }

  .grid-block {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.05s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Riempie l'altezza della riga della griglia */
  }

  .grid-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(11, 60, 140, 0.15);
  }

  .grid-block-image {
    position: relative;
    height: 100%;
    /* Dinamico: si adatta all'altezza della riga */
    overflow: hidden;
    line-height: 0;
    font-size: 0;
    flex: 1 1 auto;
    /* Riempie lo spazio disponibile nel blocco */
    min-height: 0;
    /* Evita overflow in flex container */
  }

  .grid-block-image img,
  .grid-block-image video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.05s ease;
  }

  .grid-block:hover .grid-block-image img,
  .grid-block:hover .grid-block-image video {
    transform: scale(1.05);
  }

  .grid-block-text {
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Dinamico: niente altezze fisse; il contenuto determina la riga */
  }

  .grid-block-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .grid-block-description {
    font-size: 1.05rem;
    color: #0b3c8c;
    line-height: 1.7;
    margin: 0;
  }

  /* ===== Why Section ===== */
  .why-section {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: #f3bc86ff;
  }

  .why-section .intro-content {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 20px;
  }

  .why-table {
    width: 90vw;
    max-width: 1400px;
    border-collapse: separate;
    border-spacing: 32px;
    table-layout: fixed;
  }

  .why-table td {
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 36px 32px;
    font-size: 1.15rem;
    color: #fff;
    font-family: 'OpenSauce', system-ui, -apple-system, sans-serif;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.05s ease;
    overflow: hidden;
    background: #fff;
  }

  .why-table td strong {
    position: relative;
    z-index: 2;
    color: #fff;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, text-shadow 0.05s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 1.12rem;
  }

  .why-table td:hover strong {
    color: #0b3c8c;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(11, 60, 140, 0.25);
  }

  .why-table td .why-table-text {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.05s ease, opacity 0.7s var(--ease), transform 0.6s var(--ease);
    overflow: hidden;
    margin-top: 18px;
    color: #0b3c8c;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    transform: translateY(-10px);
  }

  .why-table td:hover {
    box-shadow: 0 24px 60px rgba(11, 60, 140, 0.18), 0 0 0 2px #f28c2a44;
    transform: scale(1.04);
    z-index: 2;
  }

  .why-table td:hover .why-table-text {
    max-height: 200px;
    opacity: 1;
    color: #0b3c8c;
    transform: translateY(0);
  }

  .why-table-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 53px;
    border-radius: 12px;
    background: #7490d6;
    color: #fff;
    font-size: 1.7rem;
    margin-bottom: 12px;
    margin-right: 10px;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.05s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
    vertical-align: middle;
  }

  .why-table-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  .why-table td:hover .why-table-icon {
    opacity: 1;
    transform: scale(1.05);
  }

  .why-table-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.05s ease;
    filter: brightness(0.85);
    border-radius: 20px;
  }

  .why-table td::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.05s ease;
    border-radius: 20px;
  }

  .why-table td:hover::after {
    opacity: 1;
  }

  .why-table td:hover .why-table-bg {
    opacity: 1;
  }

  @media (max-width: 1200px) {
    .why-table {
      width: calc(100vw - 24px);
      max-width: calc(100vw - 24px);
      margin: 0 auto;
      border-spacing: 16px;
      padding: 0 12px;
    }

    .why-table td {
      padding: 24px 18px;
      font-size: 0.95rem;
    }

    .why-table-icon img {
      width: 90px;
      height: 90px;
    }
  }

  @media (max-width: 768px) {
    .why-table {
      display: block;
      border-spacing: 0;
    }

    .why-table tr {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .why-table td {
      padding: 20px 14px;
      font-size: 0.9rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      width: 100%;
    }

    .why-table-icon img {
      width: 80px;
      height: 80px;
    }

    .why-table td strong {
      display: block;
      margin-bottom: 6px;
      font-size: 0.9rem;
    }

    .why-table td .why-table-text {
      text-align: left;
      font-size: 0.85rem;
    }

    .why-table td:hover .why-table-text {
      max-height: 500px;
    }

    .why-table td:hover {
      overflow: visible;
    }
  }

  /* ===== CTA SECTION ===== */
  .cta-section {
    position: relative;
    padding: 130px 20px;
    text-align: center;
    color: #fff;
    background: url('../images/judicial-auction.webp') center/cover no-repeat;
    overflow: hidden;
  }

  .cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 60, 140, 0.5);
    z-index: 1;
    /* Overlay above video */
  }

  /* Background video inside CTA */
  .cta-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Behind overlay and content */
    pointer-events: none;
    /* Do not block clicks */
  }

  .cta-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto
  }

  .cta-section-title {
    color: white;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw + .5rem, 3.2rem);
    line-height: 1.15;
    margin: 0 0 1rem 0;
    letter-spacing: -.01em;
  }

  .btn-cta {
    background: var(--brand-accent);
    color: #fff;
    border: none;
    padding: 13px 34px;
    font-size: 1.12rem;
    font-weight: 900;
    border-radius: 10px;
    letter-spacing: .04em;
    transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
    box-shadow: var(--shadow-soft);
    text-decoration: none;

  }

  .btn-cta:hover {
    background: var(--brand-primary);
    transform: translateY(-2px);
    text-decoration: none;

  }

  .cta-bg-parallax {
    transform: translateY(0)
  }

  /* ===== Contact Section ===== */
  .contact-final {
    background: #fff;
    padding: 60px 20px;
  }

  .contact-final h3 {
    font-weight: 1000;
    color: #0b3c8c;
    margin-bottom: 10px;
    text-transform: capitalize;
    letter-spacing: .01em
  }

  .contact-final .intro {
    color: #0b3c8c;
    margin-bottom: 18px
  }

  .contact-final .label {
    letter-spacing: .25em;
    font-weight: 1000;
    color: #0b3c8c;
    margin-top: 14px;
    margin-bottom: 6px
  }

  .contact-final .details {
    color: var(--brand-accent);
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: .01em
  }

  .contact-final .details a {
    text-decoration: none;
    color: inherit
  }

  .contact-final .details a:hover {
    text-decoration: underline
  }

  .contact-final .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid var(--brand-accent);
    color: var(--brand-accent);
    margin-right: 10px;
    transition: .2s var(--ease)
  }

  .contact-final .social a:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-2px)
  }

  .contact-final .image-wrap img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, .08)
  }

  /* ===== Responsive Fixes ===== */
  @media(max-width:1024px) {
    .promo-card {
      min-height: 160px;
      padding: 1.6rem 2rem
    }

    .quad-blue {
      padding: 26px
    }
  }

  @media(max-width:768px) {
    section {
      padding: 56px 0
    }

    .intro-section {
      padding: 30px 0;
    }

    .intro-content {
      padding: 0 15px;
    }

    .section-spacer,
    .section-spacer-reverse {
      min-height: 60px;
    }

    .icon-col img {
      width: 90px;
      height: 90px
    }

    .cta-section h2 {
      font-size: 1.4rem
    }

    .image-text-grid {
      grid-template-columns: 1fr;
      gap: 20px;
      display: flex;
      flex-direction: column;
    }

    /* Ordine mobile: immagine, testo, immagine, testo */
    .grid-block:nth-child(1) {
      order: 1;
    }

    /* Immagine 1 */
    .grid-block:nth-child(2) {
      order: 2;
    }

    /* Testo 1 */
    .grid-block:nth-child(3) {
      order: 4;
    }

    /* Testo 2 -> dopo immagine 2 */
    .grid-block:nth-child(4) {
      order: 3;
    }

    /* Immagine 2 -> prima di testo 2 */

    .grid-block-image {
      height: 240px;
    }

    .grid-block-text {
      padding: 30px 25px;
      min-height: auto;
    }

    .grid-block-title {
      font-size: 1.5rem;
    }
  }

  @media(max-width:576px) {

    .section-spacer,
    .section-spacer-reverse {
      min-height: 45px;
    }
  }

  /* ===== SPACING SECTION ===== */
  .spacing-section {
    background: #fff;
    padding: 60px 0;
  }

  @media(max-width:768px) {
    .spacing-section {
      padding: 40px 0;
    }
  }

  @media (max-width:768px) {
    .quad-grid {
      width: 100%;
      margin-left: 0;
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      aspect-ratio: auto
    }

    .quad {
      min-height: 220px;
      padding: 18px
    }

    .quad img {
      position: relative;
      height: auto;
      object-fit: cover
    }

    .hero-overlay {
      padding: 18px 0
    }

    .hero-title {
      font-size: clamp(1.6rem, 6vw, 2.4rem)
    }

    .hero-sub {
      font-size: clamp(1.1rem, 4.4vw, 1.6rem)
    }
  }

  /* Mobile hero ottimizzato */
  @media(max-width: 576px) {
    .hero {
      min-height: 80vh;
      padding: 0;
    }

    .hero-bg {
      object-fit: cover;
      object-position: center center;
      width: 100%;
      height: 100%;
      transform: scale(1.08);
    }

    .hero-overlay {
      padding: 40px 0;
      background: transparent;
    }

    .hero::after {
      background: transparent;
    }

    .hero-title {
      font-size: clamp(1.5rem, 7vw, 2.2rem);
      margin-bottom: 0.4rem;
      text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.55),
        0 8px 16px rgba(0, 0, 0, 0.5);
    }

    .hero-sub {
      font-size: clamp(1.1rem, 5vw, 1.5rem);
      margin-bottom: 1rem;
      text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.55),
        0 8px 16px rgba(0, 0, 0, 0.5);
      padding: 1.3rem 1.1rem;
      min-height: auto;
      border-radius: 0.9rem;
      margin-top: 1.5rem !important;
    }

    .promo-text {
      font-size: clamp(1rem, 5vw, 1.4rem);
      margin-bottom: 0.9rem !important;
      letter-spacing: 0.06em;
    }
  }

  /* تحسين قابلية القراءة على الخلفية البرتقالية */
  .promo-card .promo-text {
    letter-spacing: .09em
  }

  /* بطاقة زجاجية أنيقة داخل البرتقالي */
  .search-card.glass {
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 12px 28px rgba(2, 6, 23, .12);
    backdrop-filter: saturate(140%) blur(2px);
  }

  /* صفوف مضغوطة ومرتبة */
  .search-card .row.g-2 {
    --bs-gutter-x: .6rem;
    --bs-gutter-y: .6rem;
  }

  /* أيقونة داخل الحقل */
  .input-icon {
    position: relative;
  }

  .input-icon>i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: .7;
    color: var(--brand-primary);
    pointer-events: none;
  }

  /* الحقول (أقراص لطيفة) */
  .select-pill.form-select {
    padding-left: 40px;
    /* مساحة للأيقونة */
    padding-right: 12px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, .10);
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(2, 6, 23, .06) inset;
    transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .06s var(--ease);
  }

  .select-pill.form-select:focus {
    border-color: rgba(11, 60, 140, .45);
    box-shadow: 0 0 0 4px rgba(11, 60, 140, .12);
    outline: none;
  }

  .select-pill.form-select:active {
    transform: translateY(0.5px);
  }

  /* زر تبايني على الخلفية البرتقالية */
  .btn-contrast.btn-search {
    background: #0b3c8c;
    color: #fff;
    border: none;
    border-radius: 12px;
    height: 46px;
    box-shadow: 0 10px 24px rgba(11, 60, 140, .25);
    transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    letter-spacing: .02em;
  }

  .btn-contrast.btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(11, 60, 140, .28);
    background: #0a3479;
  }

  .btn-contrast.btn-search:active {
    transform: translateY(0);
  }

  /* نص إرشادي صغير */
  .search-card .tiny {
    font-size: .8rem;
    color: #0b3c8c;
    line-height: 1.35;
  }

  /* تحسين محاذاة الأعمدة الصغيرة */
  @media (max-width: 575.98px) {
    .select-pill.form-select {
      height: 46px;
    }
  }

.hero-carousel {
      position: relative;
      overflow: hidden;
      height: calc(100vh - 75px);
      min-height: calc(100vh - 75px);
    }

    .hero-carousel .hero-bg {
      transition: opacity 0.8s ease-in-out;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
    }

    .hero-carousel .hero-bg.active {
      opacity: 1;
      position: relative;
    }

    .hero-carousel .hero-title,
    .hero-carousel .hero-sub {
      transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    }

    .hero-carousel .hero-title.fade-out,
    .hero-carousel .hero-sub.fade-out {
      opacity: 0;
      transform: translateX(-20px);
    }

    .carousel-dots {
      position: absolute;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 101;
      display: flex;
      gap: 10px;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(10px);
      padding: 10px 20px;
      border-radius: 50px;
      pointer-events: auto;
    }

    .carousel-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.5);
      border: none;
      cursor: pointer;
      transition: none;
      padding: 0;
      pointer-events: auto;
    }

    .carousel-dot:hover {
      background: rgba(255, 255, 255, 0.8);
      transform: scale(1.2);
    }

    .carousel-dot.active {
      width: 35px;
      border-radius: 5px;
      background: #fff;
    }

    @media (max-width: 768px) {
      .carousel-dots {
        bottom: 20px;
        padding: 8px 16px;
        gap: 8px;
      }

      .carousel-dot {
        width: 8px;
        height: 8px;
      }

      .carousel-dot.active {
        width: 28px;
      }
    }
