/* Area clienti di Plancia: uno studio creativo notturno, blu navale e oro del timone (stessi colori del logo).
   Su telefono: barra delle sezioni in basso, come un'app. Su computer: la stessa barra in alto. */
body.area {
  --pearl: #070c11;
  --surface: #0f1a24;
  --surface-2: #142231;
  --ink: #eef2f6;
  --muted: #9aabbf;
  --border: #22323f;
  --gold-soft: rgba(233, 207, 138, 0.12);
  --gold-ink: #e9cf8a;
  --raggio: 18px;
  background: radial-gradient(120% 60% at 50% -10%, #142536 0%, #070c11 60%) fixed, #070c11;
  color: var(--ink);
  min-height: 100vh;
}
[hidden] { display: none !important; }
.ico { width: 22px; height: 22px; flex: none; }
.area h1, .area h2, .area h3 { color: #fff; letter-spacing: -0.02em; }
.area .muted { color: var(--muted); }
.link { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.area a:not(.btn):not(.brand) { color: var(--gold); }
.piccolo { font-size: 0.82rem; margin: 6px 0 0; }
.riga-bottoni { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* componenti comuni in versione scura */
.area .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--raggio); padding: 18px; box-shadow: none; }
.area .card h2 { font-size: 1.08rem; margin: 0 0 8px; }
.area .input { background: #0a131b; color: var(--ink); border: 1px solid var(--border); border-radius: 12px; }
.area .input::placeholder { color: #66788c; }
.area .input:focus { outline: 2px solid rgba(233, 207, 138, 0.35); border-color: var(--gold-deep); }
.area .field { color: #c9d3df; }
.area .btn-secondary { background: var(--surface-2); color: var(--ink); border-color: var(--border); }
.area .btn-secondary:hover { background: #1b2c3d; border-color: var(--gold-deep); color: var(--gold); }
.area .btn-ghost { color: var(--muted); }
.area .btn-ghost:hover { background: rgba(255,255,255,.05); color: #fff; }
.area .hint { color: var(--muted); }
.area .hint.ok { color: #6ee7a8; }
.area .hint.err { color: #ff9d9d; }
.area .table th { color: var(--muted); background: transparent; border-bottom: 1px solid var(--border); }
.area .table td { border-bottom: 1px solid #17242f; color: #d7dee7; }
.area .badge-soft { background: #1b2a38; color: #c9d3df; }
.area .chip-btn { background: var(--surface-2); color: var(--ink); border: 1px solid var(--border); }
.area .chip-btn.is-active { background: var(--gold); color: var(--slate-deep); border-color: var(--gold); }
.btn-tondo { width: 48px; height: 48px; padding: 0; border-radius: 50%; flex: none; }
.btn-tondo .ico { width: 20px; height: 20px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------------------------------ accesso */
.accesso { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; overflow: hidden; }
.accesso-sfondo { position: absolute; inset: -40px; background: url("esempi/video-virale-anteprima.jpg") center / cover; filter: blur(28px) saturate(1.2); opacity: .45; }
.accesso-sfondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,12,17,.55), #070c11 85%); }
.accesso-box { position: relative; width: 100%; max-width: 430px; background: rgba(15, 26, 36, .88); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 24px; padding: 24px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.accesso-capo { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.accesso-box .brand { color: #fff; }
.accesso-frase { font-size: 1.25rem; font-weight: 800; line-height: 1.25; color: #fff; margin: 18px 0 16px; letter-spacing: -0.02em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #0a131b; border: 1px solid var(--border); margin-bottom: 16px; }
.seg button { border: 0; background: none; padding: 10px 8px; border-radius: 10px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface-2); color: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.spunta { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.spunta input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--gold-deep); }
.accesso-vantaggi { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.84rem; color: var(--gold); }
.accesso-vantaggi li::before { content: "✓ "; }
.lingue { display: flex; gap: 2px; }
.lingue a { padding: 5px 7px; border-radius: 8px; font-size: 0.78rem; font-weight: 700; color: var(--muted) !important; text-decoration: none; }
html[lang="it"] .lingue a[hreflang="it"], html[lang="en"] .lingue a[hreflang="en"], html[lang="es"] .lingue a[hreflang="es"] { color: var(--slate-deep) !important; background: var(--gold); }
.lingue-grandi a { font-size: 0.95rem; padding: 9px 16px; border: 1px solid var(--border); }

/* ------------------------------------------------ struttura */
.area-shell { min-height: 100vh; display: flex; flex-direction: column; }
.area-testa { position: sticky; top: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(7, 12, 17, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 50, 63, .6); }
.area-testa .brand { color: #fff; }
.saldo-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(233,207,138,.35); background: rgba(233,207,138,.08);
  color: var(--gold); border-radius: 999px; padding: 6px 6px 6px 14px; font: inherit; font-weight: 800; cursor: pointer; }
.saldo-piu { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--slate-deep); }
.saldo-piu .ico { width: 16px; height: 16px; }

.area-schede { position: fixed; z-index: 7; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px max(8px, env(safe-area-inset-bottom)); background: rgba(10, 17, 24, .94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); }
.area-schede button { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; padding: 6px 2px;
  font: inherit; font-size: 0.72rem; font-weight: 700; color: #7f90a5; cursor: pointer; border-radius: 12px; }
.area-schede button[aria-current] { color: var(--gold); }
.area-schede button[aria-current] .ico { background: rgba(233,207,138,.14); border-radius: 10px; }
.area-schede .ico { width: 40px; height: 28px; padding: 3px 9px; }

.area-corpo { width: 100%; max-width: 860px; margin: 0 auto; padding: 18px 16px 110px; flex: 1; display: flex; flex-direction: column; }
.vista { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.vista-testa h1 { font-size: 1.7rem; line-height: 1.15; margin: 4px 0 6px; }
.vista-testa p { margin: 0; color: var(--muted); max-width: 52ch; }
.vista-testa-foto { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.mini-telefono { margin: 0; flex: none; width: 92px; border-radius: 16px; overflow: hidden; border: 4px solid #1b2a38; box-shadow: 0 14px 40px rgba(0,0,0,.5); transform: rotate(4deg); }
.mini-telefono img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.sezione-titolo { font-size: 1.1rem; margin: 18px 0 0; }
.avviso-saldo { margin: 0; padding: 12px 16px; border-radius: 14px; background: rgba(233,207,138,.08); border: 1px solid rgba(233,207,138,.3); color: #f3e3b5; font-size: 0.92rem; }
.avviso-team { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(110,231,168,.08); border: 1px solid rgba(110,231,168,.3); color: #b6f0d0; }

/* ------------------------------------------------ studio (video e agenti) */
.studio { display: flex; flex-direction: column; gap: 14px; }
.passo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--raggio); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.passo-titolo { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 0; }
.passo-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--slate-deep); font-size: 0.85rem; font-weight: 800; flex: none; }
.passo > .muted { margin: 0; }
.input-idea { font-size: 1rem; line-height: 1.5; min-height: 96px; resize: vertical; padding: 14px; }

.tipi-video { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tipo-video { position: relative; display: flex; flex-direction: column; gap: 3px; cursor: pointer; border-radius: 16px; padding: 6px 6px 10px;
  border: 1px solid var(--border); background: #0b151e; transition: border-color .15s, box-shadow .15s; }
.tipo-video input { position: absolute; opacity: 0; pointer-events: none; }
.tipo-foto { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: #000; margin-bottom: 6px; }
.tipo-foto img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.8) brightness(.72); transition: filter .2s; }
.tipo-prezzo { position: absolute; left: 6px; bottom: 6px; padding: 3px 7px; border-radius: 999px; background: rgba(7,12,17,.82); color: var(--gold); font-size: 0.7rem; font-weight: 800; }
.tipo-video strong { font-size: 0.92rem; color: #fff; padding: 0 4px; }
.tipo-sotto { font-size: 0.75rem; color: var(--muted); line-height: 1.3; padding: 0 4px; }
.tipo-video:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 12px 30px rgba(233,207,138,.12); }
.tipo-video:has(input:checked) .tipo-foto img { filter: none; }
.tipo-video:has(input:checked)::after { content: "✓"; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: var(--gold); color: var(--slate-deep); font-weight: 900; font-size: 0.8rem; }
.tipo-video:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

/* esempi: chip da toccare */
.esempi { display: flex; flex-wrap: wrap; gap: 8px; }
.esempi-scorri { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; scroll-snap-type: x proximity; }
.esempi-scorri::-webkit-scrollbar { display: none; }
.esempio { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface-2); color: #dbe3ec;
  border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 0.86rem; text-align: left; cursor: pointer; scroll-snap-align: start; }
.esempi-scorri .esempio { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.esempio:hover, .esempio:focus-visible { border-color: var(--gold-deep); color: #fff; }
.esempio .ico { width: 18px; height: 18px; color: var(--gold); }

/* opzioni a pillole: formato, durata (scritta dal programma), voce */
.opzione { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.opzione > .muted:first-child { width: 100%; margin: 4px 0 0; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.opzione > label, .voce-scelta label { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: #0b151e; color: #dbe3ec; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.opzione > label input[type="radio"], .voce-scelta label input { position: absolute; opacity: 0; pointer-events: none; }
.opzione > label small, .voce-scelta small { color: var(--muted); font-weight: 500; font-size: 0.76rem; }
.opzione > label .ico { width: 18px; height: 18px; }
.opzione > label:has(input:checked), .voce-scelta label:has(input:checked) { background: var(--gold); border-color: var(--gold); color: var(--slate-deep); }
.opzione > label:has(input:checked) small, .voce-scelta label:has(input:checked) small { color: #5c4512; }
.opzione > label:has(input:focus-visible), .voce-scelta label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.opzione > label.durata-altra { flex-direction: column; align-items: flex-start; border-radius: 14px; padding: 6px 12px; gap: 2px; font-size: 0.72rem; color: var(--muted); }
.durata-altra .input { width: 96px; padding: 4px 8px; font-size: 0.92rem; }
.voce-scelta { display: inline-flex; align-items: center; gap: 4px; }
.voce-nome { font-weight: 800; }
.ascolta { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--gold); cursor: pointer; }
.ascolta .ico { width: 16px; height: 16px; }
.ascolta.is-suona { background: var(--gold); color: var(--slate-deep); }
.voce-nota { width: 100%; margin: 2px 0 0; font-size: 0.78rem; color: var(--muted); }

/* pulsante di creazione sempre a portata di pollice */
.barra-crea { position: sticky; bottom: 76px; z-index: 5; display: flex; flex-direction: column; gap: 4px; padding: 12px; margin: 0 -4px;
  border-radius: 20px; background: rgba(10, 17, 24, .9); backdrop-filter: blur(12px); border: 1px solid var(--border); }
.barra-crea .btn-lg { font-size: 1.02rem; padding: 14px 18px; border-radius: 14px; }
.barra-nota { margin: 2px 0 0; text-align: center; font-size: 0.76rem; color: var(--muted); }
.barra-crea .hint { text-align: center; min-height: 0; margin: 2px 0 0; }
.barra-crea .hint:empty { display: none; }

/* ------------------------------------------------ lavori */
.griglia-lavori { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.lavoro { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 8px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lavoro video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #000; display: block; }
.video-segnaposto { aspect-ratio: 9 / 16; display: grid; place-items: center; text-align: center; padding: 14px; border-radius: 12px;
  background: linear-gradient(160deg, #142536, #0a131b); color: #c3cfdf; font-size: 0.82rem; position: relative; overflow: hidden; }
.video-segnaposto::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(233,207,138,.10) 50%, transparent 70%);
  animation: luccica 2.2s infinite; }
@keyframes luccica { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.copertina-titolo { font-weight: 800; color: #fff; overflow-wrap: anywhere; font-size: 0.9rem; padding: 0 4px; }
.lavoro .muted { padding: 0 4px; font-size: 0.74rem; }
.lavoro .riga-bottoni { margin-top: 0; gap: 6px; }
.lavoro .btn-sm { padding: 6px 9px; font-size: 0.76rem; }

.lista-progetti { display: flex; flex-direction: column; gap: 12px; }
.progetto { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.progetto-testa { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.progetto-testa strong { overflow-wrap: anywhere; color: #fff; }
.progetto-testo { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; color: #cfd8e3; }
.area .stato-in_corso { background: rgba(233,207,138,.15); color: var(--gold); }
.area .stato-completato { background: rgba(110,231,168,.12); color: #6ee7a8; }
.area .stato-fallito { background: rgba(255,120,120,.12); color: #ff9d9d; }

/* ------------------------------------------------ chat */
.vista-chat { min-height: calc(100vh - 190px); }
.chat-lista { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.chat-vuota { margin: auto 0; padding: 110px 12px 16px; text-align: center; color: var(--muted); font-size: 0.95rem;
  background: url("img/logo-plancia.svg") center 0 / 84px no-repeat; }
.chat-vuota::before { content: "Ciao! Cosa creiamo oggi?"; display: block; color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
html[lang="en"] .chat-vuota::before { content: "Hi! What shall we create today?"; }
html[lang="es"] .chat-vuota::before { content: "¡Hola! ¿Qué creamos hoy?"; }
.bolla { max-width: 85%; padding: 11px 15px; border-radius: 18px; line-height: 1.55; }
.bolla-testo { white-space: pre-wrap; overflow-wrap: anywhere; }
.bolla-utente { align-self: flex-end; background: linear-gradient(135deg, #f2d999, #c99d48); color: var(--slate-deep); border-bottom-right-radius: 6px; font-weight: 500; }
.bolla-assistente { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); color: #e3e9f0; border-bottom-left-radius: 6px; }
.bolla-assistente code { background: #0a131b; padding: 1px 5px; border-radius: 5px; }
.bolla-attesa { color: var(--muted); font-style: italic; }
.esempi-chat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.esempi-chat .esempio { border-radius: 16px; flex-direction: column; align-items: flex-start; padding: 12px; min-height: 88px; font-size: 0.85rem; }
.chat-barra { position: sticky; bottom: 70px; display: flex; gap: 8px; align-items: flex-end; padding: 6px; margin: 0 -4px;
  border-radius: 28px; background: rgba(10, 17, 24, .92); backdrop-filter: blur(12px); border: 1px solid var(--border); }
.area .chat-barra textarea { flex: 1; resize: none; min-height: 48px; max-height: 180px; border: 0; background: transparent; padding: 12px 10px; }
.area .chat-barra textarea:focus { outline: none; }
.chat-piede { display: flex; justify-content: space-between; gap: 10px; font-size: 0.8rem; padding: 0 6px; }
#chat-gratis { text-align: right; margin: 0; }

/* ------------------------------------------------ crediti */
.carta-saldo { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 20px; color: var(--slate-deep);
  background: linear-gradient(135deg, #f6e0a0 0%, #d9b261 50%, #a77c2e 100%); box-shadow: 0 20px 50px rgba(176,134,52,.25); }
.carta-saldo::after { content: ""; position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; border-radius: 50%;
  background: url("img/logo-plancia.svg") center / 70% no-repeat; opacity: .16; }
.carta-etichetta { font-size: 0.82rem; font-weight: 800; opacity: .75; }
.saldo-grande { font-size: 2.6rem; font-weight: 900; margin: 2px 0 4px; letter-spacing: -0.03em; }
.carta-dettaglio { margin: 0; font-size: 0.86rem; color: #3d2f0e; max-width: 46ch; }
.metodi-scelta { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.piani-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.piano { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: #0b151e; }
.piano strong { color: #fff; }
.piano.is-scelto { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.piano-prezzo { font-size: 1.4rem; font-weight: 900; color: #fff; }
.piano .btn { margin-top: auto; }
.piano .muted { font-size: 0.8rem; }
.piano-etichetta { align-self: flex-start; font-size: 0.72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(233,207,138,.15); color: var(--gold); }
.prezzo-pieno { display: block; text-decoration: line-through; color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.piano.is-usato { opacity: .5; }
.ricariche { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.ricariche .btn { padding: 14px 10px; font-weight: 800; font-size: 1rem; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.area .neg { color: #ff9d9d; }
.area .pos { color: #6ee7a8; }
.card-storico summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.card-storico summary::-webkit-details-marker { display: none; }
.card-storico summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; font-weight: 700; }
.card-storico[open] summary::after { content: "–"; }
.area .card-storico summary h2 { margin: 0; }
.card-storico .table-wrap { margin-top: 12px; }
.sconto-attivo { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(110,231,168,.08); border: 1px solid rgba(110,231,168,.3); color: #b6f0d0; }
#form-coupon .input { flex: 1; min-width: 150px; text-transform: uppercase; }

.area .card-invita { background: radial-gradient(120% 120% at 100% 0%, rgba(233,207,138,.16), transparent 50%), var(--surface); border-color: rgba(233,207,138,.3); }
.invita-capo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.area .invita-capo h2 { margin: 0; }
.invita-icona { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(233,207,138,.15); color: var(--gold); }
.card-invita p { color: #c3cfdf; }
.card-invita strong { color: var(--gold); letter-spacing: .05em; }
.invita-link { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.invita-link .input { flex: 1; min-width: 180px; }
.invita-numeri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
.invita-numeri div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.invita-numeri dt { font-size: 0.74rem; color: var(--muted); }
.invita-numeri dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 800; color: #fff; }

/* ------------------------------------------------ account */
.lista-team { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.lista-team li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; overflow-wrap: anywhere; }
#form-team .input { flex: 1; min-width: 180px; }
.riga-account { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------ schermi grandi: barra in alto */
@media (min-width: 900px) {
  .area-schede { position: sticky; top: 57px; bottom: auto; left: auto; right: auto; display: flex; justify-content: center; gap: 6px;
    padding: 8px; border-top: 0; border-bottom: 1px solid var(--border); background: rgba(7, 12, 17, .82); }
  .area-schede button { flex-direction: row; gap: 8px; font-size: 0.9rem; padding: 8px 14px; }
  .area-schede button[aria-current] { background: rgba(233,207,138,.12); }
  .area-schede button[aria-current] .ico { background: none; }
  .area-schede .ico { width: 20px; height: 20px; padding: 0; }
  .area-corpo { padding-bottom: 40px; }
  .barra-crea { bottom: 12px; }
  .chat-barra { bottom: 12px; }
  .vista-testa h1 { font-size: 2rem; }
  .mini-telefono { width: 120px; }
  .griglia-lavori { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 380px) {
  .tipo-sotto { display: none; }
  .esempi-chat { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .video-segnaposto::before { animation: none; }
  .tipo-video, .tipo-foto img { transition: none; }
}
html[lang="it"] body.area .lingue a[hreflang="it"], html[lang="en"] body.area .lingue a[hreflang="en"], html[lang="es"] body.area .lingue a[hreflang="es"] { color: var(--slate-deep) !important; background: var(--gold); }

/* ------------------------------------------------ invito a installare l'app */
.foglio-app { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.foglio-velo { position: absolute; inset: 0; background: rgba(3, 6, 9, .66); backdrop-filter: blur(3px); animation: appare .25s ease; }
.foglio { position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; text-align: center;
  padding: 26px 22px max(20px, env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0;
  background: radial-gradient(120% 70% at 50% 0%, #1b2f42 0%, #0f1a24 60%); border: 1px solid var(--border); border-bottom: 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.5); animation: sale .32s cubic-bezier(.2,.8,.2,1); }
.foglio::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: #2b3e50; margin: -12px auto 18px; }
.foglio-icona { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 14px 40px rgba(233,207,138,.22); }
.foglio h2 { font-size: 1.4rem; margin: 14px 0 6px; }
.foglio-sotto { margin: 0 auto 14px; color: #c3cfdf; max-width: 34ch; }
.foglio-punti { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--gold); }
.foglio-punti li::before { content: "✓  "; }
.foglio-istruzioni { text-align: left; margin: 0 0 14px; padding: 14px 14px 14px 34px; border-radius: 16px; background: #0a131b;
  border: 1px solid var(--border); color: #dbe3ec; font-size: 0.92rem; display: flex; flex-direction: column; gap: 8px; }
.foglio-istruzioni strong { color: #fff; }
.tasto-condividi { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #1e3346; color: #7fb6ff; font-size: 0.8rem; }
.foglio .btn-ghost { margin-top: 6px; }
@keyframes sale { from { transform: translateY(100%); } to { transform: none; } }
@keyframes appare { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 700px) {
  .foglio-app { align-items: center; }
  .foglio { border-radius: 26px; border-bottom: 1px solid var(--border); }
  .foglio::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .foglio, .foglio-velo { animation: none; } }
.card-app { display: flex; align-items: center; gap: 14px; }
.card-app img { border-radius: 14px; flex: none; }
.card-app > div { flex: 1; min-width: 0; }
.area .card-app h2 { margin: 0; }
.card-app .muted { margin: 2px 0 0; }
.tipo-prezzo { white-space: nowrap; right: auto; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------ promozione */
.promo-area { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; width: 100%; margin: 0 0 16px; padding: 11px 14px;
  border: 0; border-radius: 14px; background: linear-gradient(90deg, #e9cf8a, #d8b46a); color: #10202e; font: inherit; font-size: 0.9rem;
  text-align: left; cursor: pointer; }
.promo-area[hidden], .card-promo[hidden] { display: none; }
.promo-area-conto { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.card-promo { border-color: rgba(233, 207, 138, .55); background: linear-gradient(160deg, rgba(233, 207, 138, .16), rgba(233, 207, 138, .03)); }
.card-promo h2 { color: var(--gold); }
.promo-tempo b { font-variant-numeric: tabular-nums; color: #fff; }
.promo-piu { display: block; color: var(--gold); font-weight: 600; }

/* traduci un video */
#form-traduci { margin-top: 18px; }
.carica-video { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 14px; }
.carica-video .input { padding: 12px; width: 100%; max-width: 520px; cursor: pointer; }
.carica-video .input::file-selector-button { margin-right: 12px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--gold-deep); background: transparent; color: var(--gold); font-weight: 700; cursor: pointer; }
