/* TekMind — stile sito 2026 */
:root {
    --tk-orange: #ed6e00;
    --tk-orange-2: #ff8a1f;
    --tk-ink: #0c0e12;
    --tk-ink-2: #14171d;
    --tk-ink-3: #1d2129;
    --tk-line: rgba(255, 255, 255, .08);
    --tk-paper: #f6f3ee;
    --tk-text: #1a1c20;
    --tk-muted: #5f646d;
    --tk-radius: 18px;
    --bs-primary: #ed6e00;
    --bs-primary-rgb: 237, 110, 0;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Manrope', system-ui, sans-serif; color: var(--tk-text); background: var(--tk-paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .display-font { font-family: 'Bricolage Grotesque', 'Manrope', sans-serif; letter-spacing: -.02em; }
a { color: var(--tk-orange); }
.text-orange { color: var(--tk-orange) !important; }

/* ---------- Buttons ---------- */
.btn-tk { background: var(--tk-orange); color: #fff; border: 0; border-radius: 999px; padding: .85rem 1.6rem; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-tk:hover, .btn-tk:focus { background: var(--tk-orange-2); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(237, 110, 0, .35); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: .85rem 1.6rem; font-weight: 600; }
.btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- Navbar ---------- */
#mainNav { padding: 1.1rem 0; transition: background .3s, padding .3s, box-shadow .3s; }
#mainNav .navbar-brand img { height: 46px; width: auto; transition: height .3s; }
#mainNav .nav-link { color: rgba(255, 255, 255, .8); font-weight: 600; font-size: .95rem; padding: .5rem 1rem !important; }
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: #fff; }
#mainNav.scrolled { background: rgba(12, 14, 18, .92); backdrop-filter: blur(12px); padding: .6rem 0; box-shadow: 0 1px 0 var(--tk-line); }
#mainNav.scrolled .navbar-brand img { height: 38px; }
.navbar-toggler { border: 0; color: #fff; font-size: 1.4rem; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
    #mainNav .navbar-collapse { background: var(--tk-ink-2); border-radius: var(--tk-radius); padding: 1rem; margin-top: .75rem; border: 1px solid var(--tk-line); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--tk-ink); color: #fff; padding: 9.5rem 0 6rem; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--tk-line) 1px, transparent 1px), linear-gradient(90deg, var(--tk-line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.hero::after { content: ""; position: absolute; width: 720px; height: 720px; right: -200px; top: -160px; background: radial-gradient(circle, rgba(237, 110, 0, .35), transparent 65%); filter: blur(20px); }
.hero .container { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tk-orange-2); background: rgba(237, 110, 0, .1); border: 1px solid rgba(237, 110, 0, .3); padding: .4rem .85rem; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tk-orange); box-shadow: 0 0 0 4px rgba(237, 110, 0, .25); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.02; margin: 1.4rem 0 1.4rem; }
.hero h1 .hl { color: var(--tk-orange); }
.hero .lead { color: rgba(255, 255, 255, .7); font-size: 1.15rem; max-width: 34rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; }
.hero-tags span { font-size: .85rem; color: rgba(255, 255, 255, .7); border: 1px solid var(--tk-line); padding: .35rem .8rem; border-radius: 999px; }

/* Hero visual: browser + phone */
.stage { position: relative; height: 440px; }
.win { position: absolute; left: 0; top: 20px; width: 88%; background: var(--tk-ink-3); border: 1px solid var(--tk-line); border-radius: 16px; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); overflow: hidden; }
.win-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--tk-line); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: block; }
.win-bar i:first-child { background: var(--tk-orange); }
.win-body { padding: 22px; display: grid; grid-template-columns: 110px 1fr; gap: 18px; }
.win-side div { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); margin-bottom: 12px; }
.win-side div:nth-child(2) { background: rgba(237, 110, 0, .55); width: 80%; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpis div { height: 54px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--tk-line); }
.chart { height: 150px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--tk-line); display: flex; align-items: flex-end; gap: 8px; padding: 14px; }
.chart span { flex: 1; border-radius: 4px 4px 0 0; background: rgba(255, 255, 255, .12); }
.chart span.on { background: linear-gradient(var(--tk-orange-2), var(--tk-orange)); }
.phone { position: absolute; right: 0; bottom: 0; width: 170px; height: 330px; background: var(--tk-ink-2); border: 1px solid rgba(255, 255, 255, .14); border-radius: 30px; padding: 12px; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
.phone-screen { height: 100%; border-radius: 20px; background: var(--tk-ink-3); padding: 26px 12px 12px; position: relative; }
.phone-screen::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 46px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .15); }
.phone-card { height: 64px; border-radius: 12px; background: rgba(255, 255, 255, .06); margin-bottom: 9px; }
.phone-card.hl { background: linear-gradient(135deg, var(--tk-orange), #b85400); height: 86px; }
.phone-nav { position: absolute; bottom: 12px; left: 12px; right: 12px; height: 34px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.float-badge { position: absolute; left: -10px; bottom: 40px; background: #fff; color: var(--tk-text); border-radius: 14px; padding: .7rem 1rem; font-weight: 700; font-size: .9rem; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); display: flex; align-items: center; gap: .6rem; }
.float-badge i { color: var(--tk-orange); font-size: 1.2rem; }

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; }
.section-kicker { font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--tk-orange); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.08; margin: .75rem 0 1rem; }
.section-sub { color: var(--tk-muted); font-size: 1.08rem; max-width: 40rem; }

/* Services */
.svc { background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--tk-radius); padding: 2rem; height: 100%; position: relative; transition: transform .25s, box-shadow .25s, border-color .25s; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20, 20, 30, .08); border-color: rgba(237, 110, 0, .4); }
.svc-num { position: absolute; top: 1.6rem; right: 1.8rem; font-family: 'Bricolage Grotesque'; font-weight: 700; color: rgba(0, 0, 0, .12); font-size: 1.1rem; }
.svc-ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(237, 110, 0, .1); color: var(--tk-orange); font-size: 1.4rem; margin-bottom: 1.4rem; transition: background .25s, color .25s; }
.svc:hover .svc-ico { background: var(--tk-orange); color: #fff; }
.svc h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: .6rem; }
.svc p { color: var(--tk-muted); margin-bottom: 1rem; }
.svc ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--tk-text); }
.svc li { padding: .25rem 0; }
.svc li::before { content: "→"; color: var(--tk-orange); margin-right: .5rem; font-weight: 700; }

/* Method (dark) */
.dark { background: var(--tk-ink); color: #fff; }
.dark .section-sub { color: rgba(255, 255, 255, .65); }
.step { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.6rem; height: 100%; position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--tk-orange); }
.step-n { font-family: 'Bricolage Grotesque'; font-size: 3rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); line-height: 1; }
.step h3 { font-size: 1.3rem; font-weight: 700; margin: 1rem 0 .5rem; }
.step p { color: rgba(255, 255, 255, .65); margin: 0; }

/* About */
.about-card { background: var(--tk-ink); color: #fff; border-radius: 24px; padding: 2.5rem; height: 100%; position: relative; overflow: hidden; }
.about-card::after { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; bottom: -120px; background: radial-gradient(circle, rgba(237, 110, 0, .45), transparent 65%); }
.about-card .big { font-family: 'Bricolage Grotesque'; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.15; position: relative; z-index: 1; }
.value { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.value:last-child { border-bottom: 0; }
.value i { color: var(--tk-orange); font-size: 1.3rem; margin-top: .2rem; width: 28px; }
.value h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.value p { color: var(--tk-muted); margin: 0; }

/* Tech */
.tech { background: #fff; border-top: 1px solid rgba(0, 0, 0, .06); border-bottom: 1px solid rgba(0, 0, 0, .06); padding: 3rem 0; }
.tech-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.tech-list span { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid rgba(0, 0, 0, .1); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 600; font-size: .95rem; color: var(--tk-text); }
.tech-list i { color: var(--tk-orange); }

/* CTA */
.cta { background: linear-gradient(120deg, var(--tk-orange), #c75a00); color: #fff; border-radius: 28px; padding: 3.5rem; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.btn-white { background: #fff; color: var(--tk-ink); border-radius: 999px; padding: .85rem 1.6rem; font-weight: 700; }
.btn-white:hover { background: var(--tk-ink); color: #fff; }

/* Contact */
.contact-box { background: #fff; border-radius: 24px; padding: 2.5rem; border: 1px solid rgba(0, 0, 0, .06); }
.form-control { border-radius: 12px; padding: .85rem 1rem; border-color: rgba(0, 0, 0, .12); background: #fbfaf8; }
.form-control:focus { border-color: var(--tk-orange); box-shadow: 0 0 0 .2rem rgba(237, 110, 0, .15); background: #fff; }
.form-label { font-weight: 600; font-size: .9rem; }
.form-check-input:checked { background-color: var(--tk-orange); border-color: var(--tk-orange); }
.info-item { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; border-radius: 16px; background: #fff; border: 1px solid rgba(0, 0, 0, .06); margin-bottom: 1rem; color: var(--tk-text); text-decoration: none; transition: border-color .2s; }
.info-item:hover { border-color: var(--tk-orange); color: var(--tk-text); }
.info-item .ico { width: 48px; height: 48px; border-radius: 12px; background: rgba(237, 110, 0, .1); color: var(--tk-orange); display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.info-item small { color: var(--tk-muted); display: block; }

/* Footer */
footer { background: var(--tk-ink); color: rgba(255, 255, 255, .6); padding: 4rem 0 2rem; font-size: .92rem; }
footer .foot-logo { height: 50px; width: auto; }
footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
footer a:hover { color: var(--tk-orange); }
footer h5 { color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-family: 'Manrope'; font-weight: 800; margin-bottom: 1rem; }
footer ul { list-style: none; padding: 0; }
footer li { padding: .2rem 0; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--tk-line); display: inline-grid; place-items: center; margin-right: .4rem; }
.social a:hover { border-color: var(--tk-orange); }
.foot-bottom { border-top: 1px solid var(--tk-line); margin-top: 3rem; padding-top: 1.5rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 575.98px) {
    .hero { padding: 8rem 0 4.5rem; }
    .section { padding: 4.5rem 0; }
    .cta, .contact-box, .about-card { padding: 1.75rem; }
}

/* Form: stati */
.contact-box .is-invalid { border-color: #dc3545; }
#success .alert { border-radius: 12px; font-size: .95rem; }
