/* Flowers Dev — stile comune a tutte le pagine.
   Le classi .c-<servizio> con i loro colori le aggiunge build.mjs in fondo al file.
   Regole: caratteri dritti, pesi 600–700, titoli fino a 35 px; pagine larghe, senza fasce vuote ai lati. */

/* Inter servito dal sito (file variabile di Google Fonts, licenza OFL): nessuna richiesta a server esterni. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F6F4FB; --surface: #FFFFFF; --ink: #16181D; --muted: #5B5970; --line: #DFDDEB; --soft: #ECEAF5;
  --pad: clamp(16px, 4.2vw, 80px); --max: 1760px; --r: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --cc: var(--ink); --ct: var(--ink); --ti: var(--soft); --su: var(--bg);
  /* petali: base, metà e punta per ogni servizio */
  --p-app: #2F5BEA; --p-app-m: #7593FF; --p-app-c: #C9D6FF;
  --p-web: #7048E8; --p-web-m: #9F86FF; --p-web-c: #DDD3FF;
  --p-str: #E8590C; --p-str-m: #FF8A47; --p-str-c: #FFD4B8;
  --p-gra: #D6336C; --p-gra-m: #F2709D; --p-gra-c: #FFCCDD;
  --polline: #E39A2D; --cuore: #6E3A12; --alone: #C3B2FF; --vena: rgba(255, 255, 255, .5);
  --foglia: #2C9A63; --suolo: #E7E0F3; --radice: #9A876E;
  /* il neon del marchio: ciano, blu, viola, rosa, arancio, ambra */
  --n0: #0E9FC2; --n1: #2F5BEA; --n2: #7048E8; --n3: #D6336C; --n4: #E8590C; --n5: #E39A2D;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0919; --surface: #110F27; --ink: #EEEBFF; --muted: #A09BCC; --line: #27234F; --soft: #19163A;
    --p-app: #3D6BFF; --p-app-m: #7E9BFF; --p-app-c: #9DB4FF;
    --p-web: #7E58FF; --p-web-m: #A890FF; --p-web-c: #BBA8FF;
    --p-str: #FF6A1F; --p-str-m: #FF9A5C; --p-str-c: #FFB98E;
    --p-gra: #EC4A82; --p-gra-m: #FF84AE; --p-gra-c: #FFA8C8;
    --polline: #FFC15E; --cuore: #3A1E08; --alone: #7B5CF0; --vena: rgba(255, 255, 255, .3);
    --foglia: #3FBF7F; --suolo: #1A1736; --radice: #B9A78F;
    --n0: #22D3EE; --n1: #3D7BFF; --n2: #8B5CF6; --n3: #EC4899; --n4: #FF7A2F; --n5: #FFC15E;
    color-scheme: dark;
  }
}

/* ---------- cielo e petali in volo, dietro la pagina ---------- */
.cielo { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cielo > svg, .cielo-piede svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.st1, .st2, .st3 { animation: brilla ease-in-out infinite; }
.st1 { animation-duration: 5s; } .st2 { animation-duration: 8s; } .st3 { animation-duration: 12s; }
@keyframes brilla { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-color-scheme: light) {
  .cielo .c-fondo, .cielo .c-polvere { display: none; }
  .cielo .c-neb { opacity: .5; }
  .cielo .c-stelle circle { fill: #4B3FB0; }
  .cielo .c-stelle { opacity: .3; }
}
.volo { position: absolute; left: var(--l); top: var(--t); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); animation: vaX var(--tx) ease-in-out var(--fx) infinite alternate; }
.volo > .y { width: 100%; height: 100%; animation: vaY var(--ty) ease-in-out var(--fy) infinite alternate; }
.volo svg { display: block; width: 100%; height: 100%; overflow: visible; rotate: var(--r); opacity: .5; }
@media (prefers-color-scheme: dark) { .volo svg { opacity: .72; filter: drop-shadow(0 0 6px rgba(190, 170, 255, .4)); } }
@media (max-width: 760px) { .volo:nth-child(n+5) { display: none; } .volo svg { opacity: .32 !important; } }
@keyframes vaX { from { transform: translateX(calc(var(--dx) * -1)); } to { transform: translateX(var(--dx)); } }
@keyframes vaY { from { transform: translateY(calc(var(--dy) * -1)) rotate(-30deg); } to { transform: translateY(var(--dy)) rotate(30deg); } }
.volo-liberi .volo, .volo-liberi .volo > .y { animation: none; }
.volo-liberi .volo { will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  html.js .volo { opacity: 0; transition: opacity 1.8s ease; }
  html.js.volo-liberi .volo { opacity: 1; }
}
.cadente-js { position: absolute; border-radius: 2px; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95)); }
@media (prefers-color-scheme: light) { .cadente-js { background: linear-gradient(90deg, rgba(75, 63, 176, 0), rgba(75, 63, 176, .5)); } }
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.salta { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.salta:focus { left: 16px; }
.num { font-variant-numeric: tabular-nums; }
.solo-lettori { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- testata e menu ---------- */
.testata { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); view-transition-name: testata; }
.testata .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; white-space: nowrap; }
.logo .segno { width: 34px; height: 34px; flex: none; color: var(--ink); transition: transform .8s var(--ease); }
.logo:hover .segno { transform: rotate(72deg) scale(1.06); }
.logo .parola { font-size: 19px; font-weight: 700; letter-spacing: -.035em; }
.dev { background: linear-gradient(90deg, var(--n1), var(--n2) 45%, var(--n3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .logo .segno { filter: drop-shadow(0 0 5px rgba(139, 92, 246, .6)); } }
.menu { display: flex; align-items: center; gap: 2px; }
.menu a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s, background .2s; }
.menu a:hover { color: var(--ink); background: var(--soft); }
.menu a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.menu .contatta { margin-left: 8px; color: var(--bg); background: var(--ink); }
.menu .contatta:hover { color: var(--bg); background: var(--ink); opacity: .88; }
.lingue { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lingue a { display: inline-grid; place-items: center; min-width: 40px; min-height: 36px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--muted); text-decoration: none; transition: color .2s, background .2s; }
.lingue a:hover { color: var(--ink); }
.lingue a[aria-current="true"] { color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.apri-menu { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.apri-menu .barre { width: 16px; height: 10px; position: relative; }
.apri-menu .barre::before, .apri-menu .barre::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.apri-menu .barre::before { top: 0; } .apri-menu .barre::after { top: 8px; }
.apri-menu[aria-expanded="true"] .barre::before { top: 4px; transform: rotate(45deg); }
.apri-menu[aria-expanded="true"] .barre::after { top: 4px; transform: rotate(-45deg); }
@media (max-width: 980px) {
  html.js .apri-menu { display: inline-flex; }
  html.js .menu { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px var(--pad) 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .35); }
  html.js .menu.aperto { display: flex; animation: cala .32s var(--ease) both; }
  html.js .menu a { min-height: 48px; font-size: 16px; padding: 0 14px; }
  html.js .menu .contatta { margin: 8px 0 0; justify-content: center; }
  html:not(.js) .testata .wrap { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .menu { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .testata .wrap { gap: 10px; }
  .logo { gap: 8px; } .logo .parola { font-size: 17px; } .logo .segno { width: 30px; height: 30px; }
  .apri-menu { flex: none; width: 44px; padding: 0; justify-content: center; }
  .apri-menu-testo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lingue a { min-width: 36px; padding: 0 8px; }
}
@keyframes cala { from { opacity: 0; translate: 0 -10px; } }

/* ---------- elementi comuni ---------- */
.occhiello, .micro { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vivo { width: 8px; height: 8px; border-radius: 50%; background: var(--foglia); animation: pulsa 2.4s ease-out infinite; }
@keyframes pulsa { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--foglia) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
h1 { margin: 16px 0 0; font-size: 35px; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; max-width: 24ch; }
h2 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.intro { margin: 20px 0 0; max-width: 60ch; font-size: 18px; color: var(--muted); }
.azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .25s var(--ease), background .2s, opacity .2s; }
.btn.pieno { background: var(--ink); color: var(--bg); }
.btn.vuoto { border: 1px solid var(--line); background: var(--surface); }
.btn:hover { transform: translateY(-2px); }
.freccia { display: inline-block; transition: transform .3s var(--ease); }
a:hover > .freccia, a:hover .freccia { transform: translateX(4px); }
.freccia.su { transform: none; }
a:hover .freccia.su { transform: translate(3px, -3px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li, .chips a { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; }
.chips a { display: inline-flex; align-items: center; gap: 6px; transition: background .2s; }
.chips a:hover { background: var(--ti); }
.chips.grandi { gap: 8px; }
.chips.grandi li { font-size: 14px; padding: 7px 14px; background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line); }
.pallino { width: 8px; height: 8px; border-radius: 50%; background: var(--cc); flex: none; }
.sezione { padding: 88px 0 0; }
.sezione-testa { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 30px; }
.sezione-testa p { margin: 10px 0 0; max-width: 62ch; color: var(--muted); font-size: 16px; }
.sezione-testa .micro { margin-bottom: 10px; }
/* i numeri dei lavori, a destra nella testa di «Lavori scelti» (prima stavano in «In breve») */
.conti { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 0; padding: 0; list-style: none; }
.conti li { display: grid; gap: 5px; }
.conti b { font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -.02em; color: var(--ct); }
.conti span { font-size: 13px; font-weight: 600; color: var(--muted); }
.link-freccia { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }
.link-freccia:hover { text-decoration: underline; text-underline-offset: 3px; }
.briciole { margin: 0; font-size: 14px; color: var(--muted); }
.briciole a { text-decoration: none; font-weight: 600; } .briciole a:hover { text-decoration: underline; }

/* ---------- entrata e comparsa ---------- */
.entra { animation: sale .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes sale { from { opacity: 0; translate: 0 18px; } }
html.js [data-rivela] { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
html.js [data-rivela].visto { opacity: 1; translate: 0 0; }

/* ---------- i fiori: rose matematiche al neon ---------- */
.rosa { display: block; width: 100%; height: auto; overflow: visible; }
.rosa .anello { transform-box: view-box; transform-origin: 0 0; }
.rosa .anello path { fill-opacity: var(--riempi, .18); }
.rosa .hud { opacity: .7; }
.f-cuore { fill: var(--cuore); }
.seme { fill: var(--polline); transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-color-scheme: dark) { .rosa { filter: drop-shadow(0 0 7px rgba(139, 92, 246, .42)); } }
.rosa.sboccia .petalo { stroke-dasharray: 1; }
@media (prefers-reduced-motion: no-preference) {
  /* sbocciare: i tratti dei petali si disegnano (prima l'anello esterno), poi si riempiono; poi i semi a spirale */
  .rosa.sboccia .petalo { animation: traccia 1.5s var(--ease) var(--d, 0s) both, riempie 1.2s ease calc(var(--d, 0s) + .8s) both; }
  .rosa.sboccia .seme { animation: semina .7s var(--ease) var(--d, 0s) both; }
  .rosa.sboccia .hud { animation: appare 1.4s ease var(--d, 0s) both; }
  .rosa .brilla { animation: semina .7s var(--ease) var(--d, 0s) both, luccica 3.6s ease-in-out calc(var(--d, 0s) + 1s) infinite; }
  /* dentro le schede il fiore aspetta di entrare in vista (moto.js aggiunge .visto) */
  html.js .in-vista .rosa.sboccia :is(.petalo, .seme, .hud) { animation-play-state: paused; }
  html.js .in-vista.visto .rosa.sboccia :is(.petalo, .seme, .hud) { animation-play-state: running; }
}
@keyframes traccia { from { stroke-dashoffset: 1; } }
@keyframes riempie { from { fill-opacity: 0; } }
@keyframes appare { from { opacity: 0; } }
@keyframes semina { from { transform: scale(0); opacity: 0; } }
@keyframes luccica { 50% { opacity: .35; } }
@keyframes ruota { to { transform: rotate(360deg); } }
@keyframes respira { from { transform: scale(.975) rotate(-1.6deg); } to { transform: scale(1.025) rotate(1.6deg); } }

/* ---------- home: apertura ---------- */
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: min(calc(100svh - 67px), 900px); padding: 40px 0 48px; }
.hero > .wrap { width: 100%; }
.hero-arte, .hero-clienti { position: absolute; top: 50%; right: max(-12vw, calc((100vw - var(--max)) / 2 - 2vw)); width: min(58vw, 860px, calc(100svh - 110px)); aspect-ratio: 1; translate: 0 -50%; pointer-events: none; }
.hero-arte { z-index: -1; }
/* i nostri clienti: stessa scatola del fiore; il seme è sull'anello a 135°, l'etichetta in fondo al filo (x -103, y 82) */
.hero-clienti { z-index: 1; }
.hc-filo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hc-linea { fill: none; stroke: color-mix(in srgb, var(--n2) 72%, transparent); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.hc-seme { fill: var(--n0); }
.hc-alone { fill: none; stroke: var(--n0); stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: .45; }
@media (prefers-color-scheme: dark) { .hc-seme { filter: drop-shadow(0 0 4px var(--n0)); } }
.hc-etichetta { position: absolute; right: 95.98%; width: max-content; top: 86.61%; translate: 0 -50%; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; pointer-events: auto; }
.hc-etichetta h2 { margin: 0; font-size: 11px; line-height: 1.3; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hc-etichetta ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.hc-etichetta a { display: block; border-radius: 6px; transition: filter .25s; }
.hc-etichetta a:hover, .hc-etichetta a:focus-visible { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--n0) 50%, transparent)); }
.hc-etichetta img { display: block; width: auto; max-width: none; height: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .hc-seme { transform-box: fill-box; transform-origin: center; animation: semina .5s var(--ease) 2.2s both; }
  .hc-linea { animation: hc-appare .8s var(--ease) 2.4s both; }
  .hc-alone { transform-box: fill-box; transform-origin: center; animation: hc-alone 3s ease-out 2.8s infinite both; }
  .hc-etichetta { animation: hc-appare .7s var(--ease) 3s both; }
}
@keyframes hc-alone { from { transform: scale(.55); opacity: .7; } 75%, to { transform: scale(1.9); opacity: 0; } }
@keyframes hc-appare { from { opacity: 0; } }
.hero-arte .rosa { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-arte .rosa, .s-hero-arte .rosa { animation: ruota 320s linear infinite; }
  .hero-arte .a0 { animation: respira 11s ease-in-out infinite alternate; }
  .hero-arte .a1 { animation: respira 9s ease-in-out -3s infinite alternate-reverse; }
  .hero-arte .a2 { animation: respira 7.5s ease-in-out -2s infinite alternate; }
  .hero-arte .a3 { animation: respira 6s ease-in-out -1s infinite alternate-reverse; }
  .fermo .rosa, .fermo .anello { animation-play-state: paused !important; }
}
.hero-testo { max-width: 660px; }
.hero h1 { max-width: 19ch; }
.hero .intro { font-size: 19px; color: var(--ink); opacity: .86; max-width: 56ch; }
@media (max-width: 1100px) {
  .hero { display: block; min-height: 0; padding: 8px 0 40px; }
  .hero-arte { position: relative; z-index: 0; top: auto; right: auto; translate: none; width: min(84vw, 470px); margin: 0 auto -6px; }
  /* il fiore va sopra il testo: i clienti diventano una riga sotto i pulsanti, col seme sull'anello in piccolo */
  .hero-clienti { position: static; width: auto; aspect-ratio: auto; translate: none; max-width: var(--max); margin: 26px auto 0; padding-inline: var(--pad); }
  .hc-filo { display: none; }
  .hc-etichetta { position: static; width: auto; translate: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
  .hc-etichetta h2 { display: flex; align-items: center; gap: 9px; }
  .hc-etichetta h2::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--n2) 80%, transparent); background: radial-gradient(circle, var(--n0) 0 2px, transparent 2.6px); }
  .hc-etichetta ul { justify-content: flex-start; }
  .hc-etichetta img { height: 24px; }
}
@media (max-width: 560px) {
  h1 { font-size: 28px; } .intro, .hero .intro { font-size: 17px; }
}


/* ---------- sezioni con il titolo a sinistra ---------- */
.m-sezione { padding: 88px 0 0; }
.m-riga { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 28px 80px; align-items: start; }
.m-riga > header { position: sticky; top: 100px; }
.m-riga > header .micro { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.m-riga > header p { margin: 12px 0 0; max-width: 38ch; font-size: 16px; color: var(--muted); }
.m-griglia2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.m-scheda { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease); }
.m-scheda:hover { transform: translateY(-3px); border-color: var(--cc); box-shadow: 0 24px 48px -34px rgba(10, 20, 40, .4); }
.m-scheda h3 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.m-scheda p { margin: 0; max-width: 58ch; font-size: 15px; color: var(--muted); }
.m-scheda .apri { margin-top: auto; padding-top: 6px; }
.m-num { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ct); }
.m-num svg { width: 22px; height: 22px; }
.apri { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--ct); text-decoration: none; }
.apri:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1060px) {
  .m-riga { grid-template-columns: 1fr; gap: 22px; }
  .m-riga > header { position: static; }
  .m-riga > header p { max-width: 62ch; }
}
@media (max-width: 760px) { .m-sezione, .sezione { padding-top: 64px; } .m-griglia2 { grid-template-columns: 1fr; } }

/* ---------- servizi ---------- */
.servizi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.servizio { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 470px; padding: 210px 26px 22px; border-radius: 24px; background: var(--ti); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.servizio:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--cc) 60%, transparent); }
.servizio-fiore { position: absolute; z-index: -1; top: -64px; right: -64px; width: 290px; aspect-ratio: 1; transition: transform 1.4s var(--ease); }
.servizio:hover .servizio-fiore { transform: rotate(45deg) scale(1.06); }
.servizio h3 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.servizio h3 a { text-decoration: none; }
.servizio h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.servizio p { margin: 0; max-width: 48ch; font-size: 15px; }
.servizio .m-esempi { position: relative; z-index: 1; font-size: 14px; color: var(--muted); }
.m-esempi a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--cc) 60%, transparent); }
.m-esempi a:hover { text-decoration-color: var(--cc); }
.servizio .vai { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ct); }
@media (max-width: 1500px) { .servizi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .servizio { min-height: 400px; } }
@media (max-width: 700px) { .servizi { grid-template-columns: 1fr; } .servizio { min-height: 0; padding-top: 176px; } .servizio-fiore { width: 230px; top: -48px; right: -48px; } }

/* ---------- lavori scelti ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.pp { grid-column: span var(--span, 6); display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.pp:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -36px rgba(10, 20, 40, .45); }
.pp-media { position: relative; display: block; height: var(--h, 380px); background: var(--c); overflow: hidden; isolation: isolate; }
.pp-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .16), transparent 60%); }
.pp-testo { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.pp-testo h3 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.pp-testo h3 a { text-decoration: none; }
.pp-testo p { margin: 0; max-width: 64ch; font-size: 15px; color: var(--muted); }
.pp-testo .occhiello { font-size: 12px; }
.pp-piede { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.finestra { position: absolute; top: 40px; left: 6%; right: 6%; bottom: -26px; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #0D0F14; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .6s var(--ease); }
.finestra-barra { flex: none; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #1C1F26; }
.finestra-barra i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; }
.finestra-barra i:nth-child(2) { background: #FEBC2E; } .finestra-barra i:nth-child(3) { background: #28C840; }
.finestra-barra span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: #2A2E37; color: #B7BDC9; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finestra img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: left top; transition: transform 1.2s var(--ease); }
.pp:hover .finestra { transform: translateY(-12px); }
.pp:hover .finestra img { transform: scale(1.025); }
.telefoni { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 38px; }
.telefono { flex: none; width: calc(var(--h, 380px) * .44); aspect-ratio: 1206 / 2622; margin-inline: calc(var(--h, 380px) * -.045); padding: 6px; border-radius: 30px; background: #0B0B0D; box-shadow: 0 30px 50px -22px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .7s var(--ease); }
.telefono img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.telefono:nth-child(1) { transform: rotate(-7deg) translateY(30px); }
.telefono:nth-child(2) { position: relative; z-index: 2; }
.telefono:nth-child(3) { transform: rotate(7deg) translateY(30px); }
.pp:hover .telefono:nth-child(1) { transform: rotate(-11deg) translate(-26px, 22px); }
.pp:hover .telefono:nth-child(2) { transform: translateY(-10px); }
.pp:hover .telefono:nth-child(3) { transform: rotate(11deg) translate(26px, 22px); }
.pp-media .pieno { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pp:hover .pp-media .pieno { transform: scale(1.05); }
.icona-grande { position: absolute; inset: 0; display: grid; place-items: center; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 28px 28px; }
.icona-grande img { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 0 70px 6px rgba(63, 200, 255, .35), 0 20px 40px -16px rgba(0, 0, 0, .7); animation: galleggia 6s ease-in-out infinite; }
@keyframes galleggia { 50% { translate: 0 -12px; } }
@media (max-width: 1200px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pp { grid-column: span var(--span-m, 1); } }
@media (max-width: 720px) { .bento { grid-template-columns: 1fr; gap: 18px; } .pp { grid-column: auto; } .pp-media { --h: 300px !important; } .finestra { top: 28px; left: 5%; right: 5%; } }

/* ---------- metodo: dal seme al fiore ---------- */
.crescita { --arte: 150px; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.crescita::before, .crescita::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--arte) * 124 / 150 - 1px); height: 2px; border-radius: 2px; background: var(--line); }
.crescita::after { background: linear-gradient(90deg, var(--foglia), var(--p-app) 30%, var(--p-web) 55%, var(--p-gra) 78%, var(--p-str)); transform-origin: left center; transform: scaleX(var(--p, 0)); }
html:not(.js) .crescita::after { transform: none; }
.crescita li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tappa-arte { height: var(--arte); }
.tappa { display: block; height: 100%; width: auto; overflow: visible; }
.tappa-n { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-top: 14px; border-radius: 50%; background: var(--ti); color: var(--ct); font-size: 14px; font-weight: 700; }
.crescita h3 { margin: 6px 0 0; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.crescita p { margin: 0; max-width: 36ch; font-size: 15px; color: var(--muted); }
.crescita.piccola { --arte: 112px; }
@media (min-width: 1400px) { .crescita { --arte: 180px; } .crescita.piccola { --arte: 132px; } }
@media (max-width: 1100px) {
  .crescita, .crescita.piccola { --arte: 104px; grid-template-columns: 1fr; gap: 10px; }
  .crescita::before, .crescita::after { display: none; }
  .crescita li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 18px; align-items: center; }
  .tappa-arte { grid-row: span 3; }
  .tappa-n { margin-top: 0; }
}
/* disegni del metodo e delle radici */
.t-terra { fill: none; stroke: var(--line); stroke-width: 2; }
.t-stelo, .r-stelo { fill: none; stroke: var(--foglia); stroke-width: 3.2; stroke-linecap: round; }
.t-foglia { fill: var(--foglia); fill-opacity: .9; }
.t-seme { fill: var(--polline); }
.t-idea { fill: var(--cc); fill-opacity: .8; }
.t-riquadro { fill: none; stroke: var(--cc); stroke-width: 1.4; stroke-dasharray: 1; }
.t-maniglie rect { fill: var(--surface); stroke: var(--cc); stroke-width: 1.4; }
.t-nodo { fill: var(--cc); }
.t-bocciolo { fill: var(--cc); }
.t-fiore path, .r-fiore path { fill: var(--cc); fill-opacity: .28; stroke: var(--cc); stroke-width: 1.8; stroke-linejoin: round; }
.r-fiore path { fill: var(--n2); stroke: var(--n2); }
.t-cuore { fill: var(--polline); }
.t-scintilla { fill: var(--polline); }
.t-disegna { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  html.js .in-vista .t-disegna { stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease) calc(var(--i, 0) * 110ms + .15s); }
  html.js .in-vista.visto .t-disegna { stroke-dashoffset: 0; }
  html.js .in-vista .t-spunta { opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .6s var(--ease) 1s, transform .9s var(--ease) 1s; }
  html.js .in-vista.visto .t-spunta { opacity: 1; transform: none; }
  html.js .in-vista .r-punta, html.js .in-vista .r-alone { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: 50% 50%; transition: opacity .5s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 1.2s); }
  html.js .in-vista.visto .r-punta { opacity: 1; transform: none; }
  html.js .in-vista.visto .r-alone { opacity: .2; transform: none; }
}

/* ---------- SEO e AEO: le radici ---------- */
.trovare { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px 80px; align-items: center; }
.trovare h2 { margin-top: 10px; }
.trovare .intro { margin-top: 12px; font-size: 17px; }
.trovare-voci { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.trovare-voci li { padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.trovare-voci h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 17px; line-height: 1.3; font-weight: 700; }
.trovare-voci p { margin: 0; font-size: 15px; color: var(--muted); }
.prova { margin-top: 16px; padding: 22px 24px 18px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px dashed color-mix(in srgb, var(--ink) 22%, var(--line)); }
.prova ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.prova b { display: block; font-size: 35px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.prova li span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.prova p { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.radici { display: block; width: 100%; height: auto; overflow: visible; }
.r-terra { fill: none; stroke: color-mix(in srgb, var(--radice) 50%, var(--line)); stroke-width: 2; }
.r-radice { fill: none; stroke: var(--radice); stroke-width: 3; stroke-linecap: round; stroke-opacity: .85; }
.r-grossa { stroke-width: 5; } .r-fine { stroke-width: 1.6; stroke-opacity: .5; }
.r-punta.r-app, .r-alone.r-app { fill: var(--p-app); } .r-punta.r-web, .r-alone.r-web { fill: var(--p-web); }
.r-punta.r-strumenti, .r-alone.r-strumenti { fill: var(--p-str); } .r-punta.r-grafica, .r-alone.r-grafica { fill: var(--p-gra); }
.r-punta.r-polline, .r-alone.r-polline { fill: var(--polline); } .r-punta.r-foglia, .r-alone.r-foglia { fill: var(--foglia); }
.r-alone { opacity: .2; }
@media (max-width: 1100px) { .trovare { grid-template-columns: 1fr; } .trovare-arte { max-width: 560px; } }
@media (max-width: 700px) { .trovare-voci { grid-template-columns: 1fr; } .prova ul { grid-template-columns: 1fr; gap: 12px; } .prova li { display: flex; align-items: baseline; gap: 12px; } .prova li span { margin: 0; } .prova b { min-width: 64px; font-size: 28px; } }

/* ---------- intelligenza artificiale ---------- */
.m-ai { position: relative; isolation: isolate; overflow: hidden; padding: 30px 32px 26px; border-radius: 22px; background: #0B0A1F; border: 1px solid #27234F; color: #EEEBFF; }
.m-ai::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 90% at 92% 0%, rgba(123, 92, 240, .38), transparent 62%), radial-gradient(50% 80% at 0% 100%, rgba(47, 123, 224, .3), transparent 60%), radial-gradient(40% 60% at 55% 110%, rgba(208, 85, 159, .2), transparent 60%); }
.m-ai-fiore { position: absolute; z-index: -1; right: -150px; top: -160px; width: 330px; opacity: .45; --n0: #22D3EE; --n1: #3D7BFF; --n2: #8B5CF6; --n3: #EC4899; --n4: #FF7A2F; --alone: #7B5CF0; --cuore: #3A1E08; --polline: #FFC15E; }
.m-ai ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; margin: 0; padding: 0; list-style: none; }
.m-ai h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; font-weight: 700; }
.m-ai p { margin: 0; font-size: 15px; color: #BDB8E4; }
.m-ai a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 6px; font-size: 14px; font-weight: 600; color: #D4CDFF; text-decoration: none; }
.m-ai a:hover { text-decoration: underline; text-underline-offset: 3px; }
.m-ai :focus-visible { outline-color: #fff; }
@media (max-width: 760px) { .m-ai ul { grid-template-columns: 1fr; } }

/* ---------- tecnologie e domande ---------- */
.m-tecnologie { margin: 0; padding: 6px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.m-tecnologie > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.m-tecnologie > div:first-child { border-top: 0; }
.m-tecnologie dt { font-size: 15px; font-weight: 700; }
.m-tecnologie dd { margin: 0; }
@media (max-width: 760px) { .m-tecnologie > div { grid-template-columns: 1fr; } }
.m-faq { display: grid; gap: 12px; }
.m-faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
.m-faq details[open] { border-color: color-mix(in srgb, var(--ink) 45%, var(--line)); }
.m-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 14px 22px; cursor: pointer; list-style: none; border-radius: 18px; }
.m-faq summary::-webkit-details-marker { display: none; }
.m-faq summary h3 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 700; }
.m-piu { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); }
.m-piu::before, .m-piu::after { content: ""; position: absolute; left: 9px; right: 9px; top: 14px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.m-piu::after { transform: rotate(90deg); }
details[open] .m-piu::after { transform: rotate(0deg); }
.m-faq details p { margin: 0; padding: 0 22px 20px; max-width: 72ch; font-size: 16px; color: var(--muted); }
.m-faq details[open] p { animation: sale .45s var(--ease) both; }
.m-faq + .link-freccia { margin-top: 14px; }

/* ---------- invito ---------- */
.m-cta { padding: 96px 0 0; }
.m-cta-scheda { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 56px; padding: 44px clamp(24px, 4vw, 56px) 40px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.m-cta-scheda::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--p-app), var(--p-web), var(--p-gra), var(--p-str)); }
.m-cta-scheda h2 { max-width: 26ch; font-size: 28px; }
.m-cta-scheda p { margin: 10px 0 0; max-width: 56ch; font-size: 16px; color: var(--muted); }
.m-cta-scheda .azioni { margin-top: 0; position: relative; z-index: 1; }
@media (max-width: 760px) { .m-cta { padding-top: 64px; } .m-cta-scheda h2 { font-size: 24px; } }

/* ---------- pagina di un servizio ---------- */
.s-hero { position: relative; isolation: isolate; overflow: hidden; padding: 52px 0 64px; background: color-mix(in srgb, var(--ti) 78%, transparent); }
.s-hero-arte { position: absolute; z-index: -1; top: 50%; right: max(-14vw, calc((100vw - var(--max)) / 2 - 6vw)); width: min(52vw, 720px); aspect-ratio: 1; translate: 0 -50%; pointer-events: none; }
.s-hero-testo { max-width: 760px; }
.s-hero h1 { max-width: 22ch; }
.s-hero .intro { color: var(--ink); opacity: .86; font-size: 19px; }
.s-hero .chips { margin-top: 26px; }
/* pagina di un cliente: il suo logo fa da titolo */
.s-hero h1.logo-cliente { max-width: none; margin: 20px 0 22px; line-height: 0; }
.s-hero h1.logo-cliente img { display: block; width: auto; max-width: 100%; height: clamp(40px, 4.4vw, 60px); }
.griglia.piena { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
@media (min-width: 1101px) {
  .s-cliente { display: grid; align-items: center; min-height: 600px; }
  .s-cliente > .wrap { width: 100%; }
  .s-cliente .s-hero-arte { width: min(44vw, 600px); }
}
@media (max-width: 1100px) {
  .s-hero { padding-top: 12px; }
  .s-hero-arte { position: relative; z-index: 0; top: auto; right: auto; translate: none; width: min(78vw, 400px); margin: 0 auto 4px; }
}
.griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 24px; }
.scheda { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease); }
.scheda:hover { transform: translateY(-4px); border-color: var(--cc); box-shadow: 0 24px 48px -32px rgba(10, 20, 40, .4); }
.scheda-media { position: relative; height: 210px; display: grid; place-items: center; overflow: hidden; background: var(--ti); }
.scheda-media .foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 1s var(--ease); }
.scheda:hover .scheda-media .foto { transform: scale(1.05); }
.scheda-media .icona { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .45); transition: transform .6s var(--ease); }
.scheda:hover .scheda-media .icona { transform: translateY(-6px) rotate(-4deg); }
.scheda-media .iniziale { position: relative; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 26px; background: var(--cc); color: var(--su); font-size: 30px; font-weight: 700; letter-spacing: -.02em; transition: transform .6s var(--ease), border-radius .6s var(--ease); }
.scheda:hover .scheda-media .iniziale { transform: rotate(-6deg) scale(1.05); border-radius: 42px; }
.scheda-media.tipo::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--cc) 22%, transparent) 1.2px, transparent 1.4px); background-size: 18px 18px; }
.scheda-corpo { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.scheda-alto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cat-nome { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ct); }
.stato { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--ti); color: var(--ct); }
.scheda h3 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.scheda p { margin: 0; font-size: 14px; color: var(--muted); }
.scheda-piede { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.scheda-piede .link { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.stack { font-size: 12px; font-weight: 600; }
.con { font-size: 12px; color: var(--muted); }
.altri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.altro { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 8px; min-height: 210px; padding: 24px 26px; border-radius: 22px; background: var(--ti); text-decoration: none; transition: transform .45s var(--ease); }
.altro:hover { transform: translateY(-4px); }
.altro .servizio-fiore { width: 200px; top: -50px; right: -50px; }
.altro:hover .servizio-fiore { transform: rotate(45deg) scale(1.06); }
.altro h3 { margin: 0; max-width: 16ch; font-size: 20px; line-height: 1.25; font-weight: 700; }
.altro p { margin: 0; max-width: 40ch; font-size: 14px; color: var(--muted); }
.altro .vai { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ct); }
@media (max-width: 1100px) { .altri { grid-template-columns: 1fr; } .altro { min-height: 0; padding-right: 160px; } }
@media (max-width: 520px) { .altro { padding-right: 110px; } .altro .servizio-fiore { width: 150px; top: -30px; right: -36px; } }

/* ---------- pagina dei prezzi (dati in data/listino.json) ---------- */
/* pacchetti: testa nel colore del servizio con nome e prezzo, sotto cosa comprende e i tre numeri allineati in fondo */
.p-pacchetti { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.p-pacchetto { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
.p-pacchetto:hover { transform: translateY(-4px); border-color: var(--cc); box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--cc) 70%, transparent); }
.p-testa { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 20px; background: var(--ti); }
.p-testa h3 { margin: 6px 0 0; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.p-prezzo { margin: 4px 0 0; font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -.025em; }
.p-corpo { display: flex; flex-direction: column; gap: 16px; flex: 1; padding: 20px 24px 22px; }
.p-corpo > p { margin: 0; font-size: 15px; color: var(--muted); }
.p-fatti { margin: auto 0 0; }
.p-fatti > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.p-fatti dt { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.p-fatti dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; }
.p-dipende span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.p-dipende p { margin: 4px 0 0; font-size: 14px; }
.p-corpo .apri { align-self: flex-start; margin-top: -4px; }
.p-nota { margin: 22px 0 0; max-width: 120ch; font-size: 14px; color: var(--muted); }
.p-nota b { color: var(--ink); font-weight: 600; }
@media (max-width: 1280px) { .p-pacchetti { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .p-pacchetti { grid-template-columns: 1fr; } .p-prezzo { font-size: 30px; } }
/* su preventivo: un rimando per servizio */
.p-misura { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.p-misura a { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 64px; padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 600; line-height: 1.35; text-decoration: none; transition: border-color .3s, transform .4s var(--ease); }
.p-misura a:hover { border-color: var(--cc); transform: translateY(-3px); }
.p-misura .freccia { margin-left: auto; color: var(--ct); }
@media (max-width: 1100px) { .p-misura { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .p-misura { grid-template-columns: 1fr; } }
/* compreso e a parte: righe come le tecnologie della home, con la colonna del costo a destra */
.p-gruppo + .p-gruppo { margin-top: 32px; }
.p-gruppo h3 { margin: 0 0 12px; font-size: 17px; line-height: 1.3; font-weight: 700; }
.p-voci { margin: 0; padding: 4px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.p-voci > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) minmax(0, .9fr); gap: 6px 28px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.p-voci > div:first-child { border-top: 0; }
.p-voci dt { font-size: 15px; font-weight: 700; line-height: 1.4; }
.p-voci dd { margin: 0; font-size: 15px; color: var(--muted); }
.p-voci .p-costo { color: var(--ink); font-weight: 600; text-align: right; }
.p-tag { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: 2px; background: color-mix(in srgb, var(--foglia) 16%, transparent); color: color-mix(in srgb, var(--foglia) 70%, var(--ink)); }
@media (max-width: 900px) { .p-voci > div { grid-template-columns: 1fr; } .p-voci .p-costo { text-align: left; } }
/* servizi extra: nome, cifra con l'unità, cosa comprende */
.p-extra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.p-extra li { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.p-extra h3 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; }
.p-extra .p-cifra { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.p-cifra span { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.p-extra p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 1500px) { .p-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .p-extra { grid-template-columns: 1fr; } }

/* prezzi in arrivo: i pacchetti come sagome sfocate, senza testo, con l'etichetta sopra */
.p-occhiello { margin-top: 18px; }
.p-velato { position: relative; }
.p-velo { filter: blur(5px); opacity: .9; pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent); mask-image: linear-gradient(to bottom, #000 50%, transparent); }
.p-velo .p-pacchetto { min-height: 400px; }
.p-velo .p-testa { gap: 10px; min-height: 148px; }
.v { display: block; width: var(--w, 100%); height: 11px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.p-testa .v { background: color-mix(in srgb, var(--ct) 38%, transparent); }
.v-cat { --w: 44%; height: 8px; } .v-nome { --w: 68%; height: 16px; } .v-prezzo { --w: 56%; height: 32px; margin-top: 4px; }
.v-testo { display: grid; gap: 11px; }
.p-velo .p-fatti > div { padding: 13px 0; }
.v-dt { --w: 36%; height: 9px; } .v-dd { --w: 22%; height: 9px; }
.p-velo-etichetta { position: absolute; left: 50%; top: 40%; translate: -50% -50%; margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line); box-shadow: 0 20px 50px -24px rgba(10, 20, 40, .45); font-size: 15px; font-weight: 600; white-space: nowrap; }
.p-velo-etichetta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--foglia); }
@media (max-width: 700px) { .p-velo .p-pacchetto:nth-child(n+3) { display: none; } }

/* ---------- piè di pagina: il prato di notte ---------- */
.piede { position: relative; isolation: isolate; overflow: hidden; margin-top: 104px; padding: 76px 0 178px; background: #07061A; color: #F1F0EC; }
.cielo-piede { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.prato { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 170px; width: 100%; max-width: none; object-fit: cover; object-position: center bottom; pointer-events: none; }
.lucciola { position: absolute; z-index: -1; width: var(--s); height: var(--s); border-radius: 50%; background: #FFE9A8; box-shadow: 0 0 10px 3px rgba(255, 214, 120, .55); opacity: .2; pointer-events: none; animation: lucciola var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes lucciola { 0% { opacity: .1; transform: translate(0, 0); } 50% { opacity: 1; } 100% { opacity: .2; transform: translate(var(--dx), var(--dy)); } }
.piede-griglia { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; }
.piede h2 { font-size: 30px; }
.piede p { margin: 12px 0 0; max-width: 54ch; color: #A9AEB7; font-size: 16px; }
.contatti { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contatti a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: rgba(38, 34, 80, .72); color: #EEEBFF; font-size: 15px; font-weight: 600; text-decoration: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .25s, transform .25s var(--ease); }
.contatti a:hover { background: rgba(58, 52, 112, .85); transform: translateY(-2px); }
.contatti a.primo { background: #EEEBFF; color: #0A0919; }
.piede nav h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8C929C; }
.piede nav ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.piede nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: #C9CDD4; font-size: 15px; text-decoration: none; }
.piede nav a:hover { color: #fff; }
.piede .pallino { background: var(--cc); }
.piede .firma { margin-top: 56px; padding-top: 24px; border-top: 1px solid #262A31; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #8C929C; font-size: 13px; }
.piede .firma a { color: #C9CDD4; text-underline-offset: 3px; }
.piede :focus-visible { outline-color: #fff; }
@media (max-width: 1000px) { .piede-griglia { grid-template-columns: 1fr 1fr; } .piede-griglia > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .piede-griglia { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .piede { border-top: 1px solid var(--line); } }

/* ---------- movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js [data-rivela] { opacity: 1; translate: none; }
  .crescita::after { transform: none; }
  .lucciola { opacity: .7; }
}

/* colori dei servizi (da data/lavori.json) */
.c-app{--cc:#2F5BEA;--ct:#2448C4;--ti:#E7EDFF;--su:#FFFFFF}
.c-web{--cc:#7048E8;--ct:#5B37D0;--ti:#EEE8FF;--su:#FFFFFF}
.c-strumenti{--cc:#E8590C;--ct:#B54308;--ti:#FFEDE0;--su:#16181D}
.c-grafica{--cc:#D6336C;--ct:#B02355;--ti:#FFE6EE;--su:#FFFFFF}
@media (prefers-color-scheme: dark){.c-app{--ct:#9DB4FF;--ti:#1B2547}.c-web{--ct:#B9A5FF;--ti:#261E45}.c-strumenti{--ct:#FFAE7A;--ti:#3A2114}.c-grafica{--ct:#FF9EBF;--ti:#3D1826}}
