/*Generali*/

:root {
  --bianco: white;
  --scuro: #07121b;
  --primo-blu: #00365f;
  --accent-color: #ec6852;

  /*--secondo-blu: #96d0ff;*/
  --secondo-blu: #aad9ff;
  --terzo-blu: #73b2e6;
  --quarto-blu: #3e83bb;
  --font-primary: "Archivo", sans-serif;
  --offset-h2: 40vw;
  --logo-scale: 3.2;
  --mask-offset: 100;
  --font-secondary: "Figtree", sans-serif;
}
.accent-char {
  color: var(--accent-color);
}
#header
  > div
  > div.intro-logo
  > a
  > div.logo
  > svg
  > g:nth-child(4)
  > g
  > g
  > g
  > g
  > path {
  fill: currentColor;
}
b {
  color: var(--primo-blu);
}
.mobile {
  display: none !important;
}

.overflow-hidden,
.img {
  background-color: var(--primo-blu);
}

img,
video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*Classi personalizzate*/
.container-mutart {
  max-width: calc(100vw - 80px);
  margin: 0 auto;
  position: relative;
}

.text {
  display: flex;
  flex-direction: column;
}

.text.text-element {
  flex-direction: row;
  justify-content: space-between;
}

.text-h2 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));

  width: 100%;
  align-items: start;
}
.text-h2 h2 {
  width: 100%;
}
.text-h2 h2:first-of-type {
  grid-column: 5 / span 7;
}

.text-h2 h2:last-of-type {
  grid-column: 1 / span 12;
}

/* --- Aggiunte per effetto maschera --- */
.text-h2 h2 {
  position: relative;
  overflow: hidden; /* maschera */
  line-height: 1;
}

.text-h2 .line__mask {
  display: block;
  overflow: hidden; /* doppia sicurezza */
}

.text-h2 .line__inner {
  display: inline-block; /* così il translateX agisce solo sul testo */
  will-change: transform;
}

/* Rispetto per utenti con preferenze ridotte accessibilita */
@media (prefers-reduced-motion: reduce) {
  .text-h2 .line__inner {
    transform: none !important;
    transition: none !important;
  }
}

.logo-bg {
  position: absolute;
  display: flex;
  justify-content: center;
  width: fit-content;
  z-index: 0;
  width: 100%;
  height: auto;
}

.logo-bg svg {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 600px;
  height: 700px;
}

.logo-bg svg:nth-of-type(1) {
  left: 0px;
}

.logo-bg svg:nth-of-type(2) {
  transform: translate(175px, -200px);
}

.btn {
  text-align: center;
  padding: 7px 49px;
  position: relative;
  border: 2px solid var(--bianco);
  overflow: hidden;
  z-index: 3;
  transition: all 0.3s ease-in-out;
}

.header-actions path {
  transition: all 0.2s ease-in-out;
}

.header-actions:hover path {
  transform: scaleX(2) !important;
}
.menu--social li path,
.fs-nav.fs-nav--contacts li path,
footer .footer-cta-wrap a path,
.fs-menu__blog-cta path {
  transition: all 0.3s ease-in-out;
}
.fs-menu__blog-cta {
  margin-bottom: 21px;
}
.menu--social li:hover path,
.menu-menu-principale-container li:hover a,
.fs-nav.fs-nav--contacts li:hover a {
  color: var(--secondo-blu);
  fill: var(--secondo-blu);
}

footer .mobile-menu {
  display: none;
}

footer .footer-cta-wrap a:hover,
.fs-menu__blog-cta:hover {
  color: var(--secondo-blu);
}
footer .footer-cta-wrap a:hover path {
  stroke: var(--secondo-blu);
}

.fs-nav.fs-nav--contacts li:hover path,
.fs-menu__blog-cta:hover path {
  stroke: var(--secondo-blu);
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #96d0ff52, transparent);
  opacity: 0;
  z-index: 0;
  transition: all 0.3s ease-in-out 0.3s;
  -webkit-backdrop-filter: blur(100px);
}

html,
body {
  scroll-behavior: smooth;
  background-color: var(--bianco);
}

main.homepage {
  padding-top: 100vh;
}

html.no-scroll,
body.no-scroll {
  overflow: hidden;
  height: 100%;
}

section {
  position: relative;
  padding: 100px 0px;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  position: relative;
  font-family: var(--font-primary);
  font-variation-settings: "wdth" 100, "YTLC" 500;
  font-size: 21px;
  line-height: 150%;
  font-weight: 500;
  color: var(--bianco);
  margin: 0;
}

p {
  font-family: var(--font-secondary);
  line-height: 140%;
}

*:focus,
*:hover {
  outline: none;
  outline-offset: unset;
}

* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  font-family: var(--font-primary);
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

a:hover {
  text-decoration: none;
}

a.iubenda-tp-btn.iubenda-cs-preferences-link {
  display: none !important;
}

button.iubenda-tp-btn.iubenda-cs-preferences-link {
  display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 35px;
  line-height: 150%;
  letter-spacing: -1.1%;
  position: relative;
  color: var(--bianco);
  margin: 0;
}

h2 {
  font-size: 8vw;
  line-height: 100%;
  font-weight: 700;
  color: var(--primo-blu);
}

h4 {
  font-size: 21px;
  font-weight: 700;
}

p {
  font-size: 21px;
  opacity: 80%;
  font-weight: 400;
}

li {
  font-family: var(--font-secondary);
}
button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  box-shadow: none;
}

.btn.btn-primary {
  background: var(--primo-blu);
  color: var(--bianco);
}
.btn.btn-primary:hover {
  opacity: 0.9;
}

/*Header*/

header {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: 1000;
}

header #fs-menu,
#header > div > div.intro-logo,
#header > div > div.header-actions {
  position: fixed;
  top: 0px;
}

#header > div > div.intro-logo,
#header > div > div.header-actions {
  top: 10px;
}

#header > div > div.intro-logo {
  top: 50px;
}

#header > div > div.header-actions {
  top: 32px;
}

header .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu--social svg {
  height: auto;
  width: 21px;
}

header button svg {
  width: 35px;
  height: auto;
}
header .site-header {
  display: flex;
  justify-content: end;
  position: relative;
  padding: 0px 40px;
}

header .fs-menu.is-open {
  transform: translateX(-0%);
}

header .fs-menu {
  top: 0;
  left: 0;
  position: absolute;
  height: 100dvh;
  width: 100%;
  z-index: 9999;
  background-color: var(--primo-blu);
  transform: translateX(100%);
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  padding: 0px 40px 40px 40px;
}

header .fs-menu .logo-bg {
  top: -580px;
  right: 0px;
  height: 100%;
  transform: translate(-100%, 10px);
}

header .fs-menu .logo-bg svg {
  position: absolute;
  top: -20px;
  left: 0px;
  width: 50vw;
  height: 200vh;
}

header .fs-menu .logo-bg svg:nth-of-type(1) {
  transform: translate(500px, -300px);
}
header .fs-menu .logo-bg svg:nth-of-type(2) {
  transform: translate(145px, -160px);
}
header .fs-menu__close,
header .intro-logo {
  position: absolute;
  top: 46px;
  right: 0px;
  font-size: 63px;
  cursor: pointer;
}

header .intro-logo {
  right: inherit;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

header .intro-logo .logo {
  height: auto;
  width: 70px;
}
header .fs-menu__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

header .fs-menu .intro-logo {
  top: 50px;
  left: 40px;
}

header .fs-menu .fs-menu__grid {
  display: flex;
  width: 100%;
  height: fit-content;
  justify-content: space-between;
  align-items: end;
}

header .fs-menu__grid .fs-menu__col:nth-of-type(1) {
  width: 70%;
  height: fit-content;
  display: flex;
  align-items: end;
}

header .fs-menu__grid .fs-menu__col nav {
  width: 100%;
}
header .fs-menu__grid .fs-menu__col:nth-of-type(1) nav li,
.archive-progetti .progetto-text {
  padding: 28px 0px;
  border-bottom: 2px solid var(--bianco);
  margin-right: 200px;
  position: relative;
}
header .fs-menu__grid .fs-menu__col:nth-of-type(1) nav a {
  font-size: 63px;
  font-weight: 400;
  line-height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .fs-menu__grid .fs-menu__col:nth-of-type(2) {
  width: fit-content;
  height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
}

header .fs-menu__grid .fs-menu__blog-cta,
footer .footer-cta-wrap a {
  font-size: 35px;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 14px;
  line-height: 100%;
}

header .fs-menu__grid .fs-menu__blog-cta path,
footer .footer-cta-wrap a {
  stroke-width: 3px;
}
.progetto-text:not(.is-active):hover::after
  header
  .fs-menu__grid
  .fs-menu__col:nth-of-type(2)
  .fs-nav--contacts {
  margin-bottom: 49px;
}
header .fs-menu__grid .fs-menu__col:nth-of-type(2) .text a,
footer .footer-widget a,
footer .footer-legal a,
footer .footer-legal span {
  font-size: 14px;
  opacity: 80%;
  line-height: 100%;
}
header .fs-menu__grid .fs-menu__col:nth-of-type(2) h4 {
  margin-bottom: 14px;
}
header .fs-menu__grid .fs-menu__col:nth-of-type(2) .menu--contacts {
  display: flex;

  flex-direction: column;
  gap: 14px;
  margin-bottom: 21px;
}
header .fs-menu__grid .fs-menu__col:nth-of-type(2) .menu--contacts li {
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 100%;
}
header .fs-menu__grid .fs-menu__col:nth-of-type(2) .menu--contacts li path {
  stroke-width: 2px;
}
header .fs-menu__grid .fs-menu__col:nth-of-type(2) .menu--contacts li a {
  line-height: 100%;
  font-size: 17.5px;
  font-weight: 300;
}

header .fs-menu__grid .fs-menu__col:nth-of-type(2) .menu--contacts li svg {
  display: none;
}
header .fs-menu__grid .fs-menu__col:nth-of-type(2) .menu--social {
  display: flex;
  gap: 14px;
}

#fs-menu .menu--primary > li {
  overflow: visible;
  width: 50%;
  --scale: 0;
  --tx: 0px;
  --ty: 0px;

  --halo-size: clamp(220px, 30vw, 480px);
  --fg-size: 200px;
  --blur: 22px;

  --bg-color: #ff3b3b;
  --bg-image: none;

  will-change: transform;
  transition: all 0.3s linear;
}

#fs-menu .menu--primary > li > a {
  position: relative;
  z-index: 2;
}
#fs-menu .menu--primary > li > a svg {
  opacity: 0;
  transition: all 0.3s linear;
  margin-right: 7px;
}

#fs-menu .menu--primary > li:nth-of-type(1) a svg,
#fs-menu .menu--primary > li:nth-of-type(2) a svg {
  opacity: 1;
}

#fs-menu .menu--primary > li:hover a svg {
  opacity: 0 !important;
}

#fs-menu .menu--primary > li:hover {
  background-image: var(--bg-image);
  background-color: var(--bg-color);
  padding-left: 50px;

  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    padding 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#fs-menu .menu--primary > li:hover svg {
  transition: all 0.3s linear;
}
#fs-menu .menu--primary > li:hover svg {
  opacity: 0;
}

#fs-menu .menu--primary > li:hover .sub-menu svg {
  opacity: 1;
}
.menu-menu-principale {
  position: relative;
}

#fs-menu .menu--primary > li:hover .sub-menu {
  opacity: 1;
  pointer-events: all;
}

#fs-menu .menu--primary > li:nth-of-type(2) .sub-menu {
  top: calc(0px - 121px);
}
#fs-menu .menu--primary > li .sub-menu {
  position: absolute;
  top: 0px;
  opacity: 0;
  left: 100%;
  width: 100%;
  background-color: inherit;
  transition: all 0.2s linear;
  pointer-events: none;
}

#fs-menu .menu--primary > li .sub-menu li a {
  font-size: 35px;
  height: 100%;
  transition: all 0.2s linear;
}

#fs-menu .menu--primary > li .sub-menu li:hover a {
  padding-left: 10px;
}
#fs-menu .menu--primary > li .sub-menu li {
  width: 100%;
  height: 121px;
  padding-left: 21px;
  padding-right: 7px;
}
#fs-menu .menu--primary > li::before {
  content: "";
  position: absolute;
  width: var(--fg-size);
  height: var(--fg-size);
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)))
    scale(var(--scale));
  transform-origin: 50% 50%;
  background-image: var(--bg-image);
  background-color: var(--bg-color);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
  transition: none;
  will-change: transform;
  display: none;
}

#fs-menu .menu--primary > li.bg-home {
  --bg-color: #cce8ff;
}
#fs-menu .menu--primary > li.bg-about {
  --bg-color: #b3ddff;
}
#fs-menu .menu--primary > li.bg-servizi {
  --bg-color: #99d1ff;
}
#fs-menu .menu--primary > li.bg-portfolio {
  --bg-color: #5295cc;
}
#fs-menu .menu--primary > li.bg-contatti {
  --bg-color: #367ab3;
}

@media (prefers-reduced-motion: reduce) {
  #fs-menu .menu--primary > li::after,
  #fs-menu .menu--primary > li::before {
    transition: none;
  }
}

/*Footer*/

footer {
  background-color: var(--primo-blu);
  padding: 100px 40px 20px 40px;
  position: relative;
  overflow: hidden;
}

footer .menu--social svg {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}
footer .menu--social {
  display: flex;
  margin-top: 35px;
  gap: 21px;
}

footer .footer-top {
  z-index: 10;
  position: relative;
}

footer .logo-bg {
  right: -60%;
  top: -200px;
}

footer p {
  opacity: 1;
}

footer .footer-tagline {
  font-size: 21px;
}
footer .footer-cta-wrap a {
  justify-content: start;
  width: fit-content;
  gap: 14px;
}

footer .footer-grid {
  display: flex;
  justify-content: space-between;
}

footer .footer-grid .footer-col:nth-of-type(1) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

footer .footer-widget li {
  height: 24.5px;
}

/*HOMEPAGE*/
/*Hero*/

section.hero {
  height: 100vh;
  background-color: var(--primo-blu);
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}

.hero .logo-bg svg:nth-of-type(2) path {
  fill: var(--bianco);
}
.hero .logo-bg svg:nth-of-type(1) path {
  fill: var(--accent-color);
}
section.hero .container-mutart {
  display: flex;
  height: 100%;
  align-items: start;
  justify-content: end;
  z-index: 10;
  flex-direction: column;
}
.homepage .logo-slider .swiper-slide {
  justify-content: center;
  align-items: center;
  display: flex;
}
.homepage .logo-slider img {
  height: auto;
  width: 400px;
  max-width: 320px;
  object-fit: contain;
  max-height: 60px;
}

.homepage .logo-slider .swiper-wrapper {
  height: min-content;
  align-items: center;
}

.homepage .mySwiper .slide-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.homepage .mySwiper .slide-caption h3,
.homepage .mySwiper .slide-caption p {
  pointer-events: none;
} /* così il drag non "aggancia" il testo */
.homepage section.hero .container-mutart h2 {
  color: var(--bianco);
  font-size: 35px;
  font-weight: 400;
}

.homepage section.servizi .single-service svg {
  width: 42px;
  height: auto;
}

section.hero .intro-logo .logo,
footer .intro-logo .logo {
  width: 30vw;
}

footer .intro-logo .logo {
  width: 20vw;
}

footer .footer-legal {
  display: flex;
  gap: 14px;
  flex-direction: row-reverse;
}

.hero .logo-bg,
.contatti .logo-bg {
  top: 0px;

  left: -20%;
  height: 100%;
  transform: translate(31%, 0px);
}

.hero .logo-bg {
  position: absolute;
  display: flex;
  justify-content: center;
  width: fit-content;
  z-index: 0;
  width: 100vw;
  height: auto;
}
.hero .logo-bg svg:nth-of-type(1),
.contatti .logo-bg svg:nth-of-type(1) {
  transform: translate(0px, 0px) !important;
  left: 50%;
}
.hero .logo-bg svg,
.contatti.logo-bg svg {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100% !important;
  height: 100vh !important;
}

.contatti .logo-bg {
  transform: translate(20%, -20%) scale(3);
  top: 0px;
}

.contatti .logo-bg {
  width: 100%;
  height: 100%;
}
.hero .logo-bg svg,
.contatti.logo-bg svg {
  position: absolute;
  top: -20px;
  left: 0px;
  width: 50vw;
  height: 200vh;
}

.hero .logo-bg svg:nth-of-type(1),
.contatti .logo-bg svg:nth-of-type(1) {
  transform: translate(500px, -300px);
}

.contatti .logo-bg svg:nth-of-type(1) {
  transform: translate(380px, -220px);
}
.hero .logo-bg svg:nth-of-type(2),
.contatti .logo-bg svg:nth-of-type(2) {
  transform: translate(145px, -160px);
}

.contatti .logo-bg svg:nth-of-type(2) {
  transform: translate(100%, -160px);
}
/* Quando è attiva l'intro, nascondi tutto tranne lo stage */
main.is-intro header,
main.is-intro .hero *:not(.intro-stage) {
  opacity: 0;
  pointer-events: none;
}

/* Stage overlay a pieno schermo */
.intro-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 9999;
  background: var(--primo-blu, #0a2540); /* usa il tuo bg della hero */
  opacity: 0; /* sarà portata a 1 col JS */
}

/* SVG grande nello stage */
.intro-stage svg {
  width: min(92vw, 1400px);
  height: auto;
  display: block;
}

/* Accessibilità: rispetta preferenze di riduzione movimento */
@media (prefers-reduced-motion: reduce) {
  .intro-stage {
    display: none !important;
  }
  main.is-intro header,
  main.is-intro .hero *:not(.intro-stage) {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

.il-gruppo.mutart {
  padding-bottom: 105px;
  padding-top: 35px;
}
.il-gruppo:not(.il-gruppo.mutart) {
  padding-top: 35px;
}

.il-gruppo:not(.il-gruppo.mutart) .text-h2 h2:first-of-type {
  grid-column: 2 / span 8;
  margin-left: 6.5%;
}

.il-gruppo:not(.il-gruppo.mutart) .text-h2 h2:last-of-type {
  grid-column: 4 / span 9;
}
section.il-gruppo.mutart .text-h2 h2:first-of-type {
  grid-column: 1 / span 7;
}

.il-gruppo.mutart .text-element .text:first-of-type {
  grid-column: 1 / span 6;
  margin-bottom: 0px;
}

.il-gruppo.mutart .text-element {
  align-items: center;
}

section.il-gruppo.mutart .text-h2 h2:last-of-type {
  grid-column: 4 / span 8;
}

section.il-gruppo.mutart > div > div > div:nth-child(2) {
  grid-column: 7 / span 6;
}

section.il-gruppo.mutart .container-mutart {
  margin-bottom: 0px;
}
/*Il Gruppo*/

section.il-gruppo {
  background-color: var(--bianco);
}

section.il-gruppo .container-mutart {
  margin-bottom: 250px;
}

section.il-gruppo .logo-slider.slider {
  position: relative;
  z-index: 900;
  width: 100%;
  height: auto;
  /* top: 100px; */
  grid-column: 1 / span 12;
  margin-bottom: 100px;
}

.il-gruppo p {
  color: var(--scuro);
  font-size: 28px;
}
.il-gruppo .text-element {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.il-gruppo .text-element .overflow-hidden {
  grid-column: 1 / span 6;
  height: 500px;
  position: relative;
  top: 50%;
}

.il-gruppo .text-element .overflow-hidden video {
  filter: grayscale(100%);
}
/* Stato espanso: occupa tutte le 12 colonne e 100vh */
.il-gruppo .text-element .overflow-hidden.expanded {
  grid-column: 1 / -1; /* tutte le colonne */
  width: 100%;
  height: 100vh;
  top: 0;
  z-index: 3;
}
.il-gruppo .text-element .text {
  grid-column: 8 / span 5;
}

.il-gruppo .text-element .text:first-of-type {
  grid-column: 1 / span 12;
  margin-bottom: 105px;
}

/*Portfolio*/

section.portfolio {
  background-color: var(--primo-blu);
  height: 1400px;
}

section.portfolio .container-mutart {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  position: relative;
}

section.portfolio .mySwiper {
  z-index: 0;
}

section.portfolio .container-mutart .btn {
  pointer-events: auto;
}

section.portfolio .container-mutart .text-btn {
  align-self: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 21px;
}

section.portfolio .container-mutart .text-btn p {
  text-align: center;
  margin-bottom: 7px;
}

section.portfolio h2,
section.portfolio p {
  color: var(--bianco);
}

section.portfolio .text-h2 h2:first-of-type {
  grid-column: 4 / span 9;
}

section.portfolio .container-mutart > .text {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

section.portfolio .text .text:first-of-type {
  grid-column: 1 / span 12;
  margin-bottom: 21px;
}
section.portfolio .text .text:last-of-type {
  grid-column: 1 / span 6;
  margin-bottom: 70px;
}

section.portfolio .mySwiper .swiper-slide::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #000000;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

/* Contenitore slider */
.mySwiper {
  position: relative;
  height: 90%;
  width: 140vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.swiper-wrapper {
  align-items: end;
  width: 100%;
}

.mySwiper .swiper-slide {
  position: relative;

  background-color: white;
  height: 35%;
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  width: calc(100% + 200px);
  scale: 1.2;
}

.mySwiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mySwiper .slide-caption {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  color: #fff;
  max-width: 70%;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
section.portfolio .mySwiper h3 {
  font-size: 28px;
  line-height: 120%;
  padding-right: 20px;
}
/*Section services*/

section.servizi {
  background-color: var(--bianco);
  color: var(--scuro);
  padding-bottom: 0px;
}
section.servizi .container-mutart .text-h2 {
  margin-bottom: 35px;
}

section.servizi > .container-mutart {
  margin-bottom: 70px;
}
section.servizi .container-mutart .text-h2 h2:first-of-type {
  grid-column: 1 / span 12;
}
section.servizi .container-mutart .text-h2 h2:last-of-type {
  grid-column: 5 / span 7;
}

section.servizi .container-mutart .text .text:last-of-type {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

section.servizi .container-mutart .text .text:last-of-type p {
  grid-column: 5 / span 7;
}

section.servizi .single-service .container-mutart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

section.servizi .single-service .container-mutart .text:first-of-type {
  grid-column: 1 / span 4;
}

section.servizi .single-service .container-mutart .text:nth-of-type(2) {
  grid-column: 5 / span 8;
  height: 100%;
  justify-content: space-between;
}

section.servizi
  .single-service
  .container-mutart
  .text:nth-of-type(2)
  .text:last-of-type:nth-of-type(2) {
  justify-content: end;
}

section.servizi
  .single-service
  .container-mutart
  .text
  .text:last-of-type:nth-of-type(2) {
  display: flex;
  flex-direction: column;
}

.number {
  font-size: 25vw;
  text-align: center;
  line-height: 70%;
  font-family: var(--font-primary);
  font-weight: 300;
  margin-bottom: 105px;
}

section.servizi .single-service {
  background-color: var(--secondo-blu);
  padding: 70px 0px;
  overflow: hidden;
  height: 25dvh;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}
section.servizi .single-service svg g {
  opacity: 1;
}

section.servizi .single-service svg path {
  transition: all 0.3s ease-in-out;
}
section.servizi
  .single-service.is-active
  > div
  > div:nth-child(2)
  > div.text.text-btn
  > svg
  > g
  > g
  > path:nth-child(2) {
  opacity: 0;
}
section.servizi .single-service.comunicazione {
  background-color: var(--secondo-blu);
  color: var(--terzo-blu);
}

section.servizi .single-service.comunicazione path {
  stroke: var(--terzo-blu);
}
section.servizi .single-service.web {
  background-color: var(--terzo-blu);
  color: var(--quarto-blu);
}
section.servizi .single-service.web path {
  stroke: var(--quarto-blu);
}

section.servizi .single-service.grafica {
  background-color: var(--quarto-blu);
  color: var(--primo-blu);
}

section.servizi .single-service.grafica path {
  stroke: var(--primo-blu);
}
section.servizi .single-service.marketing {
  background-color: var(--primo-blu);
  color: var(--secondo-blu);
}

section.servizi .single-service.marketing path {
  stroke: var(--secondo-blu);
}

section.servizi .single-service.comunicazione .btn {
  border: 1px solid var(--terzo-blu);
  margin: 0px 10%;
}
section.servizi .single-service.web .btn {
  border: 1px solid var(--quarto-blu);
}
section.servizi .single-service.grafica .btn {
  border: 1px solid var(--primo-blu);
}
section.servizi .single-service.marketing.btn {
  border: 1px solid var(--secondo-blu);
}

section.servizi .single-service p,
section.servizi .single-service a,
section.servizi .single-service .number,
section.servizi .single-service h3,
section.servizi .single-service .bi {
  color: inherit !important;
}

section.servizi .single-service p {
  opacity: 0;
  transition: all 0.2s linear;
}
section.servizi .single-service.is-active p {
  opacity: 1;
}
section.servizi .single-service .bi {
  font-size: 35px;
}
section.servizi .single-service .btn {
  color: inherit;
  border: none !important;
  border-bottom: 1px solid !important;
  margin: 0px 8%;
}

section.servizi .single-service .container-mutart .text:nth-of-type(2) p {
  font-size: 35px;
}
section.servizi .single-service .container-mutart h3 {
  font-weight: 900;
  font-size: 90px;
  line-height: 100%;
}

section.servizi .single-service .container-mutart .text-btn {
  flex-direction: row;
  justify-content: space-between;
  align-items: start;
}

footer .logo-bg {
  z-index: 0;
}

footer .footer-main,
footer .footer-top {
  z-index: 1;
  position: relative;
}
footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-top .intro-logo {
  width: 50%;
}
.partner-logo-footer {
  display: flex;
  width: 50%;
  justify-content: end;
  gap: 20px;
}

.partner-logo-footer img {
  height: 35px;
  width: auto;
}
.single-service.active {
  height: fit-content !important;
}

.single-service .btn:hover::after,
.single-service .btn:hover::before {
  opacity: 0;
}

.single-service .text-mobile {
  display: none;
  width: 100%;
  text-align: start;
}

.single-service.comunicazione .btn {
  color: var(--secondo-blu) !important;
  background-color: var(--terzo-blu);
}

.single-service.web .btn {
  color: var(--terzo-blu) !important;
  background-color: var(--quarto-blu);
}

.single-service.grafica .btn {
  color: var(--quarto-blu) !important;
  background-color: var(--primo-blu);
}

.single-service.marketing .btn {
  background-color: var(--secondo-blu);
  color: var(--primo-blu) !important;
}
.single-service .btn:hover {
  background-color: transparent !important;
  color: inherit !important;
}
section.big-text {
  background-color: var(--primo-blu);
  height: auto;
  position: relative;
}

.big-text h2 {
  font-size: clamp(3rem, 9vw, 12rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01px;
  color: var(--text-dim);
  word-break: normal;
  hyphens: none;
}

.big-text h2 .word {
  display: inline-block;
  white-space: nowrap;
}

.big-text h2 .letter {
  display: inline;
  will-change: color, text-shadow;
  transition: text-shadow 0.15s linear;
}

.big-text h2 .letter.glow {
  text-shadow: 0 0 0.35em currentColor;
}

section.big-text .container-mutart {
  padding-right: 20%;
}
section.big-text .logo-bg-container,
.partner-grid-section .logo-bg-container {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 100%;
  height: 100%;
}
.partner-grid-section p {
  color: var(--scuro);
  margin-top: 35px;
  width: 60%;
  margin: 0px auto;
  margin-bottom: 70px;
}
section.big-text .logo-bg,
.partner-grid-section .logo-bg {
  position: sticky;
  top: 0px;
  display: flex;
  justify-content: center;
  width: fit-content;
  z-index: 0;
  width: auto;
  z-index: 0;
  height: 100vh;
  width: auto;
  top: 0;
}
section.big-text .logo-bg svg,
.partner-grid-section .logo-bg svg {
  position: absolute;
  top: 0px;
  left: 0px;
  width: -webkit-fill-available;
  height: -webkit-fill-available;
}
section.big-text .logo-bg svg:nth-of-type(2),
.partner-grid-section .logo-bg svg:nth-of-type(2) {
  transform: translateX(850px);
}

section.big-text .logo-bg svg path,
.partner-grid-section .logo-bg svg path {
  fill: rgb(0, 50, 91);
}

/*Progetti - Archivio*/
.archive-progetti {
  background-color: var(--primo-blu);
  color: var(--bianco);
}

.archive-progetti section.progetti {
  padding: 100px 0px;
}
.archive-progetti .hero {
  height: 100vh;
  position: relative;
  padding-bottom: 0px;
}

.archive-progetti h2,
.archive-progetti a {
  color: var(--bianco);
}
.archive-progetti .text-h2 h2:first-of-type {
  grid-column: 1 / span 7;
}
.archive-progetti .text-h2 h2:last-of-type {
  grid-column: 3 / span 7;
}

.archive-progetti .text-h2 p {
  margin-top: 35px;
  grid-column: 1 / span 6;
}

.archive-progetti .progetti-titles {
  font-size: 35px;
  font-weight: 400;
  width: 100%;

  margin-right: 0px;

  padding-left: 0px;
}

.archive-progetti .progetti-header {
  position: absolute;
  position: absolute;
  bottom: 0px;
  left: 0px;
}
.archive-progetti .progetti-header span,
.archive-progetti .progetti-header .progetti-counter {
  font-size: 49px;
}

.archive-progetti .progetti-titles .progetto-text {
  border-radius: 0px;
  margin: 0px;
  display: flex;
  justify-content: end;

  align-items: center;
}

.archive-progetti section.progetti {
  padding-top: 8% !important;
}
.cta-finale {
  padding: 100px 0px;
  background-color: var(--bianco);
}

.cta-finale h3,
.cta-finale p,
.cta-finale a {
  text-align: center;
  color: var(--primo-blu);
}

.cta-finale h3 {
  width: 70%;
  font-size: 35px;
  margin-top: 0px;
  margin-bottom: 49px;
  line-height: 110%;
}
.cta-finale p {
  text-align: center;
}
.cta-finale .container-mutart {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.cta-finale .btn {
  border: none !important;
  border-bottom: 1px solid var(--primo-blu) !important;
}
.cta-finale .btn:hover {
  border-bottom: 1px solid transparent;
}

.progetti-wrapper {
  display: flex;
  gap: 10rem;
  flex-direction: row-reverse;
  padding-bottom: 70px;
}

.progetti-images {
  position: sticky;
  top: 80px;
  flex: 1;
  height: calc(100vh - 100px);
  width: 50%;
}

.progetto-img {
  position: absolute;
  inset: 0;
  opacity: 0 !important ;
  transition: opacity 0.5s ease;
  pointer-events: none;
  width: 100%;
}
.progetto-img.is-active {
  opacity: 1 !important;
}

.progetti-titles-wrap {
  position: relative;
  width: 50%;
}
.progetti-titles {
  flex: 1;
  display: flex;
  flex-direction: column;

  padding-left: 14px;
}
.progetti-titles::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.progetti-ticker {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: currentColor;
  pointer-events: none;
  z-index: 2;
}

.progetti-titles.no-snap {
  scroll-snap-type: none;
}
.progetto-text {
  padding: 6px 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.progetto-text .progetto__link {
  position: absolute;
  width: 100%;
  left: 0px;
  height: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: start;
}
.progetto-text.is-active .progetto__link {
  font-weight: 600;
}
.progetti-counter {
  font-variant-numeric: tabular-nums;
  line-height: 100%;
  height: auto;
}

/*Progetti - singolo progetto*/
.single-progetto {
  background-color: var(--primo-blu);
  color: var(--bianco);
}

.single-progetto h1 {
  font-size: 90px;
  font-weight: 900;
}

.single-progetto .text-nav {
  position: relative;

  z-index: 100;

  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 100px 35px 0px;
  align-items: start;
  margin-bottom: 35px;
  display: none;
}

.single-progetto .slide-meta {
  padding: 7px 14px;
  font-size: 21px;
  color: var(--bianco);
  width: max-content;
  text-align: center;
}

.single-progetto .col.media {
  height: 100%;
}
.slides-wrapper {
  height: 100vh !important;
  display: flex;
  align-items: end;
  padding: 0px 35px 0px 35px;
}

.slides-wrapper .single-nav {
  position: fixed;
  bottom: 0;
}

.slides {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  padding: 0px 35px;
}

.slide.slide--due-foto-testo {
  flex-direction: row-reverse;
}
.slide--intro {
  gap: 49px;
}
.slide--intro .slide-text {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0px;
  height: 100%;
  padding: 35px 0px;
}

.slide--intro .slide-text .text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slide--intro .slide-text .text p {
  text-align: center;
  margin: 21px 0px;
}
.slide--intro .slide-image {
  height: 100%;
}

.slide--intro .slide-text .slide-cta {
  display: flex;
  gap: 21px;
  justify-content: center;
}

.slide--due-foto-testo .col.testo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 35px 0px;
}

.single-progetto {
  background-color: var(--proj-bg);
  color: var(--proj-text);
}

.handoff-loader__label {
  color: var(--proj-text) !important;
}

.single-progetto main a.btn,
.single-progetto .slide-meta {
  background-color: var(--proj-cta);
  line-height: 100%;
  color: var(--proj-text);
  border: none;
}
.single-progetto main a.btn {
  margin-top: 0px;
}

.single-progetto .slide-meta {
  font-weight: 600;
  padding: 7px 14px;
  font-size: 20px;
  color: var(--proj-cta);
  background: transparent;
  font-weight: 900;
}

.single-progetto .btn {
  background-color: transparent;
  color: var(--proj-text);
  border: 1px solid var(--proj-text);

  padding: 14px 35px;
  margin-top: 21px;
}

.single-progetto .single-nav__list a {
  color: var(--proj-text);
  font-weight: 300;
}

.single-progetto .slide {
  padding: 0px 21px;
  justify-content: space-between;
}

.single-progetto .slide.slide--intro {
  padding: 0px;
}

.single-progetto .btn-cta,
.single-progetto .button-cta,
.single-progetto .wp-block-button__link {
  background-color: var(--proj-cta);
  color: var(--proj-cta-contrast);
  border: 1px solid var(--proj-cta);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
}

.single-progetto .btn-cta:is(:hover, :focus) {
  opacity: 0.9;
}
.single-progetto header a,
.single-progetto header li,
.single-progetto header p {
  color: var(--bianco);
}
.single-progetto main h1,
.single-progetto main h2,
.single-progetto main h3,
.single-progetto main p,
.single-progetto main li {
  color: var(--proj-text);
  opacity: 1;
  text-align: center;
  line-height: 120%;
}
.single-progetto main h1 {
  line-height: 100%;
}
.progetti-titles {
  outline: none;
}

.progetto-text {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 2px 0;
  align-items: end;
}

.progetto-text a {
  transition: all 0.1s linear;
}
.progetto-text:hover a {
  font-weight: 600;
}
.progetto-text.is-active {
  background-color: rgba(255, 255, 255, 0.1);

  font-weight: 600;
  cursor: pointer;
}

.progetto-text.is-active .progetto__link {
  color: #fff;
}

.progetto-text:not(.is-active) {
  position: relative;
}
/*
.progetto-text.is-active::after {
  content: "Seleziona";
  position: absolute;

  top: 80%;
  left: 0px;
  transform: translateY(-50%);
  font-size: 0.75rem;
  opacity: 0;
  color: rgba(255, 255, 255, 0.6);
  transition: opacity 0.2s ease;
  pointer-events: none;
}
*/
.progetto-text:not(.is-active):hover::after {
  opacity: 1;
}

.progetto-text.is-active:hover::after {
  opacity: 1;
}

/* Animazioni per le immagini */
.progetto-img {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.progetto-img:not(.is-active) {
  opacity: 0.6;
  filter: grayscale(30%) brightness(0.8);
}

.progetto-img.is-active {
  opacity: 1;
  filter: none;
}

.progetti-titles.no-snap {
  scroll-snap-type: none !important;
}
.progetto-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.progetto-text:hover::before {
  width: 100%;
  opacity: 1;
}

.progetto-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.progetto-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity, filter;
}

.progetto-img-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progetto-img[data-loading="true"] + .progetto-img-container::before {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.progetti-titles-wrap {
  position: relative;
}

.scroll-indicator {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.scroll-indicator::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  transition: transform 0.1s ease;
}

/* Loader circolare in basso a destra (sempre on top) */
.handoff-loader {
  position: fixed;
  right: 20px !important;
  bottom: 70px !important;
  width: 56px;
  height: 56px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 2147483647; /* sopra tutto, anche elementi pinnati */
  color: var(
    --loader-color,
    #fff
  ); /* imposta --loader-color sul body se vuoi un altro colore */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.handoff-loader.is-visible {
  opacity: 1;
  transform: scale(1);
}
.handoff-loader__svg {
  width: 100%;
  height: 100%;
  display: block;
}
.handoff-loader__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22); /* niente color-mix per compat Safari */
  stroke-width: 4;
}
.handoff-loader__progress {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-bar {
  position: fixed;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 10px;
  background: none;
  border-radius: 2px;
  overflow: hidden;
  z-index: 1000;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--bianco);
  transition: width 0.2s linear;
}

.single-progetto footer {
  display: none;
}

.single-progetto .slide--tre-foto img {
  width: 30%;
}

.single-progetto .slide-meta-container {
  display: flex;
  gap: 21px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.single-progetto .slide--due-foto-testo .col {
  width: 30%;
}
.single-progetto .slides p {
  font-size: 28px;
  text-align: center;
}
.single-progetto .slides ul {
  list-style: disc;
  padding-left: 21px;
  margin-top: 14px;
}

.single-progetto .slides ul li {
  font-size: 21px;
}

/*Servizi*/

.page-template-template-servizio p,
.page-template-template-servizio li,
.page-template-template-servizio a {
  font-size: 17.5px;
}
.page-template-template-servizio header .intro-logo path {
  fill: var(--primo-blu) !important;
}

header #fs-menu-close {
  width: 35px;
  height: auto;
  stroke: var(--bianco);
  opacity: 1;
  top: 32px;
}

header #fs-menu-close g {
  opacity: 1;
}

.menuWave path {
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center right !important; /* ancora a DESTRA */
  will-change: transform; /* micro-perf */
  stroke-width: 3.5px;
}
.page-template-template-servizio .header-actions svg path {
  stroke: var(--primo-blu) !important;
}
.page-servizio .servizio-hero {
  background-color: transparent;
  height: auto;
  padding-top: 140px;
}

.page-servizio section.servizio-hero,
.page-servizio section.servizio-content {
  padding: 70px 0px 0px;
}
.page-servizio section.servizio-hero {
  padding-top: 140px;
}
.page-servizio section.servizio-content {
  padding-top: 21px;
}
.page-servizio .servizio-hero .container-mutart {
  display: flex;
  align-items: end;
  height: 100%;
}

.page-servizio .container-mutart {
  padding: 0px 8%;
}

.page-servizio h1 {
  font-size: 7vw;
  color: var(--primo-blu);
  line-height: 100%;
}

.page-servizio p,
.page-servizio li {
  color: var(--scuro);
  font-weight: 400;
  opacity: 100%;
}

.page-servizio .servizi-globale h3:nth-child(2) {
  margin-top: 0px;
}
.page-servizio h4 {
  font-weight: 600;
}
.page-servizio ul,
.page-servizio ol {
  list-style: disc;
  padding-left: 1.1em;
}
.page-servizio ul li::marker {
  color: var(--primo-blu); /* blu */
  font-size: 1.1em; /* opzionale: più grande */
}

/* ordinata (numeri) */
.page-servizio ol li::marker {
  color: var(--primo-blu);
}

.page-servizio h2 {
  color: var(--bianco);
  margin-bottom: 70px;
}
.page-servizio .text-h2 h2:first-of-type {
  grid-column: 1 / span 7;
}
.page-servizio .text-h2 h2:last-of-type {
  grid-column: 3 / span 7;
}

.page-servizio .servizio-grid {
  display: flex;
}

.page-servizio .servizio-grid .servizio-main {
  width: 70%;
  padding-right: 15%;
}

.nav-servizio a.active,
.nav-servizio a[aria-current="true"] {
  background: #111;
  color: red !important;
}

.page-servizio .progetti-related {
  background-color: var(--primo-blu);
  padding: 100px 0px;
  margin-top: 100px;
}

.page-servizio .progetti-related-grid {
  display: flex;
  flex-wrap: nowrap;
  width: calc(100% + 100px);
}

.page-servizio .progetti-related-grid .proj-card {
  width: 100%;
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);

  height: 700px;
  margin: 0px -35px;
  background: red;
  transform: scale(1.2);
}

.page-servizio .progetti-related-grid .proj-card .proj-card-media {
  height: 100%;
  background-position: center center;
  background-size: cover;
}

.page-servizio.hub .cta-finale {
  display: none;
}

.page-servizio.hub .servizio-content {
  padding-bottom: 70px;
}
.page-servizio.hub aside > aside > div:nth-child(1),
.page-servizio.hub aside > aside > div:nth-child(2) {
  display: none;
}

.page-servizio aside .fs-nav--social .menu {
  list-style: none;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding: 0px;
}
.page-servizio aside .fs-nav--social .menu path {
  fill: gray;
  transition: all 0.3s ease;
}

.single-progetto .btn:before,
.single-progetto .btn:after {
  display: none;
}
.single-progetto .btn:hover {
  opacity: 1;
  background-color: var(--proj-text);
  color: var(--proj-cta);
}
.page-servizio aside .fs-nav--social .menu svg:hover path {
  fill: var(--secondo-blu);
}
.page-servizio aside .fs-nav--social .menu span {
  display: none;
}
.page-servizio.hub .servizi-card,
.page-servizio.hub .servizi-card.btn {
  background-color: var(--primo-blu);
  color: var(--bianco);
  width: 49%;
  padding: 21px;
  position: relative;
  margin-bottom: 14px;
  min-height: 270px;
}
.page-servizio.hub .servizi-card:hover {
  border-color: transparent !important;
  background-color: #00396725 !important;
  color: var(--primo-blu) !important;
}
.page-servizio.hub .servizi-card:hover path {
  stroke: var(--primo-blu);
}

.page-servizio.hub .servizi-card.btn::before {
  scale: 10;
}
.page-servizio.hub .servizi-card h3,
.page-servizio.hub .servizi-card p,
.page-servizio.hub .servizi-card a {
  color: inherit;
}
.page-servizio.hub .servizi-card h3 {
  font-size: 21px;
  text-align: start;
}
.page-servizio.hub .servizi-card img {
  width: 50px;
  height: auto;
}

.page-servizio.hub .servizi-card .servizi-card-main {
  display: none;
}

.page-servizio.hub .servizi-holder {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 21px;
  margin-bottom: 42px;
}

.page-servizio.hub .servizi-holder .servizi-card-cta {
  position: absolute;
  right: 20px;
  top: 20px;
}

.page-servizio.hub .servizi-holder .servizi-card-head {
  height: 100%;
  display: flex;
  align-items: start;
  flex-direction: column;
  justify-content: space-between;
  gap: 100px;
  width: 100%;
}

.page-servizio.hub .servizi-nav {
  display: none;
}

.page-servizio summary {
  display: flex;
  justify-content: space-between;
}

.page-servizio summary svg path {
  stroke: var(--primo-blu);
}
.page-servizio #portfolio a {
  display: block;
  width: fit-content;
  margin: 7px 0px;
}

.page-servizio .progetti-related .btn {
  margin-top: 70px;
}
.page-servizio .progetti-related .btn-holder {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.page-servizio #portfolio {
  margin-bottom: 35px;
}
.page-servizio #faq {
  border-top: 1px solid lightgray;
}
.page-servizio #faq .faq-a {
  margin-top: 3.5px;
  padding-right: 20px;
}
.page-servizio #faq details {
  padding: 17.5px 0px;
  border-bottom: 1px solid var(--primo-blu);
  transition: all 0.2s linear;
}
.page-servizio #faq details svg {
  transition: all 0.2s linear;
}
.page-servizio #faq details h4 {
  transition: all 0.2s linear;
}
.page-servizio #faq details:hover h4 {
  color: var(--terzo-blu);
}

.page-servizio #faq details:hover {
  border-bottom: 1px solid var(--terzo-blu);
}
.page-servizio #faq details:hover svg path {
  transition: all 0.1s linear;
  stroke: var(--terzo-blu);
}

.page-servizio #faq h4 {
  margin: 0px;
  padding: 0px;
}
.page-servizio #faq h4 {
  font-size: 17.5px;
  font-weight: 400;
}
/* Marker nativo off, cursor */
details.acc-js > summary {
  cursor: pointer;
  list-style: none;
}
details.acc-js > summary::-webkit-details-marker {
  display: none;
}

/* Rotazione dell'SVG nel tuo <summary> */
details.acc-js > summary svg {
  transition: transform 0.25s ease;
  transform-origin: center;
}
details.acc-js.is-opening > summary svg,
details.acc-js[open] > summary svg {
  transform: rotate(90deg); /* chevron-right → verso il basso */
}

/* Wrapper contenuto: mai display:none; animiamo l'altezza da JS */
details.acc-js > .acc__content {
  overflow: hidden;
}

/* Evita l'effetto "pop" del paragrafo: fade + leggero slide */
details.acc-js > .acc__content > * {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.22s ease;
  margin-block-start: 0; /* evita margin-collapsing in alto */
}
details.acc-js.is-opening > .acc__content > *,
details.acc-js[open] > .acc__content > * {
  opacity: 1;
  transform: translateY(0);
}
details.acc-js.is-closing > .acc__content > * {
  opacity: 0;
  transform: translateY(-4px);
}

.page-servizio .logo-bg {
  position: fixed;
  display: flex;
  justify-content: center;
  width: fit-content;
  z-index: 0;
  width: auto;
  z-index: 0;
  height: -webkit-fill-available;
  width: -webkit-fill-available;
  top: -460px;
  overflow: hidden;
}
.page-servizio .logo-bg svg {
  position: absolute;
  top: -110px;
  left: 0px;
  width: -webkit-fill-available;
  height: -webkit-fill-available;
}
.page-servizio .logo-bg svg:nth-of-type(2) {
  transform: translateX(850px);
}

.page-servizio .logo-bg svg path {
  fill: #f2f2f2;
}

.page-servizio .cta-finale {
  padding: 100px 0px;
  background-color: var(--bianco);
}

.page-servizio .cta-finale h3,
.page-servizio .cta-finale p,
.page-servizio .cta-finale a {
  text-align: center;
}

.page-servizio .cta-finale h3,
.about-page .cta-finale h3 {
  width: 70%;
  font-size: 35px;
  margin-top: 0px;
  margin-bottom: 49px;
  line-height: 110%;
  text-align: center;
}

.about-page .cta-finale h3 {
  width: 100%;
}
.page-servizio .cta-finale .container-mutart {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.page-servizio h3,
.page-servizio h4 {
  line-height: 120%;
  margin-bottom: 7px;
  margin-top: 28px;
  color: var(--primo-blu);
  font-weight: 700;
  font-size: 28px;
  line-height: 100%;
}
.page-servizio.hub #faq h3 {
  margin-top: 49px;
}
.page-servizio .servizio-gallery {
  display: flex;
  justify-content: space-between;

  gap: 21px;
  height: 60%;
  width: 100%;
  flex-wrap: wrap;
}

.page-servizio .servizio-gallery img {
  width: 100%;
  height: 100%;
}

.page-servizio .servizio-gallery img:first-of-type {
  width: 100%;
}

iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.slide--media-singola {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.slide.slide--media-singola img {
  transform: scale(1.03);
}
.page-servizio .nav-servizio ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex-direction: row;
  padding: 0px;
  margin: 0px;
  justify-content: start;
}

.page-servizio .nav-servizio ul li,
.page-servizio .nav-servizio ul li a {
  padding: 3.5px 14px;
  font-size: 14px;
  background-color: var(--primo-blu);
  color: var(--bianco);
  font-weight: 400;
  width: fit-content;
  opacity: 100%;
}
.page-servizio #cosa-include h4 {
  margin: 0px;
  color: var(--primo-blu);
  transition: all 0.2s ease;
}

.page-servizio #cosa-include {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  gap: 0px;
  height: 100vh;
}

.page-servizio #cosa-include h3 {
  width: 100%;
  margin-top: 35px;
}
.page-servizio #cosa-include .text-holder {
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  transition: all 0.2s ease;
  align-items: center;
  gap: 21px;
}

.page-servizio #cosa-include .text-holder h4 {
  margin-bottom: 7px;
  font-size: 17.5px;
}

.page-servizio #cosa-include .text-holder ul li {
  color: var(--scuro);
  font-size: 17.5px;
  line-height: 140%;
  margin-bottom: 7px;
  letter-spacing: 0.7px;
} /* SOLO per l'effetto */
#cosa-include {
  position: relative;
}

#cosa-include .pin-inner {
  min-height: fit-content;
  height: fit-content;

  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: start;
}
#cosa-include .pin-inner h3 {
  margin: 0px;
  margin-bottom: 21px;
  margin-top: 28px;
}
#cosa-include .slides {
  position: relative; /* per gli assoluti interni */
  z-index: 2; /* testi sopra l’icona morphata */
  /* height impostata via JS */
}

#cosa-include .slides .text-holder {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

#cosa-include .slides .text-holder.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Icone originali (sorgente path) invisibili */
#cosa-include .text-holder .icon-wrapper {
  display: none;
}

/* Palco icona morphata */
#cosa-include .pin-inner h3 {
  order: 0;
}
#cosa-include .pin-inner .icon-stage {
  width: min(120px, 8vw);
  aspect-ratio: 1/1;
  pointer-events: none;
  z-index: 1; /* sotto ai testi */
  position: relative;
  grid-row: 2;
  order: 1;
  clip-path: inset(10.5px 6px round 12px);
}
#cosa-include .pin-inner .slides {
  order: 2;
}
#cosa-include .icon-stage .icon.master {
  width: 100%;
  height: 100%;
}
#cosa-include #iconPath {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--primo-blu);
  border-radius: 12px;
}
#cosa-include .icon-stage {
  position: relative;
}

.page-servizio #tempi-costi ul,
.page-servizio #processo ol {
  margin-bottom: 7px;
}

.page-servizio.hub .servizi-card-link svg path:first-of-type {
  display: none;
}
.page-servizio.hub .servizi-card-link svg {
  transform: scaleX(-1);
}

.page-servizio.hub .servizi-card-head svg {
  width: 49px;
  height: auto;
}

.page-servizio.hub .servizi-card-link svg {
  width: 28px;
  height: auto;
}

/*page servizio sidebar*/
.page-servizio .servizio-grid .servizio-sidebar {
  width: fit-content;
}

.servizio-sidebar .sidebar-block {
  padding-bottom: 20px;
  border-bottom: 1px solid lightgray;
}
#navigazione-servizi ul {
  flex-direction: column;
  gap: 0px;
  padding-left: 7px;
}

#navigazione-servizi ul li {
  background-color: transparent;
  padding: 8.25px 0px;
  padding-left: 7px;
  border-left: 1px solid lightgray;
  transition: all 0.2s ease;
  height: fit-content;
  line-height: 100%;
}
#navigazione-servizi ul li.active {
  border-left: 1px solid var(--primo-blu);
}

#navigazione-servizi ul li.active a {
  font-weight: 600;
}
#navigazione-servizi ul li a {
  color: var(--scuro);
  padding: 0px;
  background-color: transparent;
  line-height: 100%;
}

.sidebar-servizi li,
.sidebar-servizi a {
  line-height: 100%;
  font-size: 14px;
}

.servizio-sidebar .sidebar-block:last-of-type {
  display: flex;
  border-bottom: none;
  flex-direction: column;
  gap: 3.5px;
}
.servizio-sidebar .sidebar-block:last-of-type a {
  padding: 7px 0px;
  font-size: 17.5px;
  margin-top: 7px;
}

.servizio-sidebar p {
  font-size: 14px;
}
.sidebar-servizi .servizi-list {
  gap: 0px;
}
.sidebar-servizi li {
  padding: 7px 0px;
}
.sidebar-servizi {
  margin-top: 21px;
  position: sticky;
  top: calc(91px);
  display: flex;
  gap: 7px;
  flex-direction: column;
}

.sidebar-servizi h3 {
  font-size: 21px;
  margin-top: 14px;
  margin-bottom: 7px;
}

.sidebar-servizi .sidebar-title {
  font-weight: 700;
}
.servizi-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.servizi-list a {
  text-decoration: none;
  display: inline-block;
}
.servizi-list li.is-active > a {
  font-weight: 700;
  text-decoration: underline;
}
.muted {
  opacity: 0.7;
}

/*Page about*/
.about-page .about-hero {
  background-color: var(--primo-blu);
  color: var(--bianco);
  padding-top: 140px;
}

.about-page .cta-finale h3 {
  color: var(--primo-blu);
}

.about-page .about-hero h1 {
  color: var(--bianco);
  text-align: center;
}

.about-page .about-hero p {
  padding: 0px 20%;
  text-align: center;
  margin-top: 21px;
}

.about-page .about-hero .overflow-hidden {
  height: 100vh;
  background-color: var(--primo-blu);
  position: relative;
}

.about-page .about-hero .overflow-hidden:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #003967;
  background: linear-gradient(
    180deg,
    rgba(0, 57, 103, 1) 0%,
    rgba(0, 57, 103, 0) 50%,
    rgba(0, 57, 103, 1) 100%
  );
}

.about-page .about-hero h1 {
  font-size: 8vw;
  line-height: 100%;
  font-weight: 700;
  color: var(--bianco);
}

.about-page .chi-siamo {
  color: var(--bianco);
  background-color: var(--primo-blu);
}
.about-page .chi-siamo h2 {
  color: var(--bianco);
}

.about-page .chi-siamo .servizi-card {
  background-color: var(--bianco);
  height: 300px;
  color: var(--primo-blu);
  position: relative;
  padding: 0px 40px;
  display: flex;
  align-items: end;
  transition: all 0.3s linear;
  justify-content: space-between;
}

.about-page .chi-siamo .servizi-card a {
  color: var(--primo-blu);
  font-size: 100px;
  line-height: 100%;
  z-index: 100;
  margin-bottom: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.about-page .chi-siamo .servizi-card:nth-of-type(1) a {
  color: var(--secondo-blu);
}
.about-page .chi-siamo .servizi-card:nth-of-type(2) {
  background-color: var(--secondo-blu);
}
.about-page .chi-siamo .servizi-card:nth-of-type(2) a {
  color: var(--terzo-blu);
}
.about-page .chi-siamo .servizi-card:nth-of-type(2)::after {
  background-color: var(--secondo-blu);
}
.about-page .chi-siamo .servizi-card:nth-of-type(3) {
  background-color: var(--terzo-blu);
}
.about-page .chi-siamo .servizi-card:nth-of-type(3) a {
  color: var(--quarto-blu);
}
.about-page .chi-siamo .servizi-card:nth-of-type(3)::after {
  background-color: var(--terzo-blu);
}
.about-page .chi-siamo .servizi-card:nth-of-type(4) {
  background-color: var(--quarto-blu);
}
.about-page .chi-siamo .servizi-card:nth-of-type(4) a {
  color: var(--primo-blu);
}
.about-page .chi-siamo .servizi-card:nth-of-type(4)::after {
  background-color: var(--quarto-blu);
}
.about-page .chi-siamo .servizi-card::after {
  content: "";
  position: absolute;
  right: -279px;
  clip-path: polygon(100% 0, 75% 100%, 0 100%, 0 0);
  width: 280px;
  height: 100%;
  background-color: var(--bianco);
}

.about-page .chi-siamo .servizi-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 21px;
}

.about-page .chi-siamo .servizi-card:nth-of-type(1) {
  width: calc(25% - 300px);
}

.about-page .chi-siamo .servizi-card:nth-of-type(2) {
  width: calc(50% - 300px);
}
.about-page .chi-siamo .servizi-card:nth-of-type(3) {
  width: calc(75% - 300px);
}
.about-page .chi-siamo .servizi-card:nth-of-type(4) {
  width: calc(100% - 300px);
}
.storia {
  --border: #e6e8ec;
  --muted: #9aa0a6;
  --ink: #0b0d12;
  --card-bg: #fff;
  padding: 140px 0px;
}

.storia .swiper-slide {
  display: flex;
  justify-content: center;
  transition: all 0.2s ease;
}

.storia .swiper-slide button {
  font-size: 140px;
}
/* ====== TICKER NUMERI ====== */
.years-ticker {
  width: min(100%, 1100px);
  margin: 0 auto;
  position: relative;
  padding: 10px 0 18px;
}

.years-ticker .swiper-wrapper {
  align-items: center;
}

.years-ticker .swiper-slide {
  width: auto;
}

.year-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 0 14px;
  font: 800 clamp(28px, 6vw, 48px) / 1 "Inter", ui-sans-serif, system-ui,
    -apple-system, Roboto, "Segoe UI", Arial;
  letter-spacing: -0.02em;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.25s ease, opacity 0.25s ease;
  opacity: 0.55;
  line-height: 100%;
}

.storia .swiper-button-prev,
.storia .swiper-button-next {
  top: auto;
  bottom: calc(-124% - 20px);
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primo-blu) !important;
  transition: all 0.2s ease;
}

.storia .swiper-button-prev:hover,
.storia .swiper-button-next:hover {
  color: var(--secondo-blu);
}

.storia .swiper-button-next {
  left: calc(50% + 40px);
}

.storia .swiper-button-prev {
  left: calc(50% - 40px);
}

.storia .swiper {
  overflow: visible;
}

/* il numero centrato (slide attiva) risalta */
.years-ticker .swiper-slide-active .year-big {
  color: var(--ink);
  font-size: 240px;
  color: var(--secondo-blu);
}

.years-ticker .swiper-button-prev,
.years-ticker .swiper-button-next {
  color: var(--ink);
}

/* restringi il ticker così il loop non si disattiva */
.years-ticker {
  width: 100%;

  margin: 0 auto;
}

/* allarga un po' ogni numero così ne stanno meno in riga */
.year-big {
  min-width: clamp(72px, 7vw, 96px); /* prima 68px */
}

.storia .swiper-slide-prev .year-big,
.storia .swiper-slide-next .year-big {
  transform: translateY(100px) !important;
}

.storia .swiper-slide-prev-prev .year-big,
.storia .swiper-slide-next-next .year-big {
  transform: translateY(200px) !important;
}

.storia {
  padding: 50px 0px 100px;
}
/* ====== PANNELLO CONTENUTI ====== */
.content-panel {
  width: min(100%, 900px);
  margin: clamp(16px, 3vw, 28px) auto 0;
  position: relative;
  min-height: 300px;
}

.year-card h3 {
  margin: 0 0 14px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
  font-size: 90px;
  font-weight: 700;
  color: var(--primo-blu);
}
.year-card p {
  color: #3b3f46;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.65;
  text-align: center;
  font-size: 24.5px;
  font-weight: 700;
  color: var(--primo-blu);
  line-height: 130%;
}

.year-card p span {
  color: var(--secondo-blu);
}

/* transizione in/out del contenuto quando cambia anno */
.content-panel .enter {
  opacity: 0;
  transform: translateY(6px);
}
.content-panel .enter-active {
  opacity: 1;
  transform: translateY(0);
}
.content-panel .leave {
  opacity: 1;
  transform: translateY(0);
  position: absolute;
  inset: 0;
}
.content-panel .leave-active {
  opacity: 0;
  transform: translateY(-6px);
}

@media (max-width: 640px) {
  .year-big {
    min-width: 56px;
    height: 56px;
  }
}
.about-page .clienti {
  background-color: var(--primo-blu);
  padding: 100px 0px;
  color: var(--bianco);
}

.about-page .clienti h2 {
  color: var(--bianco);
}
.about-page .clienti .overflow-hidden {
  display: flex;
  gap: 21px;
}
.about-page .clienti .client-card {
  display: flex;
  gap: 21px;
  transform: rotateX(60deg) rotateY(0deg) rotateZ(45deg);
  padding: 21px 7px;
  background-color: var(--bianco);
  width: fit-content;
}

.about-page .clienti .client-card:nth-of-type(odd) {
  margin-top: 10px;
}

.about-page .clienti .client-card a {
  color: var(--primo-blu);
}

.about-page .il-team {
  --team-bg: var(--primo-blu);
  --team-fg: #fff;
  background-color: var(--team-bg) !important;
  color: var(--team-fg) !important;
  transition: background-color 0.45s ease, color 0.45s ease;
  padding-bottom: 100px;
}
.about-page .il-team .team-member {
  display: flex;
}

.about-page .il-team article {
  flex-direction: column;
}
.about-page .il-team .col {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.about-page .il-team .col .text-holder {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: end;
}

.about-page .il-team .tm-roles {
  width: 50%;
  display: flex;
  gap: 21px;
  justify-content: start;
  align-items: center;
}

.about-page .il-team .tm-roles .tm-role {
  padding: 7px 21px;
  background-color: var(--team-fg);
  color: var(--team-bg);
}
.about-page .il-team .tm-photo {
  width: auto;
  height: 200px;
  margin-top: 52px;
}

.about-page .il-team .team-swiper h3 {
  font-size: 70px;
}

.about-page .il-team .team-swiper {
  margin-top: 140px;
}

.about-page .il-team .tm-social {
  width: 100%;
  display: flex;
  justify-content: start;
  margin-top: 21px;
}
.about-page .il-team .tm-social svg {
  height: 35px;
  width: auto;
}
.about-page .il-team .swiper-button-prev,
.about-page .il-team .swiper-button-next {
  left: auto;
  top: 55px;
  right: 7px;
  color: inherit;
}

.about-page .il-team .swiper-button-next:after,
.about-page .il-team .swiper-button-prev:after {
  font-size: 70px;
}

.about-page .il-team .swiper-button-prev {
  right: 70px;
}
.about-page .il-team h2,
.about-page .il-team p {
  color: var(--bianco);
  opacity: 1;
}

.about-page .il-team .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.about-page .chi-siamo .container-mutart {
  grid-template-columns: repeat(12, minmax(0, 1fr));

  display: grid;
}

.about-page .chi-siamo .container-mutart .text-h2 {
  grid-column: 1 / span 12;
}

.about-page .chi-siamo .container-mutart .text-h2 h2:first-of-type {
  grid-column: 1 / span 12;
}

.about-page .chi-siamo .container-mutart .text-h2 h2:last-of-type {
  grid-column: 4 / span 8;
}
.about-page .chi-siamo .container-mutart > p {
  grid-column: 4 / span 8;
  text-align: end;
}

.about-page .chi-siamo .container-mutart .text-btn {
  grid-column: 4 / span 8;
  margin-top: 21px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  margin-bottom: 70px;
}
.about-page .chi-siamo .container-mutart .text-btn .btn {
  width: fit-content;
}
/* ===== Clienti Isometrici (scoped) ===== */
.about-page .clienti-isometrici {
  position: relative;
  min-height: 100vh;
  padding: 60px 20px;
  overflow: hidden; /* ok qui, non sulle card */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primo-blu);
}

.about-page .clienti-isometrici h2 {
  display: flex;

  align-items: center;
  justify-content: center;
  gap: 21px;
}
.about-page .clienti-isometrici h2 span {
  font-size: 7vw;
}
/* Wrapper colonne (con transform 3D) + fix z-index per hover */
.about-page .clienti-isometrici .overflow-left,
.about-page .clienti-isometrici .overflow-right {
  position: absolute;
  display: flex;
  gap: 8px;
  transform-style: preserve-3d;
  z-index: 20; /* sopra al contenuto centrale */
  will-change: transform;
}

.about-page .clienti-isometrici .overflow-left {
  top: -130%;
  left: -30%;
  transform: rotateX(60deg) rotateZ(45deg);
}

.about-page .clienti-isometrici .overflow-right {
  bottom: -130%;
  right: -30%;
  transform: rotateX(60deg) rotateZ(45deg);
}

/* Colonne + fix per scale che sporge */
.about-page .clienti-isometrici .overflow-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  overflow: visible;
}

/* Card */
.about-page .clienti-isometrici .client-card {
  display: flex;
  gap: 18px;
  padding: 18px;
  background-color: #faf9f621;
  width: fit-content;
  border-radius: 20px;
  box-shadow: 20px 14px 5px 0 rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: visible; /* evita clipping durante scale */
  transform: translateZ(0); /* micro-fix GPU */
  backface-visibility: hidden;
}

.about-page .clienti-isometrici .client-card:hover {
  z-index: 1000000;
  cursor: pointer;
  transform: scale(1.1) translateZ(0);
  box-shadow: 24px 18px 14px 0 rgba(0, 0, 0, 0.25);
}

/* sfalsamenti come nel tuo layout */
.about-page .clienti-isometrici .overflow-column:nth-of-type(odd) {
  transform: translateX(100px);
  z-index: 5;
}
.about-page
  .clienti-isometrici
  .overflow-column:nth-of-type(odd)
  .client-card:nth-of-type(odd),
.about-page
  .clienti-isometrici
  .overflow-column:nth-of-type(even)
  .client-card:nth-of-type(odd) {
  margin-left: 100px;
}

/* Link + Immagini logo */
.about-page .clienti-isometrici .logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 80px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  pointer-events: none;
  cursor: auto;
}

.about-page .clienti-isometrici .logo-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px) translateZ(0);
}

.about-page .clienti-isometrici .logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Contenuto centrale "trasparente" ai click per non bloccare hover */
.about-page .clienti-isometrici .content-center {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #faf9f6;
  pointer-events: none;
}

.about-page .clienti-isometrici .content-center h2,
.about-page .gruppi h2 {
  font-size: 13vw;
  line-height: 100%;
  font-weight: 700;
  color: var(--secondo-blu);
  text-align: center;
}

.about-page .clienti-isometrici .content-center p,
.about-page .gruppi .container-mutart .content-center p {
  font-size: 90px;
  font-weight: 700;
  color: var(--bianco);
  text-align: center;
  opacity: 1;
}
.about-page .gruppi h3 {
  color: var(--scuro);
}
.about-page .gruppi .container-mutart .content-center p {
  color: var(--primo-blu);
}

.about-page .gruppi .card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 21px;
}

.about-page .gruppi p {
  color: var(--scuro);
}

.about-page .gruppi .card-holder {
  display: flex;

  gap: 70px 21px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-top: 70px;
  flex-direction: row;
}

.about-page .gruppi .vivere-napoli,
.about-page .gruppi .vivere-napoli svg path {
  color: #f49b1a;
  stroke: #f49b1a;
}
.about-page .gruppi .ufficio-stampa-napoli,
.about-page .gruppi .ufficio-stampa-napoli svg path {
  color: #4c7bb1;
  stroke: #4c7bb1;
}
.about-page .gruppi .party-aziendali,
.about-page .gruppi .party-aziendali svg path {
  color: #d30e42;
  stroke: #d30e42;
}
.about-page .gruppi .grandenapoli,
.about-page .gruppi .grandenapoli svg path {
  color: #e50051;
  stroke: #e50051;
}
.about-page .gruppi .grandecampania,
.about-page .gruppi .grandecampania svg path {
  color: #069393;
  stroke: #069393;
}
.about-page .gruppi .meta-creativa,
.about-page .gruppi .meta-creativa svg path {
  color: #007ec6;
  stroke: #007ec6;
}
.about-page .gruppi .card {
  display: flex;
  flex-direction: column;
  gap: 21px;
  padding: 21px;
  width: 30%;

  justify-content: center;
  align-items: center;
}

.about-page .gruppi .card p {
  width: 60%;
}
.about-page .gruppi .card .card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.about-page .gruppi .card .card-body p,
.about-page .gruppi .card .card-body a {
  text-align: center;
}
.about-page .gruppi .card .btn {
  color: inherit;
  font-size: 21px;
}

.about-page .gruppi .card h3 {
  color: inherit;
  font-size: 35px;
  text-align: center;
}
.about-page .gruppi .card img {
  width: auto;
  height: 70px;
}

.about-page .gruppi .card p {
  color: var(--scuro);
}

.about-page .clienti-isometrici .content-center {
  z-index: 100;
}
/* Mobile */
@media (max-width: 991px) {
  .partner-logo-footer img {
    height: 21px;
  }
  .proj-arrows {
    bottom: 5px !important;
    padding: 0px !important;
  }
  .proj-arrow__icon svg {
    width: 20px;
    height: auto;
  }
  .proj-arrow {
    gap: 0px;
    padding: 21px 7px;
  }
  .proj-arrow__label {
    font-size: 12px;
    line-height: 1;
  }

  .proj-arrow--next .proj-arrow__label {
    text-align: end !important;
  }

  .progetto-template-default .single-progetto .slide img {
    object-fit: contain;
  }
  .il-gruppo.mutart .text-element {
    display: flex;
    flex-direction: column;
  }
  .il-gruppo:not(.il-gruppo.mutart) .text-h2 h2:first-of-type {
    margin: 0px;
    grid-column: 1 / span 12;
  }
  section.il-gruppo.mutart .text-h2 h2:last-of-type {
    grid-column: 3 / span 8;
  }

  .single-progetto main a.btn {
    margin-top: 21px;
    font-size: 17.5px;
  }

  .single-progetto .slide-meta-container {
    display: flex;
    gap: 7px;
    margin-top: 14px;
    margin-bottom: 14px;
    text-align: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .about-page .clienti-isometrici {
    padding: 40px 10px;
  }
  .about-page .clienti-isometrici .content-center h2 {
    font-size: 64px;
  }
  .about-page .clienti-isometrici .content-center p {
    font-size: 49px;
  }
  .about-page .clienti-isometrici .logo-link {
    width: 140px;
    height: 64px;
  }
}

/*Mobile*/

@media screen and (max-width: 996px) {
}
/* Barre fisse */
header .intro-logo,
header .header-actions {
  position: fixed;
  top: 10px;
  z-index: 9999;
  background: transparent;
  /* consente a elementFromPoint di "vedere sotto" mantenendo click sugli elementi interni */
  pointer-events: none;
}
header .intro-logo {
  left: 40px;
  top: 30px;
}
.header-actions {
  right: 40px;
  top: 15px;
}

/* Gli elementi cliccabili restano interattivi */
.logo-wrap,
#fs-menu-toggle {
  pointer-events: auto;
}

/* Tema header via CSS vars */
:root {
  --hdr-fg: var(--bianco);
} /* default: icone chiare su dark */
:root[data-header-theme="light"] {
  --hdr-fg: var(--primo-blu);
} /* su light: icone scure */

/* Applica il colore */
.logo,
.menu-icon {
  color: var(--hdr-fg);
  transition: color 0.2s;
}

.header-actions .menu-icon svg path {
  stroke: currentColor !important;
}

/* Se usi il burger fatto con <i> */
.header-actions .burger i {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--hdr-fg);
  transition: background-color 0.2s;
}

/* Leggero alone per stacco (opzionale) */
.intro-logo .logo svg,
.header-actions .menu-icon svg {
  filter: drop-shadow(1px 1px 1px #003967a8);
}

/* sezione con effetto */
[data-rect-spray] {
  position: relative;
  overflow: hidden;
}

/* rettangolo generato: dimensione e radius coerenti */
.rect-spray__piece {
  position: absolute;
  pointer-events: none;
  user-select: none;
  width: 24px; /* <-- stessa larghezza */
  height: 40px; /* <-- stessa altezza (rettangolo) */
  border-radius: 8px; /* <-- stesso border radius */
  will-change: transform, opacity;
  /* nessuna transition: anima tutto GSAP */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.progetto-text.is-active:hover::after {
  transform: scale(1.3);
}
.contatti-pa ge .container-mutart {
  padding: 0px 8%;
}

div#contatti {
  z-index: 100;
}

#fs-menu .menu--primary > li:nth-of-type(2) .sub-menu li:last-of-type {
  display: none;
}

#fs-menu .menu--primary > li:nth-of-type(1) .sub-menu li:first-of-type {
  display: none;
}
@media (max-width: 991px) {
  :root {
    --logo-scale: 1.1;
    --mask-offset: -10;
  }

  .mobile {
    display: block !important;
  }

  header .fs-menu__grid .fs-menu__col:nth-of-type(2) .fs-nav--contacts {
    margin: 0px;
  }

  header .intro-logo,
  header .fs-menu .intro-logo {
    left: 20px;
  }

  header .fs-menu__inner {
    align-items: center;
    justify-content: space-between;
    padding-top: 135px;
    height: 100%;
  }

  .header-actions {
    right: 20px;
  }

  .container-mutart {
    max-width: calc(100vw - 40px);
  }
  .logo-bg,
  section.big-text .logo-bg {
    display: none;
  }

  section.portfolio {
    overflow: hidden;
    height: 230vh;
  }
  .mySwiper .swiper-slide img {
    height: 40vh;
  }
  .mySwiper .slide-caption {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 90%;
  }
  .il-gruppo p {
    font-size: 21px;
  }
  footer {
    padding: 70px 20px 20px 20px;
  }
  header .intro-logo .logo {
    height: auto;
    width: 60px;
  }
  header .fs-menu__grid .fs-menu__col:nth-of-type(1) nav a {
    font-size: 28px;
  }
  header .fs-menu__grid .fs-menu__blog-cta,
  footer .footer-cta-wrap a {
    font-size: 21px;
  }
  header .fs-menu__grid .fs-menu__blog-cta {
    margin-bottom: 21px;
  }
  header .fs-menu__grid .fs-menu__col:nth-of-type(1) nav li,
  .archive-progetti .progetto-text {
    padding: 21px 0px;
    margin-right: 0px;
  }

  header .fs-menu .fs-menu__grid {
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    height: 100%;
  }
  #fs-menu .menu--primary > li:nth-of-type(2) .sub-menu li:last-of-type {
    display: block;
  }

  #fs-menu .menu--primary > li:nth-of-type(1) .sub-menu li:first-of-type {
    display: block;
  }
  #fs-menu .menu--primary > li:nth-of-type(2) .sub-menu {
    top: calc(0px - 70px);
  }
  #fs-menu .menu--primary > li .sub-menu svg {
    margin-left: 20%;
  }

  #fs-menu .menu--primary > li .sub-menu:before {
    content: "Indietro";
    color: var(--bianco);
    opacity: 0.6;
    top: -35px;
    left: 0px;
    position: absolute;
    font-size: 17.5px;
    pointer-events: none;
  }
  header .fs-menu__grid .fs-menu__col:nth-of-type(2) .menu--contacts li,
  header .fs-menu__grid .fs-menu__col:nth-of-type(2) .menu--social,
  header .fs-menu__grid .fs-menu__blog-cta,
  #fs-menu .menu--primary > li > a {
    justify-content: start;
    width: 100%;
  }
  #fs-menu .menu--primary > li > a {
    justify-content: space-between;
  }

  #fs-menu .menu--primary > li .sub-menu {
    left: 0px;
    background-color: var(--primo-blu);
    min-height: 280px;
  }
  #fs-menu .menu--primary > li:hover {
    z-index: 100;
  }
  #fs-menu .menu--primary > li .sub-menu li {
    height: auto;
    background-color: var(--primo-blu);
    padding-left: 0px;
    z-index: 100;
    padding-right: 0px;
  }

  #fs-menu .menu--primary > li .sub-menu li:hover a {
    padding: 0px;
  }
  #fs-menu .menu--primary > li .sub-menu li a {
    font-size: 21px;
  }
  #fs-menu .menu--primary > li {
    width: 100%;
  }

  header .fs-menu__grid .fs-menu__col:nth-of-type(2) h4,
  header .fs-menu__grid .fs-menu__col:nth-of-type(2) h4 {
    text-align: start;
  }

  header .fs-menu__grid .fs-menu__col:nth-of-type(2) {
    flex-direction: column-reverse;
  }

  header .fs-menu__grid .fs-menu__col:nth-of-type(2) .menu--contacts {
    flex-direction: row;
  }

  header .fs-menu__col .text-holder {
    width: 100%;
  }

  header .fs-menu__grid .fs-menu__col:nth-of-type(1) nav li,
  .archive-progetti .progetto-text {
    border: none;
  }

  header .fs-menu {
    padding: 0px 20px;
  }

  /*temp*/
  header .fs-menu__grid .fs-menu__col:nth-of-type(2) .menu--contacts li a {
    display: none;
  }

  section.hero {
    height: 100svh;
  }

  section.hero .intro-logo .logo,
  footer .intro-logo .logo {
    width: 80vw;
  }
  .homepage section.hero .container-mutart h2 {
    font-size: 21px;
  }
  .homepage .logo-slider img {
    height: auto;
    width: 140px;
  }
  section.portfolio .container-mutart .text-btn {
    display: none;
  }
  .number {
    margin-bottom: 21px;
  }
  section.servizi .single-service .container-mutart h3 {
    font-size: 21px;
    font-weight: 600;
    margin-left: 3.5px;
  }
  section.servizi .single-service.comunicazione .btn {
    margin: 0px;
  }
  h2 {
    font-size: 10vw;
  }

  h3 {
    font-size: 21px;
  }

  .text-h2 h2:first-of-type {
    grid-column: 4 / span 10;
  }

  section.portfolio .text-h2 h2:first-of-type {
    grid-column: 1 / span 12;
  }

  section.servizi .container-mutart .text-h2 h2:first-of-type {
    grid-column: 1 / span 12;
  }
  .il-gruppo .text-element .text {
    gap: 3.5px;
  }
  .il-gruppo .text-element .text:first-of-type {
    margin-bottom: 0px;
    margin-top: 0px;
  }

  .il-gruppo .text-element .overflow-hidden {
    grid-column: 1 / span 12;
    height: 500px;
    position: relative;
    top: 0%;
    order: 2;
  }
  .il-gruppo .text-element .text {
    gap: 0px;
    grid-column: 1 / span 12;
    margin: 35px 0px;
  }

  section.il-gruppo .container-mutart {
    margin-bottom: 0px;
  }

  section.portfolio .container-mutart .btn {
    display: none;
  }
  section.portfolio .text .text:last-of-type {
    grid-column: 1 / span 9;
  }
  section.portfolio {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 52px;
  }

  section.portfolio .container-mutart {
    height: auto;
    margin-bottom: 100px;
  }
  .homepage .mySwiper .swiper-slide {
    height: 30%;
  }

  section.big-text {
    padding: 20px 0px;
  }

  section.portfolio .mySwiper {
    position: relative;
    transform: translate(0, 0);
    height: auto;
    overflow: visible;
    order: 2;
    top: initial;
    left: -25%;
  }

  section.portfolio .btn-mobile {
    order: 3;
    width: 100%;
    margin-bottom: 0px;
    margin-top: 105px;
  }
  section.portfolio .btn-mobile .btn {
    display: block;
    width: 100%;
    margin: 0px;
  }
  /*servozi*/
  .page-servizio.hub .servizi-card {
    width: 100%;
  }

  .page-servizio .servizio-grid .servizio-main {
    width: 100%;
    padding-right: 0;
  }

  .page-servizio .servizio-grid {
    flex-direction: column;
  }

  .page-servizio .servizio-grid .servizio-sidebar {
    width: 100%;
  }

  .page-servizio .container-mutart {
    padding: 0px;
  }

  .page-servizio.hub h3 {
    margin-top: 0px;
  }
  .page-servizio.hub .servizio-content {
    padding-bottom: 0px;
  }

  .page-servizio.hub h3 {
    font-size: 28px;
  }
  .archive-progetti .text-h2 p {
    grid-column: 1 / span 12;
  }

  .archive-progetti .progetti-titles {
    font-size: 21px;
  }
  .progetti-wrapper {
    gap: 21px;
  }
  .progetti-titles-wrap {
    width: 40%;
  }
  .archive-progetti .progetti-header {
    bottom: 40px;
  }
  .archive-progetti .progetti-header span,
  .archive-progetti .progetti-header .progetti-counter {
    font-size: 28px;
  }
  .archive-progetti section.progetti {
    padding-bottom: 50px;
  }
  .archive-progetti .cta-finale h3,
  .page-servizio .cta-finale h3,
  .about-page .cta-finale h3 {
    font-size: 28px;
    font-weight: 600;
  }

  .about-page .il-team .tm-photo {
    width: 100%;
    height: 300px;
    margin-top: 35px;
    margin-bottom: 35px;
  }

  .about-page .il-team .team-swiper h3 {
    font-size: 49px;
    margin-bottom: 14px;
  }

  .about-page .chi-siamo .container-mutart .text-btn {
    grid-column: 1 / span 12;
  }
  .about-page .il-team .team-swiper {
    margin-top: 70px;
  }

  .about-page .il-team .tm-roles .tm-role {
    padding: 7px 10.5px;

    font-size: 14px;
    line-height: 100%;
  }

  .about-page .il-team .tm-roles {
    width: auto;
    flex-wrap: wrap;
    gap: 7px;
  }
  .about-page .il-team .col .text-holder {
    width: 100%;
  }
  .about-page .il-team .col {
    flex-direction: column;
  }

  .page-servizio .progetti-related {
    overflow: hidden;
  }

  .single-service .text-mobile {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    grid-column: 1 / span 12;
    gap: 21px;
    margin-top: 35px;
  }

  .homepage .single-service .text a.btn,
  .homepage .single-service .text .text:last-of-type {
    display: none !important;
  }

  .homepage.single-service .number {
    margin-bottom: 0px;
  }

  .homepage .mySwiper .swiper-slide {
    height: 20%;
  }

  header .fs-menu__grid .fs-menu__col:nth-of-type(2) {
    height: auto;
  }

  section.servizi .single-service .btn {
    margin: 0px;
    width: 100%;
  }

  #cosa-include .pin-inner .icon-stage {
    width: min(120px, 30vw);
    clip-path: inset(10.5px 6px round 10px);
  }

  .page-servizio h2 {
    margin: 0px;
  }
  .page-servizio #cosa-include {
    height: 100svh;
  }
  .page-servizio .servizio-gallery {
    height: 25%;
  }

  .page-servizio .nav-servizio {
    display: none;
  }

  .page-servizio .sidebar-servizi {
    margin-top: 0px;
  }

  .page-servizio .progetti-related-grid .proj-card {
    height: 300px;
  }

  a.progetto__link {
    font-size: 17.5px;
    width: 70%;
    line-height: 100%;
  }

  .progetto-text::after {
    width: 30%;
    margin-right: 0px;
  }

  .page-servizio .text-h2 h2:first-of-type {
    grid-column: 1 / span 12;
  }
  .page-servizio .text-h2 h2:last-of-type {
    grid-column: 2 / span 11;
  }

  .page-servizio .progetti-related-grid {
    margin-top: 70px;
  }

  .page-servizio .cta-finale h3 {
    width: 100%;
  }

  .single-progetto h1 {
    font-size: 10vw;
  }

  .single-progetto .slides p {
    font-size: 21px;
  }
  .single-progetto .slide {
    padding: 0px;
  }

  .single-progetto .slide-meta {
    font-size: 10.5px;
    width: max-content;
  }

  .single-progetto .btn {
    width: 100%;
  }

  .slides {
    gap: 14px;
  }
  .single-progetto .slide--tre-foto img {
    width: 100%;
  }
  .slide-image {
    height: 100%;
  }

  .about-page .about-hero p {
    padding: 0px;
  }

  .storia .swiper-button-prev,
  .storia .swiper-button-next {
    bottom: -280%;
  }

  .about-page .chi-siamo .servizi-card::after {
    content: "";
    position: absolute;
    right: -80px;
    clip-path: polygon(100% 0, 75% 100%, 0 100%, 0 0);
    width: 120px;
    height: 100%;
    background-color: var(--bianco);
  }
  .about-page .chi-siamo .container-mutart .text-h2 h2:first-of-type {
    grid-column: 1 / span 8;
  }
  .about-page .chi-siamo .servizi-grid {
    gap: 14px;
  }
  .about-page .chi-siamo .servizi-card {
    padding-left: 20px;
    height: 100px;
  }
  .about-page .chi-siamo .servizi-card:nth-of-type(1) {
    width: calc(25% - 80px);
  }
  .about-page .chi-siamo .servizi-card:nth-of-type(2) {
    width: calc(50% - 80px);
  }
  .about-page .chi-siamo .servizi-card:nth-of-type(3) {
    width: calc(75% - 80px);
  }

  .about-page .chi-siamo .servizi-card:nth-of-type(4) {
    width: calc(100% - 80px);
  }

  .years-ticker .swiper-slide-active .year-big {
    font-size: 70px;
  }
  .storia .swiper-slide button {
    font-size: 50px;
  }
  .storia .swiper-slide-prev .year-big,
  .storia .swiper-slide-next .year-big {
    transform: translateY(25px) !important;
  }

  .storia .swiper-slide-prev-prev .year-big,
  .storia .swiper-slide-next-next .year-big {
    transform: translateY(50px) !important;
  }
  .year-card h3 {
    font-size: 49px;
    margin-top: 0px;
  }

  .year-card p {
    font-size: 21px;
  }

  .storia .swiper {
    overflow-x: clip;
    height: 140px;
  }

  section.il-gruppo .logo-slider.slider {
    margin: 0px;
  }

  .about-page .about-hero h1 {
    font-size: 14vw;
  }
  .about-page .gruppi .card {
    width: 100%;
    padding: 0px;
  }
  .about-page .clienti-isometrici .content-center h2,
  .about-page .gruppi h2 {
    font-size: 64px;
  }

  .about-page .il-team .swiper-button-prev {
    right: 42px;
  }

  .about-page .gruppi .container-mutart .content-center p {
    font-size: 49px;
    line-height: 100%;
  }
  .about-page .il-team .team-swiper h3 {
    font-size: 21px;
  }
  header .fs-menu__grid .fs-menu__col nav {
    margin: 21px 0px;
  }

  .about-page .il-team .swiper-slide {
    padding-bottom: 49px;
  }

  .about-page .gruppi .card img {
    height: 50px;
  }

  .about-page .gruppi h3 {
    line-height: 100%;
  }

  footer .desktop-menu {
    display: none;
  }

  footer .mobile-menu {
    display: block;
    margin-top: 21px;
  }

  footer .mobile-menu .menu-menu-principale-container ul {
    display: flex;
    flex-direction: row;
    gap: 7px;
  }
  footer .menu--social {
    margin-top: 17.5px;
  }

  #fs-menu .menu--primary > li:hover {
    background-color: transparent;
    padding-left: 0px;
  }
  .about-page .il-team .swiper-button-next,
  .about-page .il-team .swiper-button-prev {
    top: 17px;
  }
  .about-page .il-team .swiper-button-next:after,
  .about-page .il-team .swiper-button-prev:after {
    font-size: 25px;
  }
  .content-panel {
    padding: 0px 20px;
  }
  .cta-finale .btn {
    padding: 7px 0px;
  }
  .page-servizio.hub .servizi-card,
  .page-servizio.hub .servizi-card.btn {
    width: 100%;
  }

  .page-servizio.hub #faq h3 {
    margin-top: 28px;
  }

  .contatti-page .container-mutart {
    padding: 0px;
  }

  .page-servizio .servizio-hero {
    height: 140px;
  }
  .page-servizio.hub .servizio-grid .servizio-sidebar {
    margin-top: 35px;
  }

  .page-transition__brand .logo.logo--text {
    width: 200px;
  }
}

.about-page .il-team .text-h2 p {
  grid-column: 1 / span 8;
  margin-top: 35px;
}
.servizio-gallery {
  display: flex;
  align-items: stretch;
  gap: clamp(8px, 1.5vw, 16px);
  height: clamp(160px, 22vw, 280px); /* <- altezza stabile! */
}
.servizio-gallery .gi {
  flex: 0 0 10%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.servizio-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay per la intro */
.intro-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--hero-bg, #0b0f14); /* scuro coerente col tuo tema */
  z-index: 9999;
  pointer-events: none; /* evita click durante intro */
}
.intro-stage[hidden] {
  display: none;
}

/* Quando il logo è nella stage e deve essere enorme */
.intro-stage .logo-da-animare.is-intro {
  width: min(90vw, 1200px);
  max-width: 1200px;
}

/* Migliora i transform sui path dell'SVG */
.logo-da-animare svg {
  overflow: visible;
}
.logo-da-animare svg path {
  transform-box: fill-box;
  transform-origin: 50% 100%; /* dal basso */
}

/* (Opzionale) Piccolo fade-in del titolo e delle forme, li animiamo via JS */
.hero h2,
.logo-bg svg {
  will-change: transform, opacity;
}
/* Per evitare flicker su header quando lo settiamo con GSAP */
#header .intro-logo,
#header .header-actions {
  will-change: transform, opacity;
}

/* Overlay intro */
.intro-stage {
  position: fixed;
  inset: 0;
  background: var(--hero-bg, #0b0f14);
  z-index: 9999;
  pointer-events: none;
}
.intro-stage[hidden] {
  display: none;
}

/* Logo grande in overlay: basso-sinistra + scala dal basso-sinistra */
.intro-stage .logo-da-animare.is-intro {
  position: absolute;
  left: clamp(16px, 4vw, 40px);
  bottom: clamp(16px, 6vh, 56px);
  width: min(92vw, 1400px);
  max-width: 1400px;
  transform-origin: left bottom;
}

/* Evita clipping e definisci origin delle “lettere” */
.logo-da-animare svg {
  overflow: visible;
}
.logo-da-animare svg path {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.btn {
  --x: 50%; /* posizione iniziale del mouse (fallback) */
  --y: 50%;
  --deg: 0deg; /* angolo luce per il bordo */
  --border-w: 0px;
  --shine: #ffffff6e; /* colore luce */

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  border: 1px solid var(--bianco);
  color: var(--bianco);
  font-weight: 600;
  letter-spacing: 0.2px;
  backdrop-filter: blur(0px) saturate(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  overflow: hidden;
  isolation: isolate; /* tiene i pseudo-element isolati */
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
  font-weight: 600;
}

.btn.btn-secondary {
  border: 1px solid var(--primo-blu);
  color: var(--primo-blu);
  --shine: #003967; /* colore luce */
}

.btn.btn-secondary:hover {
  border-color: transparent;
  background-color: #00396725 !important;
  color: var(--primo-blu) !important;
}

aside .btn.btn-secondary,
.page-servizio #portfolio .btn.btn-secondary {
  background-color: var(--primo-blu);
  color: var(--bianco);
}
.page-servizio #portfolio a {
  margin-top: 14px;
}
.btn-terziary {
  background-color: var(--primo-blu);
  color: var(--bianco);
}
.btn:hover {
  color: var(--bianco);
  border-color: transparent;
  background: #ffffff23;
}

/* LUCE INTERNA che segue il mouse */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* 1) bagliore radiale che segue il mouse
     2) il tuo vecchio linear-gradient, mantenuto per il look “vetroso” */
  background: radial-gradient(
      160px circle at var(--x) var(--y),
      color-mix(in oklab, var(--shine) 60%, transparent) 0%,
      color-mix(in oklab, var(--shine) 35%, transparent) 25%,
      transparent 60%
    ),
    linear-gradient(
      90deg,
      transparent,
      color-mix(in oklab, var(--shine) 32%, transparent),
      transparent
    );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: -1;
}

/* BORDO “gioco di luce sul vetro” che segue il mouse */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: var(--border-w); /* spessore del bordo */
  border-radius: inherit;
  /* Due layer:
     - un highlight radiale ancorato al mouse
     - una “strisciata” lineare orientata verso il mouse (angolo var(--deg))
     Il tutto poi mascherato per mostrare solo l’anello del bordo. */
  background: radial-gradient(
      140px circle at var(--x) var(--y),
      color-mix(in oklab, var(--shine) 75%, transparent) 0%,
      transparent 60%
    ),
    linear-gradient(
      var(--deg),
      color-mix(in oklab, white 25%, transparent),
      color-mix(in oklab, var(--shine) 85%, transparent) 50%,
      color-mix(in oklab, white 25%, transparent)
    );
  /* Mostra solo l’anello (maschera “foro” centrale) */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 2;
}

.btn:hover::before,
.btn:hover::after,
.btn:focus-visible::before,
.btn:focus-visible::after {
  opacity: 1;
}

.single-service:hover svg {
  transform: rotate(360deg);
}

/* Piccolo tocco per accessibilità */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--shine) 65%, transparent);
}

.il-team {
  --team-bg: var(--primo-blu);
  --team-fg: #fff;
  background-color: var(--team-bg) !important;
  color: var(--team-fg) !important;
  transition: background-color 0.45s ease, color 0.45s ease;
}

/* Assicurati che le icone SVG seguano il colore del testo */
.il-team .tm-social-link svg,
.il-team .tm-social-link path {
  fill: currentColor;
}

/* (facoltativo) se hai bordi o bullet che vuoi cambiare col tema: */
.il-team .tm-roles,
.il-team .tm-roles li {
  color: inherit;
}

/*Contatti*/
/* CONTATTI PAGE STYLES */
/* CONTATTI PAGE STYLES */

.contatti-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background-color: var(--primo-blu);
}

/* Hero Section */
.contatti-hero {
  background-color: transparent;
  padding: 70px 20px 50px;
  text-align: center;
  color: #fff;
  z-index: 2;
  padding-top: 140px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1;
}

.hero-title .highlight {
  color: var(--secondo-blu);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  padding: 0px 15%;
}

/* Info Contatti */
.contatti-info {
  padding: 80px 20px;
  background: #f8f8f8;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 21px;
  height: 100%;
}

.info-card {
  padding: 21px;
  backdrop-filter: blur(10px) saturate(100%);
  transition: transform 0.3s ease;
  background-color: #ffffff0d;
}
.info-number {
  font-size: 70px;
  font-weight: 700;
  color: #e8f4f8;
  margin-bottom: 28px;
  line-height: 100%;
  display: none;
}

.info-card h3 {
  font-size: 28px;
  color: var(--bianco);
  margin-bottom: 7px;
}
.info-card .social-item {
  margin-bottom: 14px;
}
.info-card .social-item a {
  display: flex;
  align-items: center;
  gap: 7px;
}
.info-card a {
  color: var(--bianco);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 7px;
  line-height: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 10px;
}

.info-card a span {
  font-size: 14px;
  color: lightgray;
  margin-top: 20px;
}
.info-card a:first-of-type span {
  margin-top: 0px;
}
.info-card .menu--social a span {
  font-size: 14px;
  color: var(--bianco);
}
.info-card .social-item a {
  color: var(--bianco);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--bianco) !important;
  opacity: 0.8;
}

.info-card a:hover {
  color: var(--secondo-blu);
}

.info-card p {
  color: var(--bianco);
  opacity: 0.8;
  line-height: 1.6;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Form Section */
.contatti-form-section {
  padding: 100px 20px;
  background: #fff;
}

.contatti-form-section h2 {
  font-size: 2.5rem;
  color: var(--bianco);
  margin-bottom: 50px;
  text-align: center;
}

.contatti-form-section h2 .highlight {
  color: var(--secondo-blu);
}

.contact-form {
  background-color: #ffffff0d;
  padding: 35px;
  backdrop-filter: blur(10px) saturate(100%);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #003d7a;
  font-weight: 500;
}

#contact-form label {
  color: var(--bianco);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-bottom: 1px solid var(--primo-blu);
  border-radius: 0px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
  background-color: none;
  background: none;
  color: var(--primo-blu);
}
#contact-form .form-group input,
#contact-form .form-group textarea,
#contact-form .form-group select #contact-form .form-group option {
  border-bottom: 1px solid var(--bianco);
  color: var(--bianco);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
}

.form-group textarea {
  resize: vertical;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: normal;
  font-size: 14px;
}

.checkbox-group input[type="checkbox"] {
  width: 10px;
}

.btn-submit {
  background: var(--secondo-blu);
  color: var(--primo-blu);
  border: none;
  padding: 15px 50px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.btn-submit:hover {
  background: var(--bianco);
  color: var(--primo-blu);
}

/* Work With Us Trigger */
.work-with-us-trigger {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}

.work-trigger-btn {
  background: var(--terzo-blu);
  color: #fff;
  border: none;
  padding: 20px 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
}

.work-trigger-btn:hover {
  background: var(--terzo-blu);
  padding-right: 30px;
}

/* Work Modal */
.work-modal {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background-color: var(--bianco);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.work-modal.active {
  opacity: 1;
  visibility: visible;
}

.work-modal-content {
  width: 100%;
  max-width: 700px;

  overflow-y: auto;
  border-radius: 0px;
  padding: 0;
  position: relative;

  transition: transform 0.3s ease;
}

.work-modal.active .work-modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
  color: var(--primo-blu);
  background: var(--bianco);
}

/* Form Header */
.form-header {
  padding: 40px;
  color: #fff;
  text-align: center;
}

.form-header h2 {
  font-size: 90px;
  margin-bottom: 20px;
}

.form-header h2 .highlight {
  color: var(--secondo-blu);
}

#lavora-con-noi .progress-bar {
  width: 100%;
  height: 6px;
  background: rgb(221 221 221);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  position: absolute;
}

#lavora-con-noi .progress-fill {
  height: 100%;
  background: var(--terzo-blu);
  width: 25%;
  transition: width 0.4s ease;
}

.step-indicator {
  font-size: 0.9rem;
  opacity: 0.9;
  color: var(--primo-blu);
}

/* Form Swiper */
.work-form {
  padding: 0;
}

.formSwiper {
  padding: 40px;
}

.slide-content {
  min-height: 400px;
}

.slide-title {
  font-size: 1.5rem;
  color: var(--primo-blu);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* File Upload */
.file-upload {
  display: block;
  width: 100%;
  padding: 20px;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9f9f9;
}

.file-upload:hover {
  border-color: var(--terzo-blu);
  background: #f0f8ff;
}

.file-upload input[type="file"] {
  display: none;
}

.file-label {
  color: #666;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.file-name {
  display: none;
  margin-top: 10px;
  color: var(--terzo-blu);
  font-size: 0.9rem;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  padding: 35px 0px;
  border: none;
}
#lavora-con-noi h3 {
  align-items: center;
  margin-bottom: 42px;
  justify-content: center;
  font-size: 42px;
  color: var(--secondo-blu);
}

.btn-prev,
.btn-next,
.btn-submit-work {
  padding: 12px 30px;
  border: none;
  border-radius: 0px;
  font-size: 21px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-prev {
  background: #f0f0f0;
  color: #666;
}

.btn-prev:hover {
  background: #e0e0e0;
}

.btn-next,
.btn-submit-work {
  background: var(--primo-blu);
  color: #fff;
  margin-left: auto;
}

.btn-next:hover,
.btn-submit-work:hover {
  background: #0090cc;
}

.btn-submit-work {
  padding: 12px 40px;
}

/* Swiper Custom Styles */
.formSwiper .swiper-slide {
  opacity: 0 !important;
  transition: opacity 0.3s ease;
}

.formSwiper .swiper-slide-active {
  opacity: 1 !important;
}

.contatti-page .contatti {
  background-color: var(--primo-blu);
  padding-bottom: 120px;
}
.contatti-page .contatti-grid {
  display: flex;
  justify-content: space-between;
  gap: 21px;
}
.contatti-page h3 {
  color: var(--secondo-blu);
  line-height: 100%;
  margin-bottom: 21px;
}

.contatti-page .work-modal h3 {
  color: var(--primo-blu);
}
.contatti-page .contact-form h3 {
  margin-bottom: 14px;
}
.contatti-page h1 {
  font-size: 8vw;
}

.contatti-page .contatti-col {
  width: 50%;
}
:root {
  /* opzionale: default per testo per macro-categoria */
  --team-txt-web-design: auto;
  --team-txt-grafica: auto;
  --team-txt-eventi: auto;
  --team-txt-marketing-comunicazione: auto;
  --team-txt-founder: #0b0b0b; /* su bianco: scuro */
}

/* la sezione eredita */
section.il-team {
  background: var(--team-bg, #003566);
  color: var(--team-fg, #ffffff);
}

/* figli ereditano il colore senza doverlo ripetere */
section.il-team h1,
section.il-team h2,
section.il-team h3,
section.il-team h4,
section.il-team h5,
section.il-team h6,
section.il-team p,
section.il-team a:not(.btn),
section.il-team .chip,
section.il-team .tag {
  color: inherit !important;
}

/* utilità */
section.il-team .muted {
  opacity: 0.7;
}
section.il-team .with-border {
  border-color: currentColor;
}
section.il-team svg path {
  stroke: currentColor;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .work-modal-content {
    width: 95%;
  }

  .form-header {
    padding: 30px 20px;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }

  .formSwiper {
    padding: 30px 20px;
  }

  .slide-content {
    min-height: 350px;
  }

  .form-navigation {
    padding: 20px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn-prev,
  .btn-next,
  .btn-submit-work {
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  .work-trigger-btn span {
    font-size: 0.9rem;
  }

  .contatti-page .contatti-grid {
    flex-wrap: wrap;
  }
  .contatti-page .contatti-col {
    width: 100%;
  }
  .contact-form {
    padding: 21px 14px;
  }

  .about-page .chi-siamo .container-mutart .text-h2 h2:last-of-type {
    grid-column: 3 / span 10;
  }
  header .site-header .logo-wrap .logo-testuale {
    display: none;
  }
  footer .sub-menu {
    display: none;
  }

  .cta-finale h3 {
    width: 100%;
    font-size: 28px;
  }
}

.page-template-template-servizio header .logo-testuale,
.single-progetto header .logo-testuale {
  display: none;
}

.partner-grid-section {
  padding: 100px 0px;
  background: var(--bianco);
}

.partner-grid-section .text-h2 h2:first-of-type {
  grid-column: 1 / span 12;
}

.partner-header {
  text-align: center;
}
footer .sub-menu {
  display: none !important;
}
/* Griglia con pallini agli incroci */
.partner-grid {
  display: flex;
  flex-wrap: wrap;

  gap: 1px;
  position: relative;
  padding: 1px;
  padding: 0px 10%;
  align-items: center;
  justify-content: center;
  gap: 35px;
}

.partner-item {
  background: white;
  padding: 40px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  position: relative;
  transition: all 0.3s ease;
  width: 15%;
  pointer-events: none;
}
/*
.partner-item:hover {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  z-index: 2;
} */

.partner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.partner-logo {
  max-width: 140px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
  filter: invert(1);
}

#work-form > div.form-notice.form-notice-success > span {
  color: var(--primo-blu);
}
/* Responsive */
@media (max-width: 991px) {
  .partner-grid-section {
    padding: 60px 20px;
  }

  .partner-header h2 {
    font-size: 2rem;
  }

  .partner-header p {
    font-size: 1rem;
  }

  .partner-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .partner-item {
    padding: 30px 20px;
    min-height: 120px;
  }

  .partner-logo {
    max-width: 60px;
    max-height: 60px;
  }

  .partner-grid-section p {
    width: 100%;
    margin-top: 14px;
    font-size: 21px;
  }
  footer .footer-legal {
    flex-direction: column-reverse;
    gap: 3.5px;
  }

  .archive-progetti section.progetti {
    padding-top: 33% !important;
  }

  .il-gruppo:not(.il-gruppo.mutart) .text-h2 h2:last-of-type {
    grid-column: 1 / span 12;
    margin-bottom: 40px;
  }

  .partner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    position: relative;
    padding: 1px;
    padding: 0px 10%;
    align-items: center;
    justify-content: center;
    gap: 0px 100px;
  }
  .partner-grid .partner-item {
    width: 30%;
  }
  .partner-logo {
    max-width: 100px;
    max-height: 60px;
  }

  .partner-logo-footer {
    display: flex;
    width: 100%;
    justify-content: start;
    gap: 20px;
    flex-wrap: wrap;
  }

  .footer-top .intro-logo {
    width: 100%;
  }

  footer .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    align-items: start;
    gap: 7px;
    margin-bottom: 14px;
  }

  section.il-gruppo.mutart > div > div > div:nth-child(2) {
    margin-bottom: 0px;
  }
}

#processo {
  margin-top: 30px;
}

.progetti-related .text-h2 h2:first-of-type {
  margin-bottom: 7px;
}
/*16 pollici*/
@media (max-width: 1600px) {
  .about-page .clienti-isometrici .overflow-right {
    bottom: -150%;
    right: -90%;
    transform: rotateX(60deg) rotateZ(45deg);
  }

  .about-page .clienti-isometrici .overflow-left {
    top: -150%;
    left: -90%;
    transform: rotateX(60deg) rotateZ(45deg);
  }

  .about-page .chi-siamo .servizi-card a {
    font-size: 100px;
  }
}
@media (max-width: 991px) {
  .about-page .chi-siamo .servizi-card a {
    font-size: 35px;
  }

  .about-page .clienti-isometrici .overflow-left {
    top: -55%;
    left: -30%;
    transform: rotateX(60deg) rotateZ(45deg);
  }
  .about-page .clienti-isometrici .overflow-right {
    bottom: -55%;
    right: -30%;
    transform: rotateX(60deg) rotateZ(45deg);
  }

  .hero-subtitle {
    padding: 0px;
  }

  .contatti-page .contatti {
    padding: 70px 0px;
  }
}

@media (max-width: 1660px) {
  .hero .logo-bg svg:nth-of-type(1),
  .contatti .logo-bg svg:nth-of-type(1) {
    transform: translate(0px, 0px) !important;
    left: 60%;
  }
}

@media (max-width: 1400px) {
  .hero .logo-bg svg:nth-of-type(1),
  .contatti .logo-bg svg:nth-of-type(1) {
    transform: translate(0px, 0px) !important;
    left: 70%;
  }
}

@media (max-width: 1300px) {
  .hero .logo-bg svg:nth-of-type(1),
  .contatti .logo-bg svg:nth-of-type(1) {
    transform: translate(0%, -10%) !important;
    left: 70%;
    top: 0%;
  }
}

@media (min-width: 2000px) {
  .homepage section.portfolio {
    height: 1800px;
  }
}

@media (min-height: 1100px) {
  .hero .logo-bg svg:nth-of-type(1),
  .contatti .logo-bg svg:nth-of-type(1) {
    transform: translate(-10%, -20%) !important;
    left: 70%;
    top: 0%;
  }

  .hero .logo-bg svg:nth-of-type(2),
  .contatti .logo-bg svg:nth-of-type(2) {
    transform: translate(-60%, -20%) !important;
    left: 70%;
    top: 0%;
  }

  .contatti .logo-bg svg:nth-of-type(1) {
    transform: translate(-110%, -20%) !important;
    left: 70%;
    top: 0%;
  }

  .about-page .clienti-isometrici .overflow-left {
    top: -80%;
  }

  .about-page .clienti-isometrici .overflow-right {
    bottom: -80%;
  }
}

@media (min-height: 1100px) and (min-width: 1900px) {
  .hero .logo-bg svg:nth-of-type(1),
  .contatti .logo-bg svg:nth-of-type(1) {
    transform: translate(-20%, -10%) !important;
    left: 70%;
    top: 0%;
  }
  .contatti .logo-bg {
    transform: translate(-20%, -20%) scale(3);
  }
  .contatti .logo-bg svg:nth-of-type(1) {
    transform: translate(-0%, -10%) !important;
    left: 70%;
    top: 0%;
  }
}

/* Spaziatura del blocco titolo */
.il-team .text-h2 {
  margin-bottom: 70px;
}

/* LISTA MEMBRI (nuovo markup) */
.il-team ul.team-list {
  display: flex;
  align-items: center; /* come prima */
  gap: 35px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

/* CARD */
.il-team .team-card {
  flex: 1 1 280px; /* griglia fluida */
  max-width: 420px;
}

/* CONTENUTO CARD */
.il-team .team-member {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* FOTO (thumbnail rotonda) */
.il-team .tm-photo {
  width: auto;
  height: 120px;
  flex: 0 0 80px;
  margin: 0;
}

.il-team .tm-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* NOME */
.il-team .tm-name {
  font-weight: 400; /* come il vecchio h4 */
  margin: 0;
}

/* TAG CATEGORIA (sotto al nome) */
.il-team .tm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.il-team .tm-tag {
  padding: 7px 14px;
  /* border-radius: 999px; */
  font-size: 0.85rem;
  line-height: 1.2;
  border: 1px solid var(--scuro);
  background: rgba(0, 0, 0, 0.03);
}

/* Accenti opzionali per categoria */
.il-team .tm-tag[data-cat="founder"] {
  font-weight: 600;
}
/* .il-team .tm-tag[data-cat="web-design"] { } */
/* .il-team .tm-tag[data-cat="grafica"] { } */
/* .il-team .tm-tag[data-cat="eventi"] { } */
/* .il-team .tm-tag[data-cat="marketing-comunicazione"] { } */

/* Se l’utente preferisce meno animazioni */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn::before,
  .btn::after {
    transition: none !important;
  }
}
/* Preparazione animazioni */
.hero h2,
.logo-bg svg,
#header .intro-logo,
#header .header-actions {
  will-change: transform, opacity;
}

header .fs-menu__grid .fs-menu__col:nth-of-type(1) {
  width: 80%;
}
header .site-header .logo-wrap {
  display: flex;
  gap: 7px;
  align-items: center;
}
header .site-header .logo-wrap .logo-testuale {
  width: 170px;
}
.intro-logo .logo-testuale {
  color: var(--hdr-fg);
}
.intro-logo .logo-testuale svg path {
  fill: currentColor !important;
  filter: drop-shadow(1px 1px 1px #003967a8);
}

.intro-logo .logo-testuale svg {
  filter: drop-shadow(1px 1px 1px #003967a8);
}

#tempi-costi {
  display: none;
}

.logo-che-appare {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  /* opzionale se è un bottone/clickable: */
  pointer-events: none;
}
.logo-che-appare.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.il-gruppo h4 {
  text-align: center;
  color: var(--primo-blu);
  font-size: 28px;
}
.pre-intro-hidden {
  opacity: 0;
}
.thankyou section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.thankyou section h1 {
  font-size: 90px;
}
.thankyou section h1,
.thankyou section p {
  color: var(--primo-blu);
  text-align: center;
}
.thankyou section p {
  color: var(--scuro);
}
.thankyou section .btn {
  margin-top: 21px;
}
.thankyou .logo-bg {
  top: -580px;
  right: -300px;
  height: 100%;
}

.thankyou .logo-bg svg {
  position: absolute;
  top: 50px;
  left: 200px;
  width: 50vw;
  height: 200vh;
}
.thankyou .logo-bg svg:nth-of-type(1) {
  transform: translate(600px, -300px);
}
.thankyou .logo-bg path {
  fill: var(--secondo-blu);
}

.thankyou .cta .btn + .btn {
  margin-left: 12px;
}

.simple-stack {
  padding: 0px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0px;
  height: max-content;
}
.simple-stack .simple-item .simple-icon {
  display: none;
}
/* se vuoi la 404 a tutta altezza come le TY, va già bene il tuo:
.thankyou section { height: 100vh; ... }
*/

@media (max-width: 991px) {
  .logo-bg {
    display: none !important  ;
  }
}

/* Nascondi/mostra il logo SOLO in homepage */
body.home header .intro-logo .logo-wrap {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.home header .intro-logo .logo-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Se il testo era gestito da .logo-che-appare, lo forzi visibile quando il wrap è visibile */
body.home header .intro-logo .logo-wrap.is-visible .logo-che-appare {
  opacity: 1;
  transform: none;
}

.new-btn {
  background-color: transparent;
  color: var(--primo-blu) !important;
  padding: 14px 35px;
  width: fit-content;

  margin-top: 20px;
  font-weight: 700 !important;
  position: relative;
  overflow: visible;
}

.new-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0px;
  width: 60px;
  height: 60px;
  background-color: var(--accent-color);
  border-radius: 100%;
  transition: all 0.3s linear;
  opacity: 1;
  z-index: -1;
  aspect-ratio: 1 / 1;
}

.new-btn:hover::before {
  left: auto;
  right: 35.5px !important;
}

.link {
  font-size: 24.5px;
  font-weight: bold;
  color: var(--accent-color);
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: 20px;
}
.link span,
.link svg {
  position: relative;
}
.link svg {
  margin-left: 15px;
  padding: 15px 0px 15px 0px;
  width: fit-content;
}

.link svg path {
  stroke-width: 5px;
  transition: all 0.3s ease 0.1s;
}

.link .color {
  width: 2em;
  height: 2em;
  border-radius: 2em;
  background-color: var(--primo-blu);
  position: absolute;
  top: 50%;
  transform: translatey(-50%);
  left: -0.65em;
}

.portfolio .link .color {
  background-color: var(--bianco);
}

.portfolio .link {
  color: var(--primo-blu);
}
.portfolio .link svg path {
  stroke: var(--bianco);
}
.portfolio .link:hover svg path {
  stroke: var(--primo-blu);
}
.link:hover svg path {
  stroke: var(--accent-color);
}
header .logo .progetto-text.is-active::after {
  content: "";
  display: inline-block;
  inline-size: 1em; /* larghezza icona */
  block-size: 1em; /* altezza icona */
  background-color: currentColor;
  opacity: 1;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.22s ease;
  will-change: transform;
  margin-right: 0.25em;

  -webkit-mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\
<path fill="black" d="M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"/>\
</svg>')
    no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\
<path fill="black" d="M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"/>\
</svg>')
    no-repeat center / contain;
}

.progetto-text::after {
  content: "";
  display: inline-block;
  inline-size: 1em;
  block-size: 1em;
  margin-right: 0.25em;
  background-color: currentColor; /* il colore dell'anello */
  opacity: 0;
  transition: all 0.3s linear;

  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.22s ease;

  /* anello: solo stroke, niente riempimento */
  -webkit-mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\
<circle cx="12" cy="12" r="9" fill="none" stroke="black" stroke-width="3"/>\
</svg>')
    no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\
<circle cx="12" cy="12" r="9" fill="none" stroke="black" stroke-width="3"/>\
</svg>')
    no-repeat center / contain;
}

.progetto-text:hover::after {
  opacity: 1;
}
