/* ==========================================================================
   GR-LPB — Product Page Components
   Product hero, gallery, tabs, specs, FAQ, features, responsive.
   Caricato solo su single-porte_blindate.
   @since 1.3.0 — Estratto da components.css (code-splitting)
   ========================================================================== */

/* --- SPECIFICHE TECNICHE (ACF Block) ----------------------------------- */

.gr-specifiche {
  padding: 60px 0;
}

.gr-specifiche__title {
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: var(--wp--preset--color--text-primary);
  margin-bottom: 32px;
}

.gr-specifiche__table {
  border: 1px solid var(--wp--preset--color--border);
}

.gr-specifiche__row {
  display: flex;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.gr-specifiche__row:last-child {
  border-bottom: none;
}

.gr-specifiche__label {
  flex: 0 0 40%;
  padding: 16px 24px;
  font-family: var(--wp--preset--font-family--body);
  font-size: 14px;
  font-weight: 600;
  color: var(--wp--preset--color--text-primary);
  background: var(--wp--preset--color--surface-alt);
}

.gr-specifiche__value {
  flex: 1;
  padding: 16px 24px;
  font-family: var(--wp--preset--font-family--body);
  font-size: 14px;
  color: var(--wp--preset--color--text-secondary);
}

/* --- GALLERIA PRODOTTO (ACF Block) ------------------------------------- */

.gr-gallery {
  margin: 40px 0;
}

.gr-gallery__main {
  margin-bottom: 16px;
}

.gr-gallery__image {
  width: 100%;
  height: auto;
}

.gr-gallery__thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.gr-gallery__thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--gr-transition-base);
  min-height: 48px;
}

.gr-gallery__thumb:hover,
.gr-gallery__thumb--active {
  border-color: var(--wp--preset--color--primary);
  opacity: 1;
}

.gr-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* gr-cta-bar → spostato in base.css @since 1.3.0 */

/* --- PRODUCT HERO -------------------------------------------------------- */

.product-hero {
  padding: var(--wp--preset--spacing--50) 0 var(--wp--preset--spacing--60);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.product-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

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

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

/* Descrizione breve */
.product-hero__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--wp--preset--color--text-secondary);
  margin: 0 0 20px;
}

/* Caratteristiche — griglia 2 colonne, minimal */
.product-hero__features {
  list-style: none;
  margin: 0 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--wp--preset--color--border);
  border-bottom: 1px solid var(--wp--preset--color--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}

.product-hero__features li {
  font-size: 14px;
  font-weight: 500;
  color: var(--wp--preset--color--text-primary);
  padding: 4px 0 4px 14px;
  position: relative;
}

.product-hero__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wp--preset--color--primary);
  transform: translateY(-50%);
}

/* Prezzo */
.product-hero__price {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 28px;
  color: var(--wp--preset--color--primary);
  margin-bottom: 20px;
}

.product-hero__price-note {
  display: block;
  font-family: var(--wp--preset--font-family--body);
  font-size: 13px;
  color: var(--wp--preset--color--text-muted);
  margin-top: 4px;
}

/* CTA + Contatti */
.product-hero__actions {
  margin-top: 4px;
}

.product-hero__actions .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.product-hero__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.product-hero__contact-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--wp--preset--color--text-secondary);
  text-decoration: none;
  transition: var(--gr-transition-base);
}

.product-hero__contact-link:hover {
  color: var(--wp--preset--color--primary);
}

.product-hero__contact-link--wa {
  color: #25D366;
}

.product-hero__contact-link--wa:hover {
  color: #1DA851;
}

.product-hero__contact-sep {
  color: var(--wp--preset--color--border);
  font-weight: 300;
}

/* Sticky CTA bar sotto hero su mobile */
.product-hero__sticky-cta {
  display: none;
}

/* Badge classe sulla foto */
.product-hero__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Gallery */
.gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--wp--preset--color--surface-alt);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.gallery-main__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Gallery Navigation Arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: var(--gr-transition-base);
  min-height: 44px;
  color: var(--wp--preset--color--text-primary);
  opacity: 0;
}

.gallery-main:hover .gallery-nav,
.gallery-nav:focus-visible {
  opacity: 1;
}

.gallery-nav:hover {
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav:focus-visible {
  outline: 3px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
  opacity: 1;
}

.gallery-nav--prev {
  left: 12px;
}

.gallery-nav--next {
  right: 12px;
}

.gallery-nav__icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Gallery dots (indicatore sotto la gallery) */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.gallery-dots__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wp--preset--color--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--gr-transition-base);
  min-height: auto;
}

.gallery-dots__dot.is-active {
  background: var(--wp--preset--color--primary);
  width: 20px;
  border-radius: 4px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumbs__item {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--gr-transition-base);
  background: none;
  min-height: 48px;
  overflow: hidden;
}

.gallery-thumbs__item:hover,
.gallery-thumbs__item.is-active {
  border-color: var(--wp--preset--color--primary);
  opacity: 1;
}

.gallery-thumbs__item:focus-visible {
  outline: 3px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
  opacity: 1;
}

.gallery-thumbs__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery counter (1/5) */
.gallery-counter {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.6);
  color: #FFF;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--wp--preset--font-family--body);
}

/* --- PRODUCT DESCRIPTION ------------------------------------------------- */

.product-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--wp--preset--color--text-secondary);
  max-width: 820px;
}

.product-description h2,
.product-description h3 {
  font-family: var(--wp--preset--font-family--heading);
  color: var(--wp--preset--color--text-primary);
  margin-top: 32px;
}

.product-description strong {
  color: var(--wp--preset--color--text-primary);
}

.product-description ul,
.product-description ol {
  padding-left: 20px;
  margin: 16px 0;
}

.product-description li {
  margin-bottom: 8px;
}

/* --- CARATTERISTICHE DISTINTIVE ------------------------------------------ */

.product-chars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
}

@media (max-width: 991px) {
  .product-chars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .product-chars {
    grid-template-columns: 1fr;
  }
}

.product-chars__item {
  background: var(--wp--preset--color--surface, #fff);
  border-left: 3px solid var(--wp--preset--color--primary);
  padding: 20px 20px 16px;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-chars__item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.product-chars__label {
  font-family: var(--wp--preset--font-family--body);
  font-size: 14px;
  font-weight: 700;
  color: var(--wp--preset--color--text-primary);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.product-chars__value {
  font-size: 13px;
  line-height: 1.55;
  color: var(--wp--preset--color--text-secondary);
  margin: 0;
}

/* --- POST CONTENT (Descrizione prodotto) --------------------------------- */

.single-porte_blindate .wp-block-post-content {
  padding: var(--wp--preset--spacing--60) 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.single-porte_blindate .wp-block-post-content > * {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.single-porte_blindate .wp-block-post-content h3 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 400;
  color: var(--wp--preset--color--text-primary);
  margin: 0 0 20px;
  line-height: 1.2;
}

.single-porte_blindate .wp-block-post-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--wp--preset--color--text-secondary);
  margin: 0 0 18px;
}

.single-porte_blindate .wp-block-post-content p:last-child {
  margin-bottom: 0;
}

.single-porte_blindate .wp-block-post-content strong {
  color: var(--wp--preset--color--text-primary);
  font-weight: 600;
}

.single-porte_blindate .wp-block-post-content ul,
.single-porte_blindate .wp-block-post-content ol {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  margin-bottom: 18px;
}

.single-porte_blindate .wp-block-post-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--wp--preset--color--text-secondary);
  margin-bottom: 6px;
}

.single-porte_blindate .wp-block-post-content li::marker {
  color: var(--wp--preset--color--primary);
}

.single-porte_blindate .wp-block-post-content a {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.single-porte_blindate .wp-block-post-content a:hover {
  color: var(--wp--preset--color--primary-hover);
}

/* --- FEATURE BOXES (Punti di Forza) -------------------------------------- */

.feature-box {
  background: var(--wp--preset--color--surface, #fff);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  padding: 32px 28px;
  text-align: left;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
}

.feature-box:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.feature-box__num {
  display: block;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 32px;
  font-weight: 400;
  color: var(--wp--preset--color--primary);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 16px;
}

.feature-box__title {
  font-family: var(--wp--preset--font-family--body);
  font-size: 16px;
  font-weight: 700;
  color: var(--wp--preset--color--text-primary);
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}

.feature-box__details {
  font-size: 14px;
  line-height: 1.65;
  color: var(--wp--preset--color--text-secondary);
}

.feature-box__details p {
  margin: 0 0 8px;
}

.feature-box__details p:last-child {
  margin-bottom: 0;
}

.feature-box__details br {
  display: block;
  content: '';
  margin-top: 4px;
}

/* --- PRODUCT TABS -------------------------------------------------------- */

.product-tabs-wrapper {
  position: relative;
}

.product-tabs-wrapper::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 2px;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--wp--preset--color--bg-white));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-tabs-wrapper.has-scroll::after {
  opacity: 1;
}

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 2px solid var(--wp--preset--color--border);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-tabs::-webkit-scrollbar {
  display: none;
}

.product-tabs__btn {
  flex: 0 0 auto;
  padding: 14px 24px;
  font-family: var(--wp--preset--font-family--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--gr-transition-base);
  white-space: nowrap;
  min-height: 48px;
}

.product-tabs__btn:hover {
  color: var(--wp--preset--color--text-primary);
}

.product-tabs__btn.is-active {
  color: var(--wp--preset--color--primary);
  border-bottom-color: var(--wp--preset--color--primary);
}

.product-tabs__panel {
  animation: fadeIn 0.3s ease;
}

.product-tabs__panel[hidden] {
  display: none;
}

/* Tipografia normalizzata per contenuto WYSIWYG nei pannelli tab */

/* Larghezza lettura ottimale per testo, centrato (non si applica a tabelle specs) */
.product-tabs__panel > p,
.product-tabs__panel > h2,
.product-tabs__panel > h3,
.product-tabs__panel > h4,
.product-tabs__panel > ul,
.product-tabs__panel > ol,
.product-tabs__panel > blockquote {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.product-tabs__panel h2 {
  font-family: var(--wp--preset--font-family--body);
  font-size: 20px;
  font-weight: 700;
  color: var(--wp--preset--color--text-primary);
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.3;
}

.product-tabs__panel h3 {
  font-family: var(--wp--preset--font-family--body);
  font-size: 17px;
  font-weight: 700;
  color: var(--wp--preset--color--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.35;
}

/* Rimuovi margin-top sul primo heading del panel */
.product-tabs__panel > :first-child {
  margin-top: 0;
}

.product-tabs__panel h4 {
  font-family: var(--wp--preset--font-family--body);
  font-size: 15px;
  font-weight: 700;
  color: var(--wp--preset--color--text-primary);
  margin-top: 24px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-tabs__panel p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--wp--preset--color--text-secondary);
  margin-top: 0;
  margin-bottom: 16px;
}

.product-tabs__panel p:last-child {
  margin-bottom: 0;
}

.product-tabs__panel strong {
  color: var(--wp--preset--color--text-primary);
  font-weight: 600;
}

.product-tabs__panel ul,
.product-tabs__panel ol {
  padding-left: 20px;
  margin-top: 0;
  margin-bottom: 16px;
}

.product-tabs__panel li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--wp--preset--color--text-secondary);
  margin-bottom: 6px;
}

.product-tabs__panel li::marker {
  color: var(--wp--preset--color--primary);
}

.product-tabs__panel li strong {
  color: var(--wp--preset--color--text-primary);
}

.product-tabs__panel a {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Specs table (dentro tab) — wrapper per overflow mobile */
.specs-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 32px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px; /* Forza scroll orizzontale su schermi piccoli */
}

.specs-table th,
.specs-table td {
  padding: 14px 20px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.specs-table th {
  width: 40%;
  font-weight: 600;
  color: var(--wp--preset--color--text-primary);
  background: var(--wp--preset--color--surface-alt);
}

.specs-table td {
  color: var(--wp--preset--color--text-secondary);
}

.specs-table tr:nth-child(even) th {
  background: var(--wp--preset--color--surface);
}

.specs-table tr:nth-child(even) td {
  background: var(--wp--preset--color--surface);
}

.specs-detail-title {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 20px;
  font-weight: 400;
  margin: 32px 0 16px;
  color: var(--wp--preset--color--text-primary);
}

.specs-detail-list {
  padding-left: 24px;
}

.specs-detail-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--wp--preset--color--text-secondary);
  margin-bottom: 8px;
}

.specs-detail-list li strong {
  color: var(--wp--preset--color--text-primary);
}

/* --- FAQ ACCORDION ------------------------------------------------------- */

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: var(--gr-transition-base);
}

.faq-item:hover {
  border-color: var(--wp--preset--color--border-medium);
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 24px;
  font-family: var(--wp--preset--font-family--body);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--wp--preset--color--text-primary);
  background: var(--wp--preset--color--surface);
  border: none;
  cursor: pointer;
  min-height: 48px;
  gap: 16px;
}

.faq-item__question:hover {
  background: var(--wp--preset--color--surface-alt);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--wp--preset--color--text-secondary);
  transition: transform 0.3s ease;
}

.faq-item__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-item__icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-item__answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item__answer.is-open {
  padding: 0 24px 24px;
  max-height: 2000px;
}

.faq-item__answer[hidden] {
  display: none;
}

.faq-item__answer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--wp--preset--color--text-secondary);
  margin: 0 0 12px;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.faq-item__answer strong {
  color: var(--wp--preset--color--text-primary);
  font-weight: 600;
}

.faq-item__answer ul,
.faq-item__answer ol {
  padding-left: 20px;
  margin: 0 0 12px;
}

.faq-item__answer li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--wp--preset--color--text-secondary);
  margin-bottom: 4px;
}

.faq-item__answer li::marker {
  color: var(--wp--preset--color--primary);
}

.faq-item__answer a {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- IDEALE PER ---------------------------------------------------------- */

.ideal-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
}

.ideal-list__item {
  padding: 18px 22px;
  background: var(--wp--preset--color--surface, #fff);
  border-left: 3px solid var(--wp--preset--color--primary);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ideal-list__item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.ideal-list__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--wp--preset--color--text-primary);
  display: block;
  margin-bottom: 4px;
}

.ideal-list__desc {
  font-size: 14px;
  color: var(--wp--preset--color--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* --- Narrow container ---------------------------------------------------- */

.gr-container--narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- RESPONSIVE SCHEDA PRODOTTO ------------------------------------------ */

@media (max-width: 991px) {
  .product-hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-hero {
    padding: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--50);
  }

  .gallery-nav {
    opacity: 1;
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .product-tabs {
    gap: 0;
  }

  .product-tabs__btn {
    padding: 12px 16px;
    font-size: 12px;
  }

  .specs-table th {
    width: 35%;
  }
}

@media (max-width: 767px) {
  .product-hero__grid {
    gap: 20px;
  }

  .product-hero__actions > .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .product-hero__contacts > a {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-width: unset;
    flex: unset;
  }

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

  /* Features: 1 colonna su schermi stretti */
  .product-hero__features {
    grid-template-columns: 1fr;
    padding-top: 16px;
    margin-bottom: 20px;
  }

  .product-hero__contacts {
    justify-content: center;
  }

  .gallery-nav {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .gallery-nav--prev { left: 8px; }
  .gallery-nav--next { right: 8px; }

  .product-tabs {
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start; /* Evita centramento che taglia su mobile */
    padding-left: 0;
  }

  /* Tab panel contenuto: padding laterale su mobile */
  .product-tabs__panel {
    padding-left: 0;
    padding-right: 0;
  }

  .product-tabs__panel > p,
  .product-tabs__panel > h2,
  .product-tabs__panel > h3,
  .product-tabs__panel > h4,
  .product-tabs__panel > ul,
  .product-tabs__panel > ol,
  .product-tabs__panel > blockquote {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  /* Specs table: min-width ridotto per mobile */
  .specs-table {
    min-width: 320px;
  }

  .feature-box {
    padding: 24px 16px;
  }

  .specs-table th,
  .specs-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .faq-item__question {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-item__answer.is-open {
    padding: 0 16px 16px;
  }

  .product-chars__item {
    padding: 16px 16px 14px;
  }

  .product-chars__label {
    font-size: 13px;
  }

  .ideal-list__item {
    padding: 14px 16px;
  }

  .product-tabs__panel h2 {
    font-size: 18px;
  }

  .product-tabs__panel h3 {
    font-size: 16px;
  }

  .product-tabs__panel p,
  .product-tabs__panel li {
    font-size: 14px;
  }

  .single-porte_blindate .wp-block-post-content {
    padding: var(--wp--preset--spacing--40) 0;
  }

  .gr-breadcrumb {
    padding-top: 64px;
  }
}
