/* ============================================================
   Bieffenet — home (dal 30/09/2026)
   Solo per index.html: il blog usa ancora landing.css.
   Stessi colori del marchio (navy e ciano) e stesso carattere; niente
   emoji come icone, che cambiano disegno da un telefono all'altro.
   ============================================================ */

@import url('../fonts/fonts.css?v=20261021a');

:root {
  --acc: #06b6d4; --acc-d: #0891b2; --acc-l: #22d3ee;
  --navy: #0f1c36; --navy-2: #0a2a3c;
  --text: #1e2638; --tm: #55637f; --tl: #8594b1;
  --bg: #f4f6f9; --bg-w: #ffffff; --bg-s: #eaeef3; --bd: #dde2ea;
  --r: 16px; --rs: 10px; --rl: 24px;
  --sh: 0 2px 14px rgba(15, 28, 54, .07);
  --sh-lg: 0 24px 60px rgba(15, 28, 54, .16);
  --grad: linear-gradient(135deg, #0f1c36 0%, #06b6d4 100%);
  --ease: cubic-bezier(.25, .46, .45, .94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-font-smoothing: antialiased; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--bg); color: var(--text);
       line-height: 1.65; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.icona { width: 22px; height: 22px; flex: none; }

/* ── Barra in alto ─────────────────────────────────────────────── */
.navbar { position: fixed; inset: 0 0 auto 0; z-index: 100; background: rgba(244, 246, 249, .82);
          backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
          border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.navbar.scrolled { background: rgba(255, 255, 255, .92); border-bottom-color: var(--bd); box-shadow: 0 6px 24px rgba(15, 28, 54, .06); }
.navbar__inner { height: 72px; display: flex; align-items: center; gap: 2rem; }
.navbar__logo img { height: 36px; width: auto; }
.navbar__links { display: flex; gap: 1.75rem; list-style: none; margin-right: auto; }
.navbar__links a { font-size: .9rem; font-weight: 600; color: var(--tm); transition: color .2s; }
.navbar__links a:hover { color: var(--acc-d); }
.navbar__actions { display: flex; gap: .6rem; align-items: center; }
/* Scelta della lingua nella barra (il popup lo disegna js/i18n.js) */
.navbar__lang { margin-right: -1.25rem; --bfl-fg: var(--tm); --bfl-fg-hi: var(--text); --bfl-acc: var(--acc-d); }

/* ── Bottoni ───────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.4rem;
       font: 700 .95rem/1 inherit; font-family: inherit; border: none; border-radius: 999px; cursor: pointer;
       white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--acc), var(--acc-d)); color: #fff; box-shadow: 0 8px 22px rgba(6, 182, 212, .32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(6, 182, 212, .45); }
.btn-outline { background: var(--bg-w); color: var(--navy); border: 1.5px solid var(--bd); }
.btn-outline:hover { border-color: var(--acc); color: var(--acc-d); }
.btn-ghost { background: transparent; color: var(--navy); padding-left: .6rem; padding-right: .6rem; }
.btn-ghost:hover { color: var(--acc-d); }
.btn-sm { padding: .55rem 1.1rem; font-size: .875rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #172a4d; transform: translateY(-2px); }

/* ── Etichette e titoli ────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem; border-radius: 999px;
         border: 1px solid rgba(6, 182, 212, .28); background: rgba(6, 182, 212, .08); color: var(--acc-d);
         font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.1rem; }
.badge .icona { width: 14px; height: 14px; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section { padding: 6rem 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.25rem; }
.section-header h2, .h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: var(--navy); }
.section-desc { font-size: 1.05rem; color: var(--tm); margin-top: .8rem; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 128px 0 88px;
        background: radial-gradient(900px 500px at 85% 20%, rgba(6, 182, 212, .13), transparent 60%),
                    radial-gradient(700px 500px at 0% 90%, rgba(15, 28, 54, .07), transparent 60%),
                    linear-gradient(180deg, #eef2f8 0%, var(--bg) 100%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em;
               color: var(--navy); margin-bottom: 1.25rem; }
.hero__desc { font-size: 1.12rem; color: var(--tm); max-width: 470px; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.hero__trust { display: flex; gap: .6rem 1.4rem; flex-wrap: wrap; margin-top: 1.75rem; list-style: none; }
.hero__trust li { display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; font-weight: 600; color: var(--tm); }
.hero__trust .icona { width: 18px; height: 18px; color: var(--acc); }

.hero__visual { position: relative; display: flex; justify-content: center; padding: 10px 0 40px; }

/* Il telefono: dentro c'e' la pagina pubblica vera (card.html in anteprima),
   disegnata a 390 px e rimpicciolita. */
.telefono { position: relative; width: 290px; aspect-ratio: 390 / 800; border-radius: 46px; padding: 11px;
            background: #0b1220; box-shadow: var(--sh-lg), 0 0 0 1px rgba(15, 28, 54, .12), inset 0 0 0 2px #1d2738; z-index: 1; }
.telefono::before { content: ''; position: absolute; top: 20px; left: 50%; width: 88px; height: 24px; border-radius: 20px;
                    background: #0b1220; transform: translateX(-50%); z-index: 3; }
.telefono__schermo { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #0f1c36; }
.telefono__schermo iframe { position: absolute; top: 0; left: 0; width: 390px; height: 800px; border: 0;
                            transform-origin: 0 0; transform: scale(var(--scala, .6974)); pointer-events: none; }

/* La card NFC fisica, appoggiata davanti al telefono */
.card-nfc { position: relative; width: 280px; aspect-ratio: 1011 / 638; border-radius: 14px; overflow: hidden;
            font-family: 'Plus Jakarta Sans', system-ui, sans-serif; box-shadow: 0 18px 40px rgba(15, 28, 54, .22), 0 0 0 1px rgba(15, 28, 54, .06); }
.card-nfc--fronte { background: linear-gradient(135deg, #ffffff, #eef2f7); color: #0f1c36; display: flex; flex-direction: column; }
.card-nfc__alto { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 18px 0; }
.card-nfc__azienda { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.card-nfc__onde { width: 22px; height: 22px; opacity: .75; }
.card-nfc__logo { flex: 1; display: flex; align-items: center; justify-content: center; padding: 4px 18px; min-height: 0; }
.card-nfc__logo img { max-height: 62px; max-width: 180px; object-fit: contain; }
.card-nfc__nome { padding: 0 18px 14px; }
.card-nfc__nome b { display: block; font-size: 16px; font-weight: 800; line-height: 1.1; }
.card-nfc__nome span { display: block; font-size: 10px; font-weight: 500; opacity: .65; margin-top: 3px; }
.card-nfc--retro { background: #fff; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.card-nfc__qr { width: 86px; height: 86px; display: grid; place-items: center; }
.card-nfc__qr svg { width: 100%; height: 100%; }
.card-nfc__qr .segnaposto { width: 100%; height: 100%; border-radius: 6px;
                            background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 12px 12px; opacity: .12; }
.card-nfc__retro-nome { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.card-nfc__marchio { position: absolute; right: 12px; bottom: 9px; text-align: right; line-height: 1.3; }
.card-nfc__marchio b { display: block; font-size: 6px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #4b5563; }
.card-nfc__marchio span { display: block; font-size: 6px; color: #6b7280; }

.hero__visual .card-nfc { position: absolute; left: calc(50% - 250px); bottom: 6px; transform: rotate(-9deg); z-index: 2; }

.bollino { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem;
           background: var(--bg-w); border: 1px solid var(--bd); border-radius: 12px; box-shadow: var(--sh);
           font-size: .78rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.bollino .icona { width: 16px; height: 16px; color: var(--acc-d); }
.bollino--1 { top: 64px; right: calc(50% - 222px); }
.bollino--2 { top: 170px; right: calc(50% - 236px); }

/* ── Come funziona ─────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: passo; }
.step-card { position: relative; background: var(--bg-w); border: 1px solid var(--bd); border-radius: var(--rl);
             padding: 1.75rem; box-shadow: var(--sh); }
.step-card__testa { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.step-num { font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--tl); }
.quadretto { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
             background: rgba(6, 182, 212, .1); color: var(--acc-d); }
.step-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.step-card p { font-size: .92rem; color: var(--tm); }

/* ── Funzioni (fondo scuro) ────────────────────────────────────── */
.section--dark { background: radial-gradient(800px 400px at 50% 0%, rgba(6, 182, 212, .14), transparent 70%),
                             linear-gradient(160deg, #0f1c36 0%, #0a2a3c 100%); color: #fff; }
.section--dark .section-header h2 { color: #fff; }
.section--dark .gradient-text { background: linear-gradient(135deg, var(--acc-l), var(--acc)); -webkit-background-clip: text; background-clip: text; }
.section--dark .section-desc { color: rgba(255, 255, 255, .62); }
.section--dark .badge { color: var(--acc-l); border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .08); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature-card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--r);
                padding: 1.5rem; transition: border-color .2s, transform .2s var(--ease), background .2s; }
.feature-card:hover { border-color: rgba(34, 211, 238, .35); background: rgba(255, 255, 255, .06); transform: translateY(-3px); }
.feature-card .quadretto { background: rgba(34, 211, 238, .12); color: var(--acc-l); margin-bottom: 1rem; width: 42px; height: 42px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.feature-card p { font-size: .875rem; color: rgba(255, 255, 255, .6); }

/* ── La card NFC ───────────────────────────────────────────────── */
.nfc { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.nfc__carte { position: relative; height: 360px; }
.nfc__carte .card-nfc { position: absolute; width: 320px; }
.nfc__carte .card-nfc--retro { top: 10px; left: 20%; transform: rotate(7deg); }
.nfc__carte .card-nfc--fronte { bottom: 10px; left: 0; transform: rotate(-6deg); }
.nfc__carte .card-nfc__nome b { font-size: 18px; }
.nfc__carte .card-nfc__logo img { max-height: 72px; }
.nfc__testo h2 { margin-bottom: 1rem; }
.nfc__testo > p { color: var(--tm); font-size: 1.02rem; margin-bottom: 1.5rem; }
.lista-spunte { list-style: none; display: grid; gap: .65rem; margin-bottom: 2rem; }
.lista-spunte li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.lista-spunte .icona { width: 20px; height: 20px; color: var(--acc); margin-top: 2px; }
.prezzo-inline { display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1.25rem; }
.prezzo-inline b { font-size: 2.4rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.prezzo-inline span { color: var(--tm); font-size: .95rem; }

/* ── Prezzi ────────────────────────────────────────────────────── */
.piani { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 1.25rem; justify-content: center; }
.plan-card { background: var(--bg-w); border: 1px solid var(--bd); border-radius: var(--rl); padding: 2rem; display: flex; flex-direction: column; box-shadow: var(--sh); }
.plan-card--featured { border: 1.5px solid var(--acc); box-shadow: 0 20px 50px rgba(6, 182, 212, .14); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.plan-name { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.plan-badge { font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; background: rgba(6, 182, 212, .12); color: var(--acc-d); white-space: nowrap; }
.plan-price { display: flex; align-items: baseline; gap: .35rem; margin-bottom: .4rem; }
.plan-price__amount { font-size: 2.8rem; font-weight: 800; line-height: 1.1; color: var(--navy); letter-spacing: -.03em; }
.plan-price__period { color: var(--tl); font-size: .92rem; }
.plan-desc { color: var(--tm); font-size: .92rem; margin-bottom: 1.4rem; }
.plan-card .lista-spunte { margin-bottom: 1.75rem; }
.plan-card .lista-spunte li { font-size: .92rem; }
.plan-card .btn { margin-top: auto; width: 100%; }
.nota-prezzi { text-align: center; font-size: .82rem; color: var(--tl); margin-top: 1.25rem; }

/* ── Pannello (anteprima) ──────────────────────────────────────── */
.preview-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.preview__text h2 { margin-bottom: .9rem; }
.preview__text > p { color: var(--tm); margin-bottom: 1.25rem; }
.finestra { background: var(--bg-w); border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-lg); }
.finestra__barra { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: var(--bg-s); border-bottom: 1px solid var(--bd); }
.finestra__barra i { width: 10px; height: 10px; border-radius: 50%; background: #d4d9e2; }
.finestra__barra span { margin-left: .4rem; font-size: .78rem; font-weight: 600; color: var(--tm); }
.finestra__corpo { display: grid; grid-template-columns: 150px 1fr; min-height: 280px; }
.finestra__menu { border-right: 1px solid var(--bd); padding: .6rem; display: flex; flex-direction: column; gap: 2px; }
.finestra__menu div { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border-radius: 8px; font-size: .8rem; font-weight: 600; color: var(--tm); }
.finestra__menu div .icona { width: 15px; height: 15px; }
.finestra__menu div.attivo { background: rgba(6, 182, 212, .1); color: var(--acc-d); }
.finestra__contenuto { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .7rem; }
.campo-finto small { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tl); margin-bottom: .25rem; }
.campo-finto div { background: var(--bg); border: 1px solid var(--bd); border-radius: 8px; padding: .45rem .7rem; font-size: .85rem; }
.finestra__salva { align-self: flex-start; margin-top: .3rem; background: var(--grad); color: #fff; border-radius: 8px; padding: .5rem .9rem; font-size: .8rem; font-weight: 700; }

/* ── Blog ──────────────────────────────────────────────────────── */
.articolo { max-width: 760px; margin: 0 auto; background: var(--bg-w); border: 1px solid var(--bd); border-radius: var(--rl);
            padding: 2rem; box-shadow: var(--sh); transition: transform .2s var(--ease), border-color .2s; }
.articolo:hover { transform: translateY(-3px); border-color: rgba(6, 182, 212, .45); }
.articolo small { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--acc-d); margin-bottom: .6rem; }
.articolo h3 { font-size: 1.3rem; line-height: 1.3; color: var(--navy); margin-bottom: .6rem; }
.articolo p { color: var(--tm); margin-bottom: 1.25rem; }

/* ── Invito finale ─────────────────────────────────────────────── */
.cta-box { position: relative; overflow: hidden; border-radius: 28px; padding: 4rem 2rem; text-align: center; color: #fff;
           background: radial-gradient(600px 300px at 50% 0%, rgba(34, 211, 238, .28), transparent 70%), linear-gradient(160deg, #0f1c36, #0a2a3c); }
.cta-box h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.cta-box p { color: rgba(255, 255, 255, .7); margin: .9rem auto 2rem; max-width: 460px; }
.cta-box .btn-primary { box-shadow: 0 10px 30px rgba(6, 182, 212, .4); }

/* ── Piede ─────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--bd); padding: 2rem 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; }
.footer__brand img { height: 30px; width: auto; }
.footer__brand p { font-size: .8rem; color: var(--tm); margin-top: .35rem; }
.footer__brand p a { color: var(--acc-d); }
.footer__links { display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; }
.footer__links a { font-size: .82rem; color: var(--tm); }
.footer__links a:hover { color: var(--acc-d); }
.footer__copy { width: 100%; font-size: .78rem; color: var(--tl); }

/* ── Comparsa allo scorrimento ─────────────────────────────────── */
.comparsa { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.comparsa.vista { opacity: 1; transform: none; }

/* ── Schermi piu' stretti ──────────────────────────────────────── */
@media (max-width: 1000px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .nfc, .preview-section { grid-template-columns: 1fr; gap: 3rem; }
  .hero__content { text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .nfc__carte { max-width: 480px; width: 100%; margin: 0 auto; }
}
@media (max-width: 820px) {
  .navbar__links { display: none; }
  .navbar__inner { justify-content: space-between; }
  .navbar__lang { margin-left: auto; margin-right: -1rem; }
  .steps { grid-template-columns: 1fr; }
  .piani { grid-template-columns: minmax(0, 440px); }
}
@media (max-width: 560px) {
  .section { padding: 4.5rem 0; }
  .navbar__inner { height: 64px; gap: 1rem; }
  .navbar__logo img { height: 30px; }
  .navbar__actions .btn-outline { display: none; }
  .navbar__lang { margin-right: -.4rem; }
  .hero { padding: 104px 0 64px; }
  .hero__visual { padding-bottom: 70px; }
  .telefono { width: 250px; }
  .hero__visual .card-nfc { width: 210px; left: 50%; margin-left: -175px; bottom: 0; }
  .card-nfc__logo img { max-height: 44px; }
  .card-nfc__nome b { font-size: 13px; }
  .card-nfc__alto { padding: 12px 14px 0; }
  .card-nfc__nome { padding: 0 14px 10px; }
  .bollino { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .nfc__carte { height: 300px; }
  .nfc__carte .card-nfc { width: 250px; }
  .nfc__carte .card-nfc--retro { left: auto; right: 0; }
  .finestra__corpo { grid-template-columns: 1fr; }
  .finestra__menu { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--bd); }
  .cta-box { padding: 3rem 1.25rem; border-radius: 22px; }
  .footer__inner { flex-direction: column; text-align: center; align-items: center; }
  .footer__links { justify-content: center; }
}
/* App in arrivo */
.app-arrivo { display: grid; grid-template-columns: auto 1fr; gap: 3.5rem; align-items: center; max-width: 960px; }
.app-arrivo__icona { width: 180px; height: 180px; border-radius: 40px; box-shadow: var(--sh-lg); border: 1px solid var(--bd); }
.app-arrivo__testo h2 { margin: .9rem 0; }
.app-arrivo__testo > p { color: var(--tm); margin-bottom: 1.25rem; }
.app-arrivo__store { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.store-presto { display: inline-flex; align-items: center; padding: .55rem 1rem; border-radius: var(--rs); background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; opacity: .85; }
@media (max-width: 820px) {
  .app-arrivo { grid-template-columns: 1fr; gap: 2rem; text-align: center; justify-items: center; }
  .app-arrivo__icona { width: 140px; height: 140px; border-radius: 32px; }
  .app-arrivo .lista-spunte { text-align: left; display: inline-block; }
  .app-arrivo__store { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .comparsa { opacity: 1; transform: none; transition: none; }
  .btn, .feature-card, .articolo { transition: none; }
}
@media (max-width: 560px) { .hero .badge { font-size: .68rem; letter-spacing: .03em; padding: .3rem .75rem; } }

/* Sul riquadro scuro la sfumatura normale parte dal navy e sparisce nel
   fondo: qui va chiara dall'inizio. */
.cta-box .gradient-text { background: linear-gradient(135deg, #67e8f9, var(--acc-l)); -webkit-background-clip: text; background-clip: text; }
