/*======================================
Theme Name: Vyoo Child
Theme URI: https://divicake.com/
Description: This is a child theme developed by Vyoo
Version: 1.0
Author: Vyoo
Author URI: https://vyoo.digital
Template: Divi
======================================*/


/* You can add your own CSS styles here. Use !important to overwrite styles if needed. */

/* Promo Tabs Container */
.et-fixed-header#main-header{
	background-color: #fff !important;
}
.et-fixed-header .logo_container img{
	filter: invert(1);
}
.et-fixed-header#main-header #logo{
	height: 40px !important;
}
.promo-tabs {
    width: 100%;
    margin: 20px auto;
}

.promo-tabs-nav,
.trattamenti-tabs-nav{
	padding-left: 0 !important;
	padding-bottom: 0 !important;
	border-bottom: none !important;
}

/* Tabs Navigation */
.promo-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #ddd;
}

.promo-tab-title {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f8f8f8;
    border-top: 2px solid #f8f8f8;
    border-bottom: 2px solid #528A84;
	border-right: 2px solid #f8f8f8;
	border-left: 2px solid #f8f8f8;
    transition: all 0.3s ease-in-out;
	list-style-type: none;
	font-size: 20px;
	text-transform: uppercase;
	transition: .3s;
}
.promo-tab-title:hover{
	color: #528A84;
	background-color: #ffffff;
}

.promo-tab-title.active {
    background-color: #ffffff;
    border-top: 2px solid #528A84;
    border-bottom: 2px solid #ffffff;
	border-right: 2px solid #528A84;
	border-left: 2px solid #528A84;
    color: #528A84;
}

.promo-tabs-content{
	margin-top: -2px;
}

.promo-tab-content {
    display: none;
	padding: 20px;
}

.promo-tab-content.active {
    display: block;
	border: 2px solid #528A84;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .promo-tabs-nav {
        flex-direction: column;
    }

    .promo-tab-title {
        margin: 0;
        border-left: 2px solid transparent;
    }

    .promo-tab-title.active,
    .promo-tab-title:hover {
        border-left: 2px solid #528A84;
        border-top: none;
    }
}

/* Tabs Container */
.trattamenti-tabs {
    width: 100%;
    margin: 20px auto;
}

/* Tabs Navigation */
.trattamenti-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #fff;
}

.trattamenti-tab-title {
    padding: 10px 20px;
    cursor: pointer;
    background-color: transparent;
    margin-right: 5px;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
	list-style-type: none;
    font-size: 20px;
    text-transform: uppercase;
    transition: .3s;
}

.trattamenti-tab-title.active,
.trattamenti-tab-title:hover {
    background-color: transparent;
    border-top: 2px solid transparent;
    border-bottom: 2px solid #ffffff;
    color: #fff;
}

/* Tabs Content */
.trattamenti-tabs-content {
    padding: 0;
}

.trattamenti-tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.trattamenti-tab-content.active {
    display: block;
}

/* Grid Layout */
/*.trattamenti-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
	transition: all 0.6s ease;
}*/
.trattamenti-grid {
    display: flex;
	flex-wrap: wrap;
    gap: 1%;
	transition: all 0.2s ease;
}

.trattamento-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	position: relative;
	transition: transform 0.2s ease;
	max-width: 100%;
	transition: flex-basis 0.2s ease, transform 0.2s ease; /* Transition flex-basis for smooth width */
    flex-basis: 24%; /* Default size */
    flex-grow: 0;
    flex-shrink: 1;
	margin-bottom: 1%;
	overflow: hidden;
	height: auto;
}
.trattamento-card:not(.expanded){
	max-height: 350px;
	height: 350px;
}
.trattamento-card:hover {
    transform: translateY(-5px);
}

.trattamento-image{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.trattamento-image img {
    width: 100%;
    height: 100%;
	object-fit: cover;
	min-height: 350px;
	filter: brightness(0.5);
}

.trattamento-image{
	height: 100%;
}

.trattamento-title {
    font-size: 20px;
    padding: 40px 20px;
	font-weight: 600;
	text-align: center;
	color: #fff;
	text-transform: uppercase;
}
.trattamento-card.clickable{
	cursor:pointer;
}
.trattamento-card.clickable .arrow{
	display: block !important;
}
.trattamento-card.clickable.expanded .arrow{
	display: none !important;
}
.trattamento-card.clickable .hide{
	display: none !important;
}
.trattamento-card.clickable.expanded .hide{
	display: block !important;
}
.trattamento-card.clickable .arrow,
.trattamento-card.clickable .hide{
	width: 50px;
	height: 50px;
	background-image: url(/wp-content/uploads/2025/01/open_icon.svg);
	background-repeat: no-repeat;
	background-size: contain;
	position: absolute;
	bottom: 20px;
	right: 20px;
}
.trattamento-card.clickable.expanded .hide{
	transform: rotate(-90deg);
}
.trattamento-card.expanded {
    flex-basis: 100% !important; /* Expand to full row */
    transform: none; /* Remove hover effect */
    z-index: 1; /* Ensure it's above others */
}
.trattamento-card.expanded img{
	filter: brightness(0.35);
}
.trattamento-inside-info{
	display: none;
	animation: opacity-change 1.5s;
	width: 100%;
}
@keyframes opacity-change{
	0%{
		opacity: 0;
	}
	50%{
		opacity: 0;
	}
	100%{
		opacity: 1;
	}
}
.trattamento-card.expanded .trattamento-info{
	display: none;
}
.trattamento-info{
	position: relative;
}
.trattamento-block:nth-child(odd){
	border-right: 1px solid #fff;
	padding-right: 30px;
}
.trattamento-block:nth-child(even){
	padding-left: 30px;
}
.trattamento-inside-header{
	margin-bottom: 50px;
	display: flex;
}
.trattamento-inside-title{
	font-weight: 700;
	text-transform: uppercase;
	font-size: 24px;
	min-width: 35%;
}
.trattamento-block h3{
	font-size: 22px;
	font-weight: 700;
}
.trattamento-inside-blocks{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	width: 100%;
}
.trattamento-card.expanded .trattamento-inside-info{
	display: block;
    padding: 5%;
	position: relative;
	overflow: hidden;
}
.trattamento-inside-outro{
	margin-top: 30px;
	width: 100%;
}
.trattamento-inside-info *{
	color: #fff;
}
.trattamento-card:not(.expanded) {
    transition: flex-basis 0.6s ease, transform 0.3s ease; /* Smooth transitions for shrinking and fading */
}
/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Adjustments */
@media screen and (max-width: 1023px) {
    .trattamenti-tabs-nav {
        flex-direction: column;
    }
	.trattamenti-card{
		flex-basis: 100%;
	}
    .trattamenti-tab-title {
        margin: 0;
        border-left: 2px solid transparent;
    }

    .trattamenti-tab-title.active,
    .trattamenti-tab-title:hover {
        border-left: transparent !important;
        border-top: none;
    }
	.trattamenti-grid,.trattamento-inside-header, .trattamento-inside-blocks {
        display: block;
    }
	.trattamento-block:nth-child(even){
		padding-left: 0;
	}
	.trattamento-block:last-child, .trattamento-inside-outro{
		margin-bottom: 50px;
	}
	.trattamento-block{
		margin-bottom: 30px;
	}
}

@media screen and (min-width: 1024px) {
    .trattamento-card:nth-child(6n+2),
    .trattamento-card:nth-child(6n+4) {
        flex-basis: 49%; /* Double width for specific elements */
    }
}
.image-border img{
	-webkit-box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.23);
	-moz-box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.23);
	box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.23);
	border-radius: 10px;
}
.image-border .et_pb_blurb_container{
	padding-left: 50px;
}
#main-header .et_mobile_menu{
	background-color: #fff !important;
}
.et_mobile_menu li a{
	color: #333 !important;
}
.tecnologia-modal {
    position: fixed;
    z-index: 9999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.tecnologia-modal .modal-content {
    background-color: #fefefe;
    margin: 7% auto 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
}
.tecnologia-modal .modal-content h2{
	font-size: 22px;
}
.tecnologia-modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.tecnologia-modal .close:hover, .tecnologia-modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.tecnologia-carousel {
   margin: 20px 0;
}

.tecnologia-carousel .slick-prev, .tecnologia-carousel .slick-next {
    color: black;
    font-size: 0;
    z-index: 1000;
}
.tecnologia-carousel .slick-prev:before, .tecnologia-carousel .slick-next:before{
	color: black;
	font-size: 22px;
}
.tecnologia-carousel .tecnologia-item {
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
    margin: 0 10px;
}
.tecnologia-carousel .show-modal{
	padding: 10px 20px;
	border-radius: 50px;
	cursor: pointer;
	background: white;
	border: 2px solid #fff;
	color: #000;
	text-transform: uppercase !important;
}
.tecnologia-carousel .slick-list {
    margin: 0 -20px; /* Adjust margin to compensate for item padding */
}