/* Area partner in 3D neon (9 nov 2026, «sistema l'area partner in 3D neon»).
   Stesso stile approvato del sito (css/neon.css, tavole ChatGPT via Social):
   fondo blu notte con le scie neon, card in vetro, bordo neon sulle card in
   evidenza, pulsanti a gradiente lucidi, icone 3D di famiglia. Solo CSS sopra
   partner.css: markup, testi e logica restano quelli di prima. */

:root {
  --bg: #08091B;
  --surface: rgba(255, 255, 255, .055);
  --border: rgba(202, 211, 255, .15);
  --gradient: linear-gradient(110deg, #23ECF9 0%, #477BFF 33%, #9253FB 67%, #FB49C8 100%);
  --shadow-primary: 0 8px 28px rgba(71, 123, 255, .25), inset 0 1px 1px rgba(255, 255, 255, .42);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, .12), 0 14px 40px rgba(0, 0, 0, .24);
}

/* Fondo: blu notte, scie neon in alto (stessa immagine della home) */
html { background: #08091B; }
body {
  min-height: 100vh;
  background:
    linear-gradient(to bottom, transparent 0, transparent 380px, #08091B 680px) no-repeat,
    url(/img/neon/hero.jpg) center -140px / max(1500px, 100%) auto no-repeat,
    radial-gradient(ellipse at top, #11152D 0%, #08091B 70%);
  background-color: #08091B;
}
header {
  background: rgba(8, 9, 27, .6);
  border-bottom-color: rgba(202, 211, 255, .10);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 2;
}

/* Card in vetro */
.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .07), transparent 45%), var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

/* Card in evidenza (codice partner, riepilogo da pagare): bordo neon */
.codice-card, .summary {
  position: relative;
  isolation: isolate;
  border-color: transparent;
  background: linear-gradient(135deg, rgba(35, 236, 249, .06), rgba(146, 83, 251, .14) 50%, rgba(251, 73, 200, .06)), rgba(17, 21, 45, .55);
  box-shadow: 0 0 30px rgba(146, 83, 251, .16), 0 16px 50px rgba(0, 0, 0, .30);
}
.codice-card::after, .summary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* Titoli: la parola in evidenza a gradiente come sul sito */
h1 .accent, .codice {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pulsanti a gradiente, testo bianco, riflesso lucido */
.primary { color: #fff; }
.primary:hover {
  filter: brightness(1.10);
  box-shadow: 0 12px 34px rgba(71, 123, 255, .35), 0 0 28px rgba(35, 236, 249, .18);
}
.btn:not(.primary) {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(202, 211, 255, .22);
}
.btn:not(.primary):hover { background: rgba(255, 255, 255, .12); border-color: rgba(202, 211, 255, .38); }

/* Menu: voce attiva sottolineata col gradiente */
nav a.active, nav .tab.active { position: relative; }
nav a.active::after, nav .tab.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

/* Passi 1-2-3: quello corrente col bordo neon */
.steps .current span {
  border-color: transparent;
  background: linear-gradient(#11152D, #11152D) padding-box, var(--gradient) border-box;
  border: 1.5px solid transparent;
  color: #fff;
}

/* Icone 3D sui titoli delle card: documenti, codice partner, ordina */
.info-card h2, .codice-card .eyebrow { display: flex; align-items: center; gap: 12px; }
.info-card h2::before, .codice-card .eyebrow::before {
  content: '';
  flex: none;
  width: 40px; height: 40px;
  background: center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(146, 83, 251, .35));
}
.info-card h2::before { background-image: url(/img/neon/ricevuta.png); }
.codice-card .eyebrow::before { background-image: url(/img/neon/chiave.png); width: 32px; height: 32px; }

/* Prodotti: immagine con bordo neon leggero */
.product-image { border-radius: 16px; box-shadow: 0 0 0 1px rgba(202, 211, 255, .15), 0 12px 32px rgba(0, 0, 0, .3); }

/* ---- Allineamento alle tavole ChatGPT dell'area partner (Social, 9/11:
   partner_ordinate/vostri_ordini/accesso desktop, ordinate iPhone, e
   GUIDA_DIFFERENZE_AREA_PARTNER.md). Valori presi dalla guida. ---- */
:root {
  --table-active-bg: rgba(35, 236, 249, .09);
  --table-active-border: #23ECF9;
  --badge-success: #3DDC97; --badge-success-bg: rgba(61, 220, 151, .10);
  --badge-warning: #F5B544; --badge-warning-bg: rgba(245, 181, 68, .10);
  --badge-shipped: #23ECF9; --badge-shipped-bg: rgba(35, 236, 249, .10);
  --input-bg: #10132D; --input-border: rgba(202, 211, 255, .20); --input-focus: #23ECF9;
  --input-placeholder: #8992B3;
  --step-active: #23ECF9; --step-inactive: rgba(202, 211, 255, .25);
}

/* Tutte le card col bordo neon a gradiente, più tenue di quelle in evidenza */
.card { position: relative; isolation: isolate; border-color: transparent; }
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  opacity: .45;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.codice-card::after, .summary::after, .auth form.card::after { padding: 1.5px; opacity: 1; }
.auth form.card {
  background: linear-gradient(135deg, rgba(35, 236, 249, .06), rgba(146, 83, 251, .14) 50%, rgba(251, 73, 200, .06)), rgba(17, 21, 45, .6);
  box-shadow: 0 0 34px rgba(146, 83, 251, .22), 0 16px 50px rgba(0, 0, 0, .30);
}

/* Accesso: anello 3D al posto del marchio piatto */
.auth .orbit { content: url(/img/neon/anello.png); }

/* Riga dello scaglione raggiunto */
.selected { background: var(--table-active-bg); color: var(--table-active-border); }
.selected td:first-child { border-left-color: var(--table-active-border); }

/* Badge di stato: da pagare ambra, pagato verde, spedito azzurro */
.status { font-size: 12px; font-weight: 600; border-radius: 8px; }
.pending { color: var(--badge-warning); border-color: rgba(245, 181, 68, .5); background: var(--badge-warning-bg); }
.confirmed { color: var(--badge-success); border-color: rgba(61, 220, 151, .5); background: var(--badge-success-bg); }
.shipped { color: var(--badge-shipped); border-color: rgba(35, 236, 249, .5); background: var(--badge-shipped-bg); }

/* Campi dei moduli */
input:not([type=checkbox]):not([type=radio]) {
  background: var(--input-bg);
  border-color: var(--input-border);
}
input::placeholder { color: var(--input-placeholder); }
input:not([type=checkbox]):not([type=radio]):focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(35, 236, 249, .12);
}

/* Passi: cerchio del passo corrente azzurro */
.steps span { width: 32px; height: 32px; border-color: var(--step-inactive); }
.steps .current span {
  background: none;
  border: 1.5px solid var(--step-active);
  color: #fff;
}

/* Telefono: barra del totale fissa in basso, come nella tavola iPhone */
@media (max-width: 600px) {
  .order-total {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: rgba(8, 9, 27, .96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
}

/* Pulsante «Paga l'ordine» nella tabella ordini: a gradiente come in tavola */
.orders td .btn {
  background: var(--gradient);
  color: #fff;
  border: 0;
  box-shadow: var(--shadow-primary);
}

/* ---- Elementi delle tavole: render prodotti, icone documenti, menu ---- */

/* Documenti: icona dentro il pulsante (libro per la brochure, download) */
.doc-list .btn { gap: 12px; }
.doc-ic { width: 26px; height: 26px; object-fit: contain; flex: none; }

/* Scheda prodotto: render a sinistra, nome e testo a destra */
.prod-pair > .card:first-child:has(.product-image) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: 24px;
  align-content: start;
}
.prod-pair > .card:first-child:has(.product-image) > * { grid-column: 2; }
.prod-pair > .card:first-child:has(.product-image) > .product-image {
  grid-column: 1;
  grid-row: 1 / span 12;
  align-self: center;
  width: 100%;
  margin: 0;
  box-shadow: none;
  background: none;
  object-fit: contain;
}
.product-image[src$=".png"] { border-radius: 0; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }

/* Menu a tre righe: solo su telefono */
.menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.menu-btn img { width: 34px; height: 34px; display: block; }

@media (max-width: 700px) {
  header { position: relative; flex-direction: row; align-items: center; height: 80px; padding: 0 16px 0 20px; gap: 0; }
  header:has(nav) .brand { width: auto; }
  header .brand-link { min-width: 0; }
  header .brand { height: 46px; width: auto; }
  header:has(nav:not([hidden])) .menu-btn { display: block; margin-left: auto; }
  header nav { display: none !important; }
  body.menu-open header nav:not([hidden]) {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 12px; right: 12px;
    z-index: 20;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    font-size: 15px;
    border-radius: 18px;
    background: rgba(8, 9, 27, .97);
    border: 1px solid rgba(202, 211, 255, .20);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
  body.menu-open header nav small, body.menu-open header nav .exit { display: block; border: 0; padding: 0; }
  nav a.active::after, nav .tab.active::after { bottom: -4px; }
}

/* Telefono: il prezzo dentro la scheda del prodotto, come nella tavola iPhone */
@media (max-width: 600px) {
  .prod-pair {
    position: relative;
    isolation: isolate;
    gap: 0 !important;
    padding-bottom: 14px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .07), transparent 45%), var(--surface);
  }
  .prod-pair::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient);
    opacity: .45;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
  }
  .prod-pair > .card:first-child { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .prod-pair > .card:first-child::after { display: none; }
  .prod-pair > .price-card { margin: 0 12px; order: 0; }
  .prod-pair .product-head h2 { font-size: 22px; }
}
