:root {
  /* Palette ufficiale Logo Plancia (static/img/logo-plancia.svg):
     Blu-Nero Navale (#182632 -> #0b1219 -> #070c11) + Oro Timone (#f6e0a0 -> #e9cf8a -> #b08634) */
  --slate: #0b1219;
  --slate-deep: #070c11;
  --slate-soft: #182632;
  --slate-line: #223444;
  --pearl: #f7f5f0;
  --surface: #ffffff;
  --ink: #0b1219;
  --muted: #506070;
  --border: #e5e0d5;
  --gold-light: #f6e0a0;
  --gold: #e9cf8a;
  --gold-deep: #b08634;
  --gold-ink: #8a641d;
  --gold-soft: #fbf4e1;
  --teal: #b08634;
  --teal-dark: #8a641d;
  --teal-soft: #fbf4e1;
  --ok: #15803d;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--pearl);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===================== BUTTONS & BADGES ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-weight: 600; font-size: 0.92rem; font-family: inherit;
  padding: 10px 16px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, #d4ac54 55%, var(--gold-deep) 100%);
  color: var(--slate-deep);
  border-color: rgba(246, 224, 160, 0.45);
  box-shadow: 0 8px 22px rgba(176, 134, 52, 0.30);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fae9b8 0%, #deb862 55%, #be923b 100%);
  box-shadow: 0 10px 26px rgba(176, 134, 52, 0.42);
}
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--gold-deep); color: var(--gold-ink); background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(176, 134, 52, 0.10); color: var(--gold-ink); }
.btn-lg { padding: 13px 22px; font-size: 0.98rem; border-radius: 12px; }
.btn-sm { padding: 7px 12px; font-size: 0.84rem; }
.btn-full { width: 100%; }
.btn-danger { background: #fff; color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; border-color: #fca5a5; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700;
  background: var(--teal-soft); color: var(--teal-dark);
}
.badge-soft { background: #eef2f7; color: #334155; }
.badge-ok { background: #e8f7ef; color: #0b7a45; }
.badge-viral {
  display: inline-block; background: var(--gold); color: #3d2f00;
  font-size: 0.72rem; font-weight: 800; padding: 3px 9px; border-radius: 6px; letter-spacing: 0.04em;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: #eef2f7; color: #334155;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.verde { background: var(--ok); }

/* ===================== BRAND ===================== */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(7, 12, 17, 0.38);
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-text strong { display: block; font-size: 1rem; line-height: 1.1; }
.brand-text small { display: block; font-size: 0.72rem; color: var(--muted); }

/* ===================== HOMEPAGE COMMERCIALE ===================== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 12, 17, 0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-line);
}
.site-nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-nav .brand-text strong { color: var(--gold-light); }
.site-nav .brand-text small { color: #9eb0c2; }
.site-nav .btn-ghost { color: #d6dfe8; }
.site-nav .btn-ghost:hover { background: rgba(246, 224, 160, 0.12); color: var(--gold-light); }
.site-nav .btn-secondary { background: transparent; color: #f4efe3; border-color: var(--slate-line); }
.site-links { display: flex; gap: 22px; font-size: 0.9rem; font-weight: 500; color: #b4c4d4; }
.site-links a:hover { color: var(--gold-light); }
.site-actions { display: flex; align-items: center; gap: 8px; }

.hero-section {
  padding: 68px 0 64px;
  color: #f4f1ea;
  background:
    radial-gradient(circle at 38% 18%, var(--slate-soft) 0%, var(--slate) 54%, var(--slate-deep) 100%);
  border-bottom: 1px solid var(--slate-line);
}
.hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  background: rgba(246, 224, 160, 0.12); color: var(--gold-light); font-size: 0.8rem; font-weight: 700;
  border: 1px solid rgba(233, 207, 138, 0.34);
}
.hero-copy h1 { font-size: 2.85rem; line-height: 1.08; margin: 16px 0 14px; letter-spacing: -0.035em; color: #ffffff; }
.hero-copy h1 span {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.02rem; color: #c4d1de; margin: 0 0 24px; max-width: 56ch; }
.hero-lead strong { color: #ffffff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-section .btn-secondary {
  background: rgba(24, 38, 50, 0.72); color: #f6efe0; border-color: rgba(233, 207, 138, 0.34);
}
.hero-section .btn-secondary:hover {
  background: rgba(233, 207, 138, 0.16); border-color: var(--gold-light); color: var(--gold-light);
}
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.84rem; color: var(--gold); font-weight: 600; }

.section { padding: 64px 0; }
.section-alt { background: #ffffff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark {
  background:
    radial-gradient(circle at 86% 12%, rgba(233, 207, 138, 0.12) 0%, transparent 48%),
    linear-gradient(160deg, var(--slate-soft) 0%, var(--slate) 55%, var(--slate-deep) 100%);
  color: #f4f1ea;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 38px; }
.eyebrow {
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--teal-dark);
}
.section-dark .eyebrow { color: var(--gold); }
.section-head h2 { font-size: 2rem; margin: 8px 0 10px; letter-spacing: -0.025em; }
.section-head p { margin: 0; color: var(--muted); }

/* Spotlight Video AI & Copertine Virali */
.spotlight-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 40px; align-items: center; }
.spotlight-copy h2 { font-size: 1.95rem; line-height: 1.14; margin: 10px 0 12px; letter-spacing: -0.025em; color: #fff; }
.spotlight-copy p { margin: 0 0 18px; color: #b6c4d8; font-size: 0.98rem; }
.spotlight-copy strong { color: #fff; }
.spotlight-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; color: #cbd6e6; }
.spotlight-list li { display: flex; align-items: center; gap: 9px; }
.spotlight-visual {
  margin: 0; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  background: var(--slate-soft);
}
.spotlight-visual img { display: block; width: 100%; height: auto; object-fit: cover; }

/* Hero visual */
.hero-visual {
  margin: 0; border-radius: 20px; overflow: hidden; background: var(--slate-soft);
  border: 1px solid rgba(233, 207, 138, 0.28); box-shadow: 0 28px 66px rgba(0, 0, 0, 0.55);
}
.hero-visual img { display: block; width: 100%; height: auto; object-fit: cover; }
.hero-caption {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px;
  font-size: 0.8rem; color: #d6e0ea; background: rgba(7, 12, 17, 0.92);
  border-top: 1px solid rgba(233, 207, 138, 0.20);
}

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.feat-card:hover { border-color: rgba(176, 134, 52, 0.55); box-shadow: 0 12px 30px rgba(11, 18, 25, 0.08); transform: translateY(-2px); }
.feat-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--slate-soft), var(--slate));
  color: var(--gold-light);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.feat-card h3 { margin: 0 0 6px; font-size: 1.04rem; }
.feat-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* ===================== DOWNLOAD ===================== */
.dl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dl-card {
  background: var(--pearl); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 6px; text-align: left;
  cursor: pointer; font-family: inherit; color: inherit;
  transition: border-color 0.15s, transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.dl-card:hover { border-color: var(--gold-deep); background: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(176, 134, 52, 0.18); }
.dl-card strong { font-size: 1rem; color: var(--ink); }
.dl-card span { font-size: 0.82rem; color: var(--muted); }
.dl-card small { font-size: 0.78rem; color: var(--teal-dark); font-weight: 700; margin-top: 6px; }
.dl-note { text-align: center; margin-top: 14px; font-size: 0.9rem; color: #0b7a45; font-weight: 600; min-height: 22px; }
.dl-note.err { color: #b91c1c; }

/* ===================== PREZZI ===================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; position: relative;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.price-card:hover { border-color: rgba(176, 134, 52, 0.55); }
.price-card.is-featured {
  border: 2px solid var(--gold-deep);
  box-shadow: 0 18px 44px rgba(176, 134, 52, 0.20);
}
.price-tag {
  position: absolute; top: -12px; right: 20px;
  background: var(--gold); color: #3d2f00; font-size: 0.74rem; font-weight: 800;
  padding: 4px 11px; border-radius: 999px;
}
.price-card h3 { margin: 0; font-size: 1.15rem; }
.price-val { margin: 12px 0 6px; display: flex; align-items: baseline; gap: 4px; }
.price-val strong { font-size: 2.3rem; letter-spacing: -0.035em; }
.price-val span { color: var(--muted); font-size: 0.9rem; }
.price-sub { margin: 0 0 18px; font-size: 0.88rem; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 9px; font-size: 0.88rem; color: #334155; flex: 1; }
.price-card li::before { content: "✓ "; color: var(--teal-dark); font-weight: 800; }

/* ===================== FAQ ===================== */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 20px; transition: border-color 0.16s;
}
.faq-item[open] { border-color: rgba(176, 134, 52, 0.55); box-shadow: 0 8px 22px rgba(11, 18, 25, 0.06); }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 0.96rem; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--teal); font-size: 1.25rem; font-weight: 700; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }
.faq-item strong { color: var(--ink); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--slate); padding: 26px 0; }
.site-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.88rem; color: #93a3bb; }
.site-footer-inner strong { color: #fff; }
.site-footer .btn-ghost { color: #cbd6e6; border-color: var(--slate-line); }
.site-footer .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ===================== PANNELLO UTENTE ===================== */
.portal-shell { display: flex; min-height: 100vh; background: var(--pearl); }

.sidebar {
  width: 264px; flex-shrink: 0; background: var(--slate); border-right: 1px solid var(--slate-line);
  display: flex; flex-direction: column; padding: 16px 14px; gap: 14px;
  transition: width 0.2s ease;
}
.sidebar .brand-text strong { color: #fff; }
.sidebar .brand-text small { color: #93a3bb; }
.sidebar[data-collapsed="true"] { width: 78px; }
.sidebar[data-collapsed="true"] .brand-text,
.sidebar[data-collapsed="true"] .nav-label,
.sidebar[data-collapsed="true"] .sidebar-foot .btn { display: none; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.btn-collassa, .btn-icon {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border);
  background: #fff; color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: inherit; font-size: 1.05rem;
}
.sidebar .btn-collassa { background: rgba(255, 255, 255, 0.06); border-color: var(--slate-line); color: #cbd6e6; }
.sidebar .btn-collassa:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: 10px; border: 0; background: transparent; color: #a7b5ca;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; text-align: left; font-family: inherit;
  transition: background 0.14s, color 0.14s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-item.is-active {
  background: rgba(233, 207, 138, 0.15);
  color: var(--gold-light);
  box-shadow: inset 3px 0 0 var(--gold-light);
}
.sidebar-foot { border-top: 1px solid var(--slate-line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.credito-mini { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(255, 255, 255, 0.06); border-radius: 10px; }
.credito-mini small { display: block; font-size: 0.72rem; color: #93a3bb; }
.credito-mini strong { font-size: 0.96rem; color: #fff; }
.sidebar-foot .btn-ghost { color: #cbd6e6; border-color: var(--slate-line); }
.sidebar-foot .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.portal-main { flex: 1; min-width: 0; padding: 22px 28px 44px; max-width: 1280px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 22px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
}
.topbar-title h1 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.topbar-title p { margin: 2px 0 0; font-size: 0.86rem; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.solo-mobile { display: none; }

.view { display: none; }
.view.is-active { display: block; }

.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
  border-top: 3px solid var(--teal);
}
.kpi-card span { font-size: 0.8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-card strong { display: block; font-size: 1.6rem; margin: 6px 0 2px; letter-spacing: -0.025em; }
.kpi-card small { font-size: 0.8rem; color: var(--muted); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; font-size: 1.08rem; }
.muted { margin: 4px 0 0; font-size: 0.86rem; color: var(--muted); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }

.license-pill {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--pearl); border: 1px solid var(--border); border-radius: 10px;
  padding: 6px 10px; font-size: 0.84rem;
}
.license-pill code { font-family: ui-monospace, SFMono-Regular, monospace; font-weight: 700; color: var(--teal-dark); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
.table th {
  text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 12px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table code { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 0.82rem; }

.inline-form {
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: end;
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border);
}

/* ===================== MEDIA ===================== */
.toolbar-media {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.filtri { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn {
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 6px 13px; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.chip-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip-btn.is-active { background: var(--slate); color: var(--gold-light); border-color: var(--slate); }
.chip-btn.chip-gold { border-color: #f0d67a; background: var(--gold-soft); color: #7c5c00; }
.chip-btn.chip-gold.is-active { background: var(--gold); color: #3d2f00; border-color: var(--gold); }
.search-box { flex: 1 1 260px; min-width: 220px; }
.search-box .input { width: 100%; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.media-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 15px; background: var(--pearl);
  display: flex; flex-direction: column; gap: 8px; transition: border-color 0.15s, box-shadow 0.15s;
}
.media-card:hover { border-color: rgba(176, 134, 52, 0.55); box-shadow: 0 10px 26px rgba(11, 18, 25, 0.07); }
.media-card h3 { margin: 0; font-size: 0.96rem; }
.media-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.media-prompt { margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 1.4; word-break: break-word; }
.media-viral-box {
  background: var(--slate); color: var(--gold); border-radius: 10px; padding: 10px 12px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.media-viral-box small { display: block; color: #cbd6e6; font-weight: 600; margin-bottom: 3px; }
.media-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.link-r2 {
  font-size: 0.75rem; color: var(--teal-dark); word-break: break-all;
  background: var(--teal-soft); padding: 6px 8px; border-radius: 8px;
}
.empty { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ===================== USO ===================== */
.usage-list { display: flex; flex-direction: column; gap: 14px; }
.usage-row-head { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; margin-bottom: 5px; flex-wrap: wrap; }
.usage-bar { height: 9px; background: #e3e9f2; border-radius: 999px; overflow: hidden; }
.usage-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-dark)); border-radius: 999px; }
.bullet-list { margin: 14px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; color: #334155; }

/* ===================== PAGAMENTI ===================== */
.topup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.topup-btn {
  border: 1px solid var(--border); background: var(--pearl); border-radius: 12px; padding: 14px;
  cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 2px; font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.topup-btn:hover, .topup-btn.is-pop { border-color: var(--teal); background: var(--teal-soft); }
.topup-btn strong { font-size: 1.25rem; color: var(--ink); }
.topup-btn small { font-size: 0.78rem; color: var(--muted); }

.plan-box {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap;
  background: var(--pearl); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px;
}
.plan-box strong { font-size: 1.15rem; }
.plan-box span { font-size: 1rem; font-weight: 800; color: var(--teal-dark); }

.piani-scelta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 10px; }
.plan-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 11px 10px;
  cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 2px; font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.plan-btn:hover { border-color: var(--teal); background: var(--teal-soft); }
.plan-btn.is-active { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.plan-btn strong { font-size: 0.9rem; }
.plan-btn span { font-size: 0.82rem; font-weight: 700; color: var(--teal-dark); }
.plan-btn small { font-size: 0.72rem; color: var(--muted); line-height: 1.3; }

/* ===================== ACCOUNT ===================== */
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 0.84rem; font-weight: 700; color: #334155; }
.input {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  font-size: 0.92rem; color: var(--ink); background: #fff; font-family: inherit; width: 100%;
}
.input:focus { outline: 2px solid rgba(176, 134, 52, 0.32); border-color: var(--gold-deep); }
.r2-box { background: var(--pearl); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-top: 12px; font-size: 0.86rem; word-break: break-word; }
.hint { font-size: 0.84rem; color: var(--muted); min-height: 20px; margin: 8px 0 0; }
.hint.ok { color: #0b7a45; font-weight: 700; }
.hint.err { color: #b91c1c; font-weight: 700; }
.overlay { position: fixed; inset: 0; background: rgba(11, 18, 32, 0.55); z-index: 45; }

/* ===================== MODALE MEDIA ===================== */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 18, 32, 0.62); }
.modal-box {
  position: relative; background: #fff; border-radius: 18px; width: min(620px, 100%);
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 70px rgba(11, 18, 32, 0.35);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; background: var(--slate); color: #fff;
}
.modal-head h2 { margin: 0; font-size: 1.05rem; }
.modal-head .btn-icon { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: #fff; }
.modal-body { padding: 18px 20px; overflow-y: auto; font-size: 0.9rem; }
.modal-body dl { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; }
.modal-body dt { color: var(--muted); font-weight: 700; font-size: 0.82rem; }
.modal-body dd { margin: 0; word-break: break-word; }
.modal-foot {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px;
  border-top: 1px solid var(--border); background: var(--pearl);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .hero-copy h1 { font-size: 2.45rem; }
  .section-head h2, .spotlight-copy h2 { font-size: 1.75rem; }
}

@media (max-width: 960px) {
  .hero-grid, .spotlight-grid, .features-grid, .pricing-grid, .two-col, .kpi-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-links { display: none; }
  .solo-mobile { display: inline-flex; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 50; width: 272px;
    transform: translateX(-100%); transition: transform 0.2s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar[data-collapsed="true"] { width: 272px; }
  .sidebar[data-collapsed="true"] .brand-text,
  .sidebar[data-collapsed="true"] .nav-label,
  .sidebar[data-collapsed="true"] .sidebar-foot .btn { display: block; }
  .portal-main { padding: 16px 16px 36px; max-width: 100%; }
  .spotlight-grid .spotlight-visual { order: -1; }
  .piani-scelta { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr 1fr; }
  .inline-form .btn { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .site-nav-inner { padding: 10px 14px; gap: 8px; }
  .brand-text small { display: none; }
  .site-actions .btn { padding: 8px 11px; font-size: 0.8rem; }
  .hero-section { padding: 30px 0 38px; }
  .hero-copy h1 { font-size: 1.92rem; }
  .hero-lead { font-size: 0.95rem; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .hero-trust { gap: 10px; font-size: 0.8rem; flex-direction: column; align-items: flex-start; }
  .section { padding: 42px 0; }
  .section-head h2, .spotlight-copy h2 { font-size: 1.5rem; }
  .section-head { margin-bottom: 26px; }
  .dl-grid { grid-template-columns: 1fr; }
  .price-card { padding: 22px; }
  .faq-item { padding: 14px 16px; }
  .faq-item summary { font-size: 0.9rem; }
  .topbar { padding: 12px 14px; }
  .topbar-title h1 { font-size: 1.15rem; }
  .topbar-actions { width: 100%; }
  .topbar-actions .btn { flex: 1; }
  .card { padding: 16px; }
  .kpi-card strong { font-size: 1.35rem; }
  .topup-grid { grid-template-columns: 1fr 1fr; }
  .toolbar-media { flex-direction: column; align-items: stretch; }
  .search-box { flex: 1 1 auto; min-width: 0; }
  .filtri { gap: 5px; }
  .chip-btn { padding: 6px 10px; font-size: 0.78rem; }
  .media-grid { grid-template-columns: 1fr; }
  .modal-box { max-height: 92vh; border-radius: 14px; }
  .modal-body dl { grid-template-columns: 1fr; gap: 3px 0; }
  .modal-body dt { margin-top: 8px; }
  .license-pill { width: 100%; justify-content: space-between; }
  .inline-form { grid-template-columns: 1fr; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* 22/11: vetrina senza download, tre servizi, metodi di pagamento, anteprima */
.passi { list-style: none; counter-reset: passo; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; padding: 0; }
.passi li { counter-increment: passo; display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.passi li::before { content: counter(passo); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; margin-bottom: 4px; }
.passi strong { font-size: 1.04rem; }
.passi span { font-size: 0.9rem; color: var(--muted); }
.metodi-pagamento { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 28px; color: var(--muted); font-size: 0.95rem; }
.metodi-pagamento strong { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; }
.metodi-scelta { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.avviso-anteprima { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold); color: var(--gold-ink); font-size: 0.92rem; }
.avviso-anteprima.err { background: #fdecec; border-color: #f3b4b4; color: #9b1c1c; }
@media (max-width: 760px) { .passi { grid-template-columns: 1fr; } }
.media-card { min-width: 0; }
.media-card h3, .media-prompt { overflow-wrap: anywhere; }
.footer-legale { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-legale a { color: inherit; opacity: 0.8; font-size: 0.9rem; text-decoration: none; }
.footer-legale a:hover { opacity: 1; text-decoration: underline; }

/* 22/11 sera: tre percorsi, esempi veri, piano gratis */
.percorsi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.percorso { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.percorso:hover, .percorso:focus-visible { border-color: var(--gold-deep); transform: translateY(-2px); }
.percorso strong { font-size: 1.12rem; }
.percorso span:not(.feat-icon) { color: var(--muted); font-size: 0.93rem; }
.percorso em { margin-top: auto; padding-top: 8px; font-style: normal; font-weight: 700; color: var(--gold-ink); }
.percorso-gratis { background: var(--gold-soft); border-color: var(--gold); }
.esempio-video { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.esempio-video video { width: min(300px, 100%); aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.45); background: #000; }
.esempio-video figcaption { max-width: 340px; text-align: center; font-size: 0.85rem; color: #93a3bb; }
.esempio-telefono { margin: 0; display: grid; place-items: center; }
.esempio-telefono img { width: min(300px, 100%); height: auto; border-radius: 26px; border: 8px solid var(--slate); box-shadow: 0 20px 50px rgba(11,18,25,.25); }
.richiesta-esempio { margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--gold-deep); background: var(--gold-soft); border-radius: 0 12px 12px 0; font-style: italic; color: var(--ink); }
.chat-esempio { display: flex; flex-direction: column; gap: 12px; max-width: 460px; margin: 0 auto; }
.chat-esempio .msg { margin: 0; padding: 12px 16px; border-radius: 16px; line-height: 1.55; font-size: 0.95rem; }
.msg-tu { align-self: flex-end; max-width: 85%; background: var(--slate); color: #fff; border-bottom-right-radius: 4px; }
.msg-plancia { align-self: flex-start; max-width: 92%; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.pricing-grid.pricing-quattro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .pricing-grid.pricing-quattro { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .percorsi, .pricing-grid.pricing-quattro { grid-template-columns: 1fr; }
  .spotlight-inverso .esempio-telefono { order: -1; }
}

/* testo leggibile nelle sezioni chiare (spotlight nato per lo sfondo scuro) */
.section:not(.section-dark) .spotlight-copy h2 { color: var(--ink); }
.section:not(.section-dark) .spotlight-copy p { color: var(--muted); }
.section:not(.section-dark) .spotlight-copy strong { color: var(--ink); }
.section:not(.section-dark) .spotlight-list { color: #33414f; }

/* piano Prova e inviti in vetrina */
.prova-banda { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 0 0 22px;
  padding: 18px 22px; border-radius: 18px; background: var(--gold-soft); border: 1px solid var(--gold); }
.prova-banda h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--ink); }
.prova-banda p { margin: 0; color: #4a4030; max-width: 60ch; }
.invita-banda { margin: 26px auto 0; max-width: 760px; text-align: center; padding: 20px 22px; border-radius: 18px;
  background: linear-gradient(160deg, var(--slate-soft), var(--slate)); color: #c3cfdf; }
.invita-banda h3 { margin: 0 0 6px; color: #fff; font-size: 1.15rem; }
.invita-banda p { margin: 0; }

/* scelta della lingua */
.lingue { display: flex; gap: 2px; align-items: center; }
.lingue a { padding: 6px 7px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; color: #93a3bb; text-decoration: none; }
.lingue a:hover, .lingue a:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
html[lang="it"] .lingue a[hreflang="it"], html[lang="en"] .lingue a[hreflang="en"], html[lang="es"] .lingue a[hreflang="es"] { color: var(--gold); }
.lingue-piede { margin: 0 0 8px; }
.accesso-box .lingue { justify-content: flex-end; margin: -6px 0 10px; }
.accesso-box .lingue a, .lingue-grandi a { color: var(--muted); }
html[lang="it"] .accesso-box .lingue a[hreflang="it"], html[lang="en"] .accesso-box .lingue a[hreflang="en"], html[lang="es"] .accesso-box .lingue a[hreflang="es"],
html[lang="it"] .lingue-grandi a[hreflang="it"], html[lang="en"] .lingue-grandi a[hreflang="en"], html[lang="es"] .lingue-grandi a[hreflang="es"] { color: var(--gold-ink); background: var(--gold-soft); }
.lingue-grandi a { font-size: 0.95rem; padding: 8px 14px; border: 1px solid var(--border); }
@media (max-width: 520px) { .site-actions .lingue { display: none; } }

/* ------------------------------------------------ tre esempi di video in homepage */
.creator-testa { max-width: 640px; margin: 0 auto; text-align: center; }
.esempi-video { display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); justify-content: center; gap: 28px; margin: 36px 0 10px; }
.esempi-video .esempio-video { align-items: stretch; }
.esempi-video .esempio-video video { width: 100%; }
.esempi-video figcaption { max-width: none; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.esempi-video figcaption strong { color: #fff; font-size: 1.02rem; }
.esempi-video figcaption span { color: #b7c4d6; }
.esempi-video figcaption em { color: #93a3bb; font-style: normal; font-size: 0.8rem; }
.esempi-nota { text-align: center; color: #93a3bb; font-size: 0.85rem; margin: 0 0 28px; }
.creator-sotto { max-width: 640px; margin: 0 auto; }
@media (max-width: 760px) {
  .esempi-video { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 28px -16px 8px; padding: 0 16px 8px;
    scrollbar-width: none; }
  .esempi-video::-webkit-scrollbar { display: none; }
  .esempi-video .esempio-video { flex: 0 0 68%; scroll-snap-align: start; }
  .esempi-video { scroll-padding-inline: 16px; justify-content: flex-start; }
}

.telefono { position: relative; cursor: pointer; border-radius: 18px; }
.telefono video { display: block; }
.telefono-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; border: 0;
  background: rgba(10, 16, 24, .55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.telefono-play::before { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent #fff; }
.telefono.in-pausa .telefono-play { opacity: 1; }
.telefono:focus-within .telefono-play { outline: 2px solid var(--gold, #e9cf8a); outline-offset: 2px; }
