/* Electric Punk su tutto il sito pubblico — misure del riferimento Gemini.
   I token colore restano quelli di site.css. Nessun selettore di tema.
   Caricato da base-marketing dopo site.css. */

body {
  background: #050215;
}

body::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99, 102, 241, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(34, 211, 238, 0.12), transparent);
}

.container {
  max-width: 1140px;
  padding: 0 1.25rem;
}

.nav {
  height: var(--nav-h);
  padding: 0.75rem 2rem;
  background: rgba(9, 0, 47, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand__word {
  font-family: 'Urbanist', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.nav-brand__dot {
  color: var(--accent-3);
  -webkit-text-fill-color: var(--accent-3);
}

.nav-links {
  gap: 1.25rem;
}

.nav-links a:not(.nav-punk) {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0.15rem;
  border-radius: 0;
  background: transparent;
}

.nav-links a:not(.nav-punk):hover,
.nav-links a:not(.nav-punk).active {
  color: var(--accent-2);
  background: transparent;
}

.nav-punk {
  padding: 0.35rem 0.85rem !important;
  border-radius: 4px !important;
  font-size: 0.85rem !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  transform: none !important;
}

.nav-punk--white-label {
  background: rgba(244, 114, 182, 0.12) !important;
  color: var(--accent-3) !important;
  border: 1px solid rgba(244, 114, 182, 0.35) !important;
}

.nav-punk--white-label:hover,
.nav-punk--white-label.active {
  background: rgba(244, 114, 182, 0.25) !important;
  border-color: var(--accent-3) !important;
  color: #fff !important;
  box-shadow: none;
  transform: none !important;
}

.nav-punk--pricing {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(244, 114, 182, 0.2)) !important;
  color: #fb923c !important;
  border: 1px solid rgba(251, 146, 60, 0.45) !important;
}

.nav-punk--pricing:hover {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.35), rgba(244, 114, 182, 0.35)) !important;
  color: #fff !important;
  transform: none !important;
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
}

.nav-search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--text);
}

.badge,
.pricing-badge {
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  border-width: 1px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0;
  transform: none;
  animation: none;
}

.badge--hot {
  background: rgba(251, 146, 60, 0.15);
  border-color: rgba(251, 146, 60, 0.4);
  color: var(--accent-warm);
}

.badge--mono {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--accent);
  color: var(--accent-2);
}

.btn {
  border-radius: 6px;
  font-weight: 700;
}

.btn-primary {
  color: #09002f;
  box-shadow: 0 4px 20px rgba(251, 146, 60, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(251, 146, 60, 0.5);
  color: #09002f;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

.btn-ghost:hover {
  background: rgba(99, 102, 241, 0.15);
}

.hero,
.hero--punk {
  min-height: auto;
  padding: 2.25rem 1.25rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.95rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0.85rem auto;
  color: #fff;
  max-width: 880px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-3);
}

.hero p {
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.hero .section-sub {
  font-size: 0.9rem;
  margin: 0.85rem auto 0;
  max-width: 40rem;
}

.section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: #fff;
}

.section-title em {
  font-style: italic;
  color: var(--accent-2);
}

.card {
  padding: 1.75rem;
}

.card-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.65rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.card p {
  font-size: 0.92rem;
}

a.card:hover,
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(244, 114, 182, 0.12);
}

.flow-card {
  position: relative;
}

.flow-card__icon {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  width: 2rem;
  height: 2rem;
}

.flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.flow-chips li {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.connector-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.connector-row__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

a.connector-row__item:hover {
  color: #fff;
  border-color: var(--accent-2);
}

.connector-row__item img {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
  display: block;
}

.connector-note {
  margin: 0.75rem auto 0;
  max-width: 40rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.highlight-box {
  grid-template-columns: 1.1fr 0.9fr;
  padding: 2.25rem;
  gap: 2rem;
}

.highlight-box--punk {
  border: 2px dashed rgba(244, 114, 182, 0.35);
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.05), rgba(64, 91, 238, 0.08));
}

.highlight-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0.75rem 0;
}

.regia-points {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.regia-points li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.95rem;
}

.regia-points svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.product-mock {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(18, 24, 42, 0.95), rgba(9, 0, 47, 0.92));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.product-mock__chrome {
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.3);
}

.product-mock__dot {
  width: 8px;
  height: 8px;
}

.product-mock__title {
  font-size: 0.75rem;
}

.product-mock__board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.product-mock__col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(64, 91, 238, 0.2);
  border-radius: 8px;
}

.product-mock__col-h {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
}

.product-mock__card {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 6px;
}

.product-mock__card strong {
  font-size: 0.78rem;
}

.product-mock__card span {
  font-size: 0.68rem;
}

.ads-preview {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(9, 0, 47, 0.55);
}

.ads-preview__kicker {
  display: block;
  margin-bottom: 0.55rem;
  font-family: 'Urbanist', 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.ads-preview__name {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.ads-preview__status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-mock__caption {
  margin: 0;
  padding: 0.55rem 0.85rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.home-links {
  margin-top: 1rem;
}

.ai-box h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0.75rem 0;
}

.ai-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.ai-steps li {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.path-card h3 {
  font-size: 1.3rem;
}

.offer-grid--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.offer-card {
  padding: 1.75rem;
}

.offer-card:hover {
  border-color: var(--accent);
}

.offer-card--anchor {
  border-color: var(--accent-2);
  background: linear-gradient(180deg, rgba(8, 167, 169, 0.08), var(--bg-card));
  box-shadow: 0 0 30px rgba(8, 167, 169, 0.12);
}

.offer-card--agency {
  border-color: var(--accent-warm);
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.08), var(--bg-card));
}

.offer-card__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.offer-card__name {
  font-size: 1.35rem;
  color: #fff;
}

.offer-card__price {
  font-size: 2.25rem;
  color: #fff;
}

.offer-card__price span {
  font-size: 0.95rem;
}

.offer-card__price--soft {
  font-size: 1.85rem;
  color: #fff;
}

.offer-card__meta {
  font-size: 0.85rem;
}

.offer-card__list li {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.offer-card__list li::before {
  content: '✓';
  color: var(--accent-2);
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ext-bar h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0.35rem 0 1rem;
}

.ext-bar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.ext-bar__row a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.ext-bar__row a:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.demo-cta.highlight-box--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.demo-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.demo-cta p {
  text-align: center;
  max-width: 60ch;
  width: 100%;
  margin: 0.75rem auto 1.5rem;
}

.demo-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0;
}

.footer {
  border-top: 1px solid var(--border);
  background: #050215;
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer__inner {
  max-width: 1140px;
}

.footer__top {
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 3rem;
}

.footer__label {
  font-size: 0.72rem;
  color: #fff;
}

.footer__map a,
.footer__legal a,
.footer__legal button {
  font-size: 0.82rem;
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .highlight-box,
  .offer-grid--home {
    grid-template-columns: 1fr;
  }

  .footer__map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-mock__board {
    grid-template-columns: 1fr;
  }
}


.nav-ai {
  color: var(--accent-2) !important;
  font-weight: 700;
}

.nav-dropdown { position: relative; }

.nav-mega {
  display: grid;
  position: absolute;
  top: 100%;
  left: 0;
  width: min(720px, calc(100vw - 32px));
  max-width: min(720px, calc(100vw - 32px));
  max-height: min(72vh, 680px);
  overflow: auto;
  padding: 0.65rem 0.85rem 0.8rem;
  background: rgba(8, 6, 28, 0.98);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  z-index: 1100;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0s linear 0.3s;
}

.nav-mega::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -0.75rem;
  height: 0.75rem;
}

.nav-mega--cols-1 { grid-template-columns: minmax(0, 1fr); width: min(22rem, calc(100vw - 32px)); }
.nav-mega--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-mega--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-mega__all { grid-column: 1 / -1; margin: 0.2rem 0 0; }
.nav-cta {
  color: #fff !important;
  background: linear-gradient(90deg, #405bee, #08a7a9);
  border-radius: 999px;
  padding: 0.4rem 0.85rem !important;
}

.nav-dropdown:hover .nav-mega,
.nav-dropdown:focus-within .nav-mega,
.nav-dropdown.is-open .nav-mega {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.nav-dropdown.is-dismissed .nav-mega {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition-delay: 0s;
}

.nav-links a[aria-current="page"],
.nav-dropdown__trigger[aria-current="page"] {
  color: var(--accent-2);
}

.nav-cta[aria-current="page"] {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(8, 167, 169, 0.85);
}

.nav-mega a[aria-current="page"] strong {
  color: var(--accent-2);
}

.nav-mega__title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.nav-mega ul { list-style: none; margin: 0; padding: 0; }

.nav-mega a {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  padding: 0.28rem 0.1rem;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-mega a.nav-mega__link--text {
  display: block;
  padding-left: 0;
}

.nav-mega a strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 650;
}

.nav-mega a em {
  display: block;
  margin-top: 0.1rem;
  font-style: normal;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-muted);
  white-space: normal;
}

.nav-mega a:hover strong,
.nav-mega a:focus-visible strong { color: var(--accent-2); }

.feature-icon { flex: 0 0 auto; color: var(--accent-2); margin-top: 0.1rem; }

.aziende-split,
.caso-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
  margin: 1rem 0 2rem;
}

.sector-art { margin: 0; }
.sector-art svg { display: block; width: 100%; height: auto; }

.crm-frames {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

.crm-frames .product-mock { max-width: none; }

.product-mock { max-width: 24rem; }
.product-mock__board { padding: 0.55rem; gap: 0.4rem; }
.product-mock__card { padding: 0.4rem 0.5rem; }

@media (max-width: 860px) {
  .aziende-split,
  .caso-visual,
  .crm-frames { grid-template-columns: 1fr; }
  .product-mock { max-width: none; }
}
.feature-hub-card .feature-icon { margin-bottom: 0.45rem; }

@media (max-width: 900px) {
  .nav-mega:not(.nav-mega--cols-1) { grid-template-columns: 1fr 1fr; }
}



@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .btn-primary:hover,
  a.card:hover {
    animation: none;
    transform: none;
  }
}


.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.social-proof__list { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; list-style: none; padding: 0; margin: 0.5rem 0; }
.social-proof__note { color: var(--text-muted); font-size: 0.85rem; }

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.legal-doc h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 1.25rem;
  line-height: 1.15;
  color: #fff;
}

.legal-doc h2 { font-size: 1.125rem; margin: 2rem 0 0.75rem; color: var(--text); }
.legal-doc h3 { font-size: 1rem; margin: 1.25rem 0 0.5rem; color: #cbd5e1; }
.legal-doc p, .legal-doc li { color: #cbd5e1; }
.legal-doc ul, .legal-doc ol { padding-left: 1.25rem; }
.legal-doc li { margin-bottom: 0.35rem; }
.legal-doc__meta { color: var(--text-muted); font-size: 0.875rem; margin: 0 0 0.5rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1rem 0; }
.legal-table th, .legal-table td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.legal-table th { background: rgba(9, 0, 47, 0.55); color: var(--text); }
.legal-doc code {
  font-size: 0.8rem;
  word-break: break-all;
  background: rgba(9, 0, 47, 0.65);
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}

.prompt-console {
  margin: 0;
  min-height: 300px;
  background: #0b0c1e;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  color: var(--text);
}

.prompt-console__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.prompt-console__mark {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  min-width: 16px;
  max-width: 16px;
  color: #e8ecf4;
}

.prompt-console__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e8ecf4;
}

.prompt-console__pill {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.4);
  color: #6ee7b7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.prompt-console__user {
  margin: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}

.prompt-console__who {
  color: var(--accent-warm);
  font-weight: 700;
  margin-right: 0.35rem;
}

.prompt-console__caret {
  display: inline-block;
  width: 0.45rem;
  height: 0.9em;
  margin-left: 1px;
  background: #e8ecf4;
  vertical-align: text-bottom;
  animation: promptCaret 1s steps(1) infinite;
}

.prompt-console.is-typed .prompt-console__caret { display: none; }

@keyframes promptCaret {
  50% { opacity: 0; }
}

.prompt-console__draft {
  margin: 0 0.75rem 0.75rem;
  padding: 0.75rem;
  border-radius: 0.55rem;
  background: rgba(30, 27, 75, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.prompt-console__draft[hidden] { display: none; }

.prompt-console__draft-title {
  margin: 0 0 0.55rem;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.prompt-console__table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.prompt-console__table th,
.prompt-console__table td {
  padding: 0.4rem 0.5rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.prompt-console__table th {
  width: 38%;
  color: #94a3b8;
  font-weight: 600;
}

.prompt-console__table tr[hidden] { display: none; }

.prompt-console__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.prompt-console__foot [data-prompt-ask] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  width: 100%;
  min-width: 0;
}

.prompt-console__foot[hidden] { display: none; }

.prompt-console__warn {
  color: #fcd34d;
  font-size: 12px;
  line-height: 1.2;
}

.prompt-console__confirm {
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  padding: 4px 10px;
  background: #059669;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.prompt-console__confirm:hover { background: #047857; }

.prompt-console__done { color: #6ee7b7; font-size: 0.82rem; font-weight: 700; }

.prompt-console__reset {
  margin-left: 0.45rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent-2);
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
}

.prompt-console__note {
  margin: 0;
  padding: 0 0.85rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .prompt-console__caret { animation: none; }
  .nav-mega { transition: none; }
}

.integration-card__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.integration-card__logos img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.integration-card__logos img[alt="WooCommerce"] {
  width: auto;
  height: 36px;
  max-width: 148px;
  padding: 6px 10px;
  background: #f4f6fb;
  border-radius: 8px;
  object-fit: contain;
}

.story-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.story-timeline__item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.9rem;
  position: relative;
}

.story-timeline__item::before {
  content: '';
  position: absolute;
  left: 1.35rem;
  top: 2.6rem;
  bottom: 0;
  width: 2px;
  background: rgba(64, 91, 238, 0.45);
}

.story-timeline__item:last-child::before { display: none; }

.story-timeline__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(64, 91, 238, 0.18);
  border: 1px solid var(--border-strong);
  color: var(--accent-2);
  z-index: 1;
}

.story-timeline__icon svg { width: 1.25rem; height: 1.25rem; }

.story-timeline__body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem 1rem;
  margin-bottom: 0.85rem;
}

.story-timeline__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #fff;
}

.story-timeline__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.story-timeline__when {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .story-timeline { gap: 0; }
  .story-timeline__item {
    grid-template-columns: 1fr 3rem 1fr;
    gap: 1rem;
  }
  .story-timeline__item::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .story-timeline__icon { grid-column: 2; grid-row: 1; }
  .story-timeline__body { grid-row: 1; }
  .story-timeline__item:nth-child(odd) .story-timeline__body { grid-column: 1; text-align: right; }
  .story-timeline__item:nth-child(even) .story-timeline__body { grid-column: 3; }
}

/* Pulsante hamburger e chevron: nascosti sul desktop, visibili sotto i 900px. */
.nav-toggle {
  display: none;
}

.nav-dropdown__row {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.nav-dropdown__more {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

/* Layout telefono / tablet stretto. Sopra i 900px il menu a riga resta invariato. */
@media (max-width: 900px) {
  :root { --nav-h: 3.5rem; }

  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand cta toggle";
    align-items: center;
    height: var(--nav-h);
    min-height: var(--nav-h);
    gap: 0.4rem;
    padding: 0 0.55rem 0 0.7rem;
    overflow: visible;
    /* backdrop-filter sul nav crea un containing block e schiaccia il pannello fixed. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    filter: none;
    transform: none;
  }

  .nav.is-open {
    z-index: 1300;
  }

  .nav-cluster { display: contents; }
  .nav-brand { grid-area: brand; }
  .nav-brand__word { font-size: 1.05rem; }
  .nav-brand__mark { width: 28px; height: 28px; }

  .nav-cta {
    grid-area: cta;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.4rem 0.7rem !important;
    font-size: 0.78rem !important;
    line-height: 1.2;
    white-space: nowrap;
  }

  .nav-cta__extra { display: none; }

  .nav-toggle {
    grid-area: toggle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
  }

  .nav-toggle:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    position: relative;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }

  .nav.is-open .nav-toggle__bars { background: transparent; }
  .nav.is-open .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
  .nav.is-open .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
    margin: 0;
    padding: 0.6rem 0.75rem 8rem;
    height: auto;
    min-height: calc(100dvh - var(--nav-h));
    overflow: auto;
    background: #08061c;
    border-top: 1px solid var(--border);
    z-index: 1100;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.35rem);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open .nav-links {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }

  .nav-links > li {
    width: 100%;
    flex-shrink: 0;
  }

  .nav-dropdown {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    position: static;
  }

  .nav-dropdown__row {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    width: 100%;
  }

  .nav-dropdown__trigger {
    flex: 1 1 auto;
  }

  .nav-dropdown__trigger::after {
    display: none;
  }

  .nav-dropdown__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
  }

  .nav-dropdown__more::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
  }

  .nav-dropdown.is-open .nav-dropdown__more::before {
    transform: rotate(-135deg) translate(-1px, -1px);
  }

  .nav-links a:not(.nav-punk),
  .nav-punk,
  .nav-dropdown__trigger {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    padding: 0.7rem 0.85rem !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    transform: none !important;
    letter-spacing: normal;
    text-transform: none;
  }

  .nav-punk--pricing {
    margin-left: 0;
    justify-content: flex-start;
  }

  /* Niente apertura al passaggio del mouse: sul touch il pannello si apre dal chevron. */
  .nav-mega {
    position: static;
    left: auto;
    width: auto;
    max-width: none;
    max-height: none;
    display: none;
    grid-template-columns: 1fr;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0.4rem 0.4rem;
    overflow: visible;
  }

  .nav-dropdown:hover .nav-mega,
  .nav-dropdown:focus-within .nav-mega {
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .nav-dropdown.is-open .nav-mega,
  .nav-dropdown.is-open:hover .nav-mega,
  .nav-dropdown.is-open:focus-within .nav-mega,
  .nav-dropdown.is-open .nav-mega:not(.nav-mega--cols-1) {
    display: grid;
    grid-template-columns: 1fr;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-mega a,
  .nav-mega a.nav-mega__link--text {
    min-height: 44px;
    align-items: center;
    padding: 0.45rem 0.4rem;
  }

  .hero,
  .hero--punk,
  .hero--compact {
    padding: 1.5rem 1rem 1.25rem;
  }

  .hero h1,
  .feature-hero h1 {
    font-size: clamp(1.55rem, 7.2vw, 2.35rem);
    line-height: 1.18;
    margin: 0.65rem auto 0.85rem;
  }

  .hero p,
  .feature-hero .hero-content p {
    font-size: clamp(0.95rem, 3.6vw, 1.08rem);
    margin-bottom: 1.15rem;
  }

  .hero__actions {
    gap: 0.65rem;
  }

  .hero__actions .btn,
  .btn {
    min-height: 44px;
  }

  .page img {
    max-width: 100%;
    height: auto;
  }

  .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Barra cookie in basso, compatta, pulsanti affiancati. Non spinge l'hero (niente CLS). */
  html.cookie-pending .cookie-bar {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 0.5rem 0.75rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    gap: 0.45rem 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
  }

  html.cookie-pending .cookie-bar p {
    flex: 1 1 100%;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  html.cookie-pending .cookie-bar__actions {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  html.cookie-pending .cookie-bar__actions .btn {
    flex: 1 1 0;
    width: auto;
    min-height: 44px;
    justify-content: center;
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
  }

  html.cookie-pending .page {
    padding-top: var(--nav-h);
  }

  .site-search-fab {
    right: 0.75rem;
    bottom: 0.75rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0.55rem 0.8rem;
  }

  html.cookie-pending .site-search-fab {
    display: none;
  }
}

@media (max-width: 400px) {
  .nav-cta__extra { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links,
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    transition: none;
  }
}
