/*
Theme Name: Radio Spada
Template: generatepress
Author: Simone Cansella
Tags: two-columns,three-columns,one-column,right-sidebar,left-sidebar,footer-widgets,blog,e-commerce,flexible-header,full-width-template,buddypress,custom-header,custom-background,custom-menu,custom-colors,sticky-post,threaded-comments,translation-ready,rtl-language-support,featured-images,theme-options
Version: 3.6.0.1756308413
Updated: 2025-08-27 17:26:53

*/

:root {
  --wc-form-border-color: var(--contrast-3);
  --wc-form-border-radius: 0px;
}

/* 
 * ********************
 * Stili header e bordi
 * ********************
 */

/* Bordi brand RS su header */
#masthead,
#mobile-header {
  border-bottom: var(--dark-red) 1px solid;
  border-top: var(--charcoal) 1px solid;
}

/* Bordo brand RS su header sticky */
#sticky-navigation {
  border-bottom: var(--dark-red) 1px solid;
}

/* Forza font del titolo nell'header */
.main-title {
  font-family: Playfair Display;
}

.footer-widgets a {
  text-decoration: none;
}

.inside-footer-widgets {
  padding: 40px;
}

/* Distanzia logo e nome sito nell'header */
.site-branding-container {
  gap: 20px;
}

/* Bordo dei sottomenù */
.sub-menu {
  border: 1px var(--contrast-3) solid !important;
}

/* Rimuovi padding/margini/ombre su home page per usare contenitori custom */
.home .inside-article {
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.home .site-main {
  margin: 0;
  width: 100%;
}

/* Classe di utilità visiva: da rivedere */
.text-center {
  text-align: center;
}

.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 1.2em;
  background-color: var(--promo-btn-bg);
  color: var(--promo-btn-fg);
  text-decoration: none;
  font-weight: 600;
  width: fit-content;
  text-align: center;
}

.rs-btn:hover {
  background-color: var(--promo-btn-bg-hv);
  color: var(--promo-btn-fg-hv);
}

.rs-btn-mini,
button.rs-btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2em 0.8em;
  background-color: var(--promo-btn-bg);
  color: var(--promo-btn-fg);
  text-decoration: none;
  font-weight: 400;
  width: fit-content;
  text-align: center;
}

.rs-btn-mini:hover {
  background-color: var(--promo-btn-bg-hv);
  color: var(--promo-btn-fg-hv);
}

.rs-btn-mini--transparent,
button.rs-btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2em 0.8em;
  background-color: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  text-decoration: none;
  font-weight: 400;
  width: fit-content;
  text-align: center;
}

.rs-btn-mini--transparent:hover {
  background-color: var(--golden-yellow);
  color: var(--charcoal);
}

.rs-btn-reverse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 1.2em;
  background-color: var(--golden-yellow);
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  width: fit-content;
  text-align: center;
}

.rs-btn-reverse:hover {
  background-color: var(--dark-red);
  color: var(--white);
}

/* Container custom in homepage */
.rs-container,
.rs-hero {
  padding: 40px;
  margin-bottom: 40px;
  background-color: #ffffff;
}

/* Container custom in homepage per hero */
.rs-hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background-image: url("https://ers.webagens.it/wp-content/uploads/2025/10/edizioni-radio-spada-hero.jpg") !important;
  background-position: top center !important;
  background-size: cover !important;
  color: #fff;
}

.rs-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65); /* overlay scuro */
  z-index: 0;
}

.rs-hero__inner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1; /* sopra l’overlay */
  max-width: 1360px;
  margin: 0 auto;
  text-align: center;
}

h2.rs-hero-meta {
  margin: 40px 0;
}

p.rs-hero-meta {
  margin: 0;
  font-size: 1.2em;
}

.rs-promo-wrapper {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  color: var(--promo-text-fg);
  background-image: var(--promo-bg-img) !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.rs-promo-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.rs-promo-left p {
  text-align: justify;
}

.rs-promo-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.rs-focus-wrapper {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  background-color: var(--charcoal);
  color: #ffffff;
}

.rs-focus-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 50%;
}

.rs-focus-right {
  display: flex;
  flex-direction: column;
}

/* .rs-focus h2, .rs-focus p {
  text-align: center;
} */

.rs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonne */
  gap: 1.5rem; /* spazio tra i box */
}

.rs-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 1 / 1; /* mantiene i box quadrati */
  border: 1px solid var(--contrast-3);
  overflow: hidden;
  background-color: #f9f9f9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rs-card h3 {
  margin: 0;
}
.rs-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rs-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.45);
}

.rs-card:hover .rs-card__overlay {
  background: rgba(0, 0, 0, 0.65);
}

.rs-card:hover h3 {
  margin: 0;
  color: #fff;
  text-decoration: none;
}

.rs-card p {
  margin: 0;
  font-style: italic;
  color: #e0e0e0;
}

/* Responsive: 1 colonna su mobile */
@media (max-width: 768px) {
  .rs-grid {
    grid-template-columns: 1fr;
  }

  .rs-card {
    aspect-ratio: 4 / 3;
  }

  .rs-card h3 {
    font-size: 1.2rem;
  }

  .rs-card p {
    font-size: 0.9rem;
  }
}

/* Bordo dei container */
.rs-container,
.inside-article,
.inside-left-sidebar aside,
.comments-area,
#wc-mini-cart {
  border: 1px solid var(--contrast-3) !important;
}

/* Ombra dei container */
#masthead,
#wc-mini-cart,
.site-main .inside-article,
.inside-left-sidebar aside,
.comments-area,
.add-to-cart-panel,
.rs-container,
.rs-hero {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Distanzia breadcrumb WC */
.woocommerce-breadcrumb {
  margin-bottom: 2em !important;
}

/* 
 * ************************
 * Stili voci speciali menu
 * ************************
 */
/* Item speciale: Blog (nel menu Shop) */
.rs-nav-switch-blog > a {
  /* background-color: var(--white); */
  /* color: #000 !important; */
  border: 1px solid #000;
  font-weight: 400;
  border-radius: 0;
  line-height: 1.8 !important;
  width: 100%;
}

.rs-nav-switch-blog > a:hover {
  /* background-color: var(--dark-red);
    color: var(--base-2) !important; */
  color: var(--dark-red);
  border-color: var(--dark-red);
}

/* Item speciale: Edizioni RS (nel menu Blog) */
.rs-nav-switch-shop > a {
  background-color: var(--golden-yellow);
  color: var(--charcoal);
  border: 1px solid #000;
  font-weight: 400;
  border-radius: 0;
  line-height: 1.8 !important;
  width: 100%;
}

.rs-nav-switch-shop > a:hover {
  background-color: var(--white);
  color: #000;
}

.rs-nav-switch-blog,
.rs-nav-switch-shop {
  margin: 0 10px;
}

/* 
 * **********************
 * Divider riutilizzabile
 * **********************
 */

:root {
  --rs-divider-color: #8b0000;
  --rs-divider-h: 1px;
  --rs-divider-w: 25%; /* max relative alla larghezza del contenitore */
  --rs-divider-w-max: 160px; /* non oltre questo */
  --rs-divider-gap-top: 1.4rem;
  --rs-divider-gap-bottom: 1.2rem;
}

.rs-divider {
  position: relative;
}

.rs-divider::after {
  content: "";
  display: block;
  height: var(--rs-divider-h);
  width: min(var(--rs-divider-w), var(--rs-divider-w-max));
  margin: var(--rs-divider-gap-top) auto var(--rs-divider-gap-bottom);
  background: var(--rs-divider-color);
  border-radius: 2px;
}

.entry-title,
.single-product .product_title {
  border-bottom: none !important;
  text-align: center;
}

.entry-title::after,
.single-product .product_title::after {
  content: "";
  display: block;
  height: var(--rs-divider-h);
  width: min(var(--rs-divider-w), var(--rs-divider-w-max));
  margin: var(--rs-divider-gap-top) auto var(--rs-divider-gap-bottom);
  background: var(--rs-divider-color);
  border-radius: 2px;
}

/* 
 * *****************************
 * Stili del mini-cart nella nav
 * *****************************
 */

/* Sposta il banner add-to-cart sotto */
.add-to-cart-panel {
  border-bottom: 1px solid var(--dark-red);
  font-size: 100%;
  padding: 0;
}

#wc-mini-cart a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

/* 
 * ************************************
 * Stili icone social nel secondary-nav
 * ************************************
 */

/* nascondi topbar su mobile */
@media (max-width: 768px) {
  .secondary-navigation,
  .secondary-navigation .menu-toggle {
    display: none !important;
  }
}

/* allineamento icone */
.secondary-navigation .social-link {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  height: 100%;
  width: 16px;
}

/* dimensione icone */
.secondary-navigation .social-link svg {
  width: inherit;
  height: inherit;
}

/* accessibilità: nasconde il testo ma resta per screen reader */
.secondary-navigation .sr-only {
  display: none;
}

/* Colori: eredita dal tema; opzionale hover */
.secondary-navigation .social-link {
  color: currentColor;
}
.secondary-navigation .social-link:hover {
  opacity: 0.8;
}

/*
 * *************
 * Stili sidebar
 * *************
 */

.widget-title {
  margin-bottom: 10px;
  font-weight: 600;
  /* font-style: italic; */
}

/*
 * ************
 * Stili footer
 * ************
 */

.site-footer {
  margin-top: 40px;
}

.footer-widget-4 {
  flex: 2;
}

.footer-widget-4 aside {
  display: flex;
}
/*
 * ********************
 * Stili single product
 * ********************
 */

.rs-product-subtitle {
  font-size: 1.95em;
  text-align: center;
}

@media (max-width: 768px) {
  .rs-product-subtitle {
    font-size: 1.4em;
  }
}

.cwginstock-subscribe-form .panel,
.cwginstock-subscribe-form .panel-heading {
  border-radius: 0 !important;
  border-color: var(--dark-red) !important;
}

.cwginstock-subscribe-form .panel-primary > .panel-heading {
  color: var(--charcoal) !important;
  /* background-color: var(--dark-red) !important; */
  background-color: transparent !important;
  & h4 {
    color: var(--charcoal) !important;
    margin-bottom: 0;
  }
}

.cwg_iagree_checkbox {
  margin-bottom: 1.5rem;
  text-align: center;
}

.woocommerce div.product p.stock {
  font-size: 0.92em;
  font-style: italic;
  color: inherit;
}

.product_meta {
  display: flex;
  gap: 1rem;
  font-size: inherit !important;
}

.product_meta .sku_wrapper {
  display: none;
}

.rs-share-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.rs-share-buttons svg {
  color: var(--contrast-2);
  zoom: 1.2;
}

.rs-share-buttons a:hover svg {
  color: var(--dark-red);
}

/* Distanzia attributi prodotto in tab dettagli */
.woocommerce-product-attributes-item__value {
  padding: 0px 10px !important;
}

/* Distanzia pulsante add-to-cart */
form.cart {
  padding: 20px 0px;
}

.rs-autori-tab {
  display: flex;
  gap: 20px;
}

.rs-autore-card {
  display: flex;
  gap: 20px;
  border: 1px solid var(--contrast-3);
  padding: 20px;
  margin-bottom: 20px;
}

/* Maschera tonda per l'avatar */
.rs-autore-card__media {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #f6f7f7;
  border: 1px solid var(--contrast-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rs-autore-card__media img.rs-autore-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.rs-autore-card__media img.rs-autore-thumb--fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.rs-autore-card__title {
  margin: 0 0 6px;
  font-size: 1rem;
}
.rs-autore-card__desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

/*
 * *******************
 * Stili loop prodotti
 * *******************
 */

/* Card prodotto: transizioni + contenimento */
.woocommerce ul.products li.product {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Effetto hover sulla scheda */
.woocommerce ul.products li.product:hover {
  border: 1px solid var(--contrast-3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Nascondi il pulsante di default fino a hover (mantieni lo spazio per evitare layout shift) */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .button {
  opacity: 0;
  visibility: hidden; /* mantiene lo spazio occupato */
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
  will-change: opacity, transform;
  width: 100%;
}

/* Mostra il pulsante all'hover sulla card */
.woocommerce ul.products li.product:hover a.button,
.woocommerce ul.products li.product:hover .button {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s; /* visibile subito in hover */
}
.woocommerce ul.products li.product:hover a.button:hover,
.woocommerce ul.products li.product:hover .button:hover {
  background-color: var(--golden-yellow);
  color: var(--charcoal);
}

/* Accessibilità: mostra il pulsante quando è focus (tastiera) */
.woocommerce ul.products li.product a.button:focus-visible,
.woocommerce ul.products li.product .button:focus-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile/touch: niente hover → mostra sempre */
@media (hover: none) {
  .woocommerce ul.products li.product a.button,
  .woocommerce ul.products li.product .button {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* Rientro del titolo prodotto nel loop */
h2.woocommerce-loop-product__title {
  padding: 5px !important;
}

/* --- (Opzionale) supporto per Catalogo creato con Woo Blocks --- */
.wc-block-grid .wc-block-grid__product {
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wc-block-grid .wc-block-grid__product:hover {
  border: 1px solid var(--contrast-3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.wc-block-grid .wc-block-grid__product a.wp-element-button {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}
.wc-block-grid .wc-block-grid__product:hover a.wp-element-button,
.wc-block-grid .wc-block-grid__product a.wp-element-button:focus-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
@media (hover: none) {
  .wc-block-grid .wc-block-grid__product a.wp-element-button {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/**
  * *********************
  * Stili pagina checkout
  * *********************
  */

/**
 * *********************************
 * Stili archivio autori (pa_autore)
 * *********************************
 */
.rs-pa-autore-photo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.rs-pa-autore-photo-preview {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  overflow: hidden;
}

.rs-pa-autore-photo-actions .button {
  margin-right: 6px;
}

.column-rs_pa_autore_thumb {
  width: 80px;
  text-align: center;
}

.term-description .rs-autore-desc-avatar-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--contrast-3, #e5e7eb);
  background: #f6f7f7;
  float: left;
  margin: 2px 12px 6px 0;
}

.term-description img.rs-autore-desc-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/*  
  * ******************************
  * Stile form di ricerca
  * ******************************
  */

.rs-hp-search {
  border-radius: 0;
  margin: 40px auto;
  min-width: 100%;
}

.rs-hp-search input {
  width: 80%;
  text-align: center;
  background-color: var(--base-2) !important;
}
