/* Otto Lingue — foglio di stile unico. Token dal sistema di brand «Otto Lingue». */

@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --calce: #fbf6ee;
  --carta: #ffffff;
  --ink: #14323a;
  --ink-soft: #4a6168;
  --polpo: #e4476f;
  --polpo-deep: #b8304f;
  --polpo-light: #f7a6b8;
  --mare: #0a7480;
  --mare-light: #d7efef;
  --sole: #ffc845;
  --linea: #e6ded1;

  --display: "Fredoka", system-ui, sans-serif;
  --text: "DM Sans", system-ui, sans-serif;

  --space-2: 8px; --space-4: 16px; --space-6: 24px; --space-10: 40px;
  --radius-sm: 8px; --radius-md: 16px; --radius-pill: 999px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--calce); color: var(--ink);
  font: 400 17px/1.6 var(--text);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--polpo-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 var(--space-4); letter-spacing: -0.005em; }
h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0 0 var(--space-4); }
.lead { font-size: 19px; line-height: 1.55; max-width: 34em; }
.quiet { color: var(--ink-soft); }
.small { font-size: 14px; line-height: 1.5; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { left: 8px; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius-pill); border: 0;
  font: 700 17px/1 var(--text); text-decoration: none; cursor: pointer;
  background: var(--polpo-deep); color: #fff;
}
.btn:hover { background: #9e2843; color: #fff; }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn-mare { background: var(--mare); }
.btn-mare:hover { background: #08606a; }

/* Intestazione */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; }
.site-header .logo { margin-right: auto; }
.site-header .logo img { height: 58px; width: auto; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.site-nav a:hover { color: var(--polpo-deep); text-decoration: underline; }

/* Apertura */
.hero { padding: 32px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.hero h1 { max-width: 11em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: var(--space-6); }
.hero-cta .small { max-width: 18em; margin: 0; color: var(--ink-soft); }

/* Demo nel telefono */
.demo { position: relative; justify-self: center; width: min(100%, 300px); margin: 0; }
.phone-wrap { position: relative; }
.phone {
  position: relative; aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden;
  border: 9px solid var(--ink); background: var(--mare-light);
}
.phone .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ai-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--sole); color: var(--ink); border-radius: var(--radius-sm);
  font: 700 12px/1 var(--text); letter-spacing: 0.02em; padding: 7px 10px;
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s;
}
.demo[data-lang="en"] .ai-badge { opacity: 1; transform: none; }
.voice { position: absolute; left: 0; right: 0; top: 24%; display: flex; justify-content: center; gap: 6px; height: 64px; align-items: center; }
.voice span { width: 7px; border-radius: 4px; background: var(--ink); opacity: .8; animation: voce 1.1s ease-in-out infinite; }
.voice span:nth-child(1) { height: 18px; animation-delay: -.2s; }
.voice span:nth-child(2) { height: 40px; animation-delay: -.5s; }
.voice span:nth-child(3) { height: 58px; animation-delay: -.1s; }
.voice span:nth-child(4) { height: 32px; animation-delay: -.7s; }
.voice span:nth-child(5) { height: 48px; animation-delay: -.3s; }
.voice span:nth-child(6) { height: 22px; animation-delay: -.6s; }
@keyframes voce { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.caption {
  position: absolute; left: 14px; right: 14px; bottom: 11%;
  background: var(--ink); color: #fff; border-radius: var(--radius-sm);
  font: 700 17px/1.35 var(--text); padding: 10px 12px; text-align: center;
}
.caption [lang] { display: none; }
.demo[data-lang="it"] .caption [lang="it"], .demo[data-lang="en"] .caption [lang="en"] { display: block; }
.demo-otto { position: absolute; width: 124px; left: -86px; bottom: -18px; }
.switch {
  display: flex; margin: 20px auto 0; width: fit-content; padding: 4px;
  background: var(--carta); border: 2px solid var(--ink); border-radius: var(--radius-pill);
}
.switch button {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink); font: 700 15px/1 var(--text); cursor: pointer;
}
.switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.demo-note { text-align: center; margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }

/* Sezioni */
.section { padding: 72px 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.band-mare { background: var(--mare); color: #fff; }
.band-mare a { color: #fff; }
.band-light { background: var(--mare-light); }

/* Come funziona: passi in sequenza */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: passo; }
.steps li { counter-increment: passo; }
.steps li::before {
  content: counter(passo); display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; margin-bottom: 16px;
  background: var(--polpo); color: #fff; font: 600 24px/1 var(--display);
}
.steps p { margin: 0; }

/* Per chi: coppie di fumetti ciao → hi */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.use h3 { margin-bottom: 14px; }
.bubble {
  position: relative; display: block; width: fit-content; max-width: 100%;
  border: 3px solid var(--ink); border-radius: 18px; padding: 10px 16px;
  font: 600 19px/1.3 var(--display); margin-bottom: 18px;
}
.bubble::after {
  content: ""; position: absolute; bottom: -13px; width: 18px; height: 18px;
  background: inherit; border: 3px solid var(--ink); border-top: 0; border-left: 0;
  transform: rotate(45deg) skew(10deg, 10deg);
}
.bubble-it { background: var(--carta); }
.bubble-it::after { left: 22px; }
.bubble-en { background: var(--sole); margin-left: 24px; }
.bubble-en::after { right: 22px; }

/* Cosa ricevi */
.gets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 0 0 18px 40px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--mare) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.checklist strong { display: block; }
.label-demo {
  display: inline-block; background: var(--sole); color: var(--ink); border-radius: var(--radius-sm);
  font: 700 13px/1 var(--text); padding: 8px 12px; letter-spacing: .02em;
}

/* Prezzi */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price { border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; }
.price h3 { margin-bottom: 4px; }
.price .amount { font: 600 48px/1 var(--display); margin: 14px 0 16px; }
.price .amount small { font: 500 16px/1 var(--text); margin-left: 4px; }
.price p { margin-bottom: 20px; }
.price .btn { margin-top: auto; align-self: flex-start; }
.price-free { border: 3px solid var(--ink); background: var(--calce); }
.price-one { background: var(--carta); }
.price-pack { background: var(--sole); }
.price-note { margin-top: 24px; }

/* Domande */
.faq { max-width: 46em; }
.faq details { border-bottom: 2px solid var(--linea); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 600 21px/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px; font: 600 28px/1 var(--display); color: var(--polpo-deep);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; max-width: 38em; }

/* Chiusura */
.closing .wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.closing img { width: 180px; }
.closing h2 { margin-bottom: 12px; }
.closing p { max-width: 32em; }

/* Piè di pagina */
.site-footer { padding: 40px 0 56px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.site-footer p { margin: 0; max-width: 40em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink); }

/* Pagine interne */
.page { padding: 24px 0 72px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* Modulo prova gratis */
.form { background: var(--carta); border: 2px solid var(--ink); border-radius: var(--radius-md); padding: 28px; margin-top: 32px; }
.field { margin-bottom: 22px; }
.field > label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; font-size: 14px; color: var(--ink-soft); margin: -2px 0 8px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--ink-soft); border-radius: var(--radius-sm);
  font: 400 17px/1.4 var(--text); color: var(--ink); background: var(--carta);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--sole); outline-offset: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; }
.drop {
  position: relative; display: grid; place-items: center; text-align: center; gap: 6px;
  min-height: 150px; padding: 20px; border: 3px dashed var(--mare); border-radius: var(--radius-md); background: var(--mare-light);
  cursor: pointer;
}
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.drop strong { font: 600 20px/1.2 var(--display); }
.drop .file-name { font-weight: 700; color: var(--mare); word-break: break-all; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-bottom: 14px; font-size: 16px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--polpo-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { display: none; background: #fde8ed; border: 2px solid var(--polpo-deep); color: var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 20px; font-weight: 500; }
.error.show { display: block; }
.progress { display: none; margin-top: 16px; }
.progress.show { display: block; }
.progress-bar { height: 12px; border-radius: var(--radius-pill); background: var(--mare-light); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--mare); transition: width .2s; }
.progress p { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }

.thanks { text-align: left; }
.thanks img { width: 200px; margin-bottom: 8px; }

/* Schermi stretti */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .demo { width: min(72%, 300px); }
  .steps, .uses, .prices { grid-template-columns: 1fr; }
  .gets { grid-template-columns: 1fr; gap: 24px; }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .logo img { height: 44px; }
  .hero { padding: 16px 0 56px; }
  .lead { font-size: 18px; }
  .section { padding: 56px 0; }
  .demo-otto { width: 92px; left: -52px; bottom: -14px; }
  .closing .wrap { grid-template-columns: 1fr; gap: 16px; }
  .closing img { width: 130px; }
  .caption { font-size: 15px; padding: 8px 10px; }
  .form { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .voice span { animation: none; transform: none; }
  .ai-badge, .progress-bar span { transition: none; }
}

.btn-sole { background: var(--sole); color: var(--ink); }
.btn-sole:hover { background: #ffd56e; color: var(--ink); }

/* Pagina della prova */
.page-wide .wrap { max-width: var(--wrap); }
.result-state h1 { max-width: 16em; }
.result-otto { width: 150px; margin-bottom: 8px; }
.progress-steps { list-style: none; margin: 28px 0 0; padding: 0; max-width: 420px; }
.progress-steps li { position: relative; padding: 0 0 22px 44px; font-weight: 500; color: var(--ink-soft); }
.progress-steps li::before {
  content: ""; position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--linea); background: var(--carta);
}
.progress-steps li.done { color: var(--ink); }
.progress-steps li.done::before {
  border-color: var(--mare);
  background: var(--mare) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.progress-steps li.active { color: var(--ink); font-weight: 700; }
.progress-steps li.active::before { border-color: var(--polpo); border-top-color: transparent; animation: gira 1s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 28px; }
.player { position: relative; max-width: 340px; border: 9px solid var(--ink); border-radius: 30px; overflow: hidden; background: var(--ink); }
.player.landscape { max-width: 100%; border-radius: 20px; }
.player.audio { border-radius: var(--radius-md); padding: 56px 16px 16px; }
.player video, .player audio { display: block; width: 100%; }
.player video { aspect-ratio: 9 / 16; object-fit: contain; background: var(--ink); }
.player .ai-badge { opacity: 1; transform: none; z-index: 2; }
.trial-tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--carta); color: var(--ink); border-radius: var(--radius-sm);
  font: 700 12px/1 var(--text); padding: 7px 10px;
}
.result-side h2 { font-size: 30px; }
.result-side .btn { width: 100%; max-width: 360px; }
.script { margin-top: 56px; }
.script-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.script ol { margin: 0; padding-left: 22px; }
.script li { margin-bottom: 10px; }
.cap { text-transform: capitalize; }

/* Pagina di verifica */
.verify li.ko::before { background: var(--polpo-deep); }
.verify li.ko::before { background-image: none; }
.verify li.info::before { background: var(--linea); }

@media (max-width: 900px) {
  .result-grid, .script-cols { grid-template-columns: 1fr; gap: 28px; }
  .player { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .progress-steps li.active::before { animation: none; }
}

/* Banner cookie */
.cookie-banner {
  position: fixed; z-index: 50; left: 16px; bottom: 16px; width: min(520px, calc(100% - 32px));
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start;
  background: var(--carta); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-md);
  padding: 20px 20px 18px; font-size: 15px; line-height: 1.5;
  animation: cookie-in .35s cubic-bezier(.2,.8,.2,1) both;
}
.cookie-banner.closing { animation: cookie-out .2s ease-in both; }
.cookie-banner p { margin: 0 0 10px; }
.cookie-title { font: 600 19px/1.25 var(--display); padding-right: 24px; }
.cookie-otto { width: 64px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.cookie-actions .btn { min-width: 120px; }
.cookie-close {
  position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: transparent;
  font: 400 28px/1 var(--text); color: var(--ink); cursor: pointer; border-radius: 50%;
}
.cookie-close:hover { background: var(--mare-light); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--mare-light); color: var(--ink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cookie-out { to { opacity: 0; transform: translateY(12px); } }
@media (max-width: 560px) {
  .cookie-banner { left: 12px; bottom: 12px; width: calc(100% - 24px); grid-template-columns: 1fr; gap: 6px; padding: 16px; }
  .cookie-otto { display: none; }
  .cookie-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner, .cookie-banner.closing { animation: none; } }

/* ---------- Movimento ---------- */
.btn { transition: background-color .15s ease, transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Apertura della pagina: un'unica sequenza */
.js .intro h1, .js .intro .lead, .js .intro .hero-cta, .js .intro .phone, .js .intro .switch, .js .intro .demo-note {
  animation: sale .7s cubic-bezier(.2,.8,.2,1) both;
}
.js .intro .lead { animation-delay: .12s; }
.js .intro .hero-cta { animation-delay: .24s; }
.js .intro .phone { animation-delay: .32s; animation-duration: .8s; }
.js .intro .switch, .js .intro .demo-note { animation-delay: .6s; }
.js .intro .demo-otto { animation: spunta .6s cubic-bezier(.3,1.4,.5,1) .85s both; transform-origin: 50% 90%; }
@keyframes sale { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spunta { from { opacity: 0; transform: translateY(24px) scale(.7); } to { opacity: 1; transform: none; } }

/* Otto vivo: saluta e sbatte gli occhi */
.otto-vivo .otto-saluto { transform-box: view-box; transform-origin: 330px 300px; animation: saluta 3.4s ease-in-out 1.5s infinite; }
.otto-vivo .otto-onde { animation: onde 3.4s ease-in-out 1.5s infinite; opacity: 0; }
.otto-vivo .otto-occhio { transform-box: view-box; animation: batte 5.2s ease-in-out 2.2s infinite; }
@keyframes saluta {
  0%, 52%, 100% { transform: rotate(0); }
  10% { transform: rotate(-16deg); }
  20% { transform: rotate(9deg); }
  30% { transform: rotate(-14deg); }
  40% { transform: rotate(6deg); }
}
@keyframes onde { 0%, 52%, 100% { opacity: 0; } 8%, 44% { opacity: 1; } }
@keyframes batte { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }

/* Fumetto accanto a Otto: ciao! → hi! */
.demo-bubble {
  position: absolute; left: -64px; bottom: 112px; z-index: 2;
  border: 3px solid var(--ink); border-radius: 16px; padding: 6px 12px;
  font: 600 18px/1 var(--display); background: var(--carta); color: var(--ink);
}
.demo-bubble::after {
  content: ""; position: absolute; left: 26px; bottom: -11px; width: 14px; height: 14px;
  background: inherit; border: 3px solid var(--ink); border-top: 0; border-left: 0; transform: rotate(45deg);
}
.demo-bubble [lang] { display: none; }
.demo[data-lang="it"] .demo-bubble [lang="it"], .demo[data-lang="en"] .demo-bubble [lang="en"] { display: inline; }
.demo[data-lang="en"] .demo-bubble { background: var(--sole); }
.js .intro .demo-bubble { animation: spunta .5s cubic-bezier(.3,1.4,.5,1) 1.2s both; }
.demo-bubble.pop { animation: pop .45s cubic-bezier(.3,1.5,.5,1) both !important; }
@keyframes pop { from { transform: scale(.6); opacity: .3; } to { transform: none; opacity: 1; } }
.caption [lang] { animation: none; }
.demo .caption span { animation: sfuma .35s ease both; }
@keyframes sfuma { from { opacity: 0; } to { opacity: 1; } }

/* Per chi: la frase si traduce quando la vedi */
.js .uses .bubble-en { opacity: 0; transform: translateY(10px) scale(.7); transform-origin: 85% 100%; transition: opacity .35s ease, transform .5s cubic-bezier(.3,1.4,.5,1); }
.js .uses.visto .bubble-en { opacity: 1; transform: none; }
.js .uses.visto .use:nth-child(1) .bubble-en { transition-delay: .2s; }
.js .uses.visto .use:nth-child(2) .bubble-en { transition-delay: .55s; }
.js .uses.visto .use:nth-child(3) .bubble-en { transition-delay: .9s; }

/* Attesa della prova: Otto galleggia */
#s-attesa .result-otto, .otto-float { animation: galleggia 2.8s ease-in-out infinite; }
@keyframes galleggia { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }

@media (max-width: 560px) {
  .demo-bubble { left: -40px; bottom: 82px; font-size: 15px; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .intro *, .otto-vivo *, .demo-bubble, #s-attesa .result-otto, .otto-float, .demo .caption span, .order-panel, .result-state { animation: none !important; }
  .otto-vivo .otto-onde { opacity: 1; }
  .js .uses .bubble-en { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}

/* Ordine del video intero */
.order-panel {
  max-width: 420px; margin: -4px 0 22px; padding: 20px 20px 18px;
  background: var(--calce); border: 2px solid var(--ink); border-radius: var(--radius-md);
  animation: sale .35s cubic-bezier(.2,.8,.2,1) both;
}
.order-panel h3 { font-size: 21px; margin-bottom: 10px; }
.order-list { list-style: none; margin: 0 0 16px; padding: 0; }
.order-list li { position: relative; padding: 0 0 6px 28px; }
.order-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mare) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.order-panel .check { font-size: 15px; }
.order-panel .error { margin: 0 0 14px; }
.order-panel .btn { margin-top: 2px; }
.order-panel .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.result-side .btn-line { box-shadow: inset 0 0 0 2px var(--ink); }
.checklist.publish { margin: 24px 0 8px; font-size: 16px; }
.checklist.publish li { padding-bottom: 14px; }
.checklist.publish .linklike { font-size: 15px; font-weight: 700; color: var(--polpo-deep); }
.result-state { animation: sale .45s cubic-bezier(.2,.8,.2,1) both; }
