/* ==========================================================================
   Estreemo – pages.css
   Virtual Congress, VDU+, Vendite, Contatti, Richiedi demo
   ========================================================================== */

/* ---------- HERO PAGINE ---------- */
.p-hero { padding: calc(var(--header-h) + clamp(40px, 8vw, 90px)) 0 clamp(50px, 8vw, 100px); }
.p-hero--compact { padding-bottom: clamp(36px, 5vw, 56px); }
.p-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 72px); align-items: center; }
.p-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.p-hero-media { position: relative; }

/* ---------- DIAGRAMMA RETE (VC) ---------- */
.net { position: relative; aspect-ratio: 1 / .9; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 60%, rgba(91, 140, 255, .14), transparent 60%), rgba(8, 14, 30, .6); }
.net-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net-lines line { stroke: var(--line-strong); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.net-lines .packet { stroke: var(--brand); stroke-width: 2.4; stroke-dasharray: 2 14; stroke-linecap: round; animation: packets 1.6s linear infinite; filter: drop-shadow(0 0 4px var(--brand)); }
.net-lines .packet:nth-of-type(4n) { stroke: var(--cyan); filter: drop-shadow(0 0 4px var(--cyan)); animation-duration: 2.2s; }
@keyframes packets { to { stroke-dashoffset: -32; } }
.net-internet { fill: none; stroke: rgba(79, 216, 255, .5); stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.net-zone { position: absolute; left: 4%; font: 600 .66rem var(--f-display); letter-spacing: .22em; color: var(--muted); }
.net-zone--web { top: 25%; }
.net-zone--lan { top: 38%; color: var(--cyan); }
.net-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font: 600 clamp(.62rem, 1.4vw, .78rem)/1.2 var(--f-display); width: 30%; }
.net-ico { width: clamp(44px, 7vw, 60px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 16px; background: rgba(10, 18, 38, .95); border: 1px solid var(--line-strong); color: var(--cyan); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8); }
.net-ico .ico { width: 45%; height: 45%; }
.net-core .net-ico { width: clamp(64px, 10vw, 88px); border-radius: 50%; color: #140b02; background: linear-gradient(135deg, var(--brand), #ff7a3d); border: 0; box-shadow: 0 0 0 10px rgba(243, 146, 51, .12), 0 0 60px rgba(243, 146, 51, .5); animation: corePulse 3s ease-in-out infinite; }
@keyframes corePulse { 50% { box-shadow: 0 0 0 18px rgba(243, 146, 51, .06), 0 0 80px rgba(243, 146, 51, .6); } }
.net-core { font-size: clamp(.72rem, 1.6vw, .9rem); }

/* ---------- MODULI (VC) ---------- */
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.module-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); }
.module-media { aspect-ratio: 2 / 1; overflow: hidden; background: #0b0f1c; border-bottom: 1px solid var(--line); }
.module-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.module-body { padding: clamp(22px, 3vw, 32px); }
.module-body h3 { font-size: 1.6rem; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 72px); align-items: center; }
.callout { margin-top: 28px; padding: 24px; border-radius: var(--radius); border: 1px solid rgba(243, 146, 51, .3); background: linear-gradient(135deg, rgba(243, 146, 51, .08), rgba(139, 109, 255, .06)); }
.callout > p { margin: 16px 0 0; }
.callout .small { margin-top: 16px; }

/* ---------- VDU+ ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; isolation: isolate; }
.spotlight .feature::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 50%), rgba(79, 216, 255, .14), transparent 60%); }
.spotlight .feature:hover::before { opacity: 1; }
.feature:hover { border-color: var(--line-strong); }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { font-size: .92rem; margin: 0; }
.cap-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: var(--cyan); background: rgba(79, 216, 255, .1); border: 1px solid rgba(79, 216, 255, .25); }
.cap-ico .ico { width: 22px; height: 22px; }

.nfc-wave { position: absolute; left: 30%; bottom: 14%; width: 60px; height: 60px; pointer-events: none; }
.nfc-wave i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: nfc 2.4s ease-out infinite; }
.nfc-wave i:nth-child(2) { animation-delay: .8s; }
.nfc-wave i:nth-child(3) { animation-delay: 1.6s; }
@keyframes nfc { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- PARTNER ---------- */
.partner-visual { position: relative; display: grid; place-items: center; }
.partner-logo { width: min(100%, 440px); padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: #fff; box-shadow: 0 40px 100px -30px rgba(79, 216, 255, .35), 0 0 0 1px rgba(255, 255, 255, .2); }
.partner-link { position: absolute; right: 4%; bottom: -24px; display: flex; align-items: center; gap: 10px; }
.partner-link span { width: 80px; height: 2px; background: linear-gradient(90deg, transparent, var(--brand)); position: relative; overflow: hidden; }
.partner-link span::after { content: ""; position: absolute; top: -2px; left: -10px; width: 10px; height: 6px; border-radius: 3px; background: #fff; box-shadow: 0 0 8px #fff; animation: travel 1.8s linear infinite; }
@keyframes travel { to { left: 100%; } }
.partner-link img { width: 44px; height: 44px; padding: 6px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-strong); }

.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; position: relative; }
.journey::before { content: ""; position: absolute; top: 31px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, var(--brand), var(--cyan), var(--violet)); opacity: .5; }
.journey-step { position: relative; text-align: center; padding: 0 8px; }
.journey-ico { position: relative; width: 62px; height: 62px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--brand); box-shadow: 0 0 0 8px var(--bg); }
.journey-ico .ico { width: 26px; height: 26px; }
.journey-step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.journey-step p { font-size: .9rem; margin: 0; }

.contact-list { display: grid; gap: 12px; margin: 18px 0 6px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: #cdd8f0; }
.contact-list .ico { color: var(--cyan); width: 18px; height: 18px; }
.contact-list a:hover { color: var(--brand); }

/* ---------- FORM ---------- */
.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.form-layout--demo { grid-template-columns: 1.3fr .7fr; }
.info-stack { display: grid; gap: 12px; }
.info-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color .25s, transform .25s var(--ease); line-height: 1.45; }
a.info-card:hover { border-color: var(--cyan); transform: translateX(4px); }
.info-card small { display: block; font: 600 .7rem var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.info-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(79, 216, 255, .1); color: var(--cyan); }

.form-card { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 24px 16px 10px; border-radius: 14px; font: inherit; color: #fff;
  background: rgba(5, 9, 19, .6); border: 1px solid var(--line-strong); outline: none;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field label { position: absolute; left: 17px; top: 17px; font-size: .95rem; color: var(--muted); pointer-events: none; transition: all .2s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(79, 216, 255, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field-select label { top: 8px; font-size: .7rem; letter-spacing: .06em; color: var(--cyan); }
.field-select select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field-select option { background: var(--bg-2); color: #fff; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b6b; }

.product-picker { border: 0; padding: 0; margin: 0; }
.product-picker legend { font: 600 .72rem var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick { --tc: var(--cyan); position: relative; cursor: pointer; }
.pick--micro { --tc: var(--c-micro); }
.pick--one { --tc: var(--c-one); }
.pick--pro { --tc: var(--c-pro); }
.pick--premium { --tc: var(--c-premium); }
.pick input { position: absolute; opacity: 0; }
.pick span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px; border-radius: 12px; font: 600 .82rem/1.2 var(--f-display); border: 1px solid var(--line-strong); background: var(--surface); transition: all .2s; }
.pick:hover span { border-color: var(--tc); }
.pick input:checked + span { color: #fff; border-color: var(--tc); background: color-mix(in srgb, var(--tc) 18%, transparent); box-shadow: 0 0 24px -8px var(--tc); }
.pick input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.form-errors { padding: 14px 18px; border-radius: 12px; background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .4); color: #ffc9c9; font-size: .92rem; }
.form-errors p { margin: 0; }
.form-done { text-align: center; padding-block: clamp(40px, 6vw, 70px); }
.form-done .actions-row { justify-content: center; }
.done-ico { width: 80px; height: 80px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; color: #062a22; background: var(--c-micro); box-shadow: 0 0 0 12px rgba(46, 230, 197, .12), 0 0 60px rgba(46, 230, 197, .5); animation: pop .6s var(--ease); }
.done-ico .ico { width: 38px; height: 38px; stroke-width: 2.4; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } }

.after-card { position: sticky; top: calc(var(--header-h) + 20px); }
.timeline { display: grid; gap: 20px; margin-top: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--brand), var(--cyan)); opacity: .5; }
.timeline li { display: flex; gap: 14px; }
.timeline p { margin: 2px 0 0; font-size: .9rem; }
.tl-dot { position: relative; flex: none; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem var(--f-display); background: var(--bg-2); border: 1px solid var(--brand); color: var(--brand); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .journey::before { display: none; }
}
@media (max-width: 900px) {
  .p-hero-grid, .split, .module-grid, .form-layout, .form-layout--demo { grid-template-columns: 1fr; }
  .net { max-width: 560px; width: 100%; margin-inline: auto; }
  .after-card { position: static; }
  .partner-visual { padding-bottom: 30px; }
}
@media (max-width: 600px) {
  .feature-grid, .journey { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
  .net-node { width: 34%; }
}
.product-picker.is-invalid legend { color: #ff8b8b; }

/* Loghi marchi originali (su fondo chiaro per rispettare i colori ufficiali) */
.brand-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.brand-chip { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px; background: #fff; }
.brand-chip img { height: 20px; width: auto; }
.stat-brands .brand-logos { justify-content: center; margin: 0 0 12px; }

/* ---------- PRIVACY ---------- */
.legal-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.legal-layout > * { min-width: 0; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px; }
.legal-toc ol { list-style: decimal; padding-left: 18px; display: grid; gap: 8px; font-size: .9rem; }
.legal-toc a { color: #c4d0ea; }
.legal-toc a:hover { color: var(--brand); }
.legal { max-width: 78ch; }
.legal-section { padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-section:first-child { padding-top: 0; }
.legal h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 14px; }
.legal h2 span { color: var(--brand); }
.legal p, .legal li { color: #c4d0ea; }
.legal ul { list-style: disc; padding-left: 20px; display: grid; gap: 10px; margin-bottom: 1em; }
.legal a, .form-note a, .footer-bottom a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
.form-note { margin: 0; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
