/* 
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 */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

/* HES yellow Colfert #fdc300 */

input::placeholder {
	color: #aaaaaa;
}

input:focus {
	outline-color: #000000;
	outline-width: 1px !important;
}

header {
	position: relative;
	z-index: 10;
}

header nav li {
	cursor: pointer !important;
}

header input.products-search-input::placeholder {
	color: #cccccc;
}
@media (min-width: 1201px) {
	header .products-search-input {
		background-color: #ffffff;
		border: 1px solid #ffffff;
		border-radius: 200px;
		padding: 15px 70px;
	}

	header .products-search-button {
		position: absolute;
		top: 50%;
		left: 0;
		transform: translateY(-50%);
		height: 50%;
		width: 60px;
		border: none;
		border-right: 1px solid #000000;
		border-radius: 0;
		padding: 10px 0;
	}

	header .products-search-button:after {
		position: absolute;
		content: url(https://colfert.perazzastaging.it/wp-content/uploads/2025/05/search-icon.svg);
		top: 50%;
		left: 20px;
		transform: translateY(calc(-50% + 4px));
	}
	
	header .products-search-button:hover {
		background-color: transparent;
	}
}

/* Mobile (fino a 767px) */
@media (max-width: 767px) {
  body {
    padding-top: 186px;
  }
}

/* Tablet (da 768px a 1200px) */
@media (min-width: 768px) and (max-width: 1200px) {
  body {
    padding-top: 181px;
  }
}

/* Desktop (oltre 1200px) */
@media (min-width: 1201px) {
  body {
    padding-top: 170px;
  }
}

/*** Non abilitare ***
header nav li a {
	transition: all 0.2s !important;
}

header nav ul > li > a {
	padding-left: 5px !important;
}

header nav ul > li a:hover {
	transform: scale(1.02) !important;
	text-shadow: 0 0 1px #000000;
}

header nav ul > li > ul li a:hover {
	transform: scale(1.02) !important;
	text-shadow: 0 0 1px #fdc300;
}

header:after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	width: 100vw;
	height: 0;
	background-color: #ffffff;
	transition: height 0.3s ease;
	z-index: 1;
	pointer-events: none;
	box-shadow:	0 15px 20px -20px #333;
}

header.show-bg:after {
	height: 100%;
	min-height: 300px;
}

.elementor-nav-menu--layout-horizontal .elementor-nav-menu > li ul > li ul {
	top: 0 !important;
}

.dropdown-close-btn {
	position: absolute;
	top: 180px;
	right: 45px;
	width: 26px;
	height: 26px;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	z-index: 9999;
	transition: opacity 0.2s ease;
}

header.show-bg .dropdown-close-btn {
	opacity: 1;
	pointer-events: all;
}

.dropdown-close-btn svg {
	width: 100%;
	height: 100%;
	transition: transform 0.2s ease;
}

.dropdown-close-btn:hover svg {
	transform: rotate(90deg) scale(1.1);
}

header .elementor-menu-toggle {
	font-size: var(--nav-menu-icon-size, 28px);
	background-color: transparent;
    color: #33373d;
    cursor: pointer;
    display: flex;
    justify-content: center;
	align-items: center;
    padding: .25em;
	border: none;
} END non abilitare***/

@media screen and (min-width: 1201px) {	
	
	header nav > ul > li > ul {
		z-index: 10 !important;
	}

	header nav > ul > li > ul:after {
		content: '';
		position: absolute;
		display: block;
		width: 50vw;
		height: 400px;
		background-color: #ffffff;
		z-index: -1;
		top: 0;
		left: 0;
		box-shadow: 0 5px 25px -15px #333333;
	}
	

	header nav .elementor-sub-item:hover {
		transform: translatex(5px);
	}

	header nav a.elementor-sub-item.highlighted {
		transition: 200ms ease;
		transform: translatex(8px);
	}

	header nav a.elementor-sub-item.highlighted:after {
		content: '';
		width: 220px;
		height: 1px;
		background-color: #fdc300;
		bottom: 8px;
		left: 0;
		position: absolute;
	}
}


/*
 * TEST NAV ANIMATION
 * */

header .mega-menu-v1 > .sub-menu,
header .mega-menu-v2 > .sub-menu {
	width: 810px!important;
	box-shadow: 0 5px 25px -20px #000;
}

header .mega-menu-v1 > .sub-menu {
	height: 350px!important;
	background-color: #fff!important;
	padding-top: 20px!important;
}

header .mega-menu-v1 > .sub-menu li.menu-item-has-children:nth-child(1 of .menu-item-has-children) .sub-menu {
	position: absolute !important;
    top: 0 !important;
    left: 150px !important;
    margin: 0 !important;
}

nav > ul > li > a .sub-arrow .icon {
	font-size: 12px;
}

header .mega-menu-v2 > .sub-menu {
	height: 290px!important;
	background-color: #fff!important;
	padding-top: 20px!important;
}

header .mega-menu-v2 > .sub-menu li.menu-item-has-children:nth-child(1 of .menu-item-has-children) .sub-menu {
	position: absolute !important;
    top: -155px !important;
    left: 250px !important;
    margin: 0 !important;
}

header .mega-menu-v2 > .sub-menu li.menu-item-has-children:nth-child(2 of .menu-item-has-children) .sub-menu {
	position: absolute !important;
    top: -202px !important;
    left: 250px !important;
    margin: 0 !important;
}

/*
 * END TEST NAV ANIMATION
 * */

.no-padding {
	padding: 0;
}

/* Header Nav Mobile */

@media screen and (max-width: 1200px) {
	.products-search-form-mobile .products-search-input {
		border: none;
		border-radius: 0;
		padding: 15px 20px;
	}

	.products-search-form-mobile .products-search-button {
		position: absolute;
		top: 50%;
		right: 0;
		transform: translateY(-50%);
		height: 50%;
		width: 60px;
		border: none;
		border-left: 1px solid #000000;
		border-radius: 0;
		padding: 10px 0;
	}

	.products-search-form-mobile .products-search-button:hover {
		background-color: transparent;
	}

	.products-search-form-mobile .products-search-button:after {
		position: absolute;
		content: url(https://colfert.perazzastaging.it/wp-content/uploads/2025/05/search-icon.svg);
		top: 50%;
		right: 20px;
		transform: translateY(calc(-50% + 4px));
	}

}/* END Header Nav Menu */


/* Slider Hero - Custom Next Prev arrow */
body.wp-singular .hero-slider-hp .elementor-swiper-button-prev svg, 
body.wp-singular .hero-slider-hp .elementor-swiper-button-next svg {
    display: none;
}

body.wp-singular .hero-slider-hp .elementor-swiper-button-prev, 
body.wp-singular .hero-slider-hp .elementor-swiper-button-next {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
	z-index: 6;
}

body.wp-singular .hero-slider-hp .elementor-swiper-button-prev {
    left: 0;
}

body.wp-singular .hero-slider-hp .elementor-swiper-button-next {
    right: 0;
}

body.wp-singular .hero-slider-hp .elementor-swiper-button-prev:before, 
body.wp-singular .hero-slider-hp .elementor-swiper-button-next:before {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-37%);
}

body.wp-singular .hero-slider-hp .elementor-swiper-button-prev:before {
    content: url('https://colfert.perazzastaging.it/wp-content/uploads/2025/05/prev-icon-white.svg');
}

body.wp-singular .hero-slider-hp .elementor-swiper-button-next:before {
    content: url('https://colfert.perazzastaging.it/wp-content/uploads/2025/05/next-icon-white.svg');
}

body.home .hero-slider-hp .swiper-slide:after {
	background-color: #000000;
	opacity: 0.3;
	content: '';
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
	z-index: 5;
}

.button-niki .elementor-button-icon svg {
	width: 3em;
	transition: 300ms;
}

@media (max-width: 879px) {
	.button-niki .elementor-button-icon svg {
		width: 2.3em;
	}
}

.button-niki:hover svg path:first-child {
	fill: #ffffff !important;
}

body.home .hero-slider-hp .swiper-slide-inner {
	z-index: 6;
	position: absolute;
}

body.home .hero-slider-hp .swiper-slide-inner .elementor-slide-button {
	padding: 0;
	position: relative;
}

body.home .hero-slider-hp .swiper-slide-inner .elementor-slide-button:hover {
	color: #fdc300 !important;
}

body.home .hero-slider-hp .swiper-slide-inner .elementor-slide-button:after {
	content: url('https://colfert.perazzastaging.it/wp-content/uploads/2025/05/right-arrow-cta.svg');
	width: 30px;
	height: 13px;
	position: absolute;
	top: 50%;
	right: -40px;
	z-index: 6;
	transform: translateY(-50%);
	cursor: pointer;
}

/* END Slider Hero */

.home .no-padding .elementor-button-link {
	padding: 0;
	position: relative;
}

.home .no-padding .elementor-button-link:after {
	content: url('https://colfert.perazzastaging.it/wp-content/uploads/2025/05/right-arrow-black.svg');
	width: 30px;
	height: 13px;
	position: absolute;
	top: 50%;
	right: -40px;
	z-index: 6;
	transform: translateY(-50%);
	cursor: pointer;
}

.home .no-padding .elementor-button-link .elementor-button-text {
	transition: 0.2s ease;
	padding-top: 10px;
	padding-bottom: 10px;
}

.home .no-padding .elementor-button-link .elementor-button-text:hover {
	color: #fdc300 !important;
}

.title-12col {
	position: relative;
}

.title-12col h2 {
	position: relative;
	z-index: 2;
}

.title-12col:after {
	content: '';
	width: 100%;
	height: 1px;
	background-color: #000000;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, 50%);
	z-index: -1;
}

/* Related pages child cards on parent pages */
.child-cards-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.child-cards-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.child-cards-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.child-cards-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(4, 1fr);
}

/* 1200–1365px: 3 colonne */
@media (max-width: 1365px) {
    .child-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 1024–1199px: 3 colonne */
@media (max-width: 1199px) {
    .child-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 880–1023px: 2 colonne */
@media (max-width: 1023px) {
    .child-cards-grid,
	.child-cards-grid.columns-3,
	.child-cards-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Fino a 879px: 1 colonna */
@media (max-width: 879px) {
    .child-cards-grid,
	.child-cards-grid.columns-2,
	.child-cards-grid.columns-3,
	.child-cards-grid.columns-4 {
        grid-template-columns: 1fr;
    }
}

.child-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    transition: all 0.2s;
}

.child-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
	transform: scale(1.03);
}

.child-card-image img {
    width: 100%;
    height: auto;
	min-height: 200px;
    display: block;
    margin-bottom: 1rem;
	object-fit: cover;
	object-position: center;
}

.child-card-content {
    text-align: center;
}

.child-card h3 {
    margin: 0 0 0.5rem;
    font-weight: bold;
    color: #000000;
}

.child-card p {
    margin: 0;
    color: #000000;
}

/* END Related pages child cards */

/*********************/
/* Style of Eventi di formazione Elementor Single Template */

body.single .content-info-wrapper .content-info-block {
	display: flex;
	justify-content: start;
	align-items: start;
	gap: 50px;
	padding-bottom: 40px;
	padding-top: 40px;
	border-bottom: 1px solid #ddd;
}

body.single .content-info-wrapper .content-info-block.align-left {
	flex-direction: row;
}

body.single .content-info-wrapper .content-info-block.align-right {
	flex-direction: row-reverse;
}

body.single .content-info-wrapper .content-info-block .info-img,
body.single .content-info-wrapper .content-info-block .info-content,
body.single .content-info-wrapper .content-info-block .placeholder-void-block {
	width: 50%;
}

body.single .content-info-wrapper .content-info-block .info-img img {
	width: 100%;
	object-fit: cover;
	object-position: center;
}

body.single .content-info-wrapper .content-info-block .info-content {
	font-family: "Lato", sans-serif;
	font-size: 20px;
	font-weight: 400;
	color: #000000;
	line-height: 24px;
}
body.single .content-info-wrapper .content-info-block .info-content .info-button {
	margin-top: 40px;
	margin-bottom: 40px;
}

body.single .content-info-wrapper .content-info-block .info-content .info-button .button {
	background-color: var(--e-global-color-secondary);
    font-family: "Lato", Sans-serif;
    font-size: 16px;
    font-weight: 900;
    line-height: 20px;
    fill: var(--e-global-color-accent);
    color: var(--e-global-color-accent);
    transition-duration: 0.2s;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: var(--e-global-color-secondary);
    border-radius: 0px 0px 0px 0px;
	padding: 12px 24px;
    text-align: center;
    transition: all .3s;
}

body.single .content-info-wrapper .content-info-block .info-content .info-button .button:hover {
	background-color: var(--e-global-color-accent);
    color: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
}

/* 1200–1365px */
@media (max-width: 1365px) {
	body.single .content-info-wrapper .content-info-block {
		gap: 50px;
	}
}

/* 1024–1199px */
@media (max-width: 1199px) {
	body.single .content-info-wrapper .content-info-block .info-img,
	body.single .content-info-wrapper .content-info-block .info-content,
	body.single .content-info-wrapper .content-info-block .placeholder-void-block {
		width: 100%;
	}
	
	body.single .content-info-wrapper .content-info-block.align-left {
		flex-direction: row;
	}

	body.single .content-info-wrapper .content-info-block.align-right {
		flex-direction: row-reverse;
	}
	
	body.single .content-info-wrapper .content-info-block {
		gap: 20px;
	}
	
	body.single .content-info-wrapper .content-info-block .info-content {
		font-family: "Lato", sans-serif;
		font-size: 20px;
		font-weight: 400;
		color: #000000;
		line-height: 24px;
	}
}

/* Fino a 879px */
@media (max-width: 879px) {
	body.singl .content-info-wrapper .content-info-block .info-img,
	body.single .content-info-wrapper .content-info-block .info-content,
	body.single .content-info-wrapper .content-info-block .placeholder-void-block {
		width: 100%;
	}
	
	body.single .content-info-wrapper .content-info-block.align-left,
	body.single .content-info-wrapper .content-info-block.align-right {
		flex-direction: column;
	}
	
	body.single .content-info-wrapper .content-info-block {
		gap: 30px;
	}
	
	body.single .content-info-wrapper .content-info-block .info-content {
		font-size: 16px;
		font-weight: 400;
		color: #000000;
		line-height: 20px;
	}
}

/* END Style of Eventi di formazione Elementor Single Template */

/* ********************** */
/* Style CF7 FORM "Modulo di contatto 1" */

.row { 
	display: grid; 
	grid-template-columns: repeat(2, 1fr);
	gap: 30px 20px;
}

@media (max-width: 879px) {
	.row {
		grid-template-columns: 1fr;
	}
}

.form-control { 
	width: 100%; 
	padding: .5rem 1rem;
}

.btn-primary { 
	background-color: #fdc300; 
	color: #000; 
	padding: 0.75rem 1.5rem; 
	border: 1px solid transparent; 
	cursor: pointer; 
}

.btn-primary:hover {
	background-color: #ffffff;
	border: 1px solid #000000;
	color: #fdc300;
}

.wpcf7-submit {
	border-radius: 0;
	margin-top: 20px;
}

.wpcf7-form.init > p {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.wpcf7-form.init > p .wpcf7-spinner {
	margin-top: 10px;
}

.consensi { 
	margin-top: 1rem; 
}

.consensi .checkbox span.wpcf7-list-item-label { 
	width: 100%;
	line-height: 21px;
}

.consensi .consenso-marketing { 
	margin-bottom: 10px;
	font-weight: bold;
}

.consensi span.wpcf7-radio {
	margin-top: 10px;
	display: block;
}

.consensi a {
	color: #000000;
	transition: 200ms;
}

.consensi a:hover {
	color: #fdc300;
}

label.checkbox {
	margin-bottom: 30px;
}

.contact-form label {
	width: 100%;
	font-family: "Lato", sans-serif;
	color: #000;
	font-size: 16px;
	line-height: 20px;
	font-weight: 500;
}

.contact-form br {
	display: none;
	height: 0;
	margin: 0;
	padding: 0;
	line-height: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	margin-top: 10px;
	border-radius: 0;
	font-family: "Lato", sans-serif;
	color: #000;
	font-size: 16px;
	line-height: 20px;
	font-weight: 500;
}

.contact-form p {
	margin-bottom: 0;
}

.wpcf7-not-valid-tip {
	margin-top: 5px;
}

.wpcf7-list-item.first {
	margin: 0;
}

/* ==============================
   CONTACT FORM 7 CUSTOM CHECKBOX
   & RADIO (COLOR #fdc300)
   WITH MINIMAL ANIMATIONS
   ============================== */

/* Reset native appearance */
.wpcf7-form-control-wrap input[type="checkbox"],
.wpcf7-form-control-wrap input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Common wrapper for label alignment */
.wpcf7-list-item label {
	display: inline-flex;
	justify-content: space-between;
	align-items: start;
	gap: 10px;
}

/* ======================
   CHECKBOX STYLING
   ====================== */
.wpcf7-list-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  background-color: #fff;
}

/* Hover effect */
.wpcf7-list-item input[type="checkbox"]:hover {
  border-color: #fdc300;
}

/* Checkmark element */
.wpcf7-list-item input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 5px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.2s ease-in-out;
}

/* Checked state */
.wpcf7-list-item input[type="checkbox"]:checked {
  background-color: #fdc300;
  border-color: #fdc300;
}

.wpcf7-list-item input[type="checkbox"]:checked::after {
  transform: rotate(45deg) scale(1);
}

/* ======================
   RADIO BUTTON STYLING
   ====================== */
.wpcf7-form-control.wpcf7-radio .wpcf7-list-item input[type="radio"] {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background-color: #fff;
}

/* Hover effect */
.wpcf7-form-control.wpcf7-radio .wpcf7-list-item input[type="radio"]:hover {
  border-color: #fdc300;
}

/* Inner dot */
.wpcf7-form-control.wpcf7-radio .wpcf7-list-item input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #fdc300;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  transition: transform 0.2s ease-in-out;
}

/* Checked state */
.wpcf7-form-control.wpcf7-radio .wpcf7-list-item input[type="radio"]:checked {
  border-color: #fdc300;
}

.wpcf7-form-control.wpcf7-radio .wpcf7-list-item input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

/* END Style CF7 FORM "Modulo di contatto 1" */


/*********** 
MEGA MENU 
**********/

p a {
	color: #fdc300 !important;
	transition: 300ms;
}

p a:hover {
	color: #000000 !important;
}

@media screen and (max-width: 1200px) {
}

@media screen and (max-width: 767px) {
}
