:root {
    --brand-light: #6FA8DC;
    --brand-mid: #1A6BB4;
    --brand-blue: #0D6BB5;
    --brand-gray: #4C4C4C;
    --brand-red: #0A4F8A;
    --ink: #303030;
    --muted: #6B7280;
    --line: rgba(13,107,181,.11);
    --bg: #F7FAFD;
    --white: #FFFFFF;
    --footer: #F4F7FA;
    --shadow: 0 18px 48px rgba(13,107,181,.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}
body.menu-open,
body.doc-modal-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea { font: inherit; }

/* NAV */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease, background .25s ease;
}
.navbar.is-scrolled {
    background: rgba(255,255,255,.98);
    box-shadow: 0 8px 30px rgba(15,23,42,.08);
}
.nav-container {
    width: min(1280px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
    line-height: 0;
}
.site-logo-img {
    width: 235px;
    height: auto;
    max-height: 60px;
    display: block;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin-left: auto;
}
.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .65rem .9rem;
    border-radius: 999px;
    text-decoration: none;
    color: #334155;
    font-size: .93rem;
    font-weight: 600;
    transition: .2s ease;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-blue);
    background: rgba(37,99,235,.08);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
}
.nav-icon-link {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(37,99,235,.12);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    background: white;
    text-decoration: none;
    transition: .2s ease;
}
.nav-icon-link:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37,99,235,.12); }
.nav-icon-link svg { width: 18px; height: 18px; }
.nav-cta {
    min-height: 42px;
    padding: .72rem 1rem;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-mid));
    text-decoration: none;
    font-size: .88rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(37,99,235,.18);
}
.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(37,99,235,.08);
    color: var(--brand-blue);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.hamburger svg { width: 21px; height: 21px; }
.hamburger-close-icon { display: none; }
.hamburger.active .hamburger-open-icon { display: none; }
.hamburger.active .hamburger-close-icon { display: block; }

/* GENERIC */
.section-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}
.section-header {
    max-width: 720px;
    margin: 0 auto 3.2rem;
    text-align: center;
}
.section-header-left { text-align: left; margin: 0 0 2rem; }
.section-tag {
    display: inline-flex;
    margin-bottom: .9rem;
    color: var(--brand-blue);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.section-tag-light { color: #6FA8DC; }
.section-header h2,
.project-copy h2 {
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}
.section-header p,
.project-copy p {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.75;
}

/* HERO */
.hero {
    min-height: 760px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 132px 0 72px;
    background:
        radial-gradient(circle at 82% 20%, rgba(26,107,180,.14), transparent 28%),
        radial-gradient(circle at 68% 76%, rgba(37,99,235,.13), transparent 28%),
        linear-gradient(135deg, #fff 0%, #f2f8ff 52%, #fbf7ff 100%);
}
.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    right: -270px;
    top: -220px;
    border-radius: 50%;
    border: 1px solid rgba(37,99,235,.10);
    box-shadow:
        0 0 0 70px rgba(37,99,235,.025),
        0 0 0 140px rgba(26,107,180,.02);
}
.hero-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    align-items: center;
    gap: 4.5rem;
    position: relative;
    z-index: 2;
}
.hero-content { max-width: 650px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .48rem .85rem;
    margin-bottom: 1.35rem;
    border: 1px solid rgba(26,107,180,.18);
    border-radius: 999px;
    background: rgba(26,107,180,.08);
    color: #0D6BB5;
    font-size: .82rem;
    font-weight: 700;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0A4F8A;
    box-shadow: 0 0 0 0 rgba(26,107,180,.35);
    animation: pulse 2s infinite;
}
.hero h1 {
    max-width: 720px;
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: .98;
    letter-spacing: -.065em;
    font-weight: 850;
}
.gradient-text {
    background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-mid) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p {
    max-width: 610px;
    margin-top: 1.45rem;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}
.hero-buttons {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}
.btn {
    min-height: 48px;
    padding: .82rem 1.2rem;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    text-decoration: none;
    font-weight: 750;
    transition: .25s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-mid));
    box-shadow: 0 10px 24px rgba(37,99,235,.24);
}
.btn-outline {
    color: var(--brand-blue);
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(37,99,235,.22);
}
.btn:hover { transform: translateY(-2px); }

.hero-stats {
    display: flex;
    gap: 1.9rem;
    margin-top: 2.4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(37,99,235,.10);
}
.stat { display: grid; gap: .18rem; }
.stat strong {
    font-size: 1.55rem;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-mid));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat span { color: var(--muted); font-size: .78rem; font-weight: 600; }

.hero-visual {
    position: relative;
    min-height: 490px;
    isolation: isolate;
}
.visual-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%);
    clip-path: polygon(25% 7%,75% 7%,100% 50%,75% 93%,25% 93%,0 50%);
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-mid));
    color: white;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .4rem;
    box-shadow: 0 30px 70px rgba(37,99,235,.28);
    z-index: 4;
}
.visual-center svg { width: 50px; height: 50px; }
.visual-center span { font-size: .78rem; font-weight: 900; letter-spacing: .18em; }
.visual-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px dashed rgba(37,99,235,.20);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.orbit-one { width: 330px; height: 330px; animation: spin 28s linear infinite; }
.orbit-two { width: 455px; height: 455px; animation: spin-rev 40s linear infinite; border-color: rgba(26,107,180,.18); }
.floating-card {
    position: absolute;
    min-width: 155px;
    padding: .85rem 1rem;
    border: 1px solid rgba(37,99,235,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #334155;
    font-size: .78rem;
    font-weight: 700;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}
.floating-card svg { width: 24px; height: 24px; color: var(--brand-blue); }
.card-a { left: 0; top: 10%; }
.card-b { right: -2%; top: 18%; animation-delay: .8s; }
.card-c { left: 3%; bottom: 12%; animation-delay: 1.5s; }
.card-d { right: 2%; bottom: 8%; animation-delay: 2.2s; }

.hero-network { position: absolute; inset: 0; pointer-events: none; opacity: .65; }
.network-node {
    position: absolute;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--brand-light);
    box-shadow: 0 0 18px rgba(26,107,180,.55);
}
.n1 { left: 8%; top: 22%; } .n2 { left: 17%; top: 76%; }
.n3 { right: 13%; top: 25%; } .n4 { right: 23%; bottom: 11%; }

/* SERVICES */
.services-section {
    padding: 7rem 0;
    background:
        linear-gradient(rgba(37,99,235,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,.025) 1px, transparent 1px),
        var(--bg);
    background-size: 34px 34px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.service-card {
    min-height: 300px;
    padding: 1.8rem;
    border-radius: 22px;
    border: 1px solid rgba(37,99,235,.08);
    background: rgba(255,255,255,.94);
    position: relative;
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--brand-blue), var(--brand-mid));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .28s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(37,99,235,.10);
    border-color: rgba(37,99,235,.18);
}
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
    width: 58px; height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(37,99,235,.11), rgba(26,107,180,.10));
    color: var(--brand-blue);
    margin-bottom: 1.25rem;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.18rem; margin-bottom: .7rem; }
.service-card p { color: var(--muted); line-height: 1.7; font-size: .92rem; }
.service-kicker {
    position: absolute;
    left: 1.8rem; bottom: 1.45rem;
    color: var(--brand-blue);
    font-size: .74rem;
    font-weight: 800;
}

/* TECHNOLOGY */
.technology-section { padding: 7rem 0; background: #fff; }
.technology-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 5rem;
    align-items: center;
}
.technology-visual {
    min-height: 520px;
    position: relative;
    border-radius: 34px;
    background:
        radial-gradient(circle at center, rgba(37,99,235,.09), transparent 35%),
        linear-gradient(135deg, #f8fbff, #faf7ff);
    border: 1px solid rgba(37,99,235,.08);
    overflow: hidden;
}
.tech-core {
    position: absolute;
    width: 124px; height: 124px;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 30px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .4rem;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-mid));
    color: white;
    box-shadow: 0 24px 55px rgba(37,99,235,.24);
    z-index: 3;
}
.tech-core svg { width: 38px; height: 38px; }
.tech-core span { font-size: .75rem; font-weight: 900; letter-spacing: .08em; }
.tech-ring {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(37,99,235,.15);
}
.ring-1 { width: 290px; height: 290px; }
.ring-2 { width: 410px; height: 410px; border-style: dashed; border-color: rgba(26,107,180,.17); }
.tech-node {
    position: absolute;
    width: 68px; height: 68px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--brand-blue);
    background: white;
    border: 1px solid rgba(37,99,235,.10);
    box-shadow: 0 14px 38px rgba(37,99,235,.12);
}
.tech-node svg { width: 28px; height: 28px; }
.node-heart { left: 12%; top: 18%; }
.node-watch { right: 11%; top: 20%; color: var(--brand-mid); }
.node-map { left: 17%; bottom: 13%; color: var(--brand-mid); }
.node-shield { right: 15%; bottom: 14%; }

.feature-list { display: grid; gap: .9rem; }
.feature-item {
    padding: 1.15rem 1.2rem;
    border-radius: 17px;
    border: 1px solid rgba(37,99,235,.09);
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    background: white;
    transition: .25s ease;
}
.feature-item:hover {
    transform: translateX(4px);
    border-color: rgba(37,99,235,.24);
    box-shadow: 0 12px 30px rgba(37,99,235,.07);
}
.feature-num {
    width: 44px; height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-mid));
    font-weight: 900;
    font-size: .82rem;
}
.feature-item h3 { font-size: 1rem; margin-bottom: .3rem; }
.feature-item p { color: var(--muted); line-height: 1.55; font-size: .87rem; }

/* PROJECT */
.project-section { padding: 6rem 0; }
.project-shell {
    min-height: 510px;
    padding: clamp(2rem, 5vw, 4.2rem);
    border-radius: 34px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 4rem;
    align-items: center;
    overflow: hidden;
    position: relative;
    color: white;
    background:
        radial-gradient(circle at 85% 20%, rgba(111,168,220,.30), transparent 24%),
        radial-gradient(circle at 15% 90%, rgba(127,179,213,.20), transparent 32%),
        linear-gradient(135deg, #0D6BB5 0%, #1A6BB4 48%, #6FA8DC 100%);
}
.project-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
    background-size: 42px 42px;
}
.project-copy, .project-graphic { position: relative; z-index: 2; }
.project-copy p { color: rgba(255,255,255,.78); }
.project-points { display: grid; gap: .8rem; margin-top: 1.7rem; }
.project-points div {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: rgba(255,255,255,.90);
    font-size: .9rem;
}
.project-points svg { width: 18px; height: 18px; color: #6FA8DC; }
.project-graphic { display: grid; place-items: center; }
.project-card {
    width: min(350px, 100%);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 26px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(15px);
    box-shadow: 0 28px 70px rgba(8,23,50,.24);
}
.project-year {
    display: block;
    font-size: clamp(3.3rem, 8vw, 6rem);
    line-height: .9;
    letter-spacing: -.06em;
    font-weight: 900;
    color: white;
}
.project-card strong { display: block; margin-top: 1.3rem; font-size: 1.1rem; }
.project-card p { margin-top: .6rem; color: rgba(255,255,255,.72); line-height: 1.6; font-size: .88rem; }

/* CONTACT */
.contact-section {
    padding: 7rem 0;
    background: linear-gradient(180deg, #fff, #f7faff);
}
.contact-grid {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 1.4rem;
    align-items: stretch;
}
.contact-panel,
.contact-form-card {
    border-radius: 26px;
    border: 1px solid rgba(37,99,235,.09);
    background: white;
    box-shadow: 0 18px 48px rgba(15,23,42,.06);
}
.contact-panel {
    padding: 1.5rem;
    background:
        radial-gradient(circle at 100% 0, rgba(26,107,180,.12), transparent 30%),
        linear-gradient(145deg, #f9fbff, white);
}
.contact-panel-head {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: .9rem;
}
.contact-live-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #0A4F8A;
    box-shadow: 0 0 0 5px rgba(34,197,94,.10);
}
.contact-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: .9rem;
    align-items: center;
    padding: 1rem .2rem;
    border-top: 1px solid rgba(37,99,235,.07);
    text-decoration: none;
}
.contact-row > svg {
    width: 40px; height: 40px;
    padding: 10px;
    border-radius: 12px;
    color: var(--brand-blue);
    background: rgba(37,99,235,.07);
}
.contact-row div { display: grid; gap: .18rem; }
.contact-row span { color: var(--muted); font-size: .74rem; }
.contact-row strong { font-size: .88rem; line-height: 1.35; }

.contact-form-card { padding: 1.7rem; }
#contactForm { display: grid; gap: 1rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
}
.form-group { display: grid; gap: .45rem; }
.form-group label { font-size: .79rem; font-weight: 700; color: #475569; }
.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid rgba(37,99,235,.14);
    border-radius: 13px;
    padding: .9rem 1rem;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: .2s ease;
}
.form-group textarea { resize: vertical; min-height: 125px; }
.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(37,99,235,.48);
    box-shadow: 0 0 0 4px rgba(37,99,235,.07);
}
.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    color: var(--muted);
    font-size: .78rem;
}
.privacy-consent input { margin-top: .15rem; }
.privacy-inline-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--brand-blue);
    font-weight: 700;
    cursor: pointer;
}
.contact-security { margin-top: .15rem; }
.submit-btn {
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    color: white;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-mid));
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(37,99,235,.18);
}
.submit-btn:disabled { opacity: .62; cursor: wait; }
.submit-btn svg { width: 17px; height: 17px; }
.form-feedback:empty { display: none; }
.form-feedback {
    padding: .85rem 1rem;
    border-radius: 12px;
    font-size: .82rem;
}
.form-feedback.is-success { background: rgba(34,197,94,.10); color: #166534; border: 1px solid rgba(34,197,94,.18); }
.form-feedback.is-error { background: rgba(239,68,68,.08); color: #991b1b; border: 1px solid rgba(239,68,68,.16); }

/* QCAPTCHA support without Bootstrap */
.qcaptcha-card {
    width: 100%;
    min-height: 48px;
    padding: .7rem .8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .7rem !important;
    border: 1px solid rgba(37,99,235,.18) !important;
    border-radius: 13px !important;
    background: #fff !important;
}
.qcaptcha-left,
.qcaptcha-brand {
    display: flex !important;
    align-items: center !important;
    gap: .45rem !important;
}
.qcaptcha-unavailable {
    padding: .8rem;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
    font-size: .8rem;
}

/* FOOTER */
.site-footer {
    padding: 4.5rem 0 1.6rem;
    background: var(--footer);
    color: var(--brand-gray);
    border-top: 1px solid rgba(13,107,181,.10);
}
.footer-grid,
.footer-bottom {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.25fr;
    gap: 2.4rem;
}
.footer-logo { display: inline-flex; line-height: 0; }
.footer-logo img {
    width: 225px;
    max-width: 100%;
    opacity: 1;
}
.footer-brand p {
    max-width: 360px;
    margin-top: 1rem;
    color: #667085;
    font-size: .86rem;
    line-height: 1.65;
}
.footer-col h3 {
    color: var(--brand-gray);
    font-size: .9rem;
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: .62rem; }
.footer-col a,
.footer-col li {
    color: #667085;
    text-decoration: none;
    font-size: .82rem;
    line-height: 1.45;
}
.footer-col a:hover { color: #bfdbfe; }
.footer-bottom {
    margin-top: 2.8rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(13,107,181,.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #667085;
    font-size: .75rem;
}
.footer-docs { display: flex; align-items: center; gap: .45rem; }
.footer-docs button {
    border: 0;
    padding: 0;
    color: #667085;
    background: transparent;
    cursor: pointer;
    font-size: .75rem;
}

/* DOCUMENT MODAL */
.doc-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
}
.doc-modal.is-open { display: block; }
.doc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.72);
    backdrop-filter: blur(4px);
}
.doc-modal-dialog {
    position: relative;
    width: min(900px, calc(100% - 30px));
    max-height: calc(100vh - 50px);
    margin: 25px auto;
    border-radius: 22px;
    overflow: hidden;
    background: white;
    box-shadow: 0 30px 90px rgba(0,0,0,.30);
    display: grid;
    grid-template-rows: auto 1fr auto;
}
.doc-modal-header,
.doc-modal-footer {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(37,99,235,.08);
}
.doc-modal-footer {
    border-top: 1px solid rgba(37,99,235,.08);
    border-bottom: 0;
    justify-content: flex-end;
}
.doc-modal-header h2 { font-size: 1.1rem; }
.doc-modal-close,
.doc-modal-button {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}
.doc-modal-close {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    background: rgba(37,99,235,.07);
    color: var(--brand-blue);
}
.doc-modal-button {
    padding: .65rem 1rem;
    color: white;
    background: var(--brand-blue);
    font-weight: 700;
}
.doc-modal-body {
    overflow: auto;
    padding: 1.3rem;
    color: #334155;
    line-height: 1.65;
    font-size: .88rem;
}
.doc-modal-body h1,
.doc-modal-body h2,
.doc-modal-body h3 { margin: 1.1rem 0 .6rem; color: var(--ink); }
.doc-modal-body p,
.doc-modal-body ul,
.doc-modal-body ol { margin-bottom: .85rem; }

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(26,107,180,.30); }
    50% { box-shadow: 0 0 0 7px rgba(26,107,180,0); }
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes spin-rev {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0); }
}

/* RESPONSIVE */
@media (max-width: 1080px) {
    .site-logo-img { width: 205px; }
    .nav-links { gap: 0; }
    .nav-links a { padding-left: .72rem; padding-right: .72rem; font-size: .86rem; }
    .nav-cta { display: none; }
    .hero-container { grid-template-columns: 1fr .82fr; gap: 2rem; }
    .hero-visual { transform: scale(.90); transform-origin: center; }
}

@media (max-width: 900px) {
    .nav-container { width: min(100% - 28px, 1180px); min-height: 72px; }
    .site-logo-img { width: 190px; max-height: 50px; }

    .nav-links {
        position: fixed;
        left: 0; right: 0; top: 72px;
        width: 100%;
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: .55rem;
        background: rgba(255,255,255,.985);
        box-shadow: 0 18px 34px rgba(15,23,42,.12);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform .25s ease, opacity .2s ease, visibility .25s;
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links a {
        width: 100%;
        min-height: 50px;
        padding: .85rem 1rem;
        justify-content: flex-start;
        border-radius: 12px;
        background: rgba(15,23,42,.025);
    }
    .nav-actions { margin-left: auto; }
    .hamburger { display: inline-flex; }

    .hero { min-height: auto; padding-top: 118px; }
    .hero-container { grid-template-columns: 1fr; }
    .hero-content { max-width: 780px; }
    .hero-visual { min-height: 420px; transform: none; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .technology-grid,
    .project-shell,
    .contact-grid { grid-template-columns: 1fr; }
    .technology-grid { gap: 2.5rem; }
    .technology-visual { min-height: 440px; order: 2; }
    .project-shell { gap: 2rem; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .section-container,
    .footer-grid,
    .footer-bottom,
    .hero-container { width: calc(100% - 28px); }

    .nav-container { width: calc(100% - 20px); gap: .45rem; }
    .site-logo-img { width: 150px; }
    .nav-icon-link { width: 36px; height: 36px; border-radius: 10px; }
    .nav-icon-link svg { width: 16px; height: 16px; }
    .hamburger { width: 38px; height: 38px; border-radius: 10px; }

    .hero { padding: 104px 0 44px; }
    .hero h1 { font-size: 2.7rem; line-height: 1.02; }
    .hero p { font-size: .96rem; line-height: 1.62; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { width: 100%; }
    .hero-stats { gap: .8rem; justify-content: space-between; }
    .stat strong { font-size: 1.22rem; }
    .stat span { font-size: .68rem; }

    .hero-visual { min-height: 330px; }
    .visual-center { width: 128px; height: 128px; }
    .visual-center svg { width: 36px; height: 36px; }
    .orbit-one { width: 235px; height: 235px; }
    .orbit-two { width: 320px; height: 320px; }
    .floating-card { min-width: 0; padding: .65rem .72rem; font-size: .68rem; border-radius: 13px; }
    .floating-card svg { width: 20px; height: 20px; }
    .card-a { left: -2%; } .card-b { right: -1%; }
    .card-c { left: 0; } .card-d { right: 0; }

    .services-section,
    .technology-section,
    .contact-section { padding: 4.8rem 0; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2, .project-copy h2 { font-size: 2rem; }
    .section-header p, .project-copy p { font-size: .92rem; line-height: 1.6; }

    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 270px; }
    .technology-visual { min-height: 360px; }
    .tech-core { width: 100px; height: 100px; border-radius: 24px; }
    .ring-1 { width: 220px; height: 220px; }
    .ring-2 { width: 315px; height: 315px; }
    .tech-node { width: 54px; height: 54px; border-radius: 15px; }
    .tech-node svg { width: 23px; height: 23px; }

    .project-section { padding: 1rem 0 4.8rem; }
    .project-shell { border-radius: 24px; padding: 1.5rem; }
    .project-card { padding: 1.5rem; }
    .project-year { font-size: 4rem; }

    .contact-panel { display: none; }
    .contact-form-card { padding: 1.2rem; border-radius: 20px; }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.7rem; }
    .footer-col:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-logo img { width: 190px; }
}

.footer-legal-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem 1rem;
}
.footer-legal-left span + span {
    position: relative;
}
.footer-legal-left span + span::before {
    content: '·';
    position: absolute;
    left: -.62rem;
    color: #98A2B3;
}
@media (max-width: 620px) {
    .footer-legal-left {
        display: grid;
        gap: .28rem;
    }
    .footer-legal-left span + span::before {
        display: none;
    }
}


/* ============================================================
   TELECARE24 V3 - HERO MOTION + CARD MOTION
   ============================================================ */

/* ---------- HERO: profondità, griglia, scan e circuito ---------- */
.hero {
    background:
        radial-gradient(circle at 76% 22%, rgba(111,168,220,.22), transparent 24%),
        radial-gradient(circle at 82% 70%, rgba(13,107,181,.16), transparent 29%),
        radial-gradient(circle at 16% 82%, rgba(26,107,180,.10), transparent 31%),
        linear-gradient(135deg, #ffffff 0%, #f4f9fd 47%, #eef6fb 100%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(13,107,181,.16),
        rgba(10,79,138,.22),
        rgba(13,107,181,.16),
        transparent
    );
}

.hero-network {
    opacity: 1;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .33;
    background-image:
        linear-gradient(rgba(13,107,181,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13,107,181,.055) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to right, transparent 0%, black 18%, black 100%);
}

.hero-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: -16%;
    height: 120px;
    opacity: .35;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(111,168,220,.08),
        rgba(13,107,181,.12),
        transparent
    );
    filter: blur(4px);
    animation: heroScan 8.5s linear infinite;
}

.network-hex {
    position: absolute;
    width: 92px;
    height: 80px;
    border: 1px solid rgba(13,107,181,.12);
    clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
    animation: hexDrift 13s ease-in-out infinite;
}

.network-hex::after {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(111,168,220,.10);
    clip-path: inherit;
}

.network-hex.h1 { right: 8%; top: 12%; transform: rotate(8deg); }
.network-hex.h2 { right: 31%; bottom: 8%; transform: scale(.75) rotate(-10deg); animation-delay: -4s; }
.network-hex.h3 { left: 7%; bottom: 18%; transform: scale(.62) rotate(14deg); animation-delay: -7s; }
.network-hex.h4 { left: 41%; top: 18%; transform: scale(.42) rotate(-7deg); animation-delay: -2s; }

.network-line {
    position: absolute;
    height: 1px;
    transform-origin: left center;
    background: linear-gradient(90deg, transparent, rgba(13,107,181,.22), transparent);
    animation: linePulse 6s ease-in-out infinite;
}
.network-line.l1 { width: 330px; left: 3%; top: 35%; transform: rotate(-5deg); }
.network-line.l2 { width: 390px; right: 2%; top: 51%; transform: rotate(8deg); animation-delay: -2s; }
.network-line.l3 { width: 280px; left: 24%; bottom: 20%; transform: rotate(3deg); animation-delay: -4s; }
.network-line.l4 { width: 250px; right: 25%; top: 22%; transform: rotate(-8deg); animation-delay: -1s; }

.network-node {
    width: 8px;
    height: 8px;
    background: var(--brand-blue);
    border: 2px solid rgba(255,255,255,.95);
    box-shadow:
        0 0 0 5px rgba(13,107,181,.08),
        0 0 20px rgba(13,107,181,.38);
    animation: nodePulse 3.8s ease-in-out infinite;
}
.network-node.n1 { left: 8%; top: 22%; }
.network-node.n2 { left: 17%; top: 76%; animation-delay: -.8s; }
.network-node.n3 { right: 13%; top: 25%; animation-delay: -1.6s; }
.network-node.n4 { right: 23%; bottom: 11%; animation-delay: -2.4s; }
.network-node.n5 { left: 47%; top: 31%; animation-delay: -1.1s; }
.network-node.n6 { right: 37%; bottom: 27%; animation-delay: -3s; }

.hero-badge {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(13,107,181,.06);
}
.hero-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
    animation: badgeShine 7s ease-in-out infinite;
}

.hero h1 {
    text-wrap: balance;
}

.hero-buttons .btn-primary {
    position: relative;
    overflow: hidden;
}
.hero-buttons .btn-primary::after {
    content: '';
    position: absolute;
    inset: -60% auto -60% -30%;
    width: 28%;
    transform: skewX(-20deg);
    background: rgba(255,255,255,.22);
    transition: left .55s ease;
}
.hero-buttons .btn-primary:hover::after {
    left: 110%;
}

.hero-stats .stat {
    position: relative;
}
.hero-stats .stat::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    width: 3px;
    height: 26px;
    border-radius: 3px;
    background: linear-gradient(var(--brand-blue), var(--brand-light));
    opacity: .45;
}

/* ---------- HERO VISUAL: logo centrale ---------- */
.hero-visual {
    min-height: 525px;
    perspective: 1100px;
}

.visual-halo {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(2px);
    pointer-events: none;
}
.halo-one {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(111,168,220,.18), transparent 68%);
    animation: haloPulse 4.8s ease-in-out infinite;
}
.halo-two {
    width: 500px;
    height: 500px;
    border: 1px solid rgba(13,107,181,.06);
    box-shadow: inset 0 0 60px rgba(13,107,181,.03);
    animation: haloPulse 6.3s ease-in-out infinite reverse;
}

.visual-orbit {
    pointer-events: none;
    will-change: transform;
}
.orbit-one {
    width: 340px;
    height: 340px;
    border-style: solid;
    border-color: rgba(13,107,181,.16);
}
.orbit-one::before,
.orbit-two::before,
.orbit-three::before {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand-blue);
    box-shadow: 0 0 15px rgba(13,107,181,.55);
}
.orbit-one::before { left: 17%; top: 5%; }
.orbit-two::before { right: 12%; bottom: 16%; background: var(--brand-light); }
.orbit-three::before { right: 3%; top: 47%; background: #0A4F8A; box-shadow: 0 0 14px rgba(10,79,138,.28); }

.orbit-two {
    width: 458px;
    height: 458px;
    border-style: dashed;
    border-color: rgba(26,107,180,.17);
}

.orbit-three {
    width: 250px;
    height: 250px;
    animation: spin 19s linear infinite reverse;
    border-color: rgba(10,79,138,.11);
}

.visual-center {
    width: 230px;
    height: 230px;
    clip-path: none;
    border-radius: 34px;
    padding: 1.3rem;
    background:
        linear-gradient(#fff,#fff) padding-box,
        linear-gradient(135deg, rgba(111,168,220,.88), rgba(13,107,181,.92)) border-box;
    border: 1px solid transparent;
    box-shadow:
        0 28px 70px rgba(13,107,181,.20),
        0 0 0 9px rgba(255,255,255,.70);
    overflow: visible;
    animation: centerFloat 6.2s ease-in-out infinite;
}

.visual-center::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 46px;
    border: 1px solid rgba(13,107,181,.11);
    animation: centerRing 4.5s ease-in-out infinite;
}

.visual-center-ring {
    position: absolute;
    inset: -34px;
    border-radius: 54px;
    border: 1px dashed rgba(13,107,181,.13);
    animation: spin 24s linear infinite;
}

.visual-center-glow {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: rgba(111,168,220,.15);
    filter: blur(24px);
    animation: haloPulse 4s ease-in-out infinite;
}

.hero-symbol {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(13,107,181,.10));
}

.orbit-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-blue);
    box-shadow: 0 0 16px rgba(13,107,181,.45);
    z-index: 2;
}
.dot-one { left: 22%; top: 25%; animation: dotFloat 4.6s ease-in-out infinite; }
.dot-two { right: 18%; top: 57%; animation: dotFloat 5.4s ease-in-out infinite -1.5s; }
.dot-three { left: 39%; bottom: 12%; background: #0A4F8A; animation: dotFloat 5.1s ease-in-out infinite -2.2s; }

.floating-card {
    border-color: rgba(13,107,181,.13);
    box-shadow:
        0 14px 34px rgba(13,107,181,.10),
        0 0 0 1px rgba(255,255,255,.75) inset;
    overflow: hidden;
    will-change: transform;
}
.floating-card::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-130%);
    background: linear-gradient(110deg, transparent, rgba(111,168,220,.17), transparent);
    animation: floatingShine 7.8s ease-in-out infinite;
}
.floating-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,107,181,.08);
    color: var(--brand-blue);
    flex: 0 0 32px;
}
.floating-card-icon svg { width: 17px; height: 17px; }
.card-a { animation-duration: 5.8s; }
.card-b { animation-duration: 6.7s; }
.card-c { animation-duration: 6.2s; }
.card-d { animation-duration: 7.1s; }

/* ---------- SERVICE CARD: più movimento, senza riempirle di testo ---------- */
.services-grid {
    perspective: 1200px;
}

.service-card {
    isolation: isolate;
    transform-style: preserve-3d;
    will-change: transform;
    border-color: rgba(13,107,181,.13);
    box-shadow:
        0 12px 32px rgba(13,107,181,.065),
        0 0 0 1px rgba(255,255,255,.75) inset;
}

.service-card::before {
    width: 100%;
    height: 3px;
    inset: 0 0 auto 0;
    transform: scaleX(.16);
    transform-origin: left;
    background: linear-gradient(90deg, var(--brand-light), var(--brand-blue), #0A4F8A);
}

.service-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111,168,220,.17), transparent 66%);
    z-index: -1;
    animation: cardGlowDrift 6.5s ease-in-out infinite;
}

.service-card:nth-child(2n)::after { animation-delay: -2s; }
.service-card:nth-child(3n)::after { animation-delay: -4s; }

.service-card-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .28;
    background-image:
        linear-gradient(rgba(13,107,181,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13,107,181,.045) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(135deg, transparent 12%, black 58%, transparent 100%);
}

.service-card-orbit {
    position: absolute;
    width: 94px;
    height: 94px;
    right: 18px;
    bottom: 12px;
    border-radius: 50%;
    border: 1px dashed rgba(13,107,181,.12);
    z-index: -1;
    animation: spin 19s linear infinite;
}

.service-card-orbit::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    right: 8px;
    top: 12px;
    background: var(--brand-blue);
    box-shadow: 0 0 12px rgba(13,107,181,.35);
}

.service-card-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: -80px;
    height: 70px;
    z-index: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(111,168,220,.12), transparent);
    transition: opacity .25s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(13,107,181,.25);
    box-shadow:
        0 24px 54px rgba(13,107,181,.12),
        0 0 18px rgba(111,168,220,.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover .service-card-scan {
    opacity: 1;
    animation: cardScan .9s ease-out forwards;
}

.service-icon {
    position: relative;
    z-index: 3;
    border: 1px solid rgba(13,107,181,.09);
    box-shadow: 0 9px 22px rgba(13,107,181,.08);
    animation: iconFloat 5.6s ease-in-out infinite;
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:nth-child(2) .service-icon { animation-delay: -.7s; }
.service-card:nth-child(3) .service-icon { animation-delay: -1.4s; }
.service-card:nth-child(4) .service-icon { animation-delay: -2.1s; }
.service-card:nth-child(5) .service-icon { animation-delay: -2.8s; }
.service-card:nth-child(6) .service-icon { animation-delay: -3.5s; }

.service-card:hover .service-icon {
    transform: translateY(-3px) rotate(-3deg) scale(1.07);
    box-shadow: 0 14px 30px rgba(13,107,181,.14);
}

.service-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.service-kicker::before {
    content: '';
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-light));
    transition: width .28s ease;
}
.service-card:hover .service-kicker::before {
    width: 30px;
}

/* ---------- TECHNOLOGY + FEATURE ---------- */
.technology-visual {
    box-shadow:
        0 24px 60px rgba(13,107,181,.08),
        inset 0 0 0 1px rgba(255,255,255,.65);
}

.tech-core {
    animation: techCoreFloat 6s ease-in-out infinite;
}

.tech-ring.ring-1 { animation: spin 28s linear infinite; }
.tech-ring.ring-2 { animation: spin-rev 38s linear infinite; }

.tech-node {
    animation: techNodeFloat 6s ease-in-out infinite;
}
.tech-node.node-watch { animation-delay: -1.5s; }
.tech-node.node-map { animation-delay: -3s; }
.tech-node.node-shield { animation-delay: -4.5s; }

.feature-item {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}
.feature-item::after {
    content: '';
    position: absolute;
    left: -35%;
    top: 0;
    width: 28%;
    height: 100%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(111,168,220,.09), transparent);
    transition: left .55s ease;
}
.feature-item:hover::after { left: 115%; }

/* ---------- Project card ---------- */
.project-card {
    transform-style: preserve-3d;
    will-change: transform;
}
.project-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    right: -45px;
    top: -55px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
    animation: projectGlow 5s ease-in-out infinite;
}

/* ---------- Motion JS hooks ---------- */
.motion-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --lift: 0px;
}

.motion-card.is-tilting {
    transform:
        perspective(900px)
        rotateX(var(--tilt-x))
        rotateY(var(--tilt-y))
        translateY(var(--lift));
}

/* ---------- Animations ---------- */
@keyframes heroScan {
    0% { transform: translateY(-120%); }
    100% { transform: translateY(900%); }
}
@keyframes hexDrift {
    0%,100% { translate: 0 0; opacity: .65; }
    50% { translate: 0 -12px; opacity: 1; }
}
@keyframes linePulse {
    0%,100% { opacity: .3; filter: blur(0); }
    50% { opacity: .9; filter: blur(.2px); }
}
@keyframes nodePulse {
    0%,100% { transform: scale(.84); opacity: .62; }
    50% { transform: scale(1.18); opacity: 1; }
}
@keyframes badgeShine {
    0%,68% { transform: translateX(-120%); }
    82%,100% { transform: translateX(140%); }
}
@keyframes haloPulse {
    0%,100% { transform: translate(-50%, -50%) scale(.94); opacity: .55; }
    50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}
@keyframes centerFloat {
    0%,100% { margin-top: 0; }
    50% { margin-top: -9px; }
}
@keyframes centerRing {
    0%,100% { transform: scale(.96); opacity: .45; }
    50% { transform: scale(1.05); opacity: .85; }
}
@keyframes dotFloat {
    0%,100% { transform: translateY(0) scale(.9); opacity: .55; }
    50% { transform: translateY(-11px) scale(1.15); opacity: 1; }
}
@keyframes floatingShine {
    0%,65% { transform: translateX(-130%); }
    82%,100% { transform: translateX(160%); }
}
@keyframes cardGlowDrift {
    0%,100% { transform: translate(0,0) scale(.92); opacity: .6; }
    50% { transform: translate(-24px,22px) scale(1.12); opacity: 1; }
}
@keyframes cardScan {
    0% { transform: translateY(0); }
    100% { transform: translateY(390px); }
}
@keyframes iconFloat {
    0%,100% { translate: 0 0; }
    50% { translate: 0 -5px; }
}
@keyframes techCoreFloat {
    0%,100% { margin-top: 0; }
    50% { margin-top: -10px; }
}
@keyframes techNodeFloat {
    0%,100% { translate: 0 0; }
    50% { translate: 0 -9px; }
}
@keyframes projectGlow {
    0%,100% { transform: scale(.9); opacity: .45; }
    50% { transform: scale(1.16); opacity: .85; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    .hero-visual {
        min-height: 455px;
    }
    .visual-center {
        width: 205px;
        height: 205px;
    }
}

@media (max-width: 620px) {
    .hero {
        padding-bottom: 3.2rem;
    }

    .hero-network .network-line,
    .hero-network .network-hex.h4 {
        display: none;
    }

    .hero-visual {
        min-height: 360px;
        margin-top: .4rem;
    }

    .visual-center {
        width: 154px;
        height: 154px;
        padding: .85rem;
        border-radius: 26px;
        box-shadow:
            0 20px 46px rgba(13,107,181,.18),
            0 0 0 6px rgba(255,255,255,.72);
    }

    .visual-center::before {
        inset: -11px;
        border-radius: 34px;
    }

    .visual-center-ring {
        inset: -23px;
        border-radius: 40px;
    }

    .orbit-one { width: 235px; height: 235px; }
    .orbit-two { width: 325px; height: 325px; }
    .orbit-three { width: 188px; height: 188px; }

    .floating-card {
        padding: .55rem .62rem;
        font-size: .64rem;
    }
    .floating-card-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
        border-radius: 8px;
    }
    .floating-card-icon svg { width: 15px; height: 15px; }

    .service-card {
        min-height: 285px;
    }
}

/* Riduce il movimento quando richiesto dal sistema operativo. */
@media (prefers-reduced-motion: reduce) {
    .hero-scan,
    .network-hex,
    .network-line,
    .network-node,
    .hero-badge::after,
    .visual-halo,
    .visual-orbit,
    .visual-center,
    .visual-center::before,
    .visual-center-ring,
    .orbit-dot,
    .floating-card,
    .floating-card::after,
    .service-card::after,
    .service-card-orbit,
    .service-icon,
    .tech-core,
    .tech-ring,
    .tech-node,
    .project-card::after {
        animation: none !important;
    }

    .motion-card.is-tilting {
        transform: none !important;
    }
}


/* ============================================================
   TELECARE24 V4 - MEDICAL SPECIALIST
   ============================================================ */

.hero {
    min-height: 640px !important;
    padding-top: 108px !important;
    padding-bottom: 46px !important;
}

.hero-container {
    gap: 3rem !important;
}

.hero-content {
    max-width: 620px;
}

.hero h1 {
    font-size: clamp(2.75rem, 5.2vw, 4.65rem) !important;
    line-height: 1 !important;
}

.hero p {
    max-width: 600px;
    font-size: 1rem !important;
    line-height: 1.65 !important;
}

.hero-stats {
    margin-top: 1.8rem !important;
    padding-top: 1.1rem !important;
}

.pulse-dot {
    background: #0A4F8A !important;
    box-shadow: 0 0 0 0 rgba(10,79,138,.30) !important;
}

.hero-visual {
    min-height: 405px !important;
}

/* Solo il simbolo: nessuna card/bottone dietro */
.visual-center {
    width: 188px !important;
    height: 150px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.visual-center::before,
.visual-center-ring {
    display: none !important;
}

.visual-center-glow {
    inset: -32% !important;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(111,168,220,.24) 0%,
        rgba(13,107,181,.10) 38%,
        transparent 72%
    ) !important;
    filter: blur(22px) !important;
}

.hero-symbol {
    width: 188px !important;
    height: auto !important;
    max-height: 150px !important;
    object-fit: contain !important;
    filter:
        drop-shadow(0 14px 22px rgba(10,79,138,.16))
        drop-shadow(0 0 16px rgba(111,168,220,.08)) !important;
}

.orbit-one {
    width: 270px !important;
    height: 270px !important;
    border-color: rgba(10,79,138,.22) !important;
}

.orbit-two {
    width: 380px !important;
    height: 380px !important;
    border-color: rgba(13,107,181,.16) !important;
}

.orbit-three {
    width: 215px !important;
    height: 215px !important;
    border-color: rgba(10,79,138,.14) !important;
}

.orbit-three::before,
.dot-three,
.network-node,
.orbit-one::before,
.service-card-orbit::after {
    background: #0A4F8A !important;
    box-shadow: 0 0 15px rgba(10,79,138,.34) !important;
}

.floating-card {
    min-width: 150px !important;
    padding: .72rem .82rem !important;
    border-color: rgba(10,79,138,.14) !important;
    background: rgba(255,255,255,.95) !important;
    box-shadow:
        0 14px 30px rgba(10,79,138,.09),
        0 0 0 1px rgba(255,255,255,.75) inset !important;
}

.floating-card > span:last-child {
    display: grid;
    gap: .08rem;
    line-height: 1.15;
}

.floating-card small {
    color: #0A4F8A;
    font-size: .56rem;
    font-weight: 900;
    letter-spacing: .10em;
}

.floating-card-icon {
    background: rgba(10,79,138,.08) !important;
    color: #0A4F8A !important;
}

.service-card::before {
    background: linear-gradient(
        90deg,
        #6FA8DC,
        #0D6BB5,
        #0A4F8A
    ) !important;
}

.hero::after {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(13,107,181,.12),
        rgba(10,79,138,.22),
        rgba(13,107,181,.12),
        transparent
    ) !important;
}

.service-area {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: .28rem .52rem;
    margin-bottom: .72rem;
    border: 1px solid rgba(10,79,138,.10);
    border-radius: 999px;
    color: #0A4F8A;
    background: rgba(10,79,138,.045);
    font-size: .60rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.service-card h3 {
    font-size: 1.12rem !important;
}

.service-icon {
    background: linear-gradient(
        135deg,
        rgba(111,168,220,.16),
        rgba(10,79,138,.08)
    ) !important;
    color: #0A4F8A !important;
}

.tech-core {
    background: linear-gradient(135deg, #0D6BB5, #0A4F8A) !important;
}

.feature-num {
    background: linear-gradient(135deg, #0D6BB5, #0A4F8A) !important;
}

.project-shell {
    background:
        radial-gradient(circle at 85% 20%, rgba(111,168,220,.22), transparent 24%),
        radial-gradient(circle at 15% 90%, rgba(13,107,181,.17), transparent 32%),
        linear-gradient(135deg, #0A4F8A 0%, #0D6BB5 50%, #1A6BB4 100%) !important;
}

@media (max-width: 900px) {
    .hero {
        min-height: auto !important;
        padding-top: 96px !important;
        padding-bottom: 38px !important;
    }

    .hero-visual {
        min-height: 350px !important;
    }

    .visual-center {
        width: 165px !important;
        height: 132px !important;
    }

    .hero-symbol {
        width: 165px !important;
        max-height: 132px !important;
    }

    .orbit-one {
        width: 230px !important;
        height: 230px !important;
    }

    .orbit-two {
        width: 325px !important;
        height: 325px !important;
    }

    .orbit-three {
        width: 190px !important;
        height: 190px !important;
    }
}

@media (max-width: 620px) {
    .hero {
        padding-top: 90px !important;
        padding-bottom: 28px !important;
    }

    .hero h1 {
        font-size: 2.35rem !important;
    }

    .hero-visual {
        min-height: 300px !important;
    }

    .visual-center {
        width: 132px !important;
        height: 106px !important;
    }

    .hero-symbol {
        width: 132px !important;
        max-height: 106px !important;
    }

    .orbit-one {
        width: 190px !important;
        height: 190px !important;
    }

    .orbit-two {
        width: 272px !important;
        height: 272px !important;
    }

    .orbit-three {
        width: 156px !important;
        height: 156px !important;
    }

    .floating-card {
        min-width: 128px !important;
        padding: .48rem .55rem !important;
    }

    .floating-card small {
        font-size: .49rem;
    }
}


/* ============================================================
   TELECARE24 - ICONA CONTATTI MOBILE
   ============================================================ */
.nav-contact-mobile {
    display: none;
}

@media (max-width: 900px) {
    .nav-contact-mobile {
        display: inline-flex;
    }
}


/* ============================================================
   TELECARE24 - MOBILE COMPACT LAYOUT
   Servizi / Tecnologia / Contatti
   Home e Progetto NON modificati
   ============================================================ */
@media (max-width: 620px) {

    /* --------------------------------------------------------
       ROTTE / SEZIONI
       Riduce lo spazio vuoto sotto la barra top.
       -------------------------------------------------------- */
    .services-section {
        padding: 1.05rem 0 3rem !important;
    }

    .technology-section {
        padding: 1.05rem 0 3rem !important;
    }

    .contact-section {
        padding: .85rem 0 2.5rem !important;
    }

    /* --------------------------------------------------------
       TITOLI SERVIZI E TECNOLOGIA
       Più piccoli e più compatti su mobile.
       -------------------------------------------------------- */
    .services-section .section-header,
    .technology-section .section-header {
        margin-bottom: 1.35rem !important;
    }

    .services-section .section-tag,
    .technology-section .section-tag {
        margin-bottom: .55rem !important;
        font-size: .68rem !important;
        letter-spacing: .13em !important;
    }

    .services-section .section-header h2,
    .technology-section .section-header h2 {
        font-size: 1.72rem !important;
        line-height: 1.08 !important;
        letter-spacing: -.035em !important;
    }

    .services-section .section-header p,
    .technology-section .section-header p {
        margin-top: .7rem !important;
        font-size: .86rem !important;
        line-height: 1.52 !important;
    }

    /* --------------------------------------------------------
       CARD SERVIZI
       Più compatte e kicker SEMPRE separato dal testo.
       -------------------------------------------------------- */
    .services-grid {
        gap: .85rem !important;
    }

    .service-card {
        min-height: 0 !important;
        padding: 1.15rem !important;
        border-radius: 18px !important;
    }

    .service-icon {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: .8rem !important;
        border-radius: 14px !important;
    }

    .service-icon svg {
        width: 23px !important;
        height: 23px !important;
    }

    .service-area {
        min-height: 21px !important;
        padding: .20rem .43rem !important;
        margin-bottom: .48rem !important;
        font-size: .54rem !important;
        letter-spacing: .075em !important;
    }

    .service-card h3 {
        margin-bottom: .48rem !important;
        font-size: 1.04rem !important;
        line-height: 1.2 !important;
    }

    .service-card p {
        max-width: none !important;
        margin: 0 !important;
        font-size: .84rem !important;
        line-height: 1.48 !important;
    }

    /* Era position:absolute e finiva attaccato/sovrapposto al testo */
    .service-kicker {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: .95rem !important;
        padding-top: .68rem !important;
        border-top: 1px solid rgba(13,107,181,.10) !important;
        font-size: .67rem !important;
        line-height: 1.25 !important;
    }

    .service-kicker::before {
        width: 20px !important;
    }

    .service-card-orbit {
        width: 72px !important;
        height: 72px !important;
        right: 12px !important;
        bottom: 12px !important;
        opacity: .65 !important;
    }

    /* --------------------------------------------------------
       TECNOLOGIA
       Card più compatte per far entrare più contenuto a schermo.
       -------------------------------------------------------- */
    .technology-grid {
        gap: 1.4rem !important;
    }

    .feature-list {
        gap: .68rem !important;
    }

    .feature-item {
        padding: .86rem !important;
        grid-template-columns: 40px 1fr !important;
        gap: .75rem !important;
        border-radius: 15px !important;
    }

    .feature-num {
        width: 38px !important;
        height: 38px !important;
        border-radius: 11px !important;
        font-size: .70rem !important;
    }

    .feature-item h3 {
        margin-bottom: .22rem !important;
        font-size: .92rem !important;
        line-height: 1.25 !important;
    }

    .feature-item p {
        font-size: .79rem !important;
        line-height: 1.43 !important;
    }

    /* --------------------------------------------------------
       CONTATTI
       Su mobile non serve il blocco titolo/descrizione:
       il form parte subito sotto il top.
       -------------------------------------------------------- */
    .contact-section > .section-container > .section-header {
        display: none !important;
    }

    .contact-form-card {
        padding: .95rem !important;
        border-radius: 18px !important;
    }

    #contactForm {
        gap: .72rem !important;
    }

    .form-row {
        gap: .72rem !important;
    }

    .form-group {
        gap: .28rem !important;
    }

    .form-group label {
        font-size: .72rem !important;
    }

    .form-group input,
    .form-group textarea {
        padding: .72rem .78rem !important;
        border-radius: 11px !important;
        font-size: .88rem !important;
    }

    .form-group textarea {
        min-height: 96px !important;
    }

    .privacy-consent {
        gap: .45rem !important;
        font-size: .70rem !important;
        line-height: 1.35 !important;
    }

    .contact-security {
        margin-top: 0 !important;
    }

    .qcaptcha-card {
        min-height: 44px !important;
        padding: .58rem .68rem !important;
        border-radius: 11px !important;
    }

    .submit-btn {
        min-height: 46px !important;
        border-radius: 12px !important;
        font-size: .86rem !important;
    }
}
