/* =========================================================
   Centrale VoIP — stylesheet
   ========================================================= */

:root {
    --bg: #ffffff;
    --bg-alt: #f5f7fb;
    --ink: #0b1a2b;
    --ink-soft: #445068;
    --muted: #6b7689;
    --border: #e4e8f0;
    --primary: #0b1a2b;
    --primary-ink: #ffffff;
    --accent: #00d1b2;
    --accent-2: #4f7cff;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 6px rgba(11, 26, 43, 0.06);
    --shadow: 0 10px 30px rgba(11, 26, 43, 0.08);
    --shadow-lg: 0 24px 60px rgba(11, 26, 43, 0.14);
    --maxw: 1160px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
ul { margin: 0; padding: 0; list-style: none; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .2s, color .2s, border-color .2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
    background: var(--primary);
    color: var(--primary-ink);
    box-shadow: 0 8px 22px rgba(11,26,43,.22);
}
.btn-primary:hover { background: #142b45; box-shadow: 0 12px 28px rgba(11,26,43,.3); }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: rgba(11, 26, 43, 0.15);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: .55rem .95rem; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(11,26,43,0.06);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0b1a2b 0%, #142b45 100%);
    color: var(--accent);
}
.logo-text strong { color: var(--accent); font-weight: 700; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}
.nav-links a {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: .95rem;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links .btn { color: var(--primary-ink); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: none;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: .2rem;
    padding: 0 24px 20px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.mobile-menu a {
    padding: .8rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn { margin-top: .6rem; color: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem);
    background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
}
.hero-bg {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 0;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}
.orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(0,209,178,0.55) 0%, rgba(0,209,178,0) 70%);
    top: -180px; right: -160px;
}
.orb-2 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(79,124,255,0.35) 0%, rgba(79,124,255,0) 70%);
    bottom: -200px; left: -120px;
}
.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(11,26,43,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11,26,43,0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
    text-align: center;
}
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent-2);
    background: rgba(79,124,255,0.08);
    padding: .35rem .75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.gradient-text {
    background: linear-gradient(120deg, #00d1b2 0%, #4f7cff 60%, #0b1a2b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lede {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    max-width: 640px;
    margin: 1rem auto 2rem;
    color: var(--ink-soft);
}
.hero-cta {
    display: flex;
    gap: .8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    color: var(--ink-soft);
    font-size: .9rem;
}
.hero-badges li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.hero-badges svg { color: var(--accent); }

/* ---------- Sections ---------- */
.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.section-alt { background: var(--bg-alt); }

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}
.section-head .eyebrow { margin-bottom: .8rem; }

/* ---------- Cards (servizi) ---------- */
.cards {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(0, 209, 178, 0.35);
}
.card-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,209,178,0.12), rgba(79,124,255,0.12));
    color: var(--accent-2);
    margin-bottom: 1rem;
}
.card h3 { color: var(--ink); }
.card p { margin: 0; }

/* ---------- Two-col (vantaggi) ---------- */
.two-col {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.benefits { display: grid; gap: 1rem; }
.benefits li {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.benefit-icon {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0,209,178,0.1);
    color: #0b1a2b;
}
.benefits strong { color: var(--ink); display: block; }
.benefits li > div:last-child { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    counter-reset: steps;
}
.step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem;
    position: relative;
}
.step-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: .8rem;
    letter-spacing: -0.02em;
}
.step h3 { color: var(--ink); }
.step p  { margin: 0; }

/* ---------- FAQ ---------- */
.faq {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    gap: .6rem;
}
.faq details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 1.3rem;
    transition: border-color .2s, box-shadow .2s;
}
.faq details[open] {
    border-color: rgba(0, 209, 178, 0.35);
    box-shadow: var(--shadow-sm);
}
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 0;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--accent-2);
    transition: transform .2s;
    line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
    margin: 0 0 1.2rem;
    color: var(--ink-soft);
}

/* ---------- CTA finale ---------- */
.cta-final {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: linear-gradient(135deg, #0b1a2b 0%, #142b45 100%);
    color: #fff;
}
.cta-final h2 { color: #fff; }
.cta-final p  { color: rgba(255,255,255,0.75); margin: 0; }
.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-final .btn-primary {
    background: var(--accent);
    color: #0b1a2b;
    box-shadow: 0 12px 30px rgba(0,209,178,.3);
}
.cta-final .btn-primary:hover { background: #00e6c4; }

/* ---------- Footer ---------- */
.site-footer {
    background: #081322;
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
    font-size: .9rem;
}
.site-footer .logo { color: #fff; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 2fr 1fr 1fr;
    margin-bottom: 2rem;
}
.footer-grid h4 {
    color: #fff;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}
.footer-grid ul li { margin-bottom: .5rem; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 1rem;
    flex-wrap: wrap;
}
.muted { color: var(--muted); font-size: .85rem; }
.site-footer .muted { color: rgba(255,255,255,0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .mobile-menu.is-open { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}
