/*
Theme Name: Enfold Child
Description: Child Theme for Enfold Wordpress Theme.
Version: 1.0
Author: Kriesi
Template: enfold
*/

/* ============================
   STILI GENERALI – PARTIAMO CLUB
=============================== */

/* Grassetto base */
strong, b {
  color: inherit;
  font-weight: 600;
}

/* Grassetto nei link */
a strong, a b {
  color: #41b649;
}

/* Link normali */
a {
  color: #41b649;
  text-decoration: underline;
  text-decoration-color: #41b649;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

/* Hover su link */
a:hover {
  color: #d9a53d;
  text-decoration-color: #d9a53d;
}

/* Escludi sottolineatura da menu principale */
#top .av-main-nav li a,
#top .av-main-nav li a:hover {
  text-decoration: none;
  text-decoration-color: transparent;
}

/* Link categoria articoli e tag */
.blog-categories a, a[rel="tag"] {
  color: #41b649;
  text-decoration: underline;
  text-decoration-color: #41b649;
}
.blog-categories a:hover, a[rel="tag"]:hover {
  color: #d9a53d;
  text-decoration-color: #d9a53d;
}

/* Titolo articoli slide */
.slide-entry-title a,
.slide-entry-title a:hover {
  color: #3a2b20 ;
  text-decoration: none;
}

/* Titolo link nei box speciali (es. <h5>) */
h5 a {
  color: #41b649;
  text-decoration: underline ;
}
h5 a:hover {
  color: #d9a53d;
  text-decoration-color: #d9a53d ;
}

/* ============================
   COMPONENTI TECNICI E SHOP
=============================== */

/* Nasconde metainformazioni degli articoli */
.post-meta-infos {
  display: none ;
}

/* Dettagli prodotto WooCommerce */
.wc-block-components-product-metadata {
  font-size: 20px ;
}

.wc-block-components-product-name {
  font-size: 24px ;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Prezzo e varianti */
#top .price,
#top .price span,
#top del,
#top ins {
  font-size: 20px ;
}

/* WooCommerce prodotto loop: titolo e prezzo */
.inner_product_header h2.woocommerce-loop-product__title {
  color: #41b649 ;
  font-size: 28px ;
  text-decoration: none ;
}

.inner_product_header .price {
  color: #3a2b20 ;
  font-size: 20px ;
  text-decoration: underline ;
  text-decoration-color: #41b649 ;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
  cursor: pointer;
}

/* Hover prezzo: cambia colore testo e sottolineatura */
.inner_product_header_cell:hover .price,
.inner_product_header_cell:hover .price span,
.inner_product_header_cell:hover .woocommerce-Price-amount,
.inner_product_header_cell:hover .woocommerce-Price-currencySymbol,
.inner_product_header_cell:hover .price small {
  color: #d9a53d ;
  text-decoration-color: #d9a53d ;
}

/*nascondi filtri nella pagina shop*/
div .product-sorting{
  display:none!important;
}

/* Bottoni WooCommerce (Aggiungi e Mostra Dettagli) */
.woocommerce ul.products li.product .button,
.avia_cart_buttons .button {
  background-color: #41b649 !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  padding: 12px 20px !important;
  text-transform: uppercase;
  border-radius: 4px;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.woocommerce ul.products li.product .button:hover,
.avia_cart_buttons .button:hover {
  background-color: #d9a53d !important;
  color: #fff !important;
}

/* Hover specifico per il testo interno al bottone (span, strong, b) */
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .button:hover span,
.woocommerce ul.products li.product .button:hover strong,
.woocommerce ul.products li.product .button:hover b {
  color: #fff !important;
  cursor: pointer;
}

/* Bottoni shortcode generici (verde base) */
.button,
.avia-button,
button,
input[type="submit"] {
  background-color: #41b649 ;
  color: #fff ;
  font-weight: 700 ;
  text-transform: uppercase;
  border-radius: 5px ;
  padding: 12px 30px ;
  font-size: 17px ;
  transition: background-color 0.3s ease, color 0.3s ease;
  opacity: 1 ;
  visibility: visible ;
}

.button:hover,
.avia-button:hover,
button:hover,
input[type="submit"]:hover {
  background-color: #d9a53d ;
  color: #fff ;
  cursor: pointer;
}

#top form.cart .button {
    width: 100%;
}

/* Riduci font bottone acquisto tessera */
.bottone-acquista,
.button-acquista,
.acquista-tessera {
  font-size: 18px;
  padding: 0.6em 1.2em;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
}

/* Link sistema WordPress (admin bar, widget, commenti) */
#wp-admin-bar a,
#wp-admin-bar a:hover,
.widget a:not(.more-link),
.comment-meta a,
#wpadminbar a,
#wpadminbar a:hover {
  color: #3a2b20 !important;
  text-decoration: none !important;
}

/* Footer: link verdi sottolineati con hover */
#footer a {
  color: #41b649 !important;
  text-decoration: underline !important;
  text-decoration-color: #41b649 !important;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
#footer a:hover,
#footer a:focus {
  color: #41b649 !important;
  text-decoration-color: #41b649 !important;
  outline: none;
  cursor: pointer;
}

/* Menu: link marroni con hover ocra */
#top .av-main-nav > li > a {
  color: #3a2b20 !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 16px;
}
#top .av-main-nav > li > a:hover {
  color: #d9a53d !important;
  text-decoration: none !important;
}

/* ==== Migliora responsività font menu principale ==== */
#top .av-main-nav > li > a {
  font-size: clamp(10px, 1vw, 16px) !important;
  white-space: nowrap !important;
  transition: font-size 0.3s ease;
}




/* Titoli con link – Hover anche sul testo interno */
h2 a, h3 a, h4 a, h5 a {
  color: #41b649 !important;
  text-decoration: underline !important;
  text-decoration-color: #41b649 !important;
  font-weight: 600;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover {
  color: #d9a53d !important;
  text-decoration-color: #d9a53d !important;
}

/* Strong nei titoli con link */
h2 a strong, h3 a strong, h4 a strong, h5 a strong {
  color: inherit !important;
  font-weight: 700 !important;
}
h2 a:hover strong, h3 a:hover strong, h4 a:hover strong, h5 a:hover strong {
  color: #d9a53d !important;
}

/* ============================
   RESPONSIVE
=============================== */

@media (max-width: 768px) {
  /* Grid partner a 2 colonne */
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .responsive .logo img {
    width: 150px;
  }
  .alternate_color div, p {
    font-size: 18px !important;
  }
  /* Bottone acquisto tessera più piccolo */
  .bottone-acquista,
  .button-acquista,
  .acquista-tessera {
    font-size: 16px !important;
    padding: 0.5em 1em !important;
  }
  /* Bottoni WooCommerce a piena larghezza */
  .woocommerce ul.products li.product .button,
  .avia_cart_buttons .button {
    font-size: 16px !important;
    padding: 10px 16px !important;
    width: 100% !important;
    display: inline-block;
    white-space: normal;
    text-align: center;
    margin-bottom: 10px;
  }
  /* Layout verticale bottoni WooCommerce */
  .avia_cart_buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .avia_cart_buttons .button-mini-delimiter {
    display: none;
  }
  /* Padding contenitore ridotto */
  .inner_product_header {
    padding: 10px !important;
  }
}

@media (max-width: 480px) {
  /* Grid partner a 1 colonna */
  .partner-grid {
    grid-template-columns: 1fr;
  }
  .alternate_color div, p, a {
    font-size: 19px !important;
  }
  /* Bottone acquisto tessera ancora più piccolo */
  .bottone-acquista,
  .button-acquista,
  .acquista-tessera {
    font-size: 14px !important;
    padding: 0.4em 0.8em !important;
  }
  /* Bottone WooCommerce ancora più piccolo */
  .woocommerce ul.products li.product .button,
  .avia_cart_buttons .button {
    font-size: 14px !important;
    padding: 10px 14px !important;
  }
}

/* ============================
   CSS PER AVIA LAYOUT EDITOR
=============================== */

/* Rimuove !important dove non necessario */
.custom-slide-inner a {
  color: inherit; /* lascia libero Avia di applicare il colore */
  text-decoration: none;
  transition: color 0.3s ease;
}

.custom-slide-inner a:hover {
  color: inherit; /* o puoi mettere un colore di default ma senza !important */
  text-decoration: underline;
}


/*======================
Slider pagina ricerca partner, non toccare
=======================*/
.partner-item{
  background-color: white;
  text-align: center;
  padding: 20px;

}

.partner-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile default: 1 per riga */
  gap: 2rem; /* Spaziatura tra le card */
  padding: 1rem;
}

@media (min-width: 768px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 colonne */
  }
}

@media (min-width: 1024px) {
  .partner-grid {
    grid-template-columns: repeat(3, 1fr); /* Desktop: 3 colonne */
  }
}

.partner-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  transition: transform 0.2s ease;
}

.partner-item:hover {
  transform: translateY(-5px);
}

.partner-item-swiper {
  background-color: #f7d694;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
}

.partner-thumbnail-swiper img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Swiper arrows positioning (optional) */
.featured-swiper .swiper-button-prev,
.featured-swiper .swiper-button-next {
  color: #333;
}

.featured-swiper {
  position: relative;
  padding: 20px 0;
}


/*Header Mobile*/
@media screen and (min-width: 990px) and (max-width: 1380px) {

}
