/*
 Theme Name: PATM Blocksy Child
 Theme URI: https://patm.space
 Description: Tema child personalizzato per band musicale con design punk rock
 Author: Alessandro Bassini
 Author URI: https://patm.space
 Template: blocksy
 Version: 2.0.0
 Text Domain: patm-blocksy-child
*/

/* ========================================
   VARIABILI COLORE PER BAND MUSICALE
   ======================================== */
:root {
  /* Palette colori dark/rock */
  --color-dark-bg: #0a0a0a;
  --color-dark-secondary: #1a1a1a;
  --color-accent-primary: #e63946;
  --color-accent-secondary: #f1faee;
  --color-gold: #ffd700;
  --color-purple: #6a0dad;
  --color-cyan: #00d9ff;
  
  /* Gradiente per effetti */
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-dark: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
}

/* ========================================
   FIX SFONDO GLOBALE - FORZA CARICAMENTO
   ======================================== */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-dark-bg) !important;
  background-image: url('/wp-content/uploads/patm/grunge.jpg') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--color-accent-secondary);
  line-height: 1.6;
  position: relative;
}

/* Overlay scuro sopra texture grunge */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.88);
  z-index: -1;
  pointer-events: none;
}

/* Assicura che tutto il contenuto sia sopra lo sfondo */
#main,
.site-main,
.content-wrapper,
#primary,
.site-content {
  position: relative;
  z-index: 1;
}

/* ========================================
   FIX WOOCOMMERCE - RIMUOVI CONTENITORI STRANI
   ======================================== */

.woocommerce,
.woocommerce-page {
  background: transparent !important;
  background-image: none !important;
}

.woocommerce .ct-container,
.woocommerce-page .ct-container,
.woocommerce .content-area,
.woocommerce-page .content-area {
  background: transparent !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.woocommerce .site-content,
.woocommerce-page .site-content {
  padding-top: 40px;
  background: transparent !important;
}

/* Product cards stile punk */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: rgba(26, 26, 26, 0.8) !important;
  border: 1px solid rgba(230, 57, 70, 0.3) !important;
  border-radius: 15px !important;
  padding: 20px !important;
  transition: all 0.3s ease !important;
}

.woocommerce ul.products li.product:hover {
  border-color: var(--color-accent-primary) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 40px rgba(230, 57, 70, 0.4) !important;
}

/* Bottoni WooCommerce */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--gradient-hero) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 12px 30px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.6) !important;
}

.woocommerce .price {
  color: var(--color-accent-primary) !important;
  font-weight: 700 !important;
}

/* ========================================
   RESTO DEL CSS ORIGINALE
   ======================================== */

/* Titoli con stile rock/moderno */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--color-accent-secondary);
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-hero);
  border-radius: 2px;
}
/* ========================================
   FIX WOOCOMMERCE - RIMUOVI HERO SECTION
   ======================================== */

/* Rimuovi completamente hero-section da WooCommerce */
.woocommerce .hero-section,
.woocommerce-page .hero-section,
body.woocommerce .hero-section,
body.woocommerce-page .hero-section {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  background-image: none !important;
}

/* Rimuovi hero-section anche se è dentro altri container */
.woocommerce-page .ct-container .hero-section,
.woocommerce .content-area .hero-section {
  display: none !important;
}

/* Se hero-section ha ::before, rimuovilo */
.woocommerce .hero-section::before,
.woocommerce-page .hero-section::before {
  display: none !important;
  content: none !important;
}

/* Forza il contenuto WooCommerce a partire subito dopo l'header */
body.woocommerce #main,
body.woocommerce-page #main,
body.woocommerce .site-content,
body.woocommerce-page .site-content {
  padding-top: 40px !important;
  margin-top: 0 !important;
}

/* Rimuovi min-height da tutte le section nelle pagine WooCommerce */
body.woocommerce section,
body.woocommerce-page section {
  min-height: auto !important;
}

/* Fix specifico per pagine prodotto singolo */
body.single-product .hero-section {
  display: none !important;
}

/* Fix per pagina shop */
body.post-type-archive-product .hero-section {
  display: none !important;
}

/* Fix per pagina carrello */
body.woocommerce-cart .hero-section {
  display: none !important;
}

/* Fix per pagina checkout */
body.woocommerce-checkout .hero-section {
  display: none !important;
}

/* Fix per account/my-account */
body.woocommerce-account .hero-section {
  display: none !important;
}
/* ========================================
   RIMUOVI/ALLEGGERISCI GRADIENTE OVERLAY
   ======================================== */


}

body {
  background-image: url('/wp-content/uploads/patm/grunge.jpg') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: contrast(1.2) brightness(1.1); /* Aumenta contrasto texture */
}
}
