/* =====================================================================
   I brani pubblici: gli stessi colori e caratteri del sito e della home di Echora.
   ===================================================================== */
:root {
  --bg: #030206;
  --ink: #fff4e4;
  --w: 255 226 196;
  --a: 205 186 255;
  --cuore: #ff9a8a;
  --edge: rgb(255 244 228 / .12);
  --tenue: rgb(255 244 228 / .55);
  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --caps: 'Cinzel', 'Cormorant Garamond', Garamond, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, rgb(var(--a) / .08), transparent 70%),
    var(--bg);
  color: var(--ink);
  font: 300 clamp(17px, 1.2vw, 20px)/1.5 var(--serif);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 1px dotted rgb(255 244 228 / .5); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---- testa ------------------------------------------------------------------------------- */
.testa {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  max-width: 760px; margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 0;
}
.indietro { font-style: italic; text-decoration: none; opacity: .6; letter-spacing: .04em; justify-self: start; padding: 8px 0; }
.indietro:hover { opacity: 1; }
h1 { margin: 0; display: flex; align-items: center; gap: 10px; font: 400 clamp(19px, 3vw, 24px) var(--caps); letter-spacing: .3em; }
h1 span { margin-right: -.3em; }
.onde { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: .9; stroke-linecap: round; filter: drop-shadow(0 0 5px rgb(var(--w) / .45)); }
.onde .punto { fill: currentColor; stroke: none; }
.onde .wave { animation: respiro 3.8s ease-in-out infinite alternate; }
.onde .far { animation-delay: -1.3s; }
.onde .farther { animation-delay: -2.6s; }
@keyframes respiro { from { opacity: .2; } to { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .onde .wave { animation: none; opacity: .7; } }
.io {
  justify-self: end; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 1px solid var(--edge); border-radius: 999px; padding: 5px 14px; font-size: .9em; opacity: .85;
}
.io:hover { background: rgb(255 244 228 / .06); opacity: 1; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; overflow-x: clip; }
em { font-style: italic; color: rgb(var(--w)); text-shadow: 0 0 18px rgb(var(--w) / .35); }
.kicker { margin: 0 0 10px; font: 400 .72em var(--caps); letter-spacing: .32em; text-transform: uppercase; color: rgb(var(--a) / .85); }
.lead { margin: 12px auto 0; max-width: 34em; color: rgb(255 244 228 / .78); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  border: 1px solid var(--edge); border-radius: 999px; padding: 9px 22px; letter-spacing: .03em;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { background: rgb(255 244 228 / .06); border-color: rgb(255 244 228 / .25); }
.btn.primo { background: rgb(var(--w) / .12); border-color: rgb(var(--w) / .35); box-shadow: 0 0 24px rgb(var(--w) / .12); }
.btn.primo:hover { background: rgb(var(--w) / .2); box-shadow: 0 0 34px rgb(var(--w) / .22); }
.azioni { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* ---- apertura ------------------------------------------------------------------------------------- */
.apertura { position: relative; text-align: center; padding: clamp(46px, 9vw, 90px) 0 clamp(30px, 6vw, 56px); isolation: isolate; }
.grande { margin: 0; font: 300 clamp(34px, 6.4vw, 58px)/1.08 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.cerchi { position: absolute; z-index: -1; left: 50%; top: 46%; width: 0; height: 0; pointer-events: none; }
.cerchi i {
  position: absolute; left: -260px; top: -260px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgb(var(--w) / .5); opacity: 0; transform: scale(.15);
  animation: onda 9s cubic-bezier(.2, .6, .2, 1) infinite;
}
.cerchi i:nth-child(2) { animation-delay: -2.25s; border-color: rgb(var(--a) / .55); }
.cerchi i:nth-child(3) { animation-delay: -4.5s; }
.cerchi i:nth-child(4) { animation-delay: -6.75s; border-color: rgb(var(--a) / .55); }
.cerchi::before {
  content: ''; position: absolute; left: -230px; top: -170px; width: 460px; height: 340px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--a) / .16), rgb(var(--w) / .05) 55%, transparent);
  filter: blur(10px);
}
@keyframes onda { 0% { opacity: 0; transform: scale(.15); } 15% { opacity: .5; } 100% { opacity: 0; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .cerchi i { animation: none; opacity: .12; } .cerchi i:nth-child(2) { transform: scale(.5); } .cerchi i:nth-child(3) { transform: scale(.8); } .cerchi i:nth-child(1) { transform: scale(.25); } }
.numeri { list-style: none; display: flex; justify-content: center; gap: clamp(22px, 6vw, 56px); margin: 30px 0 0; padding: 0; }
.numeri li { display: flex; flex-direction: column; align-items: center; }
.numeri b { font: 300 clamp(28px, 5vw, 40px)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: rgb(var(--w)); text-shadow: 0 0 16px rgb(var(--w) / .3); }
.numeri span { margin-top: 6px; font: 400 .66em var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--tenue); }

/* ---- in evidenza ------------------------------------------------------------------------------------- */
.evidenza-sez { margin: 0 0 34px; text-align: center; }
.lista.in-cima { margin-top: 6px; }
.lista.in-cima .brano {
  text-align: left; padding: 18px 16px; border: 1px solid rgb(var(--w) / .22); border-radius: 18px;
  background: linear-gradient(135deg, rgb(var(--a) / .1), rgb(var(--w) / .05) 60%, transparent);
  box-shadow: 0 0 40px rgb(var(--a) / .08);
}
.lista.in-cima .titolo { font-size: 1.45em; }

/* ---- sezioni ---------------------------------------------------------------------------------------------- */
.brani-sez { scroll-margin-top: 16px; }
h2.sez { margin: 0 0 14px; font: 400 .78em var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--tenue); text-align: center; }
.blocco { text-align: center; padding: clamp(36px, 6vw, 60px) 0 0; scroll-margin-top: 10px; }
.blocco::before {
  content: ''; display: block; width: 1px; height: 54px; margin: 0 auto clamp(32px, 5vw, 46px);
  background: linear-gradient(transparent, rgb(var(--w) / .4), transparent);
}
.blocco h2 { margin: 0; font: 300 clamp(28px, 4.8vw, 42px)/1.12 var(--serif); text-wrap: balance; }

/* condividi */
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.social a, .social button {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: .95em;
  border: 1px solid var(--edge); border-radius: 999px; padding: 8px 16px 8px 12px; transition: background .3s, border-color .3s, color .3s;
}
.social a:hover, .social button:hover { background: rgb(255 244 228 / .06); border-color: rgb(255 244 228 / .25); }
.social svg { width: 20px; height: 20px; fill: currentColor; opacity: .9; }
.social .whatsapp:hover { color: #7fe3a5; }
.social .telegram:hover { color: #8fcff5; }
.social .facebook:hover { color: #9fb8ff; }
.social .x:hover { color: #fff; }

/* passi */
.passi { list-style: none; margin: 34px auto 0; padding: 0; display: grid; gap: 14px; max-width: 620px; text-align: left; }
.passi li { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--edge); border-radius: 16px; background: rgb(255 244 228 / .02); }
.passi .n { font: 400 1.1em var(--caps); color: rgb(var(--w)); text-align: center; padding-top: 3px; letter-spacing: .08em; text-shadow: 0 0 12px rgb(var(--w) / .4); }
.passi h3 { margin: 0; font: 400 .9em var(--caps); letter-spacing: .2em; text-transform: uppercase; }
.passi p { margin: 4px 0 0; color: rgb(255 244 228 / .75); }
.regole { margin: 22px auto 0; max-width: 36em; font-style: italic; color: var(--tenue); }

/* studio */
.studio-carta {
  position: relative; overflow: hidden; padding: clamp(30px, 6vw, 52px) clamp(20px, 5vw, 44px); border-radius: 24px;
  border: 1px solid rgb(var(--a) / .3);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgb(var(--a) / .16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgb(var(--w) / .08), transparent 70%),
    rgb(255 244 228 / .02);
  box-shadow: 0 0 60px rgb(var(--a) / .1);
}
.fiore { width: 54px; height: 54px; fill: none; stroke: rgb(var(--a)); stroke-width: .8; margin-bottom: 12px; filter: drop-shadow(0 0 10px rgb(var(--a) / .6)); animation: gira 40s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fiore { animation: none; } }
.vantaggi { list-style: none; margin: 26px auto 0; padding: 0; display: grid; gap: 12px; max-width: 540px; text-align: left; }
.vantaggi li { display: flex; flex-direction: column; padding-left: 26px; position: relative; }
.vantaggi li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--a)); box-shadow: 0 0 10px rgb(var(--a) / .8); }
.vantaggi b { font-weight: 400; font-size: 1.08em; }
.vantaggi span { color: var(--tenue); }
.hai-studio { margin: 24px 0 0; font-style: italic; color: rgb(var(--a)); }

/* youtube */
.yt {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; text-decoration: none; text-align: left;
  border: 1px solid rgb(255 80 80 / .35); border-radius: 16px; padding: 12px 22px 12px 16px;
  background: rgb(255 60 60 / .06); transition: background .3s, box-shadow .3s;
}
.yt:hover { background: rgb(255 60 60 / .12); box-shadow: 0 0 30px rgb(255 60 60 / .15); }
.yt svg { width: 38px; height: 38px; fill: #ff4b4b; }
.yt svg .play { fill: var(--bg); }
.yt small { display: block; color: var(--tenue); font-size: .85em; }
.yt strong { font-weight: 400; font-size: 1.1em; }
.shorts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 28px; }
.short { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; border: 1px solid var(--edge); background: #0d0a12; }
.short button { position: absolute; inset: 0; width: 100%; height: 100%; }
.short img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s; }
.short button:hover img { opacity: 1; transform: scale(1.03); }
.short button::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: rgb(0 0 0 / .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%23fff4e4'/%3E%3C/svg%3E") center / 26px no-repeat;
  border: 1px solid rgb(255 244 228 / .4);
}
.short iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* scarica */
.store-fila { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 190px; text-decoration: none; text-align: left; border: 1px solid var(--edge); border-radius: 14px; padding: 10px 18px 10px 14px; transition: background .3s, border-color .3s; }
.store:hover { background: rgb(255 244 228 / .06); border-color: rgb(255 244 228 / .25); }
.store svg { width: 28px; height: 28px; fill: currentColor; }
.store svg rect, .store svg path[d^="M8.5"] { fill: none; stroke: currentColor; stroke-width: 1.3; }
.store small { display: block; font-size: .78em; color: var(--tenue); }
.store strong { font-weight: 400; font-size: 1.08em; }

/* piede */
.piede {
  max-width: 760px; margin: clamp(60px, 10vw, 100px) auto 0; padding: 26px 16px calc(30px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--edge); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  font-size: .9em; color: var(--tenue);
}
.piede span { font-family: var(--caps); letter-spacing: .24em; }
.piede a { text-decoration: none; }
.piede a:hover { color: var(--ink); }

/* ---- ricerca e ordine ---------------------------------------------------------------------- */
.strumenti { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cerca { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--edge); padding: 4px 2px; }
.cerca svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; opacity: .5; flex: none; }
.cerca input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: none; border: 0; outline: none; padding: 6px 0; }
.cerca input::placeholder { color: var(--tenue); font-style: italic; }
.cerca input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.ordine { display: flex; border: 1px solid var(--edge); border-radius: 999px; padding: 3px; }
.ordine button { border-radius: 999px; padding: 4px 14px; font-size: .92em; opacity: .6; transition: opacity .3s, background .3s; }
.ordine button[aria-checked="true"] { background: rgb(255 244 228 / .1); opacity: 1; }
.filtro { margin: 16px 0 0; font-style: italic; opacity: .8; }
.filtro b { font-weight: 400; font-style: normal; }
.filtro button { margin-left: 6px; border: 1px solid var(--edge); border-radius: 50%; width: 26px; height: 26px; line-height: 1; font-style: normal; }

/* ---- elenco ----------------------------------------------------------------------------------- */
.lista { list-style: none; margin: 18px 0 0; padding: 0; }
.brano {
  display: grid; grid-template-columns: 46px 1fr auto auto auto; align-items: center; gap: 4px 8px;
  padding: 12px 4px; border-bottom: 1px solid var(--edge);
  transition: background .6s ease;
}
.brano.evidenza { background: rgb(var(--a) / .08); border-radius: 10px; }
.suona { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.suona svg { width: 44px; height: 44px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; }
.suona .giro { opacity: .25; }
.suona .avanti { stroke-linecap: butt; transform: rotate(-90deg); transform-origin: 22px 22px; stroke-dasharray: var(--p, 0) 1; opacity: 0; transition: opacity .3s; }
.suona .play { fill: currentColor; stroke: none; opacity: .85; }
.suona .pausa { fill: currentColor; stroke: none; opacity: 0; }
.brano.in-ascolto .suona .avanti { opacity: .9; }
.brano.in-ascolto .suona .play { opacity: 0; }
.brano.in-ascolto .suona .pausa { opacity: .9; }
.brano.in-ascolto.in-pausa .suona .play { opacity: .85; }
.brano.in-ascolto.in-pausa .suona .pausa { opacity: 0; }
.brano.in-ascolto .suona svg { filter: drop-shadow(0 0 5px rgb(var(--w) / .5)); }
.brano.carica .suona .giro { animation: carica 1s ease-in-out infinite alternate; }
@keyframes carica { from { opacity: .15; } to { opacity: .6; } }
.testo { min-width: 0; }
.titolo { display: block; font-size: 1.12em; font-weight: 400; line-height: 1.25; overflow-wrap: anywhere; }
.sotto { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: .9em; color: var(--tenue); }
.nick { font-style: italic; color: var(--ink); opacity: .85; text-align: left; }
.nick:hover { text-decoration: underline; text-underline-offset: 3px; }
.barra { grid-column: 2 / -1; height: 14px; display: none; align-items: center; cursor: pointer; }
.barra i { display: block; height: 2px; width: 100%; background: linear-gradient(90deg, rgb(var(--w) / .8) var(--p, 0%), rgb(255 244 228 / .15) var(--p, 0%)); border-radius: 2px; }
.brano.in-ascolto .barra { display: flex; }
.cuore { display: flex; align-items: center; gap: 6px; padding: 8px 6px; min-width: 44px; justify-content: center; font-variant-numeric: tabular-nums; }
.cuore svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; opacity: .7; transition: transform .25s ease; }
.cuore[aria-pressed="true"] { color: var(--cuore); }
.cuore[aria-pressed="true"] svg { fill: currentColor; opacity: 1; }
.cuore.batte svg { animation: batte .45s ease; }
@keyframes batte { 40% { transform: scale(1.35); } }
.cuore:disabled { cursor: default; opacity: .55; }
.cuore span { min-width: 1ch; font-size: .95em; }
.altro { width: 36px; height: 44px; font-size: 1.3em; letter-spacing: .05em; opacity: .55; }
.manda { width: 40px; height: 44px; display: grid; place-items: center; opacity: .7; }
.manda svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.manda:hover { opacity: 1; }
.altro:hover { opacity: 1; }

.vuoto { text-align: center; font-style: italic; color: var(--tenue); margin: 50px 0; }
.altri { display: block; margin: 26px auto 0; border: 1px solid var(--edge); border-radius: 999px; padding: 7px 22px; }
.altri:hover { background: rgb(255 244 228 / .06); }

/* ---- avvisi e dialoghi ----------------------------------------------------------------------------- */
.avviso {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: rgb(30 24 34 / .95); border: 1px solid var(--edge); border-radius: 999px; padding: 8px 20px;
  font-style: italic; opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s; max-width: calc(100vw - 32px); text-align: center;
}
.avviso.on { opacity: 1; transform: translate(-50%, 0); }
.dialogo {
  background: #120e16; color: var(--ink); border: 1px solid var(--edge); border-radius: 16px;
  padding: 22px; width: min(400px, calc(100vw - 32px)); font: inherit;
}
.dialogo::backdrop { background: rgb(0 0 0 / .65); }
.dialogo h2 { font: 400 1.05em var(--caps); letter-spacing: .14em; margin: 0 0 10px; }
.dialogo p { margin: 8px 0; }
.dialogo .tenue { color: var(--tenue); font-size: .92em; }
.dialogo .errore { color: var(--cuore); font-size: .92em; min-height: 1.2em; }
.dialogo input[type="email"], .dialogo input[type="text"], .dialogo input.codice {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: rgb(255 244 228 / .05);
  border: 1px solid var(--edge); border-radius: 8px; padding: 10px 12px; margin: 6px 0; outline: none;
}
.dialogo input.codice { letter-spacing: .4em; text-align: center; font-size: 22px; }
.dialogo .tasti { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.dialogo .tasti button { border: 1px solid var(--edge); border-radius: 999px; padding: 6px 18px; }
.dialogo .tasti button.primo { background: rgb(255 244 228 / .1); }
.dialogo .tasti button:disabled { opacity: .4; cursor: default; }
.dialogo .voci { display: flex; flex-direction: column; gap: 2px; margin: 4px -8px; }
.dialogo .voci button { text-align: left; padding: 10px 8px; border-radius: 8px; }
.dialogo .voci button:hover { background: rgb(255 244 228 / .06); }
.dialogo .voci label { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; cursor: pointer; }
.dialogo .voci label:hover { background: rgb(255 244 228 / .06); }
.dialogo .voci input { accent-color: #d8c3ff; }
.dialogo .social { justify-content: flex-start; margin-top: 14px; }

@media (max-width: 480px) {
  .testa { grid-template-columns: auto 1fr auto; }
  h1 { justify-self: center; letter-spacing: .2em; }
  .brano { grid-template-columns: 44px 1fr auto auto auto; gap: 2px 4px; }
  .altro { width: 26px; }
  .manda { width: 34px; }
  .cuore { min-width: 40px; padding: 8px 2px; }
  .passi li { grid-template-columns: 34px 1fr; padding: 14px; gap: 10px; }
  .social a, .social button { padding: 8px 14px 8px 10px; }
}
