/* ==============================
   AREA RISERVATA - STILI GENERALI
   ============================== */
.page-template-page-trattamenti-speciali .site-content {
  background: linear-gradient(135deg, #1b1f2a, #252b3b);
  background-attachment: fixed;
  padding: 60px 20px;
}

.page-template-page-trattamenti-speciali .trattamenti-speciali-wrapper {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 255, 150, 0.1);
}

.trattamenti-speciali-title,
.page-template-page-trattamenti-speciali .trattamenti-speciali-wrapper h1 {
  color: #a6f4c5;
  text-shadow: 0 0 15px rgba(0, 255, 150, 0.3);
}

.trattamenti-speciali-title {
  font-size: 2em;
  margin-bottom: 40px;
}

.page-template-page-trattamenti-speciali .trattamenti-speciali-wrapper p {
  color: #d3d3d3;
  font-size: 1.1em;
}

/* ==============================
   FORM DI RICERCA
   ============================== */
.trattamenti-speciali-search-wrapper form {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.trattamenti-speciali-search-wrapper select,
.trattamenti-speciali-search-wrapper input[type="text"] {
  height: 46px;
  padding: 0 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.trattamenti-speciali-search-wrapper select {
  flex: 0 0 220px;
}

.trattamenti-speciali-search-wrapper input[type="text"] {
  flex: 1;
}

.trattamenti-speciali-search-wrapper button {
  flex: 0 0 auto;
  padding: 0 20px;
  font-size: 15px;
  height: 46px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.trattamenti-speciali-search-wrapper button:hover {
  background-color: #000;
}

/* ==============================
   GRIGLIA PRODOTTI
   ============================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: rgba(40, 44, 60, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 255, 150, 0.3);
}

/* ==============================
   IMMAGINE PRODOTTO
   ============================== */
.product-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  margin-bottom: 10px;
  background-color: #fff;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==============================
   INFORMAZIONI PRODOTTO
   ============================== */
.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  color: #a6f4c5;
  margin: 0 0 5px 0;
  font-size: 1.2rem;
}

.product-categories {
  color: #8ecae6;
  font-size: 0.9rem;
  margin: 0 0 10px 0;
}

.product-description {
  color: #d3d3d3;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 10px;
  flex-grow: 1;
}

/* ==============================
   FOOTER PRODOTTO (PREZZO + BUTTON)
   ============================== */
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-weight: bold;
}

.product-button {
  background-color: #0088cc;
  color: #fff;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.product-button:hover {
  background-color: #00b4d8;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

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

/* ==============================
   NASCONDERE RICERCA AST
   ============================== */
.ast-header-search,
.ast-search-menu-icon,
section.section-header-search,
div.ast-header-search,
.ast-below-header-wrap,
.ast-below-header-bar,
.ast-builder-layout-element[data-section="section-header-search"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    overflow: hidden !important;
}

/* Riduce padding contenitore principale */
#content.site-content,
.ast-container,
.trattamenti-speciali-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


.trattamenti-speciali-search-wrapper form {
    margin: 30px auto 30px auto; /* top, right/left, bottom */
}