/* =====================================================================
   CARROUSEL CONTIERO — EFFETTI E ANIMAZIONI (Ossola Labs)
   ---------------------------------------------------------------------
   Questo file si aggiunge a style.css: non lo sostituisce.
   Tutto quello che si muove sta qui, in un posto solo.

   COSA C'E', IN ORDINE:
     1.  Passaggio morbido fra le pagine
     2.  Testata che si stringe scorrendo + logo vero
     3.  Il trenino che corre sotto la testata (avanzamento pagina)
     4.  Apertura (hero): zoom lento, luci, titolo che sale
     5.  Sigillo che gira (solo home)
     6.  Nastro con i tipi di evento che scorre
     7.  I numeri della famiglia (rulli)
     8.  Festone con le lampadine da giostra
     9.  Comparsa a cascata di schede e griglie
     10. Schede che si inclinano sotto il mouse
     11. Riflesso sui pulsanti
     12. Foto dei lavori (al posto dei riquadri vuoti)
     13. Lightbox, torna su, segnaposto
     14. Meno movimento: tutto fermo

   REGOLA: se il visitatore ha chiesto "meno movimento" al telefono o
   al computer, le animazioni si spengono (sezione 14).
   ===================================================================== */


/* =====================================================================
   1. PASSAGGIO MORBIDO FRA LE PAGINE (Chrome, Edge, Safari recenti)
   ===================================================================== */
@view-transition { navigation: auto; }
.cc-testata { view-transition-name: testata; }
::view-transition-old(root) { animation: fx-vt-esce .22s ease-in both; }
::view-transition-new(root) { animation: fx-vt-entra .42s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes fx-vt-esce  { to { opacity: 0; } }
@keyframes fx-vt-entra { from { opacity: 0; transform: translateY(10px); } }


/* =====================================================================
   2. TESTATA — logo vero e versione compatta quando si scorre
   ===================================================================== */
.cc-logo-ovale { display: block; flex: none; line-height: 0; }
.cc-logo-ovale img {
  display: block; width: auto; height: 58px;
  filter: drop-shadow(0 3px 6px rgba(120, 70, 10, .22));
  transition: height .35s cubic-bezier(.22, 1, .36, 1), transform .35s cubic-bezier(.22, 1, .36, 1);
}
.cc-logo:hover .cc-logo-ovale img { transform: rotate(-3deg) scale(1.04); }
.cc-pie .cc-logo-ovale img { height: 70px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }

.cc-testata { transition: background-color .3s ease, box-shadow .3s ease; }
.cc-testata-riga { transition: min-height .35s cubic-bezier(.22, 1, .36, 1), padding .35s cubic-bezier(.22, 1, .36, 1); }
.cc-testata.fx-stretta { box-shadow: 0 8px 28px rgba(27, 35, 64, .10); background: rgba(251, 246, 236, .97); }
.cc-testata.fx-stretta .cc-testata-riga { min-height: 60px; padding-block: 6px; }
.cc-testata.fx-stretta .cc-logo-ovale img { height: 46px; }

/* sottolineatura che scivola sotto le voci del menu */
.cc-nav-voce { position: relative; white-space: nowrap; }
.cc-nav-voce::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
  border-radius: 2px; background: var(--cc-oro);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.cc-nav-voce:hover::after { transform: scaleX(1); transform-origin: left; }
.cc-nav-voce[aria-current="page"]::after { display: none; }


/* =====================================================================
   3. IL TRENINO CHE CORRE SOTTO LA TESTATA
   Indica quanto manca alla fine della pagina. Il valore --fx-avanti
   va da 0 a 1 e lo scrive effetti.js mentre si scorre.
   ===================================================================== */
.fx-binario {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  pointer-events: none; --fx-avanti: 0;
}
.fx-binario-pieno {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--cc-rosso), var(--cc-oro) 70%, var(--cc-verde));
  transform: scaleX(var(--fx-avanti)); transform-origin: left;
}
.fx-trenino {
  position: absolute; bottom: 2px; left: 0;
  width: 46px; height: 17px;
  transform: translateX(calc(var(--fx-avanti) * (100vw - 52px)));
  opacity: 0; transition: opacity .3s ease;
  filter: drop-shadow(0 2px 2px rgba(27, 35, 64, .25));
}
.fx-binario.fx-in-viaggio .fx-trenino { opacity: 1; }
.fx-trenino svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fx-trenino .fx-ruota { transform-box: fill-box; transform-origin: center; animation: fx-gira .6s linear infinite paused; }
.fx-binario.fx-in-moto .fx-ruota { animation-play-state: running; }
.fx-trenino .fx-fumo { opacity: 0; }
.fx-binario.fx-in-moto .fx-fumo { animation: fx-fumo 1.1s ease-out infinite; }
.fx-binario.fx-in-moto .fx-fumo:nth-of-type(2) { animation-delay: .55s; }
@keyframes fx-gira { to { transform: rotate(360deg); } }
@keyframes fx-fumo {
  0%   { opacity: .75; transform: translate(0, 0) scale(.6); }
  100% { opacity: 0;   transform: translate(-9px, -9px) scale(1.5); }
}


/* =====================================================================
   4. APERTURA (hero) — zoom lento, luci di giostra, titolo che sale
   ===================================================================== */
.cc-hero-media { will-change: transform; }
.fx-pronto .cc-hero-media img { animation: fx-kenburns 16s cubic-bezier(.17, .67, .35, 1) both; }
@keyframes fx-kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }

/* luci sfocate che galleggiano sopra la foto */
.fx-luci { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cc-hero > .cc-wrap { position: relative; z-index: 1; }
.fx-luce {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--d); height: var(--d); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 150, .95) 0%, rgba(255, 190, 90, .45) 38%, transparent 70%);
  mix-blend-mode: screen; opacity: 0;
  animation: fx-luce var(--t) ease-in-out var(--r) infinite;
}
@keyframes fx-luce {
  0%   { opacity: 0;   transform: translate3d(0, 0, 0) scale(.7); }
  30%  { opacity: var(--o, .55); }
  70%  { opacity: calc(var(--o, .55) * .6); }
  100% { opacity: 0;   transform: translate3d(var(--dx), -60px, 0) scale(1.1); }
}

/* il titolo entra parola per parola, da sotto una "tendina" */
.fx-parola { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.fx-parola > span { display: inline-block; transform: translateY(105%); }
.fx-pronto .fx-parola > span {
  transform: none;
  transition: transform .95s cubic-bezier(.19, 1, .22, 1);
  transition-delay: calc(.15s + var(--i) * 55ms);
}
.fx-titolo-diviso { text-shadow: none; }
.cc-hero .fx-titolo-diviso .fx-parola > span { text-shadow: 0 2px 18px rgba(10, 14, 28, .5); }

/* occhiello, sottotitolo e pulsanti: arrivano dopo il titolo */
.fx-dopo { opacity: 0; transform: translateY(16px); }
.fx-pronto .fx-dopo {
  opacity: 1; transform: none;
  transition: opacity .8s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--fx-ritardo, .6s);
}

/* le aperture su tinta piatta (Chi siamo, Contatti...) prendono vita */
.cc-testa-pagina { position: relative; overflow: hidden; isolation: isolate; }
.cc-testa-pagina > .cc-wrap { position: relative; z-index: 1; }
.cc-testa-pagina::before {
  content: ""; position: absolute; z-index: 0; inset: -40% -10% auto auto;
  width: min(720px, 90vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, .22), transparent 65%);
  animation: fx-respiro 9s ease-in-out infinite alternate;
}
@keyframes fx-respiro { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6%, 8%) scale(1.12); } }

/* freccina "scorri" in fondo all'apertura della home */
.fx-scorri {
  position: absolute; left: 50%; bottom: 18px; z-index: 2;
  width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px;
}
.fx-scorri::before {
  content: ""; position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: #fff; animation: fx-scorri 1.8s ease-in-out infinite;
}
@keyframes fx-scorri { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }


/* =====================================================================
   5. SIGILLO CHE GIRA — scritta circolare attorno a una giostrina
   ===================================================================== */
.fx-sigillo {
  position: absolute; z-index: 1;
  right: max(24px, calc((100vw - var(--cc-max)) / 2 + 24px));
  bottom: clamp(56px, 9vh, 96px);
  width: 156px; height: 156px; pointer-events: none;
}
.fx-sigillo::before {
  content: ""; position: absolute; inset: 3%; border-radius: 50%;
  background: rgba(17, 22, 40, .42); border: 1px solid rgba(255, 243, 214, .28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.fx-sigillo-anello { position: absolute; inset: 0; width: 100%; height: 100%; animation: fx-rotazione 28s linear infinite; }
.fx-sigillo-anello text {
  font-family: var(--cc-font-testi); font-size: 13.4px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; fill: #FFF3D6;
}
.fx-sigillo-cuore {
  position: absolute; inset: 20%; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #F1C76E, var(--cc-oro) 55%, #B9832A);
  box-shadow: 0 10px 30px rgba(10, 14, 28, .45), inset 0 0 0 3px rgba(255, 255, 255, .35);
  color: var(--cc-notte);
}
.fx-sigillo-cuore svg { width: 52%; height: 52%; animation: fx-dondola 3.2s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes fx-rotazione { to { transform: rotate(360deg); } }
@keyframes fx-dondola { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.fx-sigillo { opacity: 0; transform: scale(.6) rotate(-40deg); }
.fx-pronto .fx-sigillo {
  opacity: 1; transform: none;
  transition: opacity .8s ease 1.1s, transform 1.2s cubic-bezier(.22, 1.4, .36, 1) 1.1s;
}


/* =====================================================================
   6. NASTRO CHE SCORRE — i tipi di evento, come un'insegna
   ===================================================================== */
/* il nastro taglia il bordo basso della foto: niente spazio in più */
.fx-nastro-zona { overflow: hidden; padding-block: 22px; margin-top: -34px; margin-bottom: -14px; position: relative; z-index: 2; }
.fx-nastro {
  transform: rotate(-1.6deg); margin-inline: -20px;
  background: var(--cc-rosso); color: var(--cc-crema);
  border-block: 3px solid var(--cc-oro);
  box-shadow: 0 14px 34px rgba(163, 39, 34, .22);
  overflow: hidden;
}
.fx-nastro-binario { display: flex; width: max-content; animation: fx-nastro 38s linear infinite; }
.fx-nastro:hover .fx-nastro-binario { animation-play-state: paused; }
.fx-nastro-elenco { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; flex: none; }
.fx-nastro-elenco li {
  display: inline-flex; align-items: center; gap: 22px; padding: 15px 0 15px 22px;
  font-family: var(--cc-font-titoli); font-style: italic; font-weight: 600;
  font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); white-space: nowrap;
}
.fx-nastro-elenco li::after {
  content: ""; width: 12px; height: 12px; flex: none;
  background: var(--cc-oro); transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}
@keyframes fx-nastro { to { transform: translateX(-50%); } }


/* =====================================================================
   7. I NUMERI DELLA FAMIGLIA — cifre che girano come un contatore
   ===================================================================== */
.fx-numeri {
  display: grid; gap: var(--s2); grid-template-columns: 1fr 1fr;
  margin: 0; padding: 0; list-style: none;
}
.fx-numero {
  position: relative; overflow: hidden;
  padding: var(--s3) var(--s2) var(--s3);
  background: var(--cc-bianco); border: 1px solid var(--cc-bordo);
  border-radius: var(--r-l); text-align: center; box-shadow: var(--sh-1);
}
.fx-numero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--cc-rosso), var(--cc-oro));
}
.fx-numero-cifra {
  display: flex; justify-content: center; align-items: baseline;
  font-family: var(--cc-font-titoli); font-weight: 700;
  font-size: clamp(2.8rem, 2.2rem + 2.4vw, 4.2rem); line-height: 1;
  color: var(--cc-rosso);
}
.fx-numero:nth-child(even) .fx-numero-cifra { color: var(--cc-verde); }
.fx-rullo { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.fx-rullo-striscia { display: block; transform: translateY(0); }
.fx-rullo-striscia > span { display: block; height: 1em; }
.fx-numero-eti { display: block; margin-top: 10px; font-size: .9375rem; font-weight: 600; color: var(--cc-notte-2); line-height: 1.35; }
@media (min-width: 900px) { .fx-numeri { grid-template-columns: repeat(4, 1fr); gap: var(--s3); } }


/* =====================================================================
   8. FESTONE CON LE LAMPADINE — come il bordo del tetto di una giostra
   ===================================================================== */
.cc-festone { position: relative; height: 24px; }
.cc-festone::before, .cc-festone::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24px;
  background-image: radial-gradient(circle at 13px 15px, #FFF6CF 0 1.3px, #FFC94A 2.3px, #E59A12 3.3px, rgba(229, 154, 18, .32) 4.8px, transparent 7.5px);
  background-size: 52px 24px; background-repeat: repeat-x;
  animation: fx-lampadine 1.4s steps(1, end) infinite;
}
.cc-festone::after { background-position: 26px 0; animation-delay: -.7s; }
@keyframes fx-lampadine { 0% { opacity: 1; } 50% { opacity: .22; } }
.cc-festone-sopra::before, .cc-festone-sopra::after { animation-direction: reverse; }


/* =====================================================================
   9. COMPARSA A CASCATA — le schede arrivano una dopo l'altra
   (la classe cc-entra-vista la mette main.js quando la griglia entra
   nello schermo; effetti.js aggiunge fx-cascata e il numero --i)
   ===================================================================== */
/* lo spostamento vale SOLO prima della comparsa: dopo, il blocco torna al
   suo posto (prima restava 26px più in basso e toccava le schede sotto) */
.cc-entra:not(.cc-entra-vista) { transform: translateY(26px); }
.cc-entra-vista { transform: none; transition: opacity .8s ease-out, transform .9s cubic-bezier(.22, 1, .36, 1); }
.cc-entra.fx-cascata { opacity: 1; transform: none; }
.fx-cascata:not(.cc-entra-vista) > * { opacity: 0; }
.fx-cascata.cc-entra-vista > * {
  animation: fx-sale .9s cubic-bezier(.22, 1, .36, 1) backwards;
  animation-delay: calc(min(var(--i, 0), 8) * 95ms);
}
@keyframes fx-sale { from { opacity: 0; transform: translateY(34px) scale(.97); } }

/* le foto si "aprono" come un sipario */
.fx-sipario { clip-path: inset(0 0 0 0); }
.cc-entra:not(.cc-entra-vista) .fx-sipario { clip-path: inset(12% 8% 12% 8% round 24px); }
.cc-entra-vista .fx-sipario { transition: clip-path 1.2s cubic-bezier(.22, 1, .36, 1) .1s; }
.cc-entra:not(.cc-entra-vista) .fx-sipario img { transform: scale(1.18); }
.cc-entra-vista .fx-sipario img { transition: transform 1.6s cubic-bezier(.22, 1, .36, 1) .1s; }

/* le foto delle due porte si avvicinano piano al passaggio del mouse */
.cc-porta-media img, .cc-scheda-media img { transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.cc-porta:hover .cc-porta-media img, .cc-scheda-link:hover .cc-scheda-media img { transform: scale(1.07); }
.cc-scheda-media { overflow: hidden; }


/* =====================================================================
   10. SCHEDE CHE SI INCLINANO SOTTO IL MOUSE (solo con il mouse)
   ===================================================================== */
@media (hover: hover) and (pointer: fine) {
  .fx-inclina {
    transform: perspective(1000px) rotateX(var(--fx-rx, 0deg)) rotateY(var(--fx-ry, 0deg)) translateY(var(--fx-su, 0px));
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
  }
  .fx-inclina.fx-sotto-mouse { transition: transform .12s linear, box-shadow .3s ease; --fx-su: -6px; }
  .fx-inclina::before {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    border-radius: inherit; opacity: 0; transition: opacity .3s ease;
    background: radial-gradient(520px circle at var(--fx-mx, 50%) var(--fx-my, 50%), rgba(255, 255, 255, .22), transparent 42%);
  }
  .fx-inclina.fx-sotto-mouse::before { opacity: 1; }
  .cc-porta.fx-inclina:hover, .cc-scheda.fx-inclina:hover { transform: perspective(1000px) rotateX(var(--fx-rx, 0deg)) rotateY(var(--fx-ry, 0deg)) translateY(var(--fx-su, -4px)); }
  .cc-scheda.fx-inclina { position: relative; }
}


/* =====================================================================
   11. RIFLESSO SUI PULSANTI PIENI
   ===================================================================== */
.cc-btn-primario, .cc-btn-oro, .cc-btn-wa { position: relative; overflow: hidden; isolation: isolate; }
.cc-btn-primario::after, .cc-btn-oro::after, .cc-btn-wa::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg) translateX(0); transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
.cc-btn-primario:hover::after, .cc-btn-oro:hover::after, .cc-btn-wa:hover::after { transform: skewX(-18deg) translateX(420%); }
.cc-btn:active { transform: scale(.97); }
.cc-btn-grande.cc-btn-oro { box-shadow: 0 10px 26px rgba(217, 164, 65, .35); }
.cc-btn-grande.cc-btn-oro:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(217, 164, 65, .45); }

/* il pulsante WhatsApp fisso "respira" ogni tanto, per farsi notare */
.cc-wa-fisso::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--cc-whatsapp); animation: fx-onda 3.2s ease-out infinite;
}
@keyframes fx-onda { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.55); opacity: 0; } }


/* =====================================================================
   12. FOTO DEI LAVORI — al posto dei riquadri vuoti
   ===================================================================== */
.cc-lavoro {
  position: relative; margin: 0; border-radius: var(--r-l); overflow: hidden;
  background: var(--cc-notte); box-shadow: var(--sh-2); isolation: isolate;
}
.cc-lavoro img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s cubic-bezier(.22, 1, .36, 1); }
.cc-lavoro:hover img { transform: scale(1.06); }
.cc-lavoro::after {
  content: ""; position: absolute; inset: 40% 0 0; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(17, 22, 40, .82));
}
.cc-lavoro figcaption {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2;
  font-family: var(--cc-font-titoli); font-weight: 600; font-size: 1.12rem; line-height: 1.25;
  color: var(--cc-bianco);
}


/* =====================================================================
   13. LIGHTBOX, TORNA SU, SEGNAPOSTO
   ===================================================================== */
.fx-lb-entra { animation: fx-lb .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes fx-lb { from { opacity: 0; transform: scale(.94); } }

.fx-su {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  display: none; place-items: center; width: 52px; height: 52px; padding: 0;
  border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cc-notte); color: var(--cc-crema); box-shadow: var(--sh-2);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1), background-color .2s;
}
.fx-su svg { width: 22px; height: 22px; }
.fx-su:hover { background: var(--cc-rosso); }
.fx-su:focus-visible { outline: 3px solid var(--cc-oro); outline-offset: 3px; }
.fx-su.fx-visibile { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 768px) { .fx-su { display: grid; } }

/* i dati ancora da confermare: restano visibili, ma con garbo */
.da-confermare {
  padding: .1em .55em .12em; border: 1px dashed #C9A13B; border-radius: 8px;
  background: #FFF7DE; color: #6B4F00; font-weight: 600; font-size: .86em; letter-spacing: .01em;
}


/* il menu del telefono: le voci entrano una alla volta */
.cc-drawer:not([hidden]) .cc-drawer-elenco > li,
.cc-drawer:not([hidden]) .cc-drawer-lingue,
.cc-drawer:not([hidden]) .cc-drawer-azioni {
  animation: fx-da-destra .55s cubic-bezier(.22, 1, .36, 1) backwards;
  animation-delay: calc(.08s + var(--i, 0) * 45ms);
}
@keyframes fx-da-destra { from { opacity: 0; transform: translateX(28px); } }


/* =====================================================================
   SU TELEFONO E TABLET
   ===================================================================== */
@media (max-width: 1023px) {
  .fx-scorri { display: none; }
}
@media (max-width: 767px) {
  .cc-logo-ovale img { height: 50px; }
  .cc-testata.fx-stretta .cc-logo-ovale img { height: 42px; }
  .cc-pie .cc-logo-ovale img { height: 64px; }
  .fx-sigillo { display: none; }
  .fx-nastro-zona { padding-block: 16px; margin-top: -26px; margin-bottom: -10px; }
  .fx-numero { padding: var(--s3) var(--s1); }
  .cc-lavoro figcaption { font-size: 1.02rem; }
}


/* =====================================================================
   14. MENO MOVIMENTO — chi l'ha chiesto vede tutto fermo
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .fx-pronto .cc-hero-media img, .fx-luce, .fx-sigillo-anello, .fx-sigillo-cuore svg,
  .fx-nastro-binario, .cc-festone::before, .cc-festone::after, .cc-testa-pagina::before,
  .fx-scorri::before, .cc-wa-fisso::before, .fx-trenino .fx-ruota, .fx-fumo,
  .fx-cascata.cc-entra-vista > *, .fx-lb-entra,
  .cc-drawer:not([hidden]) .cc-drawer-elenco > li, .cc-drawer:not([hidden]) .cc-drawer-lingue,
  .cc-drawer:not([hidden]) .cc-drawer-azioni { animation: none !important; }
  .fx-parola > span, .fx-dopo, .fx-sigillo { transform: none !important; opacity: 1 !important; transition: none !important; }
  .fx-cascata:not(.cc-entra-vista) > * { opacity: 1; }
  .cc-entra:not(.cc-entra-vista) .fx-sipario { clip-path: none; }
  .cc-entra:not(.cc-entra-vista) .fx-sipario img { transform: none; }
  .fx-luci, .fx-scorri { display: none; }
  .fx-nastro-binario { flex-wrap: wrap; width: auto; }
  .fx-nastro-elenco[aria-hidden="true"] { display: none; }
  .fx-nastro-elenco { flex-wrap: wrap; justify-content: center; }
  .cc-btn-primario::after, .cc-btn-oro::after, .cc-btn-wa::after { display: none; }
}

/* i pulsanti social con il link ancora da inserire ("[LINK FACEBOOK]"...)
   restano nascosti: compaiono da soli quando si mette il link vero */
.cc-social-btn[href^="["] { display: none; }


/* =====================================================================
   15. MAPPA INTERATTIVA "LAVORIAMO IN TUTTA ITALIA"
   (il disegno lo mette nella pagina effetti.js, sezione 10)
   ===================================================================== */
@media (min-width: 900px) {
  .cc-mappa { grid-template-columns: minmax(0, 410px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding: clamp(24px, 3vw, 40px); }
}
.fx-mappa-tela { position: relative; width: 100%; max-width: 410px; margin-inline: auto; }
.fx-mappa-svg { display: block; width: 100%; height: auto; overflow: visible; -webkit-tap-highlight-color: transparent; }
.fx-mappa-svg text, .fx-mappa-svg .bordo, .fx-rotte, .fx-scelta, .fx-onde, .fx-mappa-svg path:not(.fx-reg) { pointer-events: none; }

/* le regioni */
.fx-reg { cursor: pointer; outline: none; transition: fill .25s ease, opacity .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
.fx-mappa-svg .it.fx-reg:hover { fill: #E6D3A2; }
.fx-mappa-svg .hl.fx-reg:hover { fill: #A32722; }
.fx-mappa-svg .it.fx-attiva { fill: #E3BF67; }
.fx-mappa-svg .hl.fx-attiva { fill: #8E1F1B; }
.fx-reg.fx-attiva { transform: translateY(-2px); }
.fx-reg:focus-visible { stroke: var(--cc-notte); stroke-width: 2.4; }

/* arrivo: l'Italia si compone da nord a sud, poi il rosso delle regioni di casa */
.fx-mappa-tela:not(.fx-mappa-viva) .fx-reg,
.fx-mappa-tela:not(.fx-mappa-viva) text,
.fx-mappa-tela:not(.fx-mappa-viva) .fx-stella { opacity: 0; }
.fx-mappa-viva .fx-reg { animation: fx-regione .7s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.fx-mappa-viva .hl.fx-reg {
  animation: fx-regione .7s cubic-bezier(.22, 1, .36, 1) backwards, fx-colora .8s ease backwards;
  animation-delay: calc(var(--i, 0) * 45ms), calc(1.05s + var(--j, 0) * .2s);
}
.fx-mappa-viva text { animation: fx-appare .6s ease 1.7s backwards; }
@keyframes fx-regione { from { opacity: 0; transform: translateY(10px); } }
@keyframes fx-colora  { from { fill: #EDE4CF; } }
@keyframes fx-appare  { from { opacity: 0; } }

/* la stella della Valle Vigezzo e le sue onde */
.fx-stella { cursor: pointer; outline: none; transform-box: fill-box; transform-origin: center; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.fx-stella:hover, .fx-stella.fx-attiva, .fx-mappa-svg[data-gruppo="vv"] .fx-stella { transform: scale(1.35); }
.fx-stella:focus-visible { stroke: var(--cc-rosso); stroke-width: 2.4; }
.fx-mappa-viva .fx-stella { animation: fx-stella .8s cubic-bezier(.3, 1.6, .5, 1) .45s backwards; }
@keyframes fx-stella { from { opacity: 0; transform: scale(0) rotate(-90deg); } }
.fx-onda-mappa { fill: none; stroke: var(--cc-oro); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.fx-mappa-viva .fx-onda-mappa { animation: fx-onda-mappa 2.8s ease-out 1s infinite; }
.fx-mappa-viva .fx-onda-mappa:nth-child(2) { animation-delay: 2.4s; }
@keyframes fx-onda-mappa { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.6); } }

/* le rotte verso il resto d'Italia */
.fx-rotta {
  fill: none; stroke: var(--cc-notte); stroke-opacity: .55; stroke-width: 1.5;
  stroke-dasharray: 2 5; stroke-linecap: round;
  animation: fx-formiche 1.4s linear infinite;
}
@keyframes fx-formiche { to { stroke-dashoffset: -7; } }
.fx-rotta-maschera {
  fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.fx-mappa-viva .fx-rotta-maschera {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s cubic-bezier(.5, 0, .2, 1) calc(1.9s + var(--k, 0) * .22s);
}
.fx-viaggiatore { fill: var(--cc-rosso); stroke: #fff; stroke-width: 1.4; }

/* la linea verso la regione scelta */
.fx-scelta { opacity: 0; transition: opacity .2s ease; }
.fx-scelta.fx-visibile { opacity: 1; }
.fx-rotta-scelta, .fx-rotta-alone {
  fill: none; stroke: var(--cc-notte); stroke-width: 2.4; stroke-linecap: round;
  transition: stroke-dashoffset .65s cubic-bezier(.22, 1, .36, 1);
}
.fx-rotta-alone { stroke: #fff; stroke-width: 6; stroke-opacity: .9; }
.fx-arrivo { fill: var(--cc-rosso); stroke: #fff; stroke-width: 2.2; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.fx-scelta.fx-arrivato .fx-arrivo { transform: scale(1); }

/* l'etichetta col nome che segue il mouse o il dito */
.fx-mappa-nuvola {
  position: absolute; z-index: 3; left: 0; top: 0;
  transform: translate(-50%, calc(-100% - 12px));
  padding: 6px 11px; border-radius: 9px;
  background: var(--cc-notte); color: var(--cc-crema);
  font-size: .8125rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(27, 35, 64, .25);
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.fx-mappa-nuvola::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px;
  margin-left: -5px; background: inherit; transform: rotate(45deg);
}
.fx-mappa-nuvola.fx-visibile { opacity: 1; }

/* la legenda accende il suo gruppo */
.fx-legenda-voce { margin-left: -8px; padding: 4px 8px; border-radius: 8px; transition: background-color .2s ease; }
.fx-legenda-voce:hover { background: var(--cc-crema-2); }
.fx-mappa-svg[data-gruppo] .fx-reg { opacity: .3; }
.fx-mappa-svg[data-gruppo="casa"] .fx-reg[data-tipo="casa"],
.fx-mappa-svg[data-gruppo="rich"] .fx-reg[data-tipo="rich"] { opacity: 1; }
.fx-mappa-svg[data-gruppo="vv"] .fx-reg { opacity: .55; }

/* la scheda che racconta la regione scelta */
.fx-mappa-scheda {
  margin-top: var(--s3); padding: 16px 18px; min-height: 140px;
  border-radius: var(--r-m); background: var(--cc-crema);
  border: 1.5px dashed #DCCBA3;
  display: grid; align-content: center; gap: 6px; justify-items: start;
}
.fx-scheda-nuova { animation: fx-scheda .45s cubic-bezier(.22, 1, .36, 1); }
@keyframes fx-scheda { from { opacity: 0; transform: translateY(8px); } }
.fx-mappa-invito { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 600; color: var(--cc-notte-2); }
.fx-mappa-invito svg { width: 30px; height: 30px; flex: none; color: var(--cc-rosso); animation: fx-tocca 2.2s ease-in-out infinite; }
@keyframes fx-tocca { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.fx-mappa-tipo {
  display: inline-flex; padding: 4px 11px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.fx-tipo-casa { background: var(--cc-rosso-tenue); color: var(--cc-rosso-scuro); }
.fx-tipo-rich { background: #FBF0D5; color: #7A5410; }
.fx-tipo-vv   { background: var(--cc-verde-tenue); color: var(--cc-verde-scuro); }
.fx-mappa-nome { margin: 2px 0 0; font-family: var(--cc-font-titoli); font-weight: 600; font-size: 1.45rem; line-height: 1.15; color: var(--cc-notte); }
.fx-mappa-testo { margin: 0; font-size: .9875rem; color: #545C78; max-width: 46ch; }
.fx-mappa-scheda .cc-link-freccia { min-height: 36px; color: var(--cc-rosso); }
.fx-mappa-scheda .fx-tipo-vv ~ .cc-link-freccia { color: var(--cc-verde); }

@media (max-width: 767px) {
  .fx-mappa-tela { max-width: 330px; }
  .fx-mappa-scheda { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-mappa-viva .fx-reg, .fx-mappa-viva .hl.fx-reg, .fx-mappa-viva text, .fx-mappa-viva .fx-stella,
  .fx-mappa-viva .fx-onda-mappa, .fx-rotta, .fx-mappa-invito svg, .fx-scheda-nuova { animation: none !important; }
  .fx-rotta-maschera { stroke-dashoffset: 0; transition: none !important; }
}
