/* =========================================================================
   THE AMP — Art · Music · People
   Design system "pop / sticker": contorni neri spessi, ombre nette, colori vivi.
   ========================================================================= */

/* ---------- Token ---------- */
:root {
  /* Palette brand (campionata dal logo) */
  --teal:   #38C0C0;
  --pink:   #F04880;
  --yellow: #F0B828;
  --purple: #804898;
  --green:  #80C040;
  --orange: #F8A028;

  --teal-d:   #2AA0A0;
  --pink-d:   #D63A6E;
  --yellow-d: #D89B12;
  --purple-d: #6A3B80;
  --green-d:  #6BA531;
  --orange-d: #E0851A;

  --ink:    #141414;
  --cream:  #F7F1E1;
  --cream-2:#FCF8EE;
  --paper:  #FFFFFF;

  /* Linee e ombre "sticker" */
  --stroke-w: 3px;
  --stroke: var(--stroke-w) solid var(--ink);
  --sh-sm: 4px 4px 0 var(--ink);
  --sh:    7px 7px 0 var(--ink);
  --sh-lg: 12px 12px 0 var(--ink);

  --r-sm: 14px;
  --r:    22px;
  --r-lg: 34px;
  --r-pill: 999px;

  --container: 1180px;
  --gap: clamp(1rem, 2.4vw, 2rem);

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --header-h: 76px;

  --ease-pop: cubic-bezier(.34,1.56,.64,1);
}

/* ---------- Reset di base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.15rem);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; margin: 0 0 .4em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px dashed var(--purple); outline-offset: 3px; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
/* Le voci di menu non devono far finire la sezione sotto la barra fissa */
main section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.section { position: relative; padding: clamp(4rem, 9vw, 8rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

/* Colori di sfondo sezione */
.bg-cream  { background: var(--cream); }
.bg-cream2 { background: var(--cream-2); }
.bg-teal   { background: var(--teal); }
.bg-pink   { background: var(--pink); }
.bg-yellow { background: var(--yellow); }
.bg-purple { background: var(--purple); color: var(--cream-2); }
.bg-ink    { background: var(--ink); color: var(--cream-2); }

/* ---------- Tipografia display ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: .95rem; text-transform: uppercase; letter-spacing: .12em;
  background: var(--ink); color: var(--cream-2);
  padding: .35em .9em; border-radius: var(--r-pill);
  transform: rotate(-1.5deg);
  margin-bottom: 1.1rem;   /* stacco dal titolo */
}
.h-xl { font-size: clamp(2.6rem, 8vw, 6rem); }
.h-lg { font-size: clamp(2rem, 5.2vw, 3.6rem); }
.h-md { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 46ch; }
.text-teal{color:var(--teal-d)} .text-pink{color:var(--pink-d)}
.text-yellow{color:var(--yellow-d)} .text-purple{color:var(--purple)}
.text-green{color:var(--green-d)} .text-orange{color:var(--orange-d)}

/* Testo con contorno "sticker" (per titoli su fondo colorato) */
.stroke-text {
  color: var(--cream-2);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 rgba(0,0,0,.18);
}

/* ---------- Bottoni ---------- */
.btn {
  --bg: var(--yellow);
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--ink); background: var(--bg);
  padding: .8em 1.4em; border: var(--stroke); border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  transition: transform .15s var(--ease-pop), box-shadow .15s var(--ease-pop), background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--wa { --bg: #25D366; color: var(--ink); }
.btn--pink { --bg: var(--pink); color: var(--cream-2); }
.btn--ink { --bg: var(--ink); color: var(--cream-2); }
.btn--lg { font-size: 1.25rem; padding: .9em 1.7em; box-shadow: var(--sh); }
.btn--lg:hover { box-shadow: 10px 10px 0 var(--ink); }
.btn svg { width: 1.25em; height: 1.25em; }
.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--cream-2); box-shadow: none; transform: translate(-2px,-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: var(--cream-2);
  box-shadow: 0 4px 0 var(--ink);
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header .container { display: flex; align-items: center; gap: 1rem; width: min(100% - 2rem, 1320px); }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand img { height: 46px; width: auto; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.15)); }
.nav { display: flex; align-items: center; gap: .3rem; }
/* :not(.btn) — i pulsanti dentro la nav mantengono il loro stile sticker */
.nav a:not(.btn) {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .4em .8em; border-radius: var(--r-pill);
  border: 2px solid transparent; transition: background .2s, border-color .2s;
}
.nav a:not(.btn):hover { background: var(--cream); border-color: var(--ink); }
.header-cta { display: inline-flex; }
.nav-toggle { display: none; }
/* Elementi presenti solo nella sidebar mobile */
.nav__title, .nav__cta, .nav__foot, .nav-backdrop { display: none; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: var(--stroke);
  background: var(--ink); color: var(--cream-2);
  padding: .55rem 0;
}
.marquee--pink { background: var(--pink); color: var(--ink); }
.marquee__track { display: flex; width: max-content; gap: 2.5rem; animation: marquee 26s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; font-size: 1.3rem; display: inline-flex; align-items: center; gap: 2.5rem;
}
.marquee__track span::after { content: "●"; font-size: .7em; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Onde divisorie (SVG) ---------- */
/* La wave è più larga del contenitore e sborda ai lati: così il leggero
   parallax orizzontale (xPercent ±3) non scopre mai un bordo. */
.wave { display: block; width: 112%; margin-left: -6%; height: clamp(44px, 6vw, 96px); margin-bottom: -1px; }
.wave path { stroke: var(--ink); stroke-width: 3; }
.wave--flip { transform: scaleY(-1); }
.wave-divider { line-height: 0; overflow: hidden; }

/* ---------- WhatsApp floating button ---------- */
.wa-fab {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90; width: 62px; height: 62px; border-radius: 50%;
  background: #25D366; color: var(--ink);
  border: var(--stroke); box-shadow: var(--sh);
  display: grid; place-items: center;
  transition: transform .2s var(--ease-pop), box-shadow .2s var(--ease-pop);
  animation: waPulse 2.6s ease-in-out infinite;
}
.wa-fab svg { width: 34px; height: 34px; }
.wa-fab:hover { transform: translate(-2px,-3px) rotate(-4deg); box-shadow: 10px 10px 0 var(--ink); }
@keyframes waPulse {
  0%, 100% { box-shadow: var(--sh); }
  50% { box-shadow: 7px 7px 0 var(--ink), 0 0 0 8px rgba(37,211,102,.22); }
}
@media (max-width: 760px) { .wa-fab { width: 54px; height: 54px; } .wa-fab svg { width: 28px; height: 28px; } }

/* =========================================================================
   TRANSIZIONE DI PAGINA — "esplosione del logo"
   In apertura il logo pulsa e scoppia: le icone del brand schizzano fuori
   schermo e scoprono il sito. Cambiando pagina il movimento si inverte.
   ========================================================================= */
.pagefx {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center; pointer-events: none;
  overflow: hidden;
}
.pagefx__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(240,184,40,.55), transparent 42%),
    radial-gradient(circle at 50% 50%, var(--teal) 0 38%, transparent 38%),
    var(--cream-2);
}
.pagefx__burst { position: absolute; inset: 0; display: grid; place-items: center; }
.pagefx__spark {
  position: absolute; width: var(--sz, 72px); opacity: 0;
  transform: translate3d(0,0,0) rotate(0deg) scale(.18);
  filter: drop-shadow(4px 5px 0 rgba(20,20,20,.22));
}
.pagefx__spark img { width: 100%; display: block; }
.pagefx__logo {
  position: relative; z-index: 2; width: min(58vw, 300px);
  filter: drop-shadow(6px 8px 0 rgba(20,20,20,.25));
}

/* --- USCITA: il logo scoppia e le icone volano via --- */
@keyframes fxLogoBoom {
  0%   { transform: scale(1)    rotate(0deg);   opacity: 1; }
  26%  { transform: scale(.86)  rotate(-3deg);  opacity: 1; }   /* carica */
  46%  { transform: scale(1.22) rotate(2deg);   opacity: 1; }   /* scoppio */
  100% { transform: scale(2.9)  rotate(6deg);   opacity: 0; }
}
@keyframes fxSparkOut {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(.18); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)) scale(1); opacity: 0; }
}
@keyframes fxBgOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.25); }
}
.pagefx.is-out .pagefx__logo  { animation: fxLogoBoom .78s cubic-bezier(.3,.8,.25,1) forwards; }
.pagefx.is-out .pagefx__spark { animation: fxSparkOut .8s cubic-bezier(.16,.72,.24,1) .3s forwards; }
.pagefx.is-out .pagefx__bg    { animation: fxBgOut .5s ease .34s forwards; }

/* --- A RIPOSO: invisibile, nessuna animazione in corso --- */
.pagefx.is-idle { visibility: hidden; }
.pagefx.is-idle .pagefx__logo,
.pagefx.is-idle .pagefx__spark,
.pagefx.is-idle .pagefx__bg { animation: none; opacity: 0; }

/* --- ENTRATA: le icone rientrano e il logo si ricompone --- */
@keyframes fxLogoIn {
  0%   { transform: scale(2.4) rotate(5deg);  opacity: 0; }
  62%  { transform: scale(.94) rotate(-2deg); opacity: 1; }
  100% { transform: scale(1)   rotate(0deg);  opacity: 1; }
}
@keyframes fxSparkIn {
  0%   { transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)) scale(1); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translate3d(0,0,0) rotate(0deg) scale(.18); opacity: 0; }
}
@keyframes fxBgIn { from { opacity: 0; transform: scale(1.2); } to { opacity: 1; transform: scale(1); } }
.pagefx.is-in .pagefx__bg    { animation: fxBgIn .42s ease forwards; }
.pagefx.is-in .pagefx__spark { animation: fxSparkIn .58s cubic-bezier(.5,0,.3,1) forwards; }
.pagefx.is-in .pagefx__logo  { animation: fxLogoIn .55s cubic-bezier(.34,1.56,.64,1) .12s forwards; }

@media (prefers-reduced-motion: reduce) {
  .pagefx__logo, .pagefx__spark, .pagefx__bg { animation: none !important; }
}

/* =========================================================================
   CURSORE PERSONALIZZATO
   La freccia indica dove porta lo scorrimento: giù nelle sezioni normali,
   destra/sinistra dentro le fasce dei corsi. Solo con mouse (non su touch).
   ========================================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cream-2); color: var(--ink);
  border: var(--stroke); box-shadow: 3px 3px 0 var(--ink);
  display: none; place-items: center;
  pointer-events: none; opacity: 0;
  transition: opacity .25s ease, width .22s var(--ease-pop), height .22s var(--ease-pop),
              background .22s ease, box-shadow .22s var(--ease-pop);
  will-change: transform;
}
.cursor > * { grid-area: 1 / 1; }          /* freccia e pallino sovrapposti */
.cursor__arrow {
  width: 18px; height: 18px;
  transition: transform .32s var(--ease-pop), opacity .18s ease;
}
.cursor__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--ink);
  opacity: 0; transform: scale(.3);
  transition: transform .22s var(--ease-pop), opacity .18s ease;
}
.cursor.is-on { opacity: 1; }
/* sopra link e pulsanti: diventa una pastiglia gialla con il pallino */
.cursor.is-link {
  width: 48px; height: 48px; background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
}
.cursor.is-link .cursor__arrow { opacity: 0; transform: scale(.4); }
.cursor.is-link .cursor__dot   { opacity: 1; transform: scale(1); }

/* Il cursore di sistema si nasconde solo quando quello nuovo è attivo */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a,
  body.has-cursor button,
  body.has-cursor summary,
  body.has-cursor .filtro { cursor: none; }
  body.has-cursor iframe { cursor: auto; }   /* dentro la mappa torna quello di sistema */
  .cursor { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor, .cursor__arrow, .cursor__dot { transition: opacity .2s ease; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 3rem) 1rem 4rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(240,184,40,.28), transparent 42%),
    radial-gradient(circle at 82% 30%, rgba(240,72,128,.24), transparent 45%),
    radial-gradient(circle at 50% 92%, rgba(56,192,192,.30), transparent 55%),
    var(--cream);
  overflow: hidden;
}
/* griglia leggera di sfondo */
.hero::before {
  content:""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 70%);
  opacity: .06;
}
.hero__inner { position: relative; z-index: 3; max-width: 900px; }
.hero__logo { width: clamp(200px, 36vw, 380px); margin: 0 auto 1.2rem; filter: drop-shadow(6px 8px 0 rgba(0,0,0,.18)); }
.hero__h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.05;
  margin: 0 auto .5rem; max-width: 18ch;
}
.hero__claim { font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 700; max-width: 24ch; margin: 0 auto 1.6rem; }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__loc {
  margin-top: 1.6rem; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600;
  background: var(--cream-2); border: var(--stroke); border-radius: var(--r-pill);
  padding: .4em 1em; box-shadow: var(--sh-sm); transform: rotate(-1deg);
}

/* Icone fluttuanti — disposte a cornice attorno al contenuto centrale */
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floater {
  position: absolute; width: var(--sz, 80px);
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,.16));
  will-change: transform;
}
.floater img { width: 100%; }
/* Fila alta */
.floater.f1  { --sz: 96px; top: 9%;  left: 11%;  transform: rotate(-12deg); }
.floater.f2  { --sz: 74px; top: 7%;  left: 28%;  transform: rotate(9deg); }
.floater.f3  { --sz: 82px; top: 10%; left: 46%;  transform: rotate(-5deg); }
.floater.f4  { --sz: 72px; top: 8%;  right: 28%; transform: rotate(10deg); }
.floater.f5  { --sz: 86px; top: 10%; right: 10%; transform: rotate(-8deg); }
/* Angoli alti interni */
.floater.f6  { --sz: 64px; top: 23%; left: 4%;   transform: rotate(13deg); }
.floater.f7  { --sz: 68px; top: 21%; right: 5%;  transform: rotate(-11deg); }
/* Colonne laterali */
.floater.f8  { --sz: 90px; top: 43%; left: 3%;   transform: rotate(7deg); }
.floater.f9  { --sz: 76px; top: 66%; left: 6%;   transform: rotate(-9deg); }
.floater.f10 { --sz: 84px; top: 41%; right: 3%;  transform: rotate(-7deg); }
.floater.f11 { --sz: 72px; top: 64%; right: 5%;  transform: rotate(9deg); }
/* Fila bassa (sotto ai bottoni: y alte + spinte ai lati) */
.floater.f12 { --sz: 76px; top: 86%; left: 8%;   transform: rotate(-6deg); }
.floater.f13 { --sz: 66px; top: 89%; left: 22%;  transform: rotate(12deg); }
.floater.f14 { --sz: 70px; top: 90%; left: 47%;  transform: rotate(-4deg); }
.floater.f15 { --sz: 66px; top: 89%; right: 21%; transform: rotate(8deg); }
.floater.f16 { --sz: 76px; top: 86%; right: 8%;  transform: rotate(-11deg); }

/* =========================================================================
   CORSI — mosaico
   ========================================================================= */
.section-head { text-align: center; max-width: 40ch; margin: 0 auto clamp(2rem,4vw,3.2rem); }
.section-head .lead { margin-inline: auto; }

.corsi-intro { text-align: center; max-width: 44ch; margin: 0 auto clamp(1rem,3vw,2rem); padding: 0 1rem; }

/* --- Fascia per famiglia --- */
.band {
  position: relative; overflow: hidden;
  background: var(--band, var(--teal));
  border-top: var(--stroke);
}
.band:last-of-type { border-bottom: var(--stroke); }
/* Ogni fascia è "pinnata": resta ferma a schermo mentre le card scorrono in
   orizzontale. Titolo e card stanno in DUE colonne affiancate e distinte:
   - fascia "dir right" (1ª e 3ª): titolo a SINISTRA, card a destra
   - fascia "dir left"  (2ª):       titolo a DESTRA,  card a sinistra
   Le card scorrono solo nella loro colonna (viewport overflow:hidden) e il
   titolo è limitato alla sua: non si sovrappongono mai. */
.band__inner {
  display: grid; grid-template-columns: minmax(300px, 36%) 1fr; align-items: center;
  min-height: 100vh; min-height: 100svh;
}
.band[data-dir="left"] .band__inner { grid-template-columns: 1fr minmax(300px, 36%); }

/* Titolo grande, centrato verticalmente e CONTENUTO nella sua colonna */
.band__title {
  grid-column: 1; grid-row: 1; align-self: center; z-index: 3; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.4rem,4vw,3rem) clamp(1rem,3vw,2rem);
}
/* Fascia con titolo a destra: il testo si allinea a SINISTRA della sua colonna,
   così resta verso il centro dello schermo invece di incollarsi al bordo. */
.band[data-dir="left"] .band__title {
  grid-column: 2; grid-row: 1; align-items: flex-start; text-align: left;
}
.band__heading {
  font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: .92; margin: 0;
  max-width: 100%; overflow-wrap: break-word; hyphens: auto;
}

/* Finestra che ritaglia le card mentre scorrono */
.band__viewport {
  grid-column: 2; grid-row: 1; overflow: hidden; min-width: 0; align-self: center;
}
.band[data-dir="left"] .band__viewport { grid-column: 1; grid-row: 1; }

/* Track orizzontale */
.band__track {
  display: flex; gap: clamp(1rem, 2vw, 1.8rem); width: max-content;
  padding: 2rem clamp(1.5rem,4vw,4rem); will-change: transform;
}

/* Card corso grande */
.course-card {
  position: relative; flex: 0 0 auto;
  width: clamp(238px, 25vw, 318px); min-height: 384px;
  display: flex; flex-direction: column;
  background: var(--cream-2); color: var(--ink);
  border: var(--stroke); border-radius: var(--r-lg); box-shadow: var(--sh);
  padding: 1.6rem 1.5rem 1.5rem;
  transition: transform .2s var(--ease-pop), box-shadow .2s var(--ease-pop);
}
.course-card:hover { transform: translateY(-8px) rotate(-.8deg); box-shadow: var(--sh-lg); }
.course-card__icon {
  width: 112px; height: 112px; border-radius: 26px; margin-bottom: 1.4rem;
  border: var(--stroke); box-shadow: var(--sh-sm); display: grid; place-items: center;
}
.course-card__icon[data-c="teal"]{background:var(--teal)} .course-card__icon[data-c="pink"]{background:var(--pink)}
.course-card__icon[data-c="yellow"]{background:var(--yellow)} .course-card__icon[data-c="purple"]{background:var(--purple)}
.course-card__icon[data-c="green"]{background:var(--green)} .course-card__icon[data-c="orange"]{background:var(--orange)}
.course-card__icon img { width: 78px; height: 78px; object-fit: contain; }
.course-card__name { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1; margin: 0 0 .5rem; }
.course-card__desc { font-size: .98rem; margin: 0 0 auto; opacity: .9; }
.course-card__actions {
  display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; margin-top: 1.3rem;
}
.course-card__cta {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  background: #25D366; color: var(--ink); border: var(--stroke); border-radius: var(--r-pill);
  padding: .5em 1em; box-shadow: var(--sh-sm);
  transition: transform .15s var(--ease-pop), box-shadow .15s var(--ease-pop);
}
.course-card:hover .course-card__cta { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.course-card__cta:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--ink); }
.course-card__cta svg { width: 1.15em; height: 1.15em; }

/* Secondo pulsante: porta alla scheda dell'insegnante di quel corso */
.course-card__prof {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  color: var(--ink); border-bottom: 3px solid var(--ink); padding: 0 0 2px;
  transition: gap .2s var(--ease-pop), opacity .2s;
}
.course-card__prof svg { width: 1.1em; height: 1.1em; }
.course-card__prof:hover { gap: .8rem; }

/* Card finale "prova gratuita" */
.course-card--cta { background: var(--ink); color: var(--cream-2); }
.course-card--cta .course-card__icon { color: var(--ink); }
.course-card--cta .course-card__icon svg { width: 62px; height: 62px; }
.course-card--cta .course-card__desc { opacity: .85; }

/* Fasce su mobile/tablet: STESSO scorrimento orizzontale pinnato del desktop.
   Cambia solo l'impaginazione: titolo SOPRA (riga 1), card sotto (riga 2). */
@media (max-width: 900px) {
  .band__inner,
  .band[data-dir="left"] .band__inner {
    grid-template-columns: 1fr; grid-template-rows: auto auto;
    align-content: center; min-height: 100vh; min-height: 100svh;
  }
  .band__title,
  .band[data-dir="left"] .band__title {
    grid-column: 1; grid-row: 1; align-items: flex-start; text-align: left;
    padding: 0 1.2rem 1.2rem;
  }
  .band__viewport,
  .band[data-dir="left"] .band__viewport { grid-column: 1; grid-row: 2; overflow: hidden; }
  .band__track,
  .band[data-dir="left"] .band__track {
    width: max-content; margin: 0; padding: 1rem 1.2rem 1.4rem;
  }
  .course-card { width: min(78vw, 290px); min-height: 336px; }
}

/* =========================================================================
   CHI SIAMO — manifesto
   ========================================================================= */
.chisiamo { overflow: hidden; }
.chisiamo__head { text-align: center; max-width: 48ch; margin: 0 auto clamp(2.4rem,5vw,4rem); }
.chisiamo__head .lead { margin-inline: auto; }
.chisiamo .h-lg .hl { color: var(--yellow); }   /* parola evidenziata nel titolo stroke */

/* adesivi decorativi ai bordi */
.chisiamo__sticker {
  position: absolute; width: clamp(66px, 9vw, 124px); z-index: 1; pointer-events: none;
  filter: drop-shadow(5px 5px 0 rgba(0,0,0,.22));
}
.chisiamo__sticker.s1 { top: clamp(1rem,4vw,3rem);    right: clamp(1rem,5vw,4rem); transform: rotate(12deg); }
.chisiamo__sticker.s2 { bottom: clamp(1rem,4vw,3rem); left:  clamp(1rem,5vw,4rem); transform: rotate(-14deg); }

/* lista "manifesto" numerata (righe editoriali, non card) */
.manifesto { list-style: none; margin: 0 auto; padding: 0; max-width: 920px; position: relative; z-index: 2; }
.manifesto__row {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.3rem, 3vw, 2.1rem) 0;
  border-top: 2px solid rgba(252,248,238,.28);
}
.manifesto__row:last-child { border-bottom: 2px solid rgba(252,248,238,.28); }
.manifesto__num {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(2.2rem, 5vw, 3.6rem); min-width: 1.6em;
  color: rgba(252,248,238,.22);   /* pieno ma leggero: coerente su tutte le cifre */
}
.manifesto__ico {
  width: clamp(62px, 8vw, 88px); aspect-ratio: 1; border-radius: var(--r-sm);
  border: var(--stroke); box-shadow: var(--sh-sm); display: grid; place-items: center;
  transition: transform .2s var(--ease-pop);
}
.manifesto__ico[data-c="pink"]  { background: var(--pink); }
.manifesto__ico[data-c="orange"]{ background: var(--orange); }
.manifesto__ico[data-c="teal"]  { background: var(--teal); }
.manifesto__ico img { width: 62%; }
.manifesto__row:hover .manifesto__ico { transform: rotate(-6deg) scale(1.05); }
.manifesto__txt h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 .2em; color: var(--cream-2); }
.manifesto__txt p  { margin: 0; color: rgba(252,248,238,.9); max-width: 54ch; }

/* footer: stats + cta */
.chisiamo__foot {
  margin-top: clamp(2.4rem,5vw,4rem);
  display: flex; flex-direction: column; align-items: center; gap: clamp(1.6rem,3vw,2.4rem);
  position: relative; z-index: 2;
}
.chisiamo .hub-stats { margin-top: 0; }
.chisiamo .stat { background: var(--ink); }
.chisiamo .stat:nth-child(even) { background: var(--pink); }
.chisiamo__cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

@media (max-width: 520px) {
  .manifesto__row { grid-template-columns: auto 1fr; gap: 1rem; }
  .manifesto__num { display: none; }
}

/* =========================================================================
   STATISTICHE (nastro in "Chi siamo")
   ========================================================================= */
.hub-stats { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: clamp(2.5rem,5vw,4rem); }
.stat {
  background: var(--ink); color: var(--cream-2); border-radius: var(--r);
  padding: 1.2rem 1.8rem; min-width: 160px; text-align: center; transform: rotate(-1.5deg);
  border: var(--stroke);
}
.stat:nth-child(even){ transform: rotate(1.5deg); background: var(--purple); }
.stat b { font-family: var(--font-display); font-size: 2.6rem; display: block; line-height: 1; }
.stat span { font-weight: 700; font-size: .95rem; }

/* =========================================================================
   COMMUNITY / CTA
   ========================================================================= */
.split { display: grid; gap: clamp(1.6rem,4vw,3.4rem); align-items: center; grid-template-columns: 1.1fr .9fr; }
/* Collage di "adesivi": tessere colorate inclinate, niente cornice unica */
.community-art {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(.7rem, 1.8vw, 1.3rem);
  padding: clamp(.8rem, 2vw, 1.6rem);
}
.art-tile {
  aspect-ratio: 1; border: var(--stroke); border-radius: var(--r);
  box-shadow: var(--sh); display: grid; place-items: center;
  transition: transform .25s var(--ease-pop), box-shadow .25s var(--ease-pop);
}
.art-tile img { width: 62%; }
.art-tile[data-c="pink"]  { background: var(--pink); }
.art-tile[data-c="teal"]  { background: var(--teal); }
.art-tile[data-c="yellow"]{ background: var(--yellow); }
.art-tile[data-c="purple"]{ background: var(--purple); }
.art-tile[data-c="green"] { background: var(--green); }
.art-tile[data-c="orange"]{ background: var(--orange); }
/* inclinazioni alternate per un effetto "sticker sparsi" */
.art-tile:nth-child(1) { transform: rotate(-6deg); }
.art-tile:nth-child(2) { transform: rotate(3deg) translateY(-10px); }
.art-tile:nth-child(3) { transform: rotate(-2deg); }
.art-tile:nth-child(4) { transform: rotate(4deg); }
.art-tile:nth-child(5) { transform: rotate(-4deg) translateY(10px); }
.art-tile:nth-child(6) { transform: rotate(5deg); }
.art-tile:hover { transform: rotate(0deg) scale(1.07); box-shadow: var(--sh-lg); }
.badge-float {
  position: absolute; font-family: var(--font-display); font-weight: 800;
  background: var(--yellow); border: var(--stroke); border-radius: var(--r-pill);
  padding: .5em 1em; box-shadow: var(--sh-sm); font-size: 1rem;
}
.badge-float.b1 { top: 8%; right: -4%; transform: rotate(6deg); background: var(--pink); color: var(--cream-2); }
.badge-float.b2 { bottom: 10%; left: -5%; transform: rotate(-5deg); background: var(--teal); }

.cta-box {
  text-align: center; border: var(--stroke); border-radius: var(--r-lg);
  background: var(--yellow); box-shadow: var(--sh-lg);
  padding: clamp(2.4rem,5vw,4rem); position: relative; overflow: hidden;
}
.cta-box h2 { font-size: clamp(2rem,5vw,3.4rem); }
.cta-box .btn { margin-top: 1rem; }
.cta-note { font-weight: 700; margin-top: 1rem; opacity: .8; }

/* =========================================================================
   COME FUNZIONA — pacchetti
   ========================================================================= */
/* Intestazione di ogni fascia (45 min / 30 min) */
.fascia--sep { margin-top: clamp(2.6rem, 5vw, 4rem); }
.fascia__head {
  display: flex; align-items: center; gap: 1rem; justify-content: center;
  margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem); text-align: left;
}
.fascia__badge {
  flex: 0 0 auto; width: 66px; height: 66px; border-radius: 20px;
  border: var(--stroke); box-shadow: var(--sh-sm); display: grid; place-items: center;
}
.fascia__badge[data-c="teal"]   { background: var(--teal); }
.fascia__badge[data-c="orange"] { background: var(--orange); }
.fascia__badge img { width: 44px; height: 44px; object-fit: contain; }
.fascia__testo { display: flex; flex-direction: column; }
.fascia__durata { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.05; }
.fascia__eta { font-weight: 700; opacity: .78; font-size: .98rem; }

.plans {
  display: grid; gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(3, 1fr);
  max-width: 940px; margin: 0 auto; align-items: stretch;
}
.plan {
  position: relative; text-align: center;
  background: var(--cream-2); border: var(--stroke); border-radius: var(--r-lg);
  box-shadow: var(--sh); padding: 2.2rem 1.3rem 1.7rem;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .2s var(--ease-pop), box-shadow .2s var(--ease-pop);
}
.plan:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--sh-lg); }
.plan__count { font-family: var(--font-display); font-weight: 800; line-height: .85; font-size: clamp(2.9rem, 6vw, 4.4rem); }
.plan[data-c="teal"]   .plan__count { color: var(--teal-d); }
.plan[data-c="pink"]   .plan__count { color: var(--pink-d); }
.plan[data-c="yellow"] .plan__count { color: var(--orange-d); }
.plan__unit { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.plan__dur {
  margin-top: .8rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: var(--ink); color: var(--cream-2); border-radius: var(--r-pill); padding: .3em 1.1em;
}
/* Prezzi */
.plan__quota {
  margin-top: 1.1rem; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.95rem); line-height: 1;
}
.plan__quota em { font-style: normal; font-family: var(--font-body); font-weight: 700; font-size: .58em; opacity: .72; }
.plan__tot {
  margin-top: .45rem; font-size: .95rem; font-weight: 600; opacity: .8;
  padding-top: .45rem; border-top: 2px dotted rgba(20,20,20,.2); width: 100%;
}
.plan__tot strong { font-family: var(--font-display); font-weight: 800; font-size: 1.1em; opacity: 1; }
.plan__nota { margin: .9rem 0 0; font-size: .92rem; opacity: .82; }
/* card evidenziata (senza transform: il sistema di reveal lo azzererebbe) */
.plan--best { background: var(--pink); color: var(--cream-2); box-shadow: var(--sh-lg); padding-top: 2.9rem; z-index: 2; }
.plan--best .plan__count { color: var(--cream-2); }
.plan--best .plan__dur { background: var(--cream-2); color: var(--ink); }
.plan--best .plan__tot { border-top-color: rgba(247,241,225,.45); opacity: .92; }
.plan--best .plan__nota { opacity: .95; }
.plan__badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  font-family: var(--font-display); font-weight: 800; font-size: .82rem;
  background: var(--yellow); color: var(--ink); border: var(--stroke); border-radius: var(--r-pill);
  padding: .25em .9em; box-shadow: var(--sh-sm); white-space: nowrap;
}
.plans-cta { text-align: center; margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.plans-cta p { font-weight: 700; margin-bottom: .6rem; max-width: 42ch; margin-inline: auto; }

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; max-width: 420px; }
  /* anche in colonna la card "più vantaggiosa" resta quella centrale */
  .plan__badge { font-size: .78rem; }
}
@media (max-width: 460px) {
  .fascia__head { gap: .8rem; }
  .fascia__badge { width: 56px; height: 56px; border-radius: 16px; }
  .fascia__badge img { width: 36px; height: 36px; }
}

/* =========================================================================
   INSEGNANTI (pagina insegnanti.php) — righe alternate con ritagli su piazzola
   ========================================================================= */
.teachers-hero { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.roster { display: flex; flex-direction: column; gap: clamp(3.4rem, 7vw, 6rem); }

.prof {
  display: grid; align-items: center;
  grid-template-columns: clamp(190px, 26vw, 300px) 1fr;
  gap: clamp(1.6rem, 5vw, 4.5rem);
  /* arrivando dal link "Scopri l'insegnante" la riga non finisce sotto l'header */
  scroll-margin-top: calc(var(--header-h) + 2.5rem);
}
/* Evidenzia la riga raggiunta dal link di un corso */
@keyframes profHi { 0%,100% { box-shadow: 0 0 0 0 rgba(240,72,128,0); } 35% { box-shadow: 0 0 0 10px rgba(240,72,128,.28); } }
.prof:target .prof__stage { animation: profHi 1.6s ease-out .25s 2; }
/* Righe pari: piazzola a destra, testo a sinistra */
.prof:nth-child(even) { grid-template-columns: 1fr clamp(190px, 26vw, 300px); }
.prof:nth-child(even) .prof__stage { order: 2; }
.prof:nth-child(even) .prof__text  { order: 1; text-align: right; }
.prof:nth-child(even) .prof__facts li { padding-left: 0; padding-right: 1.4rem; }
.prof:nth-child(even) .prof__facts li::before { left: auto; right: 0; }
.prof:nth-child(even) .prof__cta { flex-direction: row-reverse; }
.prof:nth-child(even) .prof__cta svg { transform: rotate(180deg); }
.prof:nth-child(even) .prof__num { left: auto; right: 0; }

/* --- Piazzola quadrata con il ritaglio che sborda --- */
.prof__stage {
  position: relative; aspect-ratio: 1; width: 100%;
  border: var(--stroke); border-radius: 30px;
  box-shadow: var(--sh); overflow: visible;
}
.prof[data-c="teal"]   .prof__stage { background: var(--teal); }
.prof[data-c="pink"]   .prof__stage { background: var(--pink); }
.prof[data-c="yellow"] .prof__stage { background: var(--yellow); }
.prof[data-c="purple"] .prof__stage { background: var(--purple); }
.prof[data-c="green"]  .prof__stage { background: var(--green); }
.prof[data-c="orange"] .prof__stage { background: var(--orange); }

/* cerchio decorativo dentro la piazzola */
.prof__ring {
  position: absolute; inset: 12%; border-radius: 50%;
  border: 3px dashed rgba(20,20,20,.28);
}
/* il ritaglio: appoggiato in basso, la testa esce sopra il bordo */
.prof__cut {
  position: absolute; left: 50%; bottom: 0; z-index: 2;
  height: 118%; width: auto; max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(6px 6px 0 rgba(20,20,20,.22));
  transition: transform .35s var(--ease-pop);
}
.prof:hover .prof__cut { transform: translateX(-50%) translateY(-10px) scale(1.03); }
/* pastiglia con l'icona dello strumento */
.prof__icon {
  position: absolute; z-index: 3; bottom: -16px; right: -16px;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--cream-2); border: var(--stroke); box-shadow: var(--sh-sm);
  display: grid; place-items: center; transform: rotate(-8deg);
  transition: transform .3s var(--ease-pop);
}
.prof:nth-child(even) .prof__icon { right: auto; left: -16px; transform: rotate(8deg); }
.prof:hover .prof__icon { transform: rotate(0) scale(1.08); }
.prof__icon img { width: 38px; height: 38px; object-fit: contain; }

/* --- Testo --- */
.prof__text { position: relative; }
/* Numero pieno traslucido: in contorno il font mostra le linee interne dei glifi */
.prof__num {
  position: absolute; top: -.5em; left: 0; z-index: 0;
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(4.5rem, 11vw, 9rem);
  color: rgba(20,20,20,.09);
  pointer-events: none; user-select: none;
}
.prof__role {
  position: relative; z-index: 1; display: inline-block;
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  text-transform: uppercase; letter-spacing: .1em;
  background: var(--ink); color: var(--cream-2);
  padding: .32em .95em; border-radius: var(--r-pill); transform: rotate(-1.5deg);
}
.prof__name {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 800; line-height: .98;
  font-size: clamp(2rem, 5.2vw, 3.4rem); margin: .5rem 0 .9rem;
}
.prof__facts { position: relative; z-index: 1; list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .55rem; }
.prof__facts li { position: relative; padding-left: 1.4rem; font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.5; max-width: 46ch; }
.prof:nth-child(even) .prof__facts li { margin-left: auto; }
.prof__facts li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--ink);
}
.prof[data-c="teal"]   .prof__facts li::before { background: var(--teal); }
.prof[data-c="pink"]   .prof__facts li::before { background: var(--pink); }
.prof[data-c="yellow"] .prof__facts li::before { background: var(--yellow); }
.prof[data-c="purple"] .prof__facts li::before { background: var(--purple); }
.prof[data-c="green"]  .prof__facts li::before { background: var(--green); }
.prof[data-c="orange"] .prof__facts li::before { background: var(--orange); }

.prof__azioni {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
}
.prof:nth-child(even) .prof__azioni { justify-content: flex-end; }

/* Secondo pulsante: apre il CV in PDF */
.prof__cv {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--ink); background: transparent;
  border: var(--stroke); border-radius: var(--r-pill);
  padding: .5em 1.05em;
  transition: background .2s, color .2s, transform .15s var(--ease-pop), box-shadow .15s var(--ease-pop);
}
.prof__cv svg { width: 1.15em; height: 1.15em; }
.prof__cv:hover {
  background: var(--ink); color: var(--cream-2);
  transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink);
}

.prof__cta {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: var(--cream-2); border: var(--stroke); border-radius: var(--r-pill);
  padding: .55em 1.15em; box-shadow: var(--sh-sm);
  transition: transform .15s var(--ease-pop), box-shadow .15s var(--ease-pop);
}
.prof__cta:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.prof__cta svg { width: 1.05em; height: 1.05em; }

/* Tablet e mobile: piazzola sopra, testo sotto, tutte le righe uguali */
@media (max-width: 760px) {
  .roster { gap: clamp(3rem, 9vw, 4.5rem); }
  .prof,
  .prof:nth-child(even) { grid-template-columns: 1fr; justify-items: center; gap: 1.4rem; }
  .prof:nth-child(even) .prof__stage { order: 0; }
  .prof:nth-child(even) .prof__text  { order: 0; text-align: center; }
  .prof__stage { width: min(62vw, 260px); }
  .prof__text { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .prof__num { position: static; display: block; font-size: 3.2rem; margin-bottom: -.15em; }
  .prof:nth-child(even) .prof__num { right: auto; }
  .prof__facts li,
  .prof:nth-child(even) .prof__facts li {
    padding: 0; text-align: center; max-width: 34ch; margin-inline: auto;
  }
  .prof__facts li::before,
  .prof:nth-child(even) .prof__facts li::before { display: none; }
  .prof__facts li + li { padding-top: .55rem; border-top: 2px dotted rgba(20,20,20,.22); }
  .prof:nth-child(even) .prof__cta { flex-direction: row; }
  .prof:nth-child(even) .prof__cta svg { transform: none; }
  .prof__azioni,
  .prof:nth-child(even) .prof__azioni { justify-content: center; }
}

/* =========================================================================
   CONTATTI / FOOTER
   ========================================================================= */
.contatti-grid { display: grid; gap: clamp(1.4rem,3vw,2.4rem); grid-template-columns: 1fr 1fr; }
.contact-card {
  background: var(--cream-2); border: var(--stroke); border-radius: var(--r-lg);
  padding: clamp(1.6rem,3vw,2.4rem); box-shadow: var(--sh);
}
.contact-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ic {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; border: var(--stroke);
  display: grid; place-items: center; background: var(--teal); box-shadow: var(--sh-sm);
}
.contact-list li:nth-child(2) .ic { background: var(--pink); }
.contact-list li:nth-child(3) .ic { background: var(--yellow); }
.contact-list li:nth-child(4) .ic { background: var(--green); }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list b { font-family: var(--font-display); display: block; }
.contact-list a { font-weight: 700; word-break: break-word; }
.map-card { border: var(--stroke); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); min-height: 320px; background: var(--cream-2); }
.map-card iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: saturate(1.1); }

/* Segnaposto mappa finché non c'è il consenso */
.map-placeholder {
  min-height: 320px; height: 100%; display: grid; place-content: center; justify-items: center;
  gap: .8rem; text-align: center; padding: 2rem 1.4rem;
  background:
    repeating-linear-gradient(45deg, rgba(20,20,20,.04) 0 12px, transparent 12px 24px),
    var(--cream-2);
}
.map-placeholder__ic {
  width: 56px; height: 56px; border-radius: 50%; border: var(--stroke); background: var(--teal);
  display: grid; place-items: center; box-shadow: var(--sh-sm); color: var(--ink);
}
.map-placeholder__ic svg { width: 26px; height: 26px; }
.map-placeholder p { margin: 0; max-width: 32ch; }
.map-placeholder__link { font-weight: 700; text-decoration: underline; font-size: .95rem; }
.map-placeholder[hidden] { display: none; }   /* senza questa, il segnaposto resta sopra la mappa */

/* =========================================================================
   FAQ (accordion nativo <details>, funziona anche senza JS)
   ========================================================================= */
.faq { max-width: 880px; margin-inline: auto; display: grid; gap: 1rem; }
.faq__item {
  background: var(--cream); border: var(--stroke); border-radius: var(--r);
  box-shadow: var(--sh-sm); overflow: hidden;
  transition: box-shadow .2s var(--ease-pop), transform .2s var(--ease-pop);
}
.faq__item[open] { box-shadow: var(--sh); }
.faq__item:hover { transform: translate(-2px,-2px); box-shadow: var(--sh); }
.faq__q {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .9rem;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  padding: 1.05rem 1.3rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; margin-left: auto; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%; border: var(--stroke);
  background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; font-size: 1.4rem; line-height: 1;
  transition: transform .25s var(--ease-pop), background .2s;
}
.faq__item[open] .faq__q::after { content: "−"; transform: rotate(180deg); background: var(--pink); color: var(--cream-2); }
.faq__a { padding: 0 1.3rem 1.2rem; }
.faq__a p { margin: 0; max-width: 68ch; }

/* =========================================================================
   BANNER COOKIE
   ========================================================================= */
.cookie-banner {
  position: fixed; z-index: 200; left: 50%; transform: translateX(-50%);
  bottom: clamp(.8rem, 2vw, 1.5rem); width: min(100% - 1.6rem, 760px);
  background: var(--cream-2); border: var(--stroke); border-radius: var(--r);
  box-shadow: var(--sh-lg); padding: clamp(1rem, 2.5vw, 1.5rem);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-banner p { margin: 0; font-size: .95rem; flex: 1 1 320px; }
.cookie-banner a { font-weight: 800; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-banner__actions .btn { font-size: .95rem; padding: .6em 1.1em; }
@media (max-width: 600px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* =========================================================================
   PAGINE LEGALI (privacy / cookie)
   ========================================================================= */
.legal { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); }
.legal__wrap { max-width: 78ch; }
.legal__wrap h1 { margin-bottom: .3em; }
.legal__meta { font-weight: 700; opacity: .7; margin-bottom: 2rem; }
.legal__wrap h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 2.2rem 0 .6em;
  padding-top: 1.2rem; border-top: 2px dashed rgba(20,20,20,.18);
}
.legal__wrap ul { padding-left: 1.2rem; display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.legal__wrap a { text-decoration: underline; font-weight: 700; }
.legal__wrap code { background: var(--cream-2); border: 2px solid rgba(20,20,20,.15); border-radius: 6px; padding: .1em .4em; font-size: .92em; }
.legal__table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem;
  background: var(--cream-2); border: var(--stroke); border-radius: var(--r-sm); overflow: hidden;
}
.legal__table th, .legal__table td { padding: .7em .9em; text-align: left; border-bottom: 2px solid rgba(20,20,20,.12); font-size: .95rem; vertical-align: top; }
.legal__table th { background: var(--ink); color: var(--cream-2); font-family: var(--font-display); }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__back { margin-top: 2.5rem; }
/* tabelle scrollabili su schermi stretti */
@media (max-width: 620px) {
  .legal__table { display: block; overflow-x: auto; white-space: nowrap; }
}

.site-footer { background: var(--ink); color: var(--cream-2); padding: clamp(3rem,6vw,5rem) 0 2rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-brand img { width: 200px; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; opacity: .8; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { font-size: 1.1rem; color: var(--yellow); text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { opacity: .82; font-weight: 600; }
.footer-col a:hover { opacity: 1; color: var(--yellow); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 2px dashed rgba(247,241,225,.25);
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center;
  justify-content: space-between; font-size: .88rem;
}
.footer-bottom > span, .footer-legal { opacity: .72; }

/* Firma dello studio: badge cliccabile, ben visibile */
.footer-credit {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5em 1em; border-radius: var(--r-pill);
  border: 2px solid rgba(247,241,225,.28);
  transition: background .2s, border-color .2s, transform .18s var(--ease-pop);
}
.footer-credit__label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; opacity: .65;
}
.footer-credit__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  color: var(--yellow); letter-spacing: .01em;
}
.footer-credit__arrow { width: 15px; height: 15px; opacity: .65; }
.footer-credit:hover {
  background: var(--yellow); border-color: var(--yellow); transform: translateY(-2px);
}
.footer-credit:hover .footer-credit__name,
.footer-credit:hover .footer-credit__label,
.footer-credit:hover .footer-credit__arrow { color: var(--ink); opacity: 1; }
.footer-bottom a { text-decoration: underline; }
.footer-bottom a:hover { color: var(--yellow); }

/* Informative + gestione consenso, subito dopo il copyright */
.footer-legal { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.footer-legal__sep { opacity: .45; }
.footer-legal__btn {
  background: none; border: 0; padding: 0; margin: 0;
  color: inherit; font: inherit; text-decoration: underline; cursor: pointer;
}
.footer-legal__btn:hover { color: var(--yellow); }

/* Riga dati legali (ragione sociale, sede, P.IVA, PEC) */
.footer-legal-info {
  width: 100%; margin: 1.4rem 0 0; padding-top: 1.2rem;
  border-top: 1px solid rgba(247,241,225,.15);
  font-size: .82rem; opacity: .6; line-height: 1.7;
}
.footer-legal-info span { opacity: .5; margin: 0 .15rem; }
.footer-legal-info a { text-decoration: underline; }
.footer-legal-info a:hover { color: var(--yellow); }

/* Stato del consenso mostrato nella Cookie Policy */
.legal__consent-state { font-weight: 600; opacity: .85; }

/* Social pill */
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--cream-2);
  display: grid; place-items: center; transition: background .2s, color .2s, transform .15s;
}
.socials a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-3px); }
.socials svg { width: 22px; height: 22px; }

/* =========================================================================
   Animazioni scroll (JS aggiunge .is-in)
   ========================================================================= */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s var(--ease-pop); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-pop] { opacity: 0; transform: scale(.7) rotate(-4deg); transition: opacity .5s ease, transform .5s var(--ease-pop); }
[data-reveal-pop].is-in { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .split, .contatti-grid { grid-template-columns: 1fr; }
  .pillar:nth-child(2){ transform: none; }
  .footer-top { flex-direction: column; }
  /* meno affollamento: via le icone centrali e formato ridotto */
  .floater.f3, .floater.f14 { display: none; }
  .floater { width: calc(var(--sz, 80px) * 0.78); }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav, .header-cta { display: none; }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 48px; height: 48px; background: var(--yellow); border: var(--stroke);
    border-radius: 14px; box-shadow: var(--sh-sm);
  }
  .nav-toggle span { width: 22px; height: 3px; background: var(--ink); position: relative; transition: background .2s; }
  .nav-toggle span::before, .nav-toggle span::after {
    content:""; position:absolute; left:0; width:22px; height:3px; background: var(--ink);
    transition: transform .28s var(--ease-pop);
  }
  .nav-toggle span::before { top:-7px; } .nav-toggle span::after { top:7px; }
  /* hamburger -> X quando la sidebar è aperta */
  .nav-toggle.is-active span { background: transparent; }
  .nav-toggle.is-active span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span::after  { transform: translateY(-7px) rotate(-45deg); }

  /* La testata resta sopra la sidebar, così il pulsante chiude sempre */
  .site-header { z-index: 130; }

  /* ---- SIDEBAR MOBILE: pannello che entra da DESTRA ---- */
  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 110;
    background: rgba(20,20,20,.5);
    opacity: 0; transition: opacity .3s ease;
  }
  .nav-backdrop[hidden] { display: none; }
  .nav-backdrop.is-open { opacity: 1; }

  .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: .35rem;
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
    width: min(330px, 86vw); max-width: 100%;
    background: var(--cream-2); border-left: var(--stroke);
    padding: calc(var(--header-h) + 1.1rem) 1.1rem 1.4rem;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(105%); visibility: hidden;
    transition: transform .34s var(--ease-pop), visibility .34s;
  }
  .nav.is-open { transform: none; visibility: visible; }

  /* CTA a tutta larghezza della sidebar, dimensionata per non sforare mai */
  .nav__cta {
    display: flex; width: 100%; justify-content: center; text-align: center;
    margin-top: 1.2rem; font-size: 1rem; padding: .8em .9em;
    white-space: normal;            /* meglio andare a capo che uscire dal pannello */
    box-shadow: var(--sh-sm);
  }
  .nav__cta svg { flex: 0 0 auto; }
  .nav__title {
    display: block; font-family: var(--font-display); font-weight: 800;
    font-size: .85rem; text-transform: uppercase; letter-spacing: .14em;
    opacity: .55; margin-bottom: .4rem;
  }
  /* :not(.btn) — così la CTA "Prova gratuita" tiene il suo verde WhatsApp */
  .nav a:not(.btn) {
    font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
    padding: .62em .8em; border-radius: var(--r-sm);
    border: 2px solid transparent; background: transparent;
  }
  .nav a:not(.btn):hover, .nav a:not(.btn):active { background: var(--cream); border-color: var(--ink); }

  .nav__foot {
    margin-top: auto; padding-top: 1.2rem; display: flex; gap: .8rem; flex-wrap: wrap;
    border-top: 2px dashed rgba(20,20,20,.2);
  }
  .nav__foot a { font-size: .95rem; padding: .3em 0; text-decoration: underline; }
  .nav__foot a:hover { background: none; border-color: transparent; }

  /* blocca lo scroll della pagina quando la sidebar è aperta */
  body.nav-locked { overflow: hidden; }
  /* Su mobile solo 4 icone agli angoli */
  .floater { display: none; }
  .floater.f1, .floater.f5, .floater.f12, .floater.f16 { display: block; --sz: 58px !important; }
  .floater.f1  { top: 8%;  left: 4%; }
  .floater.f5  { top: 8%;  right: 4%; }
  .floater.f12 { top: 88%; left: 5%; }
  .floater.f16 { top: 88%; right: 5%; }
  .stat { min-width: 130px; }
  .stat b { font-size: 2rem; }
}

/* Viewport bassi: niente icone nella fascia bassa centrale (spazio ai bottoni) */
@media (max-height: 760px) {
  .floater.f13, .floater.f14, .floater.f15 { display: none; }
}

/* Rispetta chi preferisce meno movimento */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  [data-reveal], [data-reveal-pop] { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
}
