/* 
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 */
/* Quando la voce menu “Industrie” è attiva */

body.page-id-2854 div#cosaf.e-n-menu-title.e-anchor a.e-n-menu-title-container.e-focus.e-link span.e-n-menu-title-text,
body.page-id-2908 div#cosaf.e-n-menu-title.e-anchor a.e-n-menu-title-container.e-focus.e-link span.e-n-menu-title-text,
body.page-id-2898 div#cosaf.e-n-menu-title.e-anchor a.e-n-menu-title-container.e-focus.e-link span.e-n-menu-title-text,
body.page-id-2903 div#cosaf.e-n-menu-title.e-anchor a.e-n-menu-title-container.e-focus.e-link span.e-n-menu-title-text,
body.page-id-2892 div#cosaf.e-n-menu-title.e-anchor a.e-n-menu-title-container.e-focus.e-link span.e-n-menu-title-text,
body.page-id-2886 div#cosaf.e-n-menu-title.e-anchor a.e-n-menu-title-container.e-focus.e-link span.e-n-menu-title-text {
  color: #0972b5;
}

.elementor-message.elementor-message-success {
  color: #FFF !important;
  background: #071e4b !important;
  width: fit-content !important;
  padding: 5px !important;
  border-radius: 5px !important;
  margin-top: 20px !important;
}
.elementor-message-svg::before {
  display: none !important;
}

button:hover {
  background-color: #0972b5 !important;
}

@media (max-width: 767px) {
  .elementor-5327 .elementor-element.elementor-element-95f8c62 .elementor-nav-menu--dropdown a {
    padding-top: 0px !important;
    padding-bottom: 24px;
  }
}

.elementor-widget-n-menu .e-n-menu[data-layout="dropdown"] .e-n-menu-wrapper {
	background-color: #F8FAFE !important;
}
.elementor-widget-n-accordion .e-n-accordion-item[open] > .e-n-accordion-item-title .e-n-accordion-item-title-icon .e-opened {
  display: inline-table;
  background: #1a274e;
  padding: 5px 10px 5px 10px;
  border-radius: 25px;
}
.elementor-widget-n-accordion .e-n-accordion-item .e-n-accordion-item-title-icon .e-closed {
  display: flex;
  display: inline-table;
  background: #f8fafe;
  padding: 5px 12px 5px 12px;
  border-radius: 25px;
}
.elementor-widget-n-menu .e-n-menu-content {
  margin-top: 15px !important;
}


  /*
CSS @property and the New Style
https://ryanmulligan.dev/blog/css-property-new-style/
*/
:root {
  --shiny-cta-bg: #0a73b6;
  --shiny-cta-bg-subtle: #1a1818;
  --shiny-cta-fg: #ffffff;
  --shiny-cta-highlight: blue;
  --shiny-cta-highlight-subtle: #8484ff;
}

@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-angle-offset {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-percent {
  syntax: "<percentage>";
  initial-value: 5%;
  inherits: false;
}

@property --gradient-shine {
  syntax: "<color>";
  initial-value: white;
  inherits: false;
}

.shiny-cta {
  --animation: gradient-angle linear infinite;
  --duration: 3s;
  --shadow-size: 2px;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  padding: 1rem 2.2rem;
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1.2;
	
  border: 1px solid transparent;
  border-radius: 360px;
  color: var(--shiny-cta-fg);
  background: linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg)) padding-box, conic-gradient( from calc(var(--gradient-angle) - var(--gradient-angle-offset)), transparent, var(--shiny-cta-highlight) var(--gradient-percent), var(--gradient-shine) calc(var(--gradient-percent) * 2), var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3), transparent calc(var(--gradient-percent) * 4) ) border-box !important;
  box-shadow: none !important;

  &::before,
  &::after,
  span::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: 50%;
    translate: -50% -50%;
    z-index: -1;
  }

  &:active {
    translate: 0 1px;
  }
}

/* Dots pattern */
.shiny-cta::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background: radial-gradient( circle at var(--position) var(--position), white calc(var(--position) / 4), transparent 0 ) padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(
    from calc(var(--gradient-angle) + 45deg),
    black,
    transparent 10% 90%,
    black
  );
  border-radius: inherit;
  opacity: 0.4;
  z-index: -1;
}

/* Inner shimmer */
.shiny-cta::after {
  --animation: shimmer linear infinite;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient( -50deg, transparent, black, transparent ) !important;
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
}

.shiny-cta span {
  z-index: 1;

  &::before {
    --size: calc(100% + 1rem);
    width: var(--size);
    height: var(--size);
    box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
    opacity: 0;
  }
}

/* Animate */
.shiny-cta {
  --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent,
    --gradient-shine;

  &,
  &::before,
  &::after {
    animation: var(--animation) var(--duration),
      var(--animation) calc(var(--duration) / 0.4) reverse paused;
    animation-composition: add;
  }

  span::before {
    transition: opacity var(--transition);
    animation: calc(var(--duration) * 1.5) breathe linear infinite;
  }
}

.shiny-cta:is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-cta-highlight-subtle);

  &,
  &::before,
  &::after {
    animation-play-state: running;
  }

  span::before {
    opacity: 1;
  }
}

@keyframes gradient-angle {
  to {
    --gradient-angle: 360deg;
  }
}

@keyframes shimmer {
  to {
    rotate: 360deg;
  }
}

@keyframes breathe {
  from,
  to {
    scale: 1;
  }
  50% {
    scale: 1.2;
  }
}

.shiny-cta a{
    color: white;
}



@media only screen and (max-width: 767px) {
.icon {
  width: 40px !important;
  height: 40px !important;
}
	.text-editor_wrapper {
  font-size: 60px !important;
  font-weight: 600;
  line-height: 1em;
  white-space: nowrap;
}
}
.tech-slider-wrapper {
  padding: 40px 0;
  overflow: hidden;
}

.tech-marquee {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 20px;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.marquee-left {
  animation: scroll-left 40s linear infinite;
}

.marquee-right {
  animation: scroll-right 40s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.tech-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 8px 16px;
  color: #000;
  white-space: nowrap;
  font-size: 14px;
  flex-shrink: 0;
  background: #fff;
}

.tech-box img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: 8px;
}



.prompt-box {
	border: 2px solid #ccc;
    font-size: 24px;
	transition: all 0.3s ease;
    position: relative;
}

.underscore {
  color: #025BAB !important;
	height: 2px;
  vertical-align: bottom;
	visibility: hidden;
}
.prompt-box:hover .underscore {
    animation: blink 1s step-start infinite;
}

/* Stili iniziali */
.nome-team {
  background-color: transparent;
  transition: background-color 0.4s ease;
}

.nome-team h3,
.underscore {
  transition: color 0.4s ease;
}

/* Hover su .prompt-box che influisce su .nome-team + elementi interni */
.prompt-box:hover .nome-team {
  background-color: #025BAB;
}

.prompt-box:hover .nome-team h3{
  color: white !important;
}

.prompt-box:hover .underscore {
  color: #025BAB !important;
	height: 2px;
  vertical-align: bottom;
	visibility: visible !important;
}


@keyframes blink {
    50% {
		opacity: 0;
    }
}


.circle-btn.elementor-widget.elementor-widget-button a span.elementor-button-content-wrapper span.elementor-button-text::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: no-repeat center/contain;
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z"/></svg>');
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z"/></svg>');
  background-color: #2562FF; /* Simula fill e color */
  transform: translateY(-2px) rotate(-45deg);
  margin-left: 5px;
}

/* Stato hover e focus */
.circle-btn.elementor-widget.elementor-widget-button:hover a span.elementor-button-content-wrapper span.elementor-button-text::after,
.circle-btn.elementor-widget.elementor-widget-button:focus a span.elementor-button-content-wrapper span.elementor-button-text::after {
  background-color: #FFFFFF;
}
.team-categories li {
  font-size: 16px;
  text-align: center;
  font-weight: 300;
}

b{
	font-weight: 700 !important;
}

.team-categories {
	list-style-type: none;
	padding-left: 0;
}

.imgsite::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  background-color: #025BAB;
  right: 100%;
  top: calc(50% - 64px);
  transform: scaleY(0);
	transform: scaleY(1);
  transition: transform .467s cubic-bezier(.17,.08,.3,1);
    transition-delay: 0s;
  transform-origin: bottom;
  transition-delay: .75s;
}

.imgsite2::after {
	content: "";
	position: absolute;
	width: 64px;
	height: 64px;
	background-color: #fff;
	top: 0;
	left: 0;
	transform: scaleY(1);
	transition: transform .467s cubic-bezier(.17,.08,.3,1);
	transform-origin: top;
	transition-delay: .7s;
}


.imgsite3::after {
	content: "";
	position: absolute;
	width: 64px;
	height: 64px;
	background-color: #F8FAFE;
	top: 0;
	left: 0;
	transform: scaleY(1);
	transition: transform .467s cubic-bezier(.17,.08,.3,1);
	transform-origin: top;
	transition-delay: .7s;
}

.imgsite4::after {
	content: "";
	position: absolute;
	width: 64px;
	height: 64px;
	background-color: #F8FAFE;
	bottom: 0;
	right: 0;
	transform: scaleY(1);
	transition: transform .467s cubic-bezier(.17,.08,.3,1);
	transform-origin: top;
	transition-delay: .7s;
}

.imgsite5::after {
	content: "";
	position: absolute;
	width: 64px;
	height: 64px;
	background-color: #fff;
	bottom: 0;
	right: 0;
	transform: scaleY(1);
	transition: transform .467s cubic-bezier(.17,.08,.3,1);
	transform-origin: top;
	transition-delay: .7s;
}

.square {
  position: relative;
}

.square::before {
  content: "";
  width: 128px;
  height: 128px;
  background-color: #252436;
  position: absolute;
  right: 0;
  top: 0;
  -webkit-clip-path: polygon(0 50%,50% 50%,50% 0,100% 0,100% 100%,0 100%);
  clip-path: polygon(0 50%,50% 50%,50% 0,100% 0,100% 100%,0 100%);
}

.square::after {
  content: "";
  width: 64px;
  height: 64px;
  background-color: #025BAB;
  position: absolute;
  right: 0;
  top: 45%;
}

/* SVG animation */
.slash {
	stroke: url(#grad);
    stroke-width: 8;
    fill: none;
    stroke-linecap: round;
    animation: slide 2s ease-in-out infinite;
}

@keyframes slide {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-4px); opacity: 0.7; }
    100% { transform: translateY(0); opacity: 1; }
}

.icon {
	width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.bracket {
    stroke: url(#grad);
    stroke-width: 8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0% { stroke-width: 8; opacity: 1; }
    50% { stroke-width: 10; opacity: 0.6; }
    100% { stroke-width: 8; opacity: 1; }
}

/* Buttons */
.btn {
	width: fit-content;
    font-size: 15px;
    font-weight: 600;
    background-color: #fff;
    padding: 24px 24px 24px 32px;
    display: flex;
    align-items: center;
    border-radius: 99px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.btn .text {
  line-height: 1;
  position: relative;
  z-index: 5;
  margin-right: 32px;
  font-family: "DM Sans", Sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #000;
  letter-spacing: 1px;
}
a.btn:hover span.text {
  color: #fff;
}
.btn svg {
  display: inline-block;
  position: relative;
  z-index: 5;
  transform: rotate(0deg) translateX(0);
  transform-origin: left;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
	color:#863A69;
}
.btn::before {
  content: '';
  background-color: #0a73b6;
  width: 32px;
  height: 32px;
  display: block;
  position: absolute;
  z-index: 1;
  border-radius: 99px;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.btn.light {
  background-color: #95C11F;
}
.btn.light::before {
  background-color: #154633;
}
.btn:hover svg {
  transform: rotate(45deg) translateX(-8px);
}
.btn:hover::before {
  content: '';
  width: 100%;
  height: 100%;
  right: 0;
}

/* Scroll auto orizzontale */
.text-editor_wrapper > span, .elementor-element.elementor-element-b4adee0 .text-editor_wrapper > a {
	display: inline;
	color: #dcdcdc;
	opacity: 0.8;
	line-height: 1.4;
	padding: 0 15px;
  	letter-spacing: -0.1em;
}

.text-editor_wrapper {
	font-size: 140px;
    font-weight: 600;
    line-height: 1em;
    white-space: nowrap;
}

.wgl-text-editor.loop_animation {
    overflow: hidden;
    display: flex;
}

.wgl-text-editor.loop_animation .text-editor_wrapper {
    display: flex;
    gap: 2rem; /* o qualsiasi distanza tu voglia tra gli span */
    animation: wgl_scroll_text 50s linear infinite;
}

/* Definizione dell'animazione */
@keyframes wgl_scroll_text {
   0% {
    transform: translateX(0%);
   }
   100% {
     transform: translateX(-50%);
   }
}
