/* Padding per pagina */
  body {
    padding-top: 75px !important;
  }

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

  @media (max-width: 576px) {
    body {
      padding-top: 65px !important;
    }
  }
                  
                  <div class="tiny mt-2">
                    <i class="bi bi-info-circle me-1"></i>
                    Ricerca basata sulla tua selezione. Puoi filtrare per Regione, Provincia, Comune e Tipologia.
                  </div>
  /* Stili specifici per la pagina Franchising */

  #main .franchising-card {
    transition: transform .25s ease, box-shadow .25s ease;
  }

  #main .franchising-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(2, 8, 20, 0.12);
  }

  #main .logos-row img {
    filter: grayscale(100%);
    opacity: .8;
    transition: opacity .2s ease, filter .2s ease;
  }

  #main .logos-row img:hover {
    filter: grayscale(0%);
    opacity: 1;
  }

  /* ===== 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;
  }

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

  .franchising-table-section .intro-question {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 20px;
  }

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

  }

  .franchising-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;
  }

  .franchising-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);
  }

  .franchising-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);
  }

  .franchising-table td.franchising-table-wide {
    font-size: 1.15rem;

    letter-spacing: .01em;

    background: ;
    color: #0b3c8c;
    box-shadow: 0 12px 32px rgba(11, 60, 140, 0.10);
    border: 2px solid #f28c2a22;
  }

  .franchising-table td .franchising-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: #475569;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    transform: translateY(-10px);
  }

  .franchising-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;
  }

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

  /* Icona quadrata stondato per la tabella franchising */
  .franchising-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.05s ease, transform 0.6s var(--ease);
    position: relative;
    z-index: 2;
    overflow: hidden;
    vertical-align: middle;
  }

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

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

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

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

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

    .franchising-table-icon {
      margin-bottom: 10px;
      margin-right: 0;
      width: 46px;
      height: 46px;
      font-size: 1.4rem;
      border-radius: 12px;
    }

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

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

    .franchising-table td.franchising-table-wide {
      font-size: 0.9rem;
      grid-column: 1 / -1;
    }

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

    /* Aumenta il max-height per l'hover nella versione mobile */
    .franchising-table td:hover .franchising-table-text {
      max-height: 500px;
    }

    /* Permetti più spazio per la colonna wide */
    .franchising-table td.franchising-table-wide:hover .franchising-table-text {
      max-height: 800px;
    }

    /* Rimuovi overflow hidden per permettere la visualizzazione completa */
    .franchising-table td:hover {
      overflow: visible;
    }
  }

  /* ===== INTRO SECTION ===== */
  .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;
  }

  .intro-question {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw + .3rem, 2.4rem);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -.005em;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .intro-section {
      padding: 30px 0;
    }

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

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

  @media (max-width: 576px) {
    .section-spacer,
    .section-spacer-reverse {
      min-height: 45px;
    }
  }

  /* Nota: .contact-final (dark theme) ora gestito da hero-contact-unified.css */

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

  .image-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: stretch; /* Allunga gli elementi 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 */
  }

  .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: segue l'altezza della riga */
    overflow: hidden;
    line-height: 0;
    font-size: 0;
    flex: 1 1 auto; /* Occupa lo spazio disponibile */
    min-height: 0; /* Evita overflow nei container flex */
  }

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

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

  .grid-block-text {
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Dinamico: niente altezza fissa, si adatta al contenuto */
  }

  .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;
  }

  @media (max-width: 768px) {
    .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;
    }
  }

  /* Nota: Ottimizzazioni mobile per hero, promo-card già in hero-contact-unified.css */

  /* Background immagine con filtro scuro per la forma chiusa */
  .franchising-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;
  }

  .franchising-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;
  }

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

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

  .franchising-table td {
    position: relative;
    overflow: hidden;
  }

  /* ===== CONTACT FORM BUTTON ===== */
  .btn-contact-form {
    background: #0b3c8c;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 16px 40px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    box-shadow: 0 10px 24px rgba(11, 60, 140, .25);
    transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    cursor: pointer;
    min-width: 150px;
  }

  .btn-contact-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(11, 60, 140, .35);
    background: #062c5e;
    color: #fff;
  }

  .btn-contact-form:active {
    transform: translateY(0);
  }

  .btn-contact-form:disabled {
    background: #a8d8ea;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: 0 4px 12px rgba(168, 216, 234, .15);
  }
