/**
 * CSS per il blocco WordPress "Audire Roma Products Block"
 * Salva come block-products.css o integralo nel tuo tema Gutenberg.
 */
.audire-products {
  padding: 60px 20px;
  background-color: #ffffff;
  font-family: 'Inter', sans-serif;
}

.audire-products__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.audire-products__header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 24px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

@media (min-width: 768px) {
  .audire-products__header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.audire-products__header-texts {
  text-align: left;
}

.audire-products__badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.1em;
}

.audire-products__title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 850;
  color: #0c2340;
  margin: 8px 0 0 0;
}

/* CONTROLLI TAB CON FRECCE */
.audire-products__nav-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audire-products__nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #f1f5f9;
  border: none;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audire-products__nav-arrow:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* CONTROLLI TAB */
.audire-products__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background-color: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
}

.audire-products__tab-btn {
  background: transparent;
  border: none;
  padding: 8px 16.5px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audire-products__tab-btn:hover {
  color: #0f172a;
}

.audire-products__tab-btn.is-active {
  background-color: #ffffff;
  color: #0ea5e9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* FRECCE FLUTTUANTI SUI PANNELLI (SOLO DESKTOP) */
.audire-products__panel-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  z-index: 10;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.audire-products__panel-arrow:hover {
  color: #0f172a;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-50%) scale(1.05);
}

.audire-products__panel-arrow--prev {
  left: -20px;
}

.audire-products__panel-arrow--next {
  right: -20px;
}

@media (min-width: 992px) {
  .audire-products__panel-arrow {
    display: flex;
  }
}

/* PANELS DI VISUALIZZAZIONE */
.audire-product-panel {
  display: none;
}

.audire-product-panel.is-active {
  display: block;
  animation: audireFadeIn 0.35s ease-out;
}

@keyframes audireFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* STRUTTURA A 2 COLONNE DEL PANNELLO */
.audire-product-item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
  text-align: left;
}

@media (min-width: 992px) {
  .audire-product-item-grid {
    grid-template-columns: 7fr 5fr;
    padding: 40px;
    align-items: center;
  }
}

.audire-product-item-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.audire-product-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audire-product-item__tag {
  font-size: 10px;
  font-weight: 700;
  background-color: #0f172a;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
}

.audire-product-item__sep {
  color: #cbd5e1;
}

.audire-product-item__tech {
  font-size: 11px;
  font-weight: 700;
  color: #0ea5e9;
}

.audire-product-item__name {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 850;
  color: #0c2340;
  margin: 0;
}

.audire-product-item__description {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.audire-product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

.audire-product-specs__label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  display: block;
}

.audire-product-specs__value {
  font-size: 13.5px;
  color: #1e293b;
  font-weight: 700;
}

.audire-product-features {
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.audire-product-features__label {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  display: block;
  margin-bottom: 4px;
}

.audire-product-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .audire-product-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.audire-product-features__item {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  color: #475569;
}

.audire-product-features__icon {
  color: #10b981;
}

.audire-product-suitability {
  background-color: #eef2ff;
  border: 1px solid #e0e7ff;
  color: #312e81;
  padding: 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}

/* PARTE DESTRA CON IMMAGINE STRUTTURATA */
.audire-product-item-right {
  display: flex;
  justify-content: center;
  width: 100%;
}

.audire-product-media-card {
  width: 100%;
  max-width: 320px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.audire-product-media-card__image-container {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audire-product-media-card__image-container img,
.audire-product-media-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audire-product-media-card__cert {
  margin-top: 16px;
  text-align: center;
}

.audire-product-media-card__cert-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.audire-product-media-card__cert-text {
  font-size: 10px;
  color: #64748b;
  margin: 0;
}

.audire-products__list {
  position: relative;
}