/* /ordina-ellebox montata sulle tavole ChatGPT di Social (ordina-ellebox_
   desktop_parte1-2, ordina-ellebox_iphone) con le icone 3D di
   pagine/ordina-ellebox/tavole/icone (in /img/ord). Testi, campi, id e
   script invariati; foto dei box: quelle reali del sito. Solo aspetto:
   .ob-main e .ord-s1 diventano "display: contents" così Cosa ordini,
   Antenne, Consegna, Dati, Referente e il riepilogo si dispongono a
   griglia come nella tavola, senza spostare niente nel markup. */

.ebi { display: block; object-fit: contain; filter: drop-shadow(0 0 12px rgba(146, 83, 251, .35)); }
.ebi.lg { width: 76px; height: 76px; flex: none; }

/* ---- Vetro con bordo neon a gradiente ---- */
.ob-how > div, .ord-cosa, #sec-antenne, .ob-layout .ord-dati, .ob-layout .ord-ref, .ob-layout .ord-cons, .ob-card {
  position: relative;
  isolation: isolate;
  border: 0 !important;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .07), transparent 45%), rgba(20, 22, 58, .55) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 26px rgba(146, 83, 251, .18), 0 14px 40px rgba(0, 0, 0, .28);
}
.ob-how > div::after, .ord-cosa::after, #sec-antenne::after, .ob-layout .ord-dati::after,
.ob-layout .ord-ref::after, .ob-layout .ord-cons::after, .ob-card::after {
  content: '';
  position: absolute;
  inset: 0;
  top: 0; left: 0; width: auto; height: auto; transform: none;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient-brand);
  opacity: .85;
  -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;
  z-index: 2;
}
.ob-how > div::after { padding: 1.5px; opacity: .6; }
.ob-layout .ord-dati::before, .ob-layout .ord-ref::before, .ob-layout .ord-cons::before { display: none; }

/* ---- Apertura e linguette ---- */
.hero h1 .accent { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pa-tabs { padding: 0; gap: 0; border: 1.5px solid rgba(146, 83, 251, .55); background: rgba(20, 22, 58, .6); }
.pa-tabs a { padding: 13px 38px; font-size: 16px; color: #fff; }
.pa-tabs a.on { background: var(--gradient-brand); box-shadow: 0 0 22px rgba(35, 236, 249, .35); }

/* ---- I 3 passi ---- */
.ob-how { max-width: 1270px; gap: 18px; padding: 0 20px; }
.ob-how > div {
  display: grid; grid-template-columns: 76px 1fr; column-gap: 18px; align-items: center;
  padding: 16px 22px; border-radius: 16px; font-size: 14.5px; color: var(--neon-testo-2);
}
.ob-how > div > .ebi { grid-row: 1 / span 2; }
.ob-how b { font-size: 18px; white-space: nowrap; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ob-how i {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; margin: 0; border-radius: 50%;
  border: 2px solid var(--neon-teal); color: #fff; font-size: 14px;
  box-shadow: 0 0 10px rgba(35, 236, 249, .45);
}

/* ---- Griglia del modulo (desktop, come la tavola) ---- */
.ob-layout { max-width: 1270px; padding: 0 20px; grid-template-columns: minmax(0, 1fr) 440px; gap: 26px 26px; }
.ob-main, .ob-layout .ord-s1 { display: contents; }
.ob-layout .ord-s1::before, .ob-layout .ord-s1::after { display: none; }
.ord-cosa { grid-column: 1 / -1; grid-row: 1; padding: 30px 30px 26px; }
#sec-antenne { grid-column: 1; grid-row: 2 / span 2; margin: 0 !important; padding: 28px; }
.ob-layout .ord-cons { grid-column: 2; grid-row: 2; align-self: start; }
.ob-layout .ord-dati { grid-column: 1; grid-row: 4; }
.ob-layout .ord-ref { grid-column: 1; grid-row: 5; }
.ob-side { grid-column: 2; grid-row: 3 / span 3; }
.ob-layout .emform-section { margin: 0; padding: 28px; overflow: visible; }
.ob-layout .emform-section > *, .ord-cosa > *, #sec-antenne > * { position: relative; z-index: 1; }

/* Intestazioni delle card: icona 3D al posto dell'emoji */
.ob-layout .emform-icon { display: none; }
.ob-layout .emform-section-head { align-items: center; gap: 18px; border-bottom-color: rgba(202, 211, 255, .14); }
.ob-layout .emform-section-head h3 { font-size: 28px; font-weight: 800; }
.ob-layout .emform-section-head p { font-size: 14px; color: var(--neon-testo-2); }
.ord-cosa .emform-section-head { border: 0; margin-bottom: 18px; padding: 0 0 0 20px; }
.ord-cosa .emform-section-head .ebi { width: 92px; height: 92px; }
.ord-cosa .emform-section-head h3 { font-size: 38px; }
.ord-cosa .emform-section-head p { font-size: 16px; }

/* ---- Cosa ordini: tre box ---- */
.ob-qty { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ob-item, .antenne .antenne-single, .antenne .antenne-option {
  background: linear-gradient(160deg, rgba(146, 83, 251, .14), rgba(20, 22, 58, .55) 55%) !important;
  border: 1px solid rgba(146, 83, 251, .45) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 18px rgba(146, 83, 251, .12);
}
.ob-item { display: flex; flex-direction: column; padding: 18px 26px 22px; border-radius: 18px; }
.ob-item.on, .antenne .antenne-option:has(input:checked) { border-color: var(--neon-teal) !important; box-shadow: 0 0 22px rgba(35, 236, 249, .3), inset 0 1px 0 rgba(255, 255, 255, .08); }
.ord-foto { display: block; height: 170px; width: auto; max-width: 100%; margin: 0 auto 18px; object-fit: contain; border-radius: 14px; filter: drop-shadow(0 0 22px rgba(146, 83, 251, .35)); }
.ord-foto.pay { border-radius: 0; }
.ob-item h4 { font-size: 21px; }
.ob-item .tag { background: linear-gradient(90deg, #9253FB, #FB49C8); color: #fff; font-size: 11px; padding: 3px 10px; }
.ob-item .pr { font-size: 26px; color: var(--neon-teal); margin: 10px 0 6px; }
.ob-item .pr small { font-size: 15px; color: #fff; }
.ob-item p { font-size: 14.5px; color: var(--neon-testo-2); flex: 1; }
.ob-step, .antenne .antenne-stepper {
  align-self: center; margin-top: 18px;
  border-radius: 999px !important; border: 1px solid rgba(202, 211, 255, .3) !important;
  background: rgba(8, 9, 27, .45) !important;
}
.ob-step button { width: 78px; height: 46px; background: transparent; font-size: 24px; }
.ob-step input { width: 110px; height: 46px; font-size: 22px; background: rgba(255, 255, 255, .05); }
.ob-qty-msg {
  margin-top: 18px; padding: 12px 18px 12px 60px; border-radius: 14px;
  border: 1px solid rgba(202, 211, 255, .16); background: url('/img/ord/info.png') 16px center / 32px no-repeat, rgba(8, 9, 27, .35);
  font-size: 15px; color: var(--neon-testo-2);
}
.ob-qty-msg a { color: var(--neon-teal); font-weight: 700; text-decoration: none; }
.ob-qty-msg.err { color: #ff6b6b; }

/* ---- Antenne ---- */
.antenne-heading { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: center; margin-bottom: 18px; max-width: none; }
.antenne-heading .ebi { grid-row: 1 / span 2; width: 64px; height: 64px; }
.antenne-heading h3 { font-size: 28px; font-weight: 800; margin: 0 0 4px; }
.antenne-heading p { font-size: 14px; line-height: 1.5; }
#sec-antenne .antenne-kit { border-top: 1px solid rgba(202, 211, 255, .14); padding-top: 18px; }
.antenne legend { font-size: 21px; font-weight: 700; }
.antenne .antenne-option { min-height: 64px; padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.antenne .antenne-radio { border-color: rgba(202, 211, 255, .6); }
.antenne-warning { border-left: 4px solid var(--neon-teal); color: #fff !important; }
.antenne .antenne-single { border-radius: 18px; padding: 20px; }
.antenne-single h4 { font-size: 19px; font-weight: 700; }
.antenne-cost { color: var(--neon-teal) !important; font-weight: 700; font-size: 17px; }
.antenne .antenne-stepper button { width: 46px; min-height: 42px; border-radius: 999px; }
.antenne .antenne-stepper input[type=number] { width: 52px; min-height: 42px; }

/* ---- Consegna / Dati / Referente ---- */
.ord-cons .antenne-options { gap: 12px !important; }
.ord-cons .antenne-option { min-height: 54px !important; padding: 12px 16px; }
.ob-layout .emform-input { background: rgba(8, 9, 27, .45); border-color: rgba(146, 83, 251, .35); border-radius: 12px; }
.ob-layout .emform-label { color: #fff; letter-spacing: 1px; }
.ob-layout .emform-label .req { color: var(--neon-teal); }
#piva-lookup-btn { border-radius: 999px; padding: 10px 26px !important; }

/* ---- Il tuo ordine ---- */
.ob-card { padding: 28px; }
.ob-card > * { position: relative; z-index: 1; }
.ob-card h3 { justify-content: flex-start; gap: 16px; font-size: 32px; font-weight: 800; }
.ob-card h3 .ebi { width: 64px; height: 64px; }
.ob-now { border: 1.5px solid var(--neon-teal); border-radius: 18px; padding: 18px 20px; background: rgba(8, 9, 27, .4); box-shadow: 0 0 18px rgba(35, 236, 249, .2); }
.ob-now .k { color: var(--neon-teal); font-size: 13px; }
.ob-now .v { font-size: 44px; }
.ob-now .s { font-size: 14px; color: #fff; }
.ob-card .emform-checkbox-text { font-size: 15px; color: #fff; }
.ob-card .emform-checkbox { padding-bottom: 14px; border-bottom: 1px solid rgba(202, 211, 255, .1); }
.ob-card .emform-checkbox:last-child { border-bottom: 0; padding-bottom: 0; }
.ob-submit { border-radius: 999px; padding: 18px 20px !important; font-size: 19px !important; }
.ob-fine { font-size: 14px; color: var(--neon-testo-2); }

/* ---- Telefono (tavola iPhone): una colonna nell'ordine del modulo ---- */
@media (max-width: 960px) {
  .ob-layout { grid-template-columns: minmax(0, 1fr); }
  .ord-cosa, #sec-antenne, .ob-layout .ord-cons, .ob-layout .ord-dati, .ob-layout .ord-ref, .ob-side { grid-column: 1; grid-row: auto; }
  .ob-qty { grid-template-columns: minmax(0, 1fr); }
  .ob-item { display: grid; grid-template-columns: 42% 1fr; column-gap: 14px; padding: 16px; }
  .ob-item .ord-foto { grid-row: 1 / span 4; align-self: center; height: auto; width: 100%; margin: 0; }
  .ob-item .ob-step { align-self: auto; justify-self: start; margin-top: 10px; }
}
@media (max-width: 760px) {
  .ob-how { padding: 0; gap: 12px; }
  .ob-how > div { grid-template-columns: 60px 1fr; padding: 14px 16px; }
  .ob-how > div > .ebi { width: 60px; height: 60px; }
  .ob-how b { font-size: 17px; }
  .ob-layout { padding: 0; gap: 16px; }
  .ord-cosa, #sec-antenne, .ob-layout .emform-section, .ob-card { padding: 20px 16px; border-radius: 20px; }
  .ord-cosa .emform-section-head { padding: 0; }
  .ord-cosa .emform-section-head .ebi, .ob-layout .emform-section-head .ebi { width: 60px; height: 60px; }
  .ord-cosa .emform-section-head h3 { font-size: 28px; }
  .ob-layout .emform-section-head h3 { font-size: 22px; }
  .ob-layout .emform-section-head p, .ord-cosa .emform-section-head p { font-size: 13.5px; }
  .antenne-heading { grid-template-columns: 52px 1fr; }
  .antenne-heading .ebi { width: 52px; height: 52px; }
  .antenne-heading h3 { font-size: 24px; }
  .pa-tabs a { padding: 10px 24px; font-size: 14px; }
  .ob-card h3 { font-size: 26px; }
  .ob-card h3 .ebi { width: 52px; height: 52px; }
  .ob-now .v { font-size: 38px; }
}
@media (max-width: 420px) {
  .ob-item { grid-template-columns: 38% 1fr; }
  .ob-item h4 { font-size: 17px; }
  .ob-item .pr { font-size: 22px; }
  .ob-item .pr small { font-size: 12.5px; }
  .ob-item p { font-size: 13px; }
  .ob-step button { width: 40px; height: 40px; }
  .ob-step input { width: 46px; height: 40px; font-size: 18px; }
}

/* Foto delle antenne in cima alle card singole, come nella tavola (render ChatGPT, ok di Federico 9/11) */
.antenne .antenne-single .ant-foto { display: block; width: 100%; max-width: 150px; height: 130px; object-fit: contain; margin: 0 auto 12px; filter: drop-shadow(0 0 16px rgba(146, 83, 251, .35)); }
