/*
Theme Name: Cpz Naked Theme child
Theme URI: https://github.com/CristianCPZz/cpz-naked-theme
Author: Cristian Cpz
Author URI: https://www.linkedin.com/in/cristian-cpz
Description: Tema child di Cpz Naked Theme
Template:    Cpz-Naked-Theme-main
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cpz-naked-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/
/* Qui puoi aggiungere i tuoi stili personalizzati */
:root{
  --primary: #0d4a4d;
  --secondary: #0d4a4d4d;
  --font-title: 'Marck Script';
  --font-family: 'Montserrat', sans-serif;
  --font-size-h1: 2.4rem;
  --font-size-h2: 2rem;
  --link: var(--primary);
  --link-hover: var(--secondary);
  --footer-color: #ffffffe6;
  --white: #fff;
}
body {
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 1.2;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}
section {
  margin: 2rem auto !important;
}
p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
li {
  list-style-type: disc;
  margin-left: 1rem;
  line-height: 1.6;
}


.cpz-main {
  max-width: 1200px;
  margin: auto;
  margin: 60px auto;
  width:100%;
}
.home .cpz-main {
 /* max-width:100%;*/
  margin: 0 auto 60px;
}

header.header-bar,
footer {
  background: var(--primary);
}

h1, h2, .h1, .h2 {
  font-family: var(--font-title);

}
/*h1.entry-title:not(.single h1.entry-title)*/
body:not(.single):not(.legal) h1.entry-title {
  margin-left: 2rem;
}
h1, .h1 {
  font-size: var(--font-size-h1);
}
h2, .h2 {
  font-size: var(--font-size-h2);
}

a {
  color: var(--link);
  overflow: hidden;
  text-overflow: ellipsis;
}

a:hover {
  color: var(--link-hover)
}

header a,
header svg{
  color: var(--white);
  fill: var(--white) !important;
  font-weight: bold;
  position: relative
}

header a.elementor-item-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  border-bottom: 2px solid var(--white);
}
header a.elementor-item-active:hover::after {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
}

header a:hover,
header .elementor-item-active,
footer {
  color: var(--footer-color);
}
footer a {
  color: var(--footer-color);
  position: relative;
}
footer a:hover {
  color: var(--white);
}

footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px; /* distanza dal testo */
  width: 100%;
  height: 2px; /* spessore base */
  background-color: currentColor; /* stesso colore del testo */
  transform: scaleY(0); /* linea sottilissima iniziale */
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
footer a:hover::after {
  color: var(--white);
  transform: scaleY(1.2); /* underline più “spessa” */
}
footer p {
  line-height: 1;
}

/* LEGAL */
.legal .cpz-main{
  padding: 0 0.8em;
}
.legal ol > li:not(li li li),
.legal ul > li:not(li li li) {
  margin-bottom: 1rem;
  list-style-type: none;
}

/* end LEGAL */


/* HOME */
/*slide */
.swiper-slide-inner {
    color: #fff;
    letter-spacing: 1.8px;

    text-shadow: 2px 2px 10px rgba(255, 255, 255, 1), -2px -2px 10px rgba(255, 255, 255, 1), 0px 0px 2px rgba(0, 0, 0, 1);
}
.swiper-slide-inner .h1 {
    font-size: 4rem;
}
.swiper-slide-inner .h2 {
    font-size: 2.4rem;
}
/* end HOME */

/* ADDOBBI */

.grid__addobbi .type-addobbi.status-publish.has-post-thumbnail.hentry {
  background: var(--secondary);
}

.grid__addobbi .elementor-widget.elementor-widget-theme-post-featured-image.elementor-widget-image {
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
}

.grid__addobbi .attachment-thumbnail.size-thumbnail {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

/* single addobbi */

.wp-block-gallery {
  margin-top: 30px;
}

.single-addobbi .wp-block-gallery.has-nested-images figure.wp-block-image img { 
  max-width: 380px;
}
.single-addobbi .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,
.single-addobbi .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
  width: unset;
}


/* fine ADDOBBI */

/* BLOG */
/* card */
.card__post:not(.page-id-286 .card__post) {
  box-shadow: 0 0 5px var(--primary) !important;
  border-radius: 0.75rem ;
  padding: 0;
}
.card__post .e-con-inner {
  padding: 0;
}
.card__post_img:not(.page-id-286 .card__post_img) {
  border-radius: .65em .65rem 0 0;
}
.card__post_title {
  font-weight: bold;
  padding: 0.75rem;
}
.card__post_excerpt {
  padding: 0.75rem;
}
/* end BLOG */


/* SHOP */
main.woocommerce-archive {
  width: 100%;
max-width:1200px;
}

.product__card img {
  padding: 10px;
  background: rgba(13,74,77,.3);
  height:100%;
}
.product__card .add_to_cart {
  position: absolute !important;
  top: 65%;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20%);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.product__card:hover .add_to_cart {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/****/
.product__card {
    position: relative;
    list-style: none;
    overflow: hidden;
    text-align: center;
}

.product__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product__image-wrapper {
    position: relative;
    overflow: hidden;
}

.product__image {
    width: 100%;
    transition: opacity 0.4s ease;
    display: block;
}

.secondary-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.product__image-wrapper:hover .secondary-image {
    opacity: 1;
}

.product__image-wrapper:hover .primary-image {
    opacity: 0;
}

.quickview-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #ccc;
  border-radius:50%;
    cursor: pointer;
    font-size: 0.9rem;

}

.product__image-wrapper:hover .quickview-btn {
  opacity: 1;
  visibility: visible;
  color: var(--link);
}
.product__image-wrapper:hover .quickview-btn::after {
  position: absolute;
  transform: translate(-25%, 0.75em);
  display:block;
  content: "vista rapida";
  color: var(--white);
font-weight: bold;
text-shadow: -1px 0 var(--primary), 0 1px var(--primary), 1px 0 var(--primary), 0 -1px var(--primary);
}
/*
.product__card .button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5;
}

.product__image-wrapper:hover .button {
    opacity: 1;
    visibility: visible;
}*/

.product__title {
    font-size: 1rem;
    margin: 0.5rem 0 0.2rem;
  font-weight: bold;
}

.product__price {
    font-weight: bold;
}


/*modal*/
.quickview-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quickview-content {
  background: #fff;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  position: relative;
}

.quickview-content button {
  position: absolute;
  top: 10px; right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.quickview-cart-form {
  margin-top: 1rem;
}

.quickview-cart-form .button.alt {
  background-color: #21759b;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

.quickview-cart-form .button.alt:hover {
  background-color: #1b5f7a;
}

.view-product {
  margin-top: 1rem;
  display: inline-block;
}


/* badge offerta */
.badge-sale {
  position: absolute;
  top: 0px;
  right: 0px;
  background: red;
  color: white;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 3px;
  z-index: 10;
}
/* badge esaurito */
.badge-out-of-stock {
  position: absolute;
  background-color: #898989;
  color: white;
  padding: 5px 10px;
  font-weight: bold;
  top: 15px;
  left: 15px;
  z-index: 10;
  border-radius: 50px;
  text-transform: uppercase;
}

/****/

/* CONTATTO */
form[name="form_contatto"] {
    background: var(--secondary);
    padding: 1rem;
}

input[type="checkbox"] {
    appearance: checkbox;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0 0.5em 0 0;
    vertical-align: middle;
}

/* end CONTATTO */

@media (max-width: 380px) {
  footer:not(a) {
    font-size: 0.85rem; 
  }

  .home .cpz-main {
    max-width:100%;
  }
}


