/*
Theme Name: Astra Child
*/

/* =========================================================
   VARIABILI GLOBALI
   ========================================================= */
:root{
  --pd-red: #C62828;
  --pd-red-hover: #8E0000;
  --pd-text: #111827;
  --pd-muted: #6b7280;
  --pd-border: #e5e7eb;
  --pd-soft: #f6f7fb;

  --pd-yellow: #F6C500;
  --pd-glass: rgba(10,22,38,.78);
  --pd-glass-2: rgba(10,22,38,.68);

  --asm-topbar-h: 0px;
  --asm-adminbar-h: 0px;
  --asm-topbar-g1: #0b6ea8;
  --asm-topbar-g2: #69c3f1;
}

/* =========================================================
   ADMIN BAR + HEADER + TOPBAR
   ========================================================= */
.admin-bar{
  --asm-adminbar-h: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 782px){
  .admin-bar{
    --asm-adminbar-h: var(--wp-admin--admin-bar--height, 46px);
  }
}

.asm-topbar-slider{
  position: fixed !important;
  top: var(--asm-adminbar-h) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1200 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 2px 10px !important;
  margin: 0 !important;
  background: linear-gradient(90deg, var(--asm-topbar-g1) 0%, var(--asm-topbar-g2) 100%) !important;
  color: #fff !important;
}

.asm-topbar-slider.is-hidden{
  display: none !important;
}

.asm-topbar-viewport{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 900px !important;
  display: flex !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.asm-topbar-msg{
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  color: #fff !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.asm-topbar-btn{
  border: 0 !important;
  outline: 0 !important;
  appearance: none !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,0.18) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

.asm-topbar-btn:hover{
  background: rgba(0,0,0,0.28) !important;
}

#masthead{
  position: sticky !important;
  top: calc(var(--asm-adminbar-h) + var(--asm-topbar-h)) !important;
  z-index: 1100 !important;
}

@media (max-width: 480px){
  .asm-topbar-msg{
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}

/* =========================================================
   HOMEPAGE / BANNER / NEWSLETTER
   ========================================================= */
.newsletter-bordeaux{
  width: 100%;
  background: linear-gradient(135deg, #b00020, #8b1c2d);
  padding: 50px 40px;
  box-sizing: border-box;
  font-family: Helvetica, Arial, sans-serif;
}

.newsletter-row{
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.newsletter-text{
  flex: 1.2;
  color: #fff;
}

.newsletter-text h2{
  margin: 0 0 8px;
  font-size: 34px;
  color: #fff;
}

.newsletter-text p{
  margin: 0;
  font-size: 16px;
  opacity: .9;
}

.newsletter-form{
  flex: 1;
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.newsletter-form input[type="email"]{
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  outline: none;
  box-sizing: border-box;
}

.newsletter-form button{
  flex: 0 0 auto;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: #6d0f1b;
  cursor: pointer;
  transition: all .3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.newsletter-form button:hover{
  background: #f2f2f2;
}

@media (max-width: 900px){
  .newsletter-row{
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .newsletter-form{
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form button{
    width: 100%;
  }
}

.asm-promo-banner{
  background:
    radial-gradient(900px 320px at 18% 0%, rgba(255, 0, 60, 0.18) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(135deg, #0b1220 0%, #0f2a33 45%, #0b1220 100%);
  color: #fff;
  padding: 18px 14px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.22);
  margin: 6px auto 14px;
}

.asm-promo-inner{
  max-width: 1100px;
  margin: 0 auto;
}

.asm-promo-banner h2,
.asm-promo-banner p{
  margin: 0;
  padding: 0;
}

.asm-promo-title{
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.asm-arrow{
  display: inline-block;
  color: #ffd400;
  margin-right: 8px;
  text-shadow: 0 0 12px rgba(255,212,0,0.30);
  transform: translateY(-1px);
}

.asm-promo-line{
  font-size: clamp(14px, 1.25vw, 19px);
  line-height: 1.45;
  margin-top: 8px;
}

.asm-promo-line strong{
  color: #ffd400;
  text-shadow: 0 0 12px rgba(255,212,0,0.28);
}

/* =========================================================
   SHOP / ARCHIVI PRODOTTI
   ========================================================= */
.woocommerce ul.products{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 1100px){
  body.woocommerce.archive.woocommerce-sidebar-active ul.products{
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  }
}

@media (max-width: 1024px){
  .woocommerce ul.products{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

@media (max-width: 560px){
  .woocommerce ul.products{
    grid-template-columns: 1fr !important;
  }
}

.woocommerce ul.products li.product{
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  list-style: none !important;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(17,24,39,.06);
}

.woocommerce ul.products li.product .astra-shop-summary-wrap{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{
  display: block;
  text-decoration: none !important;
  color: inherit;
}

.woocommerce ul.products li.product a img{
  width: 100% !important;
  height: 190px !important;
  object-fit: contain;
  background: #fff;
  display: block;
  padding: 10px;
}

@media (max-width: 1024px){
  .woocommerce ul.products li.product a img{
    height: 200px !important;
  }
}

@media (max-width: 560px){
  .woocommerce ul.products li.product a img{
    height: 190px !important;
  }
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3{
  min-height: 3.8em;
  padding: 10px 10px 6px !important;
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: var(--pd-text) !important;
}

.woocommerce ul.products li.product .price{
  padding: 0 10px 10px !important;
  margin: 0 !important;
  margin-top: auto;
  font-weight: 900 !important;
  color: var(--pd-text) !important;
}

.woocommerce ul.products li.product .price del{
  color: var(--pd-muted) !important;
  opacity: .75;
  font-weight: 700;
  margin-right: 6px;
}

.woocommerce ul.products li.product .price ins{
  color: var(--pd-red) !important;
  text-decoration: none !important;
  font-weight: 900;
}

.woocommerce ul.products li.product span.onsale{
  background: var(--pd-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  min-height: auto !important;
  line-height: 1 !important;
}

.woocommerce ul.products li.product .button{
  margin: 10px !important;
  margin-top: auto !important;
  width: calc(100% - 20px);
  border-radius: 12px !important;
  padding: 10px 12px !important;
  font-weight: 900 !important;
  text-align: center;
  background: #fff !important;
  color: var(--pd-red) !important;
  border: 1px solid rgba(198,40,40,.35) !important;
}

.woocommerce ul.products li.product .button:hover{
  border-color: var(--pd-red) !important;
  color: var(--pd-red-hover) !important;
}

.woocommerce ul.products li.product .star-rating{
  margin: 0 10px 8px !important;
}

/* =========================================================
   SINGOLO PRODOTTO - LAYOUT GENERALE
   ========================================================= */
.single-product .product_meta .tagged_as{
  display: none;
}

.single-product .sku_wrapper{
  display: block !important;
  margin-top: 10px;
}

.single-product .sku_wrapper::before{
  content: "CODICE PRODOTTO: ";
  font-weight: 600;
}

.single-product .sku_wrapper strong{
  display: none;
}

.single-product .wc-brand,
.single-product .product_brand,
.single-product .brand{
  display: block !important;
  margin-top: 5px;
}

.single-product .wc-brand::before,
.single-product .product_brand::before,
.single-product .brand::before{
  content: "MARCHIO: ";
  font-weight: 600;
}

.single-product p.ast-stock-detail{
  display: none !important;
}

.single-product .summary .price,
.single-product .summary .woocommerce-Price-amount{
  font-weight: 900;
}

.single-product .summary .price ins{
  text-decoration: none;
  font-size: 1.55em;
  font-weight: 950;
}

.single-product .summary .price del{
  opacity: .45;
  font-size: .95em;
}

.single-product .summary .price del,
.single-product .summary .price ins{
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
}

.single-product .summary .price del + ins::after{
  content: "OFFERTA";
  margin-left: .6em;
  padding: .25em .55em;
  border-radius: 999px;
  background: rgba(177,0,30,.08);
  border: 1px solid rgba(177,0,30,.20);
  color: #b1001e;
  font-size: .55em;
  font-weight: 900;
  letter-spacing: .06em;
  vertical-align: middle;
}

.single-product .asm-info-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.single-product .asm-info-label,
.single-product .asm-info-value{
  min-width: 0;
}

.asm-trust-badges{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--pd-border);
}

@media (min-width: 981px){
  .single-product .site-content{
    padding-top: 0 !important;
  }

  .single-product .site-content .ast-container{
    margin-top: -45px !important;
  }
}

/* =========================================================
   STOCK / DISPONIBILITA
   ========================================================= */
.asm-stock{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  background: transparent;
  border: none;
  padding: 0;
}

.asm-stock-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.asm-stock--ok{
  color: #0f7a43;
}

.asm-stock--ok .asm-stock-dot{
  background: #0f7a43;
  box-shadow: 0 0 0 3px rgba(15,122,67,.12);
}

.asm-stock--no{
  color: #c62828;
}

.asm-stock--no .asm-stock-dot{
  background: #c62828;
  box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}

.asm-stock--backorder{
  color: #b26a00;
}

.asm-stock--backorder .asm-stock-dot{
  background: #b26a00;
  box-shadow: 0 0 0 3px rgba(178,106,0,.12);
}

/* =========================================================
   TAB WOOCOMMERCE
   ========================================================= */
.woocommerce div.product .woocommerce-tabs{
  margin-top: 18px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs{
  display: flex !important;
  gap: 10px !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 14px !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after{
  display: none !important;
  content: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li{
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: #fff !important;
  border: 1px solid var(--pd-border) !important;
  color: var(--pd-text) !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus{
  border-color: rgba(198,40,40,.35) !important;
  color: var(--pd-red) !important;
  outline: none !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a::before,
.single-product .woocommerce-tabs ul.tabs li.active::before{
  display: none !important;
  content: none !important;
}

.woocommerce div.product .woocommerce-tabs .panel{
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid var(--pd-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17,24,39,.05);
  box-sizing: border-box;
}

.woocommerce div.product .woocommerce-tabs .panel h2{
  margin: 0 0 10px !important;
  font-size: 18px !important;
  color: var(--pd-text) !important;
  font-weight: 900 !important;
}

.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce div.product .woocommerce-tabs .panel li{
  font-size: 15px;
  line-height: 1.6;
  color: var(--pd-text);
}

.woocommerce div.product .woocommerce-tabs .panel ul{
  margin: 10px 0 0 0;
  padding-left: 18px;
}

.woocommerce div.product .woocommerce-tabs .panel li{
  margin: 6px 0;
}

.woocommerce table.shop_attributes{
  border: 1px solid var(--pd-border) !important;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 !important;
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td{
  padding: 10px 12px !important;
  border-bottom: 1px solid var(--pd-border) !important;
}

.woocommerce table.shop_attributes th{
  background: var(--pd-soft) !important;
  color: var(--pd-text) !important;
  font-weight: 900 !important;
}

.woocommerce table.shop_attributes tr:last-child th,
.woocommerce table.shop_attributes tr:last-child td{
  border-bottom: none !important;
}

@media (max-width: 560px){
  .woocommerce div.product .woocommerce-tabs ul.tabs{
    gap: 8px !important;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs li a{
    padding: 9px 12px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  .woocommerce div.product .woocommerce-tabs .panel{
    padding: 12px !important;
    border-radius: 14px;
  }
}

/* =========================================================
   SCHEDE PDF
   ========================================================= */
.asm-pdf-list{
  margin-top: 15px;
  font-size: 13px;
}

.asm-pdf-list h3{
  font-size: 15px;
  margin-bottom: 6px;
}

.asm-pdf-list ul li{
  line-height: 1.4;
}

/* =========================================================
   CONFIGURATORE COMPATIBILITA
   ========================================================= */
.asm-compatibilita-widget{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.asm-compatibilita-title{
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
}

.asm-compatibilita-input-wrap{
  position: relative;
  flex: 1;
  min-width: 280px;
}

.asm-compatibilita-input{
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
}

.asm-compatibilita-results{
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ddd;
  background: #fff;
  z-index: 1300 !important;
}

/* =========================================================
   ARCHIVIO COMPATIBILITA
   ========================================================= */
.tax-pa_compatibilita .page-title,
.tax-pa_compatibilita .ast-archive-title{
  text-align: left !important;
}

/* =========================================================
   FILTRO COMPATIBILITA SIDEBAR
   ========================================================= */
.asm-side-filter{
  border: 1px solid #ddd;
  background: #fafafa;
  padding: 10px;
  margin-bottom: 40px !important;
  position: relative !important;
  float: none !important;
  clear: both !important;
  z-index: 1;
}

.ast-sidebar,
.widget-area,
.secondary{
  overflow: visible !important;
}

.widget{
  clear: both;
  position: relative;
}

.ast-sticky-sidebar .asm-side-filter{
  position: static !important;
}

.asm-cat-group{
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

.asm-cat-header{
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-weight: 600;
  cursor: pointer;
  background: #f3f3f3;
}

.asm-parent-check{
  transform: scale(1.05);
  margin: 0;
}

.asm-cat-title{
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asm-cat-count{
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.asm-toggle{
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease;
}

.asm-cat-group.open .asm-toggle{
  transform: rotate(90deg);
}

.asm-cat-children{
  list-style: none;
  margin: 0;
  padding: 6px 10px;
  display: none;
}

.asm-cat-group.open .asm-cat-children{
  display: block;
}

.asm-cat-children li{
  padding: 4px 0;
}

.asm-cat-children label{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.asm-cat-children .cat-name{
  flex: 1;
  font-size: 13px;
  line-height: 1.3;
}

.asm-cat-children .count{
  font-size: 12px;
  color: #777;
  white-space: nowrap;
}

.asm-cat-children input:checked + .cat-name{
  font-weight: 700;
}

.asm-filter-actions{
  display: flex;
  gap: 8px;
  padding-top: 10px;
}

.asm-filter-actions button{
  flex: 1;
  padding: 6px;
  font-size: 13px;
}

.asm-parent-label{
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.asm-cat-group.partial .asm-cat-title{
  font-style: italic;
  color: #856404;
}

.asm-cat-group.partial .asm-cat-header{
  background: #fff3cd;
  border-left: 4px solid #f0ad4e;
}

.asm-parent-check:indeterminate{
  outline: 2px solid #f0ad4e;
  outline-offset: 2px;
}

/* =========================================================
   VIDEO EMBED
   ========================================================= */
.asm-video-tab{
  max-width: 100%;
}

.asm-video-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
}

.asm-video-wrap iframe,
.asm-video-wrap video{
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   CONTENUTO EXTRA / TABELLE
   ========================================================= */
.asm-extra-wrapper{
  margin-top: 30px;
  max-width: 100%;
  overflow-x: auto;
}

.asm-extra-wrapper table{
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  margin: 20px 0 30px;
  font-size: 13px;
}

.asm-extra-wrapper th,
.asm-extra-wrapper td{
  padding: 8px 10px;
  border: 1px solid #ddd;
  text-align: left;
  white-space: nowrap;
}

.asm-extra-wrapper thead th{
  background: #f3f3f3;
  font-weight: 600;
  border-bottom: 2px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 1;
}

.asm-extra-wrapper tbody tr:nth-child(even){
  background: #fafafa;
}

.asm-extra-wrapper h2,
.asm-extra-wrapper h3{
  margin: 40px 0 10px;
  font-weight: 700;
}

/* =========================================================
   PAGINA EXTRA
   ========================================================= */
body.asm-extra-page{
  background: #ffffff;
}

.asm-extra-content{
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px 20px;
}

.asm-extra-title{
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.asm-extra-actions{
  margin-bottom: 10px;
}

.asm-extra-close{
  background: #000;
  border: 1px solid #ccc;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
}

.asm-extra-close:hover{
  background: red;
}

.asm-extra-subtitle{
  margin-top: 6px;
  color: #666;
  font-size: 14px;
}

/* =========================================================
   OFFCANVAS / MODALI
   ========================================================= */
.ast-site-overlay,
.ast-site-off-canvas-overlay,
.ast-header-break-point .ast-mobile-popup-drawer,
.ast-flyout-menu,
.ast-flyout-wrapper,
.ast-woo-cart-overlay,
.woocommerce-mini-cart,
.woocommerce-mini-cart__buttons,
.cart-panel,
.cart-drawer,
.drawer-overlay,
.drawer,
.offcanvas,
.offcanvas-backdrop,
.modal-backdrop,
.modal,
[aria-modal="true"],
[role="dialog"]{
  z-index: 2000 !important;
}

.ast-woo-cart,
.ast-site-off-canvas-menu,
.ast-off-canvas-menu,
.ast-woo-sidebar-cart,
.ast-cart-drawer,
.cart-panel,
.cart-drawer,
.drawer,
.offcanvas{
  position: fixed !important;
  z-index: 2100 !important;
}

/* =========================================================
   CATEGORY SEO BLOCK
   ========================================================= */
.category-seo-block details{
  margin-top: 10px;
}

.category-seo-block summary{
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f8f8f8;
  transition: all .25s ease;
}

.category-seo-block summary::marker{
  display: none;
}

.category-seo-block summary::-webkit-details-marker{
  display: none;
}

.category-seo-block summary::after{
  content: "▾";
  font-size: 14px;
  transition: transform .25s ease;
}

.category-seo-block details[open] summary::after{
  transform: rotate(180deg);
}

.category-seo-block summary:hover{
  background: #ececec;
  border-color: #ccc;
}

.category-seo-block details > div{
  margin-top: 14px;
}

/* =========================================================
   HOMEPAGE - HERO PITDRIVER
   ========================================================= */

.pd-hero{
  width: 100%;
  margin-top: 16px;
  padding: 26px 20px 22px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.pd-hero__inner{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
}

.pd-hero__content{
  max-width: 1080px;
}

.pd-hero h1{
  margin: 0 0 14px 0;
  max-width: 980px;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.4px;
  color: #0f172a;
  font-weight: 800;
}

.pd-hero__sub{
  margin: 0 0 20px 0;
  max-width: 980px;
  font-size: 17px;
  line-height: 1.45;
  color: #334155;
}

.pd-hero__sub a{
  color: var(--pd-red);
  text-decoration: none !important;
  border-bottom: 1px solid rgba(198,40,40,.28);
  padding-bottom: 1px;
}

.pd-hero__sub a:hover{
  border-bottom-color: rgba(198,40,40,.7);
}

/* 2 righe da 3 bottoni */
.pd-hero__chips{
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 14px 14px;
  align-items: start;
  justify-content: start;
  max-width: max-content;
}

.pd-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(17,24,39,.08);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.pd-chip:hover{
  transform: translateY(-1px);
}

.pd-chip--red{
  background: #c8102e;
  border: 1px solid #c8102e;
  color: #fff !important;
}

.pd-chip--red:hover{
  background: #a60d25;
  border-color: #a60d25;
}

.pd-chip--blue{
  background: #1e88d8;
  border: 1px solid #1e88d8;
  color: #fff !important;
}

.pd-chip--blue:hover{
  background: #176fb0;
  border-color: #176fb0;
}

.pd-chip--yellow{
  background: #f2c300;
  border: 1px solid #f2c300;
  color: #111827 !important;
}

.pd-chip--yellow:hover{
  background: #ddb200;
  border-color: #ddb200;
  color: #111827 !important;
}

.pd-chip--dark{
  background: #1f2b3d;
  border: 1px solid #1f2b3d;
  color: #fff !important;
}

.pd-chip--dark:hover{
  background: #16202f;
  border-color: #16202f;
}

@media (max-width: 980px){
  .pd-hero{
    padding: 22px 16px 18px;
  }

  .pd-hero__content,
  .pd-hero h1,
  .pd-hero__sub{
    max-width: 100%;
  }

  .pd-hero h1{
    font-size: 31px;
    line-height: 1.12;
  }

  .pd-hero__sub{
    font-size: 16px;
    line-height: 1.5;
  }

  .pd-hero__chips{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 100%;
  }

  .pd-chip{
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 640px){
  .pd-hero h1{
    font-size: 27px;
    line-height: 1.15;
  }

  .pd-hero__sub{
    font-size: 15px;
  }
}
@media (max-width: 640px){
  .pd-hero h1{
    font-size: 27px;
    line-height: 1.15;
  }

  .pd-hero__sub{
    font-size: 15px;
  }

  .pd-hero__chips{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 100%;
  }

  .pd-chip{
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
  }
}

/* =========================================================
   HOMEPAGE - CATEGORIE PRINCIPALI
   ========================================================= */

.pd-cats{
  padding: 0;
  margin: 16px 0 0 0;
}

.pd-cats__inner{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-items: stretch;
}

.pd-cat{
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(17,24,39,.08);
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
}

.pd-cat:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(17,24,39,.12);
}

.pd-cat__img{
  aspect-ratio: 4 / 3;
  width: 100%;
  background: #e5e7eb;
}

.pd-cat__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.pd-cat:hover .pd-cat__img img{
  transform: scale(1.04);
}

.pd-cat__label{
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--pd-red);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .4px;
  padding: 8px 10px;
  border-radius: 4px;
  line-height: 1;
  text-transform: uppercase;
}

.pd-cat__label--small{
  font-size: 13px;
  line-height: 1.05;
  padding: 7px 10px;
}

@media (max-width: 1100px){
  .pd-cats__inner{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px){
  .pd-cats__inner{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .pd-cat__label{
    font-size: 16px;
    padding: 7px 9px;
  }

  .pd-cat__label--small{
    font-size: 12px;
  }
}

/* =========================================================
   HOMEPAGE - BLOCCO BRAND OPTILINE
   ========================================================= */

.pd-brand{
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  padding: 22px 20px 24px;
  margin: 18px 0 0 0;
  border-radius: 18px;
}

.pd-brand__inner{
  max-width: 1180px;
  margin: 0 auto;
}

.pd-brand__header{
  text-align: center;
  margin-bottom: 18px;
}

.pd-brand__logo{
  display: inline-block;
  text-decoration: none !important;
}

.pd-brand__logo img{
  display: block;
  width: min(520px, 88%);
  height: auto;
  max-height: 52px;
}

.pd-brand__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pd-brand-card{
  display: block;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}

.pd-brand-card__img{
  background: #fff;
}

.pd-brand-card__img{
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #fff;
  overflow: hidden;
}

.pd-brand-card__img img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* riempie il quadrato */
  display: block;
}

.pd-brand-card__title{
  padding: 12px 10px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .4px;
  color: #111827;
  text-decoration: none !important;
  line-height: 1.2;
}

.pd-brand-accent{
  color: #ff7a00;
  font-weight: 900;
}

.pd-brand-card,
.pd-brand-card:hover,
.pd-brand-card *{
  text-decoration: none !important;
}

@media (max-width: 1024px){
  .pd-brand{
    padding: 18px 14px 20px;
    border-radius: 16px;
  }

  .pd-brand__grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .pd-brand-card__img img{
    height: 200px;
  }
}

@media (max-width: 640px){
  .pd-brand__grid{
    grid-template-columns: 1fr;
  }

  .pd-brand-card__img img{
    height: 190px;
  }
}

/* =========================================================
   HOMEPAGE - BLOCCO BRAND AZZURRO
   ========================================================= */

.pd-brand-blue{
  background: linear-gradient(180deg, #4ea0c8 0%, #2e7ea6 100%);
  padding: 26px 28px 30px;
  border-radius: 22px;
  margin-top: 18px;
}

.pd-brand-blue__inner{
  max-width: 1180px;
  margin: 0 auto;
}

.pd-brand-blue__header{
  text-align: center;
  margin-bottom: 20px;
}

.pd-brand-blue__header h2{
  margin: 0;
  font-size: 22px;
  color: #fff;
  font-weight: 800;
}

.pd-brand-blue__header p{
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}

.pd-brand-blue__grid{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.pd-brand-blue-card{
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  border: 1px solid transparent;
  transition: border .2s ease, box-shadow .2s ease;
  text-decoration: none !important;
  min-height: 110px;
}

.pd-brand-blue-card img{
  max-height: 55px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.pd-brand-blue-card:hover{
  border: 1px solid rgba(198,40,40,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

@media (max-width: 1100px){
  .pd-brand-blue__grid{
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px){
  .pd-brand-blue__grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

