/* ==========================================================================
   GR-LPB — Pannello Page Components
   Pannello hero, features, specs, CTA, grid, responsive.
   Caricato solo su single-pannelli.
   @since 1.3.0 — Estratto da components.css (code-splitting)
   ========================================================================== */

/* ==========================================================================
   PANNELLO HERO
   ========================================================================== */

/* ==========================================================================
   PANNELLO HERO — Compatto bilanciato
   ========================================================================== */

.pannello-hero {
  padding: var(--wp--preset--spacing--60) 0 var(--wp--preset--spacing--70);
}

.pannello-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wp--preset--spacing--60);
  align-items: start;
}

.pannello-hero__gallery {
  position: relative;
  min-width: 0; /* previene sforamento grid */
  overflow: hidden; /* Contiene immagini dentro i limiti */
}

/* Galleria — immagine intera visibile (foto porte verticali) */
.pannello-hero__gallery-main {
  height: 500px;
  background: var(--wp--preset--color--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pannello-hero__gallery-main .gallery-main__img {
  max-height: 500px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Thumbnails: scroll orizzontale se troppe */
.pannello-hero__gallery .gallery-thumbs {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--wp--preset--color--border) transparent;
}

.pannello-hero__gallery .gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.pannello-hero__gallery .gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.pannello-hero__gallery .gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--wp--preset--color--border);
  border-radius: 2px;
}

.badge--collezione {
  display: inline-block;
  padding: 6px 16px;
  background: var(--wp--preset--color--accent-gold);
  color: var(--wp--preset--color--bg-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
}

.pannello-hero__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.pannello-hero__title {
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--wp--preset--color--text-primary);
  margin: 0;
}

.pannello-hero__subtitle {
  font-size: 17px;
  line-height: 1.5;
  color: var(--wp--preset--color--text-secondary);
  margin: 0;
}

.pannello-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--wp--preset--color--border);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.pannello-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--wp--preset--color--text-secondary);
}

.pannello-hero__meta-icon {
  flex-shrink: 0;
  color: var(--wp--preset--color--primary);
}

.pannello-hero__meta-item strong {
  color: var(--wp--preset--color--text-primary);
}

.pannello-hero__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--wp--preset--color--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pannello-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}


/* ==========================================================================
   PANNELLO FEATURES — 3 card punti di forza
   ========================================================================== */

.pannello-features {
  background: var(--wp--preset--color--bg-white);
}

.pannello-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--preset--spacing--40);
  margin: 0 auto;
}

.pannello-features__card {
  background: var(--wp--preset--color--bg-light);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--wp--preset--color--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pannello-features__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pannello-features__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--wp--preset--color--primary);
  color: #FFFFFF;
}

.pannello-features__icon svg {
  width: 32px;
  height: 32px;
}

.pannello-features__title {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--wp--preset--color--text-primary);
}

.pannello-features__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--wp--preset--color--text-secondary);
  margin: 0;
}


/* ==========================================================================
   PANNELLO SPECIFICHE — Tabella compatta
   ========================================================================== */

.pannello-specs-wrap {
  max-width: 700px;
  margin: 0 auto;
  overflow-x: auto; /* Permette scroll su mobile se tabella sfora */
  -webkit-overflow-scrolling: touch;
}

.pannello-specs-table .specs-table__icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  color: var(--wp--preset--color--primary);
}


/* ==========================================================================
   PANNELLO CTA FINALE — Sfondo scuro
   ========================================================================== */

.pannello-cta-final {
  background: #1A1A1A !important;
  color: #FFFFFF;
}

.pannello-cta-final__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.pannello-cta-final__title {
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0 0 16px;
}

.pannello-cta-final__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px;
}

.pannello-cta-final__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pannello-cta-final__buttons .btn-outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.pannello-cta-final__buttons .btn-outline:hover {
  background: #FFFFFF;
  color: var(--wp--preset--color--bg-dark);
  border-color: #FFFFFF;
}

.pannello-cta-final__note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}


/* ==========================================================================
   GRIGLIA 4 COLONNE (pannelli correlati)
   ========================================================================== */

.gr-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--wp--preset--spacing--40);
}


/* --- RESPONSIVE PANNELLO ------------------------------------------------- */

@media (max-width: 991px) {
  .pannello-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--40);
  }

  .pannello-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gr-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .pannello-hero__gallery-main {
    height: 360px;
  }

  .pannello-hero__gallery-main .gallery-main__img {
    max-height: 360px;
  }

  .pannello-hero__cta {
    flex-direction: column;
  }

  .pannello-hero__cta .btn,
  .pannello-hero__cta .btn-primary,
  .pannello-hero__cta .btn-whatsapp {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .pannello-features__grid {
    grid-template-columns: 1fr;
  }

  .pannello-features__card {
    padding: 28px 20px;
  }

  .pannello-hero__title {
    font-size: 28px;
  }

  .pannello-cta-final__buttons {
    flex-direction: column;
    align-items: center;
  }

  .pannello-cta-final__buttons .btn-primary,
  .pannello-cta-final__buttons .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .gr-grid--4 {
    grid-template-columns: 1fr;
  }
}
