/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
.navigation {
  background-color: #20333A;
  transition: background-color 0.3s ease;
}


.elementor-sticky--effects.navigation {
  background-color: transparent;
}

.header-top {
  display: block;
}

/* Nascondi la seconda sezione all'inizio */
.header-scroll {
  display: none;
}

/* Quando Elementor applica la classe sticky */
.elementor-sticky--effects .header-top {
  display: none;
}

.elementor-sticky--effects .header-scroll {
  display: block;
}


.servizi-block {
  transition: transform 0.3s ease;
}

.servizi-block:hover {
  transform: translateY(-8px);
}

/* progress bar articolo */
#ruigehond006_inner {
	background-color: #20333A !important;
	margin-top: -1px;
}


/* freccia per scroll down pagine interne */
#scroll-down {
  transition: opacity 0.3s ease;
	cursor: pointer;
}

#scroll-down .elementor-icon {
  animation: floatUpDown 2s ease-in-out infinite;
  display: inline-block; /* importante per l'animazione */
}

@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px); /* verso il basso */
  }
  100% {
    transform: translateY(0);
  }
}


/* sezione finale pagine interne per nascondere freccia scroll down */
.scroll-section.last {
	background-color: #ffffff;
	z-index: 998;
}

/* toggle apertura sezione al click */
body:not(.elementor-editor-active) .toggleContent {
    display: none; /* Only hide when NOT in Elementor editor */
}
        
.toggleContent.active {
	display: block;
 }


/* galleria portfolio */
/* Portfolio Gallery Styles */
.portfolio-gallery-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filters */
.portfolio-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: #f5f5f5;
    border: 2px solid #ddd;
    padding: 10px 25px;
    margin: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.filter-btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.filter-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Gallery Grid */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item.hidden {
    display: none;
}

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

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background: #f5f5f5;
}

.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-link:hover .portfolio-image-wrapper img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-link:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-zoom {
    color: #fff;
    font-size: 48px;
    font-weight: 300;
}

/* Portfolio Info */
.portfolio-info {
    margin-top: 15px;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.portfolio-category {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Lightbox */
.portfolio-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.portfolio-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-info {
    margin-top: 20px;
    color: #fff;
}

.lightbox-info h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
}

.lightbox-info p {
    font-size: 16px;
    color: #ccc;
    margin: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.3s ease;
    z-index: 10001;
    border-radius: 4px;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 40px;
    padding: 5px 15px;
    line-height: 1;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 12px;
        margin: 3px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 8px 15px;
    }
    
    .lightbox-close {
        font-size: 30px;
    }
}


/* contatti */
.wpcf7 label {
	width: 100%;
}

#form-contatti [type=submit] {
	background-color: #20333A;
	border: 1px solid #20333A;
	color: #fff;
	font-family: Montserrat, sans-serif;
	text-transform: uppercase;
	letter-spacing: 1px;
}

#form-contatti [type=submit]:hover {
	background-color: #20333A;
}

/* === Woocommerce === */

.woocommerce-account .site-main {
	padding: 80px 10px;
}


.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	background-color: #EBE1DD;
	padding: 10px;
	margin: 5px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover {
	background-color: #20333A;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	color: #20333A;
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover a {
	color: #ffffff;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul .is-active {
	background-color: #20333A;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul .is-active a {
	color: #ffffff;
}

.woocommerce-account .woocommerce-MyAccount-content a {
	color: #005DA7;
}

.woocommerce-cart .site-main {
	padding: 50px 10px;
}

.woocommerce-cart .wc-block-components-product-name {
	color: #20333A;
}

.woocommerce-cart .wc-block-cart__submit-button:hover {
	color: #ffffff;
}

.woocommerce-checkout .site-main {
	padding-top: 30px;
}

@media (max-width: 768px) {
	.woocommerce-account .site-main {
	padding: 50px 10px;
}
}

/* colonna immagine prodotto sticky */
@media (min-width: 1024px) {
	.image-column {
  position: sticky;
   top: calc(45px + 2rem); /* Distance from top of viewport when stuck */
  align-self: flex-start; /* Ensures proper sticky behavior */
  flex: 0 0 auto; /* Prevents the column from growing/shrinking */
  height: 100vh; /* Optional: prevents image from being taller than viewport */
}

.content-column {
  flex: 1; /* Takes remaining space */
}
}

#prodotti-correlati .elementor-widget-loop-carousel .swiper-slide {
	padding: 30px;
}