/* ========== HEADER DEMO-SPECIFIC ========== */

.header__dot { color: var(--oro); }

.header__link--active {
  color: var(--blu-notte) !important;
  font-weight: 600;
}
.header__link--active::after { transform: scaleX(1) !important; }

/* ========== DEMO HERO ========== */
.demo-hero {
  padding: 140px var(--section-px) 80px;
  text-align: center;
  background: var(--blu-notte);
  position: relative;
  overflow: hidden;
}
/* Griglia di punti */
.demo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
/* Glow oro in basso */
.demo-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(212,165,116,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.demo-hero__container {
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.demo-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(212,165,116,0.12);
  border: 1px solid rgba(212,165,116,0.3);
  color: var(--oro);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.demo-hero__badge::before { content: '⚡'; font-size: 0.875rem; }
.demo-hero__title {
  font-family: 'Instrument Serif', serif;
  font-size: 3.5rem;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.demo-hero__title em {
  font-style: normal;
  color: var(--oro);
}
.demo-hero__text {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
}
/* Badge pill legacy per compatibilità */
.demo-hero .section__label {
  color: var(--oro);
  margin-bottom: 20px;
}

/* ========== FORM SECTION ========== */
.demo-form-section {
  padding: 0 var(--section-px) 56px;
  background: var(--bianco-caldo);
  position: relative;
  z-index: 2;
  margin-top: -28px;
}
.demo-form-section__container {
  max-width: 720px;
  margin: 0 auto;
}
.demo-form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: 22px;
  padding: 32px 36px;
  box-shadow: 0 8px 48px rgba(10,37,64,0.1), 0 2px 8px rgba(10,37,64,0.06);
}
.demo-form__group {
  flex: 1;
  min-width: 180px;
}
.demo-form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--testo);
  margin-bottom: 6px;
}
.demo-form__select,
.demo-form__input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--bordo);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  background: #fff;
  color: var(--testo);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.demo-form__select:focus,
.demo-form__input:focus {
  outline: none;
  border-color: var(--oro);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.15);
}
.demo-form__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 12px 24px !important;
}

/* ========== OUTPUT SECTION ========== */
.demo-output-section {
  padding: 48px var(--section-px) 72px;
  background: var(--bianco-caldo);
}
.demo-output-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 28px;
  align-items: start;
}
.demo-col-terminal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-col-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========== TERMINALE ========== */
.demo-terminal {
  background: #0d1117;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.demo-terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot--red    { background: #ff5f57; }
.demo-dot--yellow { background: #febc2e; }
.demo-dot--green  { background: #28c840; }
.demo-terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-family: 'Inter', monospace;
  letter-spacing: 0.02em;
}
.demo-terminal-body {
  padding: 18px 20px;
  font-family: 'SF Mono','Fira Code','Consolas', monospace;
  font-size: 0.8125rem;
  line-height: 1.75;
  overflow-y: auto;
  max-height: 380px;
  min-height: 240px;
}
.demo-line { margin-bottom: 2px; opacity: 0; animation: demoFadeIn 0.3s ease forwards; }
.demo-line--command   { color: #e6edf3; }
.demo-line--success   { color: #3fb950; }
.demo-line--info      { color: #79c0ff; }
.demo-line--output    { color: rgba(255,255,255,0.4); }
.demo-line--highlight { color: #D4A574; font-weight: 600; }
.demo-line--warn      { color: #e3b341; }
.demo-prompt { color: #3fb950; margin-right: 8px; font-weight: 700; }

@keyframes demoFadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.demo-progress {
  margin: 0 20px 16px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.demo-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--oro), #e8c48a);
  border-radius: 3px;
  transition: width 0.45s ease;
}

/* ========== SEZIONE "PROVA ANCORA" ========== */
.demo-again {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 20px;
  animation: demoFadeIn 0.5s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.demo-again__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--oro);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.demo-again__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-again__select,
.demo-again__input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #e6edf3;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  appearance: none;
}
.demo-again__select:focus,
.demo-again__input:focus {
  outline: none;
  border-color: var(--oro);
}
.demo-again__select option { background: #161b22; color: #e6edf3; }
.demo-again__input::placeholder { color: rgba(255,255,255,0.3); }
.demo-again__btn {
  width: 100%;
  padding: 12px 20px !important;
  font-size: 0.9375rem;
  justify-content: center;
}

/* ========== TOGGLE DESKTOP / MOBILE ========== */
.demo-view-toggle {
  display: flex;
  gap: 6px;
  background: #f0f0ee;
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}
.demo-view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--testo-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.demo-view-btn--active {
  background: #fff;
  color: var(--blu-notte);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(10,37,64,0.12);
}
.demo-view-btn:not(.demo-view-btn--active):hover {
  color: var(--blu-notte);
}

/* ========== PREVIEW — CORNICE BROWSER ========== */
.demo-preview {
  background: #f5f5f3;
  border: 1px solid var(--bordo);
  border-radius: 14px;
  overflow: hidden;
  height: 560px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(10,37,64,0.13);
}
.demo-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 280px;
  gap: 14px;
  color: #bbb;
  font-size: 0.875rem;
}

/* ========== CORNICE BROWSER DESKTOP (iniettata via JS) ========== */
.demo-browser-window {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  background: #fff;
}
/* Titlebar: traffic lights + pulsanti nav */
.demo-browser-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: #e8e8e6;
  border-bottom: 1px solid #d0d0ce;
  flex-shrink: 0;
}
.demo-browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.demo-browser-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.demo-browser-dot--r { background: #ff5f57; }
.demo-browser-dot--y { background: #febc2e; }
.demo-browser-dot--g { background: #28c840; }
.demo-browser-nav-btns { display: flex; gap: 2px; margin-left: 2px; }
.demo-browser-navbtn {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px; font-size: 1rem; color: #888;
  cursor: default; line-height: 1; user-select: none;
}
/* Tab bar */
.demo-browser-tabs {
  display: flex;
  align-items: flex-end;
  padding: 0 10px;
  background: #d8d8d6;
  min-height: 32px;
  flex-shrink: 0;
}
.demo-browser-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px 7px;
  background: #f0f0ee;
  border-radius: 8px 8px 0 0;
  font-size: 0.6875rem; color: #333;
  max-width: 220px;
  border: 1px solid #d0d0ce; border-bottom: 1px solid #f0f0ee;
  white-space: nowrap; overflow: hidden;
}
.demo-browser-tab-favicon { flex-shrink: 0; font-size: 0.75rem; }
.demo-browser-tab-label { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.demo-browser-tab-close { flex-shrink: 0; opacity: 0.4; font-size: 1rem; line-height: 1; }
/* Address bar */
.demo-browser-address {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: #f0f0ee;
  border-bottom: 1px solid #d8d8d6;
  flex-shrink: 0;
}
.demo-browser-lock { font-size: 0.6875rem; flex-shrink: 0; color: #2a7d0e; }
.demo-browser-url {
  flex: 1;
  background: #fff;
  border: 1px solid #d0d0ce;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.6875rem; color: #333;
  font-family: 'Inter', sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Contenuto scrollabile */
.demo-preview-content {
  flex: 1;
  overflow-y: auto;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.demo-preview-content::-webkit-scrollbar { width: 5px; }
.demo-preview-content::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

/* ========== CORNICE MOBILE (PHONE) ========== */
.demo-phone-scene {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0d1117 100%);
  flex: 1;
  min-height: 540px;
}
.demo-phone {
  width: 230px;
  flex-shrink: 0;
  background: #1c1c1e;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 1.5px #3a3a3c,
    0 0 0 3px #1c1c1e,
    0 28px 60px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.07);
  position: relative;
}
/* Dynamic island */
.demo-phone__island {
  width: 80px;
  height: 22px;
  background: #000;
  border-radius: 20px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  gap: 4px;
}
.demo-phone__island-dot {
  width: 8px;
  height: 8px;
  background: #1c1c1e;
  border-radius: 50%;
  border: 1.5px solid #333;
}
.demo-phone__screen {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  height: 430px;
  overflow-y: auto;
  scrollbar-width: none;
}
.demo-phone__screen::-webkit-scrollbar { display: none; }
/* Barra status phone */
.demo-phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px 4px;
  background: #fff;
  font-size: 0.625rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #000;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* ========== SITO GENERATO — font realistici ========== */
.live-site {
  width: 100%;
  animation: siteAppear 0.5s ease;
  font-family: 'Inter', sans-serif;
}
@keyframes siteAppear {
  from { opacity: 0; transform: scale(0.99); }
  to   { opacity: 1; transform: scale(1); }
}

/* Nav */
.live-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  animation: slideDown 0.4s ease;
  position: sticky;
  top: 0;
  z-index: 10;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.live-logo {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.live-nav-links { display: flex; gap: 4px; }
.live-nav-link {
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}
.live-nav-link:hover { background: rgba(255,255,255,0.25); color: #fff; }
.live-nav-link--active { background: rgba(255,255,255,0.95) !important; font-weight: 600; }

/* Page switching */
.live-site__page { display: none; }
.live-site__page--active {
  display: block;
  animation: pageFadeIn 0.35s ease;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero */
.live-hero {
  position: relative;
  text-align: center;
  padding: 44px 20px 36px;
  color: #fff;
  overflow: hidden;
}
.live-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.06); }
}
.live-hero__overlay { position: absolute; inset: 0; z-index: 1; }
.live-hero__content {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.6s ease 0.2s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.live-hero h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.625rem;
  margin-bottom: 10px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.live-hero p {
  font-size: 0.875rem;
  margin-bottom: 18px;
  opacity: 0.92;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.live-hero .live-btn {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.live-hero .live-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* Features 2x2 */
.live-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
  animation: fadeUp 0.5s ease 0.4s both;
}
.live-feature {
  padding: 16px 14px;
  border-radius: 12px;
  font-size: 0.8125rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid;
}
.live-feature:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.live-feature b { display: block; font-size: 0.9375rem; margin-bottom: 5px; }
.live-feature span { opacity: 0.65; font-size: 0.75rem; line-height: 1.5; }

/* Products */
.live-products { padding: 20px; animation: fadeUp 0.4s ease; }
.live-products__title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem;
  margin-bottom: 16px;
  line-height: 1.3;
}
.live-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.live-product-card {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid;
}
.live-product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.live-product-img {
  width: 100%;
  height: 96px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.live-product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.45));
}
.live-product-price-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  color: #fff;
  backdrop-filter: blur(4px);
}
.live-product-info { padding: 12px; }
.live-product-name { font-weight: 700; font-size: 0.8125rem; margin-bottom: 3px; }
.live-product-desc { font-size: 0.6875rem; opacity: 0.6; line-height: 1.5; }

/* Contacts */
.live-contacts { padding: 20px; animation: fadeUp 0.4s ease; }
.live-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid;
  font-size: 0.8125rem;
}
.live-contact-item:last-of-type { border-bottom: none; }
.live-contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.live-contact-text b { display: block; font-size: 0.75rem; margin-bottom: 3px; font-weight: 700; }
.live-contact-text { opacity: 0.8; line-height: 1.6; font-size: 0.75rem; }
.live-map {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  height: 100px;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}
.live-map:hover { transform: scale(1.01); }
.live-map-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 0.6875rem;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* Form contatti nella pagina generata */
.live-contact-form { padding: 0 0 8px; }
.live-contact-form__title {
  font-family: 'Instrument Serif', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.live-contact-form__input,
.live-contact-form__textarea {
  display: block;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 8px;
  border: 1.5px solid;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
}
.live-contact-form__textarea { height: 72px; resize: none; }
.live-contact-form__input::placeholder,
.live-contact-form__textarea::placeholder { color: #aaa; }
.live-contact-form__btn {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s, background 0.3s;
}
.live-contact-form__btn:hover { opacity: 0.88; }

/* Testimonials */
.live-testimonials {
  padding: 16px 20px;
  animation: fadeUp 0.4s ease 0.55s both;
}
.live-testimonial {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 10px;
}
.live-testimonial:last-child { margin-bottom: 0; }
.live-testimonial b {
  font-style: normal;
  display: block;
  margin-top: 6px;
  font-size: 0.6875rem;
  opacity: 0.65;
}

/* Footer */
.live-footer {
  margin-top: 8px;
  padding: 18px 20px;
  text-align: center;
  animation: fadeUp 0.4s ease 0.7s both;
}
.live-footer-cols {
  display: flex;
  justify-content: space-around;
  margin-bottom: 12px;
  text-align: left;
}
.live-footer-col b {
  display: block;
  font-size: 0.6875rem;
  margin-bottom: 6px;
  font-weight: 700;
  opacity: 0.9;
}
.live-footer-col span {
  display: block;
  font-size: 0.625rem;
  opacity: 0.5;
  line-height: 1.8;
}
.live-footer-bottom {
  font-size: 0.625rem;
  opacity: 0.4;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 10px;
}

/* ========== CTA POST-DEMO ========== */
.demo-cta-section {
  padding: 80px var(--section-px);
  text-align: center;
  background: linear-gradient(160deg, var(--blu-notte) 0%, #0f2d4a 100%);
  position: relative;
  overflow: hidden;
}
.demo-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.demo-cta-section::after {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(212,165,116,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.demo-cta-container {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.demo-cta__tag {
  display: inline-block;
  background: rgba(212,165,116,0.15);
  border: 1px solid rgba(212,165,116,0.3);
  color: var(--oro);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.demo-cta__title {
  font-family: 'Instrument Serif', serif;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
}
.demo-cta__text {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ========== PHONE VIEW: override layout del sito generato ========== */
/* Rimuove sticky da status bar e nav — evita sovrapposizione */
.demo-phone__screen .demo-phone__status { position: relative; }
.demo-phone__screen .live-nav {
  position: relative; top: auto;
  padding: 9px 10px;
}
.demo-phone__screen .live-logo { font-size: 0.75rem; }
.demo-phone__screen .live-nav-links { gap: 2px; }
.demo-phone__screen .live-nav-link {
  padding: 3px 6px;
  font-size: 0.5625rem;
  border-radius: 4px;
}
/* Hero compatto */
.demo-phone__screen .live-hero { padding: 18px 12px 16px; }
.demo-phone__screen .live-hero h3 { font-size: 1.0625rem; margin-bottom: 7px; }
.demo-phone__screen .live-hero p  { font-size: 0.6875rem; margin-bottom: 12px; }
.demo-phone__screen .live-hero .live-btn { font-size: 0.6875rem; padding: 7px 16px; }
/* Features: 2 colonne ma più compatte */
.demo-phone__screen .live-features { gap: 7px; padding: 10px; }
.demo-phone__screen .live-feature { padding: 9px 7px; border-radius: 8px; }
.demo-phone__screen .live-feature b { font-size: 0.6875rem; margin-bottom: 2px; }
.demo-phone__screen .live-feature span { font-size: 0.5625rem; }
/* Products: colonna singola */
.demo-phone__screen .live-products { padding: 10px; }
.demo-phone__screen .live-products__title { font-size: 0.9375rem; margin-bottom: 8px; }
.demo-phone__screen .live-product-grid { grid-template-columns: 1fr; gap: 8px; }
.demo-phone__screen .live-product-img { height: 72px; }
.demo-phone__screen .live-product-info { padding: 8px 10px; }
.demo-phone__screen .live-product-name { font-size: 0.6875rem; }
.demo-phone__screen .live-product-desc { font-size: 0.5625rem; }
.demo-phone__screen .live-product-price-tag { font-size: 0.5rem; padding: 2px 6px; top: 6px; right: 6px; }
/* Contacts */
.demo-phone__screen .live-contacts { padding: 10px; }
.demo-phone__screen .live-contact-item { gap: 10px; padding: 9px 0; font-size: 0.6875rem; }
.demo-phone__screen .live-contact-icon { width: 28px; height: 28px; font-size: 0.8125rem; border-radius: 7px; }
.demo-phone__screen .live-contact-text { font-size: 0.625rem; }
.demo-phone__screen .live-contact-text b { font-size: 0.625rem; }
.demo-phone__screen .live-map { height: 72px; margin-top: 8px; }
.demo-phone__screen .live-map-label { font-size: 0.5625rem; padding: 3px 7px; bottom: 7px; }
/* Testimonials */
.demo-phone__screen .live-testimonials { padding: 8px 10px; }
.demo-phone__screen .live-testimonial { padding: 9px 10px; font-size: 0.625rem; margin-bottom: 6px; border-radius: 7px; }
.demo-phone__screen .live-testimonial b { font-size: 0.5625rem; margin-top: 4px; }
/* Footer */
.demo-phone__screen .live-contact-form { padding: 0 0 4px; }
.demo-phone__screen .live-contact-form__title { font-size: 0.875rem; margin-bottom: 8px; }
.demo-phone__screen .live-contact-form__input,
.demo-phone__screen .live-contact-form__textarea { padding: 7px 10px; font-size: 0.625rem; margin-bottom: 6px; border-radius: 6px; }
.demo-phone__screen .live-contact-form__textarea { height: 54px; }
.demo-phone__screen .live-contact-form__btn { padding: 8px; font-size: 0.6875rem; border-radius: 6px; }
.demo-phone__screen .live-footer { padding: 10px; }
.demo-phone__screen .live-footer-cols { flex-direction: column; gap: 6px; margin-bottom: 8px; }
.demo-phone__screen .live-footer-col b { font-size: 0.5625rem; margin-bottom: 3px; }
.demo-phone__screen .live-footer-col span { font-size: 0.5rem; line-height: 1.6; }
.demo-phone__screen .live-footer-bottom { font-size: 0.5rem; padding-top: 8px; }

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  .demo-hero__title { font-size: 2.25rem; }
  .demo-hero { padding: 100px 20px 48px; }
  .demo-form { flex-direction: column; padding: 24px 20px; border-radius: 16px; }
  .demo-form__group { min-width: 100%; }
  .demo-form__btn { width: 100%; justify-content: center; }
  .demo-output-section { padding: 0 20px 48px; }
  .demo-output-container { grid-template-columns: 1fr; }
  .demo-terminal-body { min-height: 180px; max-height: 260px; }
  .demo-cta__title { font-size: 1.75rem; }
  .live-product-grid { grid-template-columns: 1fr; }
  .live-footer-cols { flex-direction: column; gap: 10px; }
  .demo-phone-scene { min-height: 480px; }
  .demo-phone__screen { height: 380px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .demo-output-container { gap: 18px; }
  .demo-hero__title { font-size: 2.5rem; }
}

/* ===== FIX MOBILE (17-mag-2026) ===== */

@media (max-width: 768px) {
  .demo-hero { padding: 90px 16px 40px !important; }
  .demo-hero__title { font-size: 1.75rem !important; }
  .demo-hero__text { font-size: 0.9375rem !important; }

  #goldsite-features .cards {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  #goldsite-features {
    padding: 24px 16px !important;
  }

  .steps { gap: 24px !important; }
  .step__number { width: 40px !important; height: 40px !important; font-size: 1.125rem !important; flex-shrink: 0 !important; }

  .demo-form-section { padding: 0 16px 32px !important; }
  .demo-form { padding: 20px 16px !important; border-radius: 14px !important; gap: 12px !important; }
  .demo-form__group { min-width: 100% !important; }
  .demo-form__select, .demo-form__input { padding: 10px 12px !important; font-size: 0.875rem !important; }
  .demo-form__btn { width: 100% !important; justify-content: center !important; }

  .demo-output-section { padding: 0 16px 32px !important; }
  .demo-output-container { grid-template-columns: 1fr !important; gap: 16px !important; }
  .demo-terminal-body { min-height: 160px !important; max-height: 220px !important; font-size: 0.75rem !important; padding: 12px 14px !important; }
  .demo-preview { height: 440px !important; }
  .demo-again { padding: 16px !important; }

  .demo-cta-section { padding: 48px 20px !important; }
  .demo-cta__title { font-size: 1.5rem !important; }
  .demo-cta__text { font-size: 0.9375rem !important; }

  .demo-phone { width: 200px !important; padding: 8px !important; border-radius: 32px !important; }
  .demo-phone__screen { height: 360px !important; }
  .demo-phone-scene { min-height: 420px !important; padding: 20px 12px !important; }
  .demo-phone__island { width: 60px !important; height: 18px !important; margin-bottom: 6px !important; }

  .section__container { padding: 0 16px !important; }
  #demo-crosssell .section__container { max-width: 100% !important; }
  #demo-cta-pre .section__container { max-width: 100% !important; }

  .demo-view-toggle { gap: 4px !important; }
  .demo-view-btn { padding: 5px 10px !important; font-size: 0.75rem !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #goldsite-features .cards { gap: 14px !important; }
  .demo-output-container { gap: 18px !important; }
  .demo-hero__title { font-size: 2.5rem !important; }
}

/* Fix grafica demo v2026-05-25 */
.demo-form-section {
  border-top: 1px solid var(--bordo);
}
#demo-crosssell {
  border-top: 2px solid rgba(212,165,116,0.2);
}
#demo-steps {
  border-bottom: 2px solid rgba(212,165,116,0.2);
}
