/*
Theme Name: mTheme - ibdc
Theme URI:
Author: M.SOFT
Author URI:
Description: Starter Theme with Font Awesome and Bootstrap 4
Version: 0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, sticky-post, translation-ready
Text Domain: nx

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
.admin-bar .navbar {
  top: 32px;
}

/* General
-------------------------------------------------------- */
body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 100vh;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;        
}

.main-content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

html {
  scroll-behavior: smooth !important;
}


/* Colori
-------------------------------------------------------- */
a {
  color: #333;
}

a:hover:not(.nav-link, .btn, .woocommerce-LoopProduct-link, .wc-block-cart__submit-button, .wc-forward, :has(.banner)) {
  color: #9CAF88 !important;
  -webkit-filter: brightness(0.8);
          filter: brightness(0.8);
}

.color-primary {
  color: #9CAF88 !important;
}

.bg-primary {
  background: #2C3E50!important;
}

.bg-secondary {
  background: #f2f2f2 !important;
}

.bg-tertiary {
  background-color: #9CAF88;
}

/* Typography
-------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, blockquote, .mega-title {
  font-family: "Lora", serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-style: normal;
}


@media (min-width: 1200px) {
  h1 {
    font-size: 6em;
  }
  h2 {
    font-size: 3em;
  }
  p {
    font-size: 16px;
  }
}
@media (max-width: 1199px) {
  h2 {
    font-size: 35px;
  }
}
body, p, .testo-banner {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Helpers
-------------------------------------------------------- */
@media (min-width: 1200px) {
  .py-custom {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .pt-custom {
    padding-top: 100px;
  }
  .pb-custom {
    padding-bottom: 100px;
  }
}

@media (max-width: 1199px) {
  .py-custom {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .pt-custom {
    padding-top: 50px;
  }
  .pb-custom {
    padding-bottom: 50px;
  }
}


/* Buttons
-------------------------------------------------------- */
.btn.btn-primary, .btn.btn-outline-primary, .wc-block-components-button, .wc-forward {
  border-radius: 3px;
  font-size: 15px!important;
  padding: 15px 30px;
  text-transform: uppercase;
}

.btn.btn-outline-primary {
  border: solid 1px #9CAF88 !important;
  color: #9CAF88;
}

.btn-primary, .wc-block-components-button, .wc-forward {
  border: #9CAF88;
  background-color: #9CAF88!important;
  color: #fff!important;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-primary:hover, .wc-block-components-button:hover, .wc-forward:hover {
  background: #9CAF88;
  -webkit-filter: brightness(0.8);
          filter: brightness(0.8);
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
  color: #fff!important;
}

.btn.btn-outline-primary:hover {
  background: #9CAF88;
  color: #fff;
}


/* Animazioni
-------------------------------------------------------- */
.fade-in, .nascosto {
  opacity: 0;
}

.fade-in.show, .visibile {
  opacity: 1;
  -webkit-transition: opacity 1s ease-in;
  transition: opacity 1s ease-in;
}


/* Header
-------------------------------------------------------- */
.pre-header {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  position: relative;
  font-size: 12px;
}

.pre-header-content {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  flex-shrink: 0;
}

.navbar {
  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
          box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}
.navbar .nav-link {
  margin-left: 5px!important;
  margin-right: 5px!important;
  position: relative;
  text-decoration: none;
}
.navbar .navbar img, .navbar .navbar-toggler-icon {
  -webkit-filter: none;
          filter: none;
}

.burger, .icone {
  min-width: 80px;
}

.navbar-brand img {
  max-height: 80px;
  padding: 5px 0px;
}

@media (max-width: 1199px) {
  .navbar-toggler-icon {
    font-size: 25px;
  }
  .nav-link {
    padding: 12px;
  }
  .navbar-toggler:focus {
    -webkit-box-shadow: none;
            box-shadow: none;
  }
}

@media (max-width: 1199px) {
  h1.woocommerce-products-header__title.page-title {
    font-size: 3em;
    margin-bottom: 30px;
  }
}

@media (min-width: 1200px) {
  h1.woocommerce-products-header__title.page-title {
    margin-bottom: 50px;
  }
}

/* offcanvas mini-cart */

#woocommerce-mini-cart-container {
  height: 100vh;
}

#woocommerce-mini-cart-container h2{
  display: none;
}

.offcanvas-header {
  padding-top: 10px;
  padding-bottom: 0px;
}

.offcanvas-header h2{
  font-size: 30px;
}

.woocommerce .widget_shopping_cart .cart_list li, .woocommerce.widget_shopping_cart .cart_list li,  #woocommerce-mini-cart-container p{
  font-size: 14px;
}

.woocommerce ul.cart_list li dl dd, .woocommerce ul.cart_list li dl dt, .woocommerce ul.product_list_widget li dl dd, .woocommerce ul.product_list_widget li dl dt{
  margin-bottom: 0px;
}

.widget.woocommerce.widget_shopping_cart {
  height: 100%;
}
.woocommerce-mini-cart__buttons.buttons {
  position: absolute;
  bottom: 0;
}

li.woocommerce-mini-cart-item.mini_cart_item {
  margin-bottom: 20px!important;
}

.variation-Indicazionidistampa {
  margin-bottom: 0px;
}

/* Nascondi il div .cart-icon nelle pagine del carrello e del checkout */
body:has(.wc-block-checkout) .cart-icon, body:has(.wp-block-woocommerce-cart) .cart-icon {
  display: none;
}

/* Megamenu
-------------------------------------------------------- */
.nav-link:focus-visible {
  -webkit-box-shadow: none;
          box-shadow: none;
  color: transparent;
}

.navbar .megamenu {
  padding: 1rem;
}

.megamenu-list {
  padding-left: 0px;
}

.mega-desktop {
  columns: 2;
}

@media (min-width: 992px) {
  .navbar .has-megamenu {
    position: static !important;
  }
  .navbar .megamenu {
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    border-radius: 0px !important;
    border-top: solid 1px #f2f2f2;
    -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
            box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
  }
  .navbar .megamenu li {
    list-style: none;
    text-align: left;
  }
  .navbar i {
    font-size: 20px;
    margin: 0px 5px;
  }
}

@media (max-width: 991px) {
  .megamenu-list li {
    list-style: none;
    margin-left: 0px;
  }
  .navbar.fixed-top .navbar-collapse, .navbar.sticky-top .navbar-collapse {
    overflow-y: auto;
    max-height: 90vh;
  }
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); 
  backdrop-filter: blur(8px); 
  -webkit-backdrop-filter: blur(8px); 
  z-index: 999;
  display: none;
}

body:has(.dropdown-menu.show) > .modal-overlay {
  display: block;
}

/* Footer
-------------------------------------------------------- */
footer {
  background-color: #2C3E50;
}
footer .logo-footer {
  max-height: 200px!important;
}
footer .cert-logo {
  max-height: 80px;
  text-align: center;
}
footer p {
  font-size: 14px;
}


/* Home
-------------------------------------------------------- */

.testo-banner {
  font-size: 1em;
  opacity: 0;
  text-transform: uppercase;
}

.banner:hover img {
  filter:brightness(0.5)!important;
  transition: 0.4s ease-in-out;
}

.banner:hover .testo-banner {
  transition: 0.8s ease-in-out;
  opacity: 1!important;
}


/* Page header
-------------------------------------------------------- */
.page-header {
  height: 300px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(3,3,3,0.2) 0%, rgba(3,3,3,0.2) 100%), url(/wp-content/uploads/bg-rep-3.jpeg);
  background-size: contain;
  background-repeat: repeat-x;  
}

.page-header h1 {
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-shadow: 12px 0px 10px #333;
}

@media (min-width: 1200px) {
  .page-header h1 {
    font-size: 6em;
  }
  .page-header p {
    font-size: 18px;
    font-weight: 600;
    text-shadow: 12px 0px 10px #333;
  }
}
@media (max-width: 1199px) {
  .page-header h1 {
    font-size: 5vh;
  }
  .page-header p {
    font-size: 15px;
    font-weight: 300;
    text-shadow: 12px 0px 10px #333;
  }
}

/* pagina di categoria
-------------------------------------------------------- */

.woocommerce-loop-product__title {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 14px!important;
}

.woocommerce ul.products li.product .price{
  text-align: center;
  color: #9CAF88;
  font-weight: 400;
  font-size: 15px;
}

.term-description {
  display: none;
}

.btn-filter {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  border-radius: 0px 15px 15px 0px!important;
}

.filter-title {
  font-family: 'Montserrat';
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 5px;
  border-bottom: solid 1px #e2e2e2;
}

.woocommerce-products-header {
  text-align: center;
}

.woocommerce-breadcrumb {
  text-align: center;
  color: #000!important; 
}

/* .yith-wcan-filters {
  background-color: #f2f2f2;
} */


/* prodotto single
-------------------------------------------------------- */
.woocommerce span.onsale {
  background-color: #9CAF88;
  font-size: 10px;
  border-radius: 5px;
}

body:has(.woocommerce-product-gallery) aside{
  display: none;
}

h1.product_title.entry-title{
  font-size: 40px;
}

.woocommerce-product-details__short-description p{
  font-size: 14px!important;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price {
  color: #9CAF88!important;
  font-size: 35px;
}

.quantity input {
  padding: 13px 10px;;
}

.flex-control-nav.flex-control-thumbs {
  display: flex!important;
  overflow-x: scroll!important;
}

.flex-control-nav.flex-control-thumbs li {
  display: flex!important;
  margin: 5px!important;
}

.flex-control-nav.flex-control-thumbs img {
  width: 80px!important;
  max-width: none;
}

#printing_instructions, #custom_text_field {
  font-size: 14px;
}

/* Brand
-------------------------------------------------------- */
.brand {
  transition: 0.4s ease-in-out;
}

/* Checkout
-------------------------------------------------------- */

.wc-block-components-order-summary .wc-block-components-order-summary-item .wc-block-components-product-metadata {
  font-size: 12px!important;
}


/* Carrello
-------------------------------------------------------- */

.wp-block-woocommerce-cart-order-summary-heading-block.wc-block-cart__totals-title {
  display: none!important;
}


/* Nascondi il contenuto all'interno dello span */
.wc-block-components-button__text {
  visibility: hidden !important;
}

/* Aggiungi il nuovo testo al contenitore */
.wc-block-components-button__text::after {
  content: 'Invia richiesta';
  visibility: visible;
  display: block;
  transform: translateY(-46%);
}

/* Modifica testo minicart */
.woocommerce-mini-cart__empty-message {
  visibility:hidden;
  position:relative;
  }
  .woocommerce-mini-cart__empty-message:after {
  visibility: visible;
  position: absolute;
  top: 0;
  left: 0;
  content: "Nessun prodotto inserito.";
  }


/* Contatti
-------------------------------------------------------- */
.wpcf7-form-control {
  height: auto;
  width: 100%;
}

.wpcf7 p {
  font-size: 14px;
}

.wpcf7 label {
  width: 100%;
}

.wpcf7-submit {
  background: #9CAF88 !important;
}

/* Pagine archivio e ricerca
-------------------------------------------------------- */
.page-archive {
  padding-top: 100px;
}

/* Input & textarea
-------------------------------------------------------- */
input, textarea {
  padding: 5px 10px;
  border: 1px solid #ccc;
}

/* Widgets
-------------------------------------------------------- */
/* .widget_search .screen-reader-text {
  display: block;
}

.widget_search #s {
  width: 70%;
  float: left;
}

.widget_search #searchsubmit {
  width: 30%;
  float: left;
  background: #fff;
} */

/* pagination
-------------------------------------------------------- */
.pagination {
  margin-bottom: 40px;
}

.page-numbers {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #ddd;
  margin-right: 4px;
}

/* general wordpress style
-------------------------------------------------------- */
.post img {
  max-width: 100%;
  height: auto;
}

/* WordPress Core Styles
-------------------------------------------------------------- */
.gallery-caption {
  padding: 5px;
  font-size: 10px;
}

.bypostauthor {
  border-left: 3px solid #ddd;
  padding-left: 20px;
}

.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter, div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%; /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  white-space: nowrap;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
          box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000; /* Above WP toolbar. */
}