/* ======================================================================
AD.MAINTENANCE — DESIGN TOKENS / VARIABLES
----------------------------------------------------------------------
Palette colori, raggi, ombre e dimensioni globali del layout.
====================================================================== */
:root {
    --bg-1: #08111f;
    --bg-2: #0d1d33;
    --bg-3: #122846;

    --surface: rgba(10, 18, 33, 0.7);
    --surface-2: rgba(255, 255, 255, 0.08);
    --surface-3: rgba(255, 255, 255, 0.05);

    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.2);

    --white: #fff;
    --text: #f7fbff;
    --muted: #bfd0e5;
    --muted-2: #90a7c2;

    --blue: #4cc9ff;
    --blue-strong: #1ea7ff;
    --orange: #ff8a3d;
    --orange-strong: #ff6a00;
    --success: #36d399;
    --danger: #ff2626;

    --glow-blue: rgba(76, 201, 255, 0.35);
    --glow-orange: rgba(255, 138, 61, 0.26);

    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 18px 38px rgba(0, 0, 0, 0.24);

    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 18px;

    --container: 1240px;
}

/* ======================================================================
AD.MAINTENANCE — RESET / BASE
----------------------------------------------------------------------
Regole globali di reset, tipografia base e comportamento generale.
====================================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-2);
}

body {
    margin: 0;
    min-height: 100vh;
    /* font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; */
    color: var(--text);
    background:
        radial-gradient(circle at 12% 16%, rgba(76, 201, 255, 0.16), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(255, 138, 61, 0.18), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(76, 201, 255, 0.1), transparent 30%),
        linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 46%, var(--bg-3) 100%);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ======================================================================
AD.MAINTENANCE — BACKGROUND GRID / PAGE FRAME
----------------------------------------------------------------------
Struttura pagina e griglia leggera sullo sfondo.
====================================================================== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black 42%, transparent 88%);
    opacity: 0.42;
}

.page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    isolation: isolate;
}

.shell {
    position: relative;
    width: 100%;
    max-width: var(--container);
}

/* ======================================================================
AD.MAINTENANCE — AMBIENT / DECORATIVE ORBS
----------------------------------------------------------------------
Elementi grafici di sfondo con effetto glow e movimento floating.
====================================================================== */
.ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.7;
    animation: float 12s ease-in-out infinite;
}

.orb-1 {
    width: 320px;
    height: 320px;
    top: 3%;
    left: -70px;
    background: radial-gradient(circle, rgba(76, 201, 255, 0.4), rgba(76, 201, 255, 0.03));
}

.orb-2 {
    width: 300px;
    height: 300px;
    top: 8%;
    right: -70px;
    background: radial-gradient(circle, rgba(255, 138, 61, 0.38), rgba(255, 138, 61, 0.03));
    animation-delay: -3s;
    animation-duration: 14s;
}

.orb-3 {
    width: 420px;
    height: 420px;
    left: 50%;
    bottom: -220px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(76, 201, 255, 0.24), rgba(76, 201, 255, 0.02));
    animation-delay: -5s;
    animation-duration: 16s;
}

/* ======================================================================
AD.MAINTENANCE — MAIN PANEL / GRID LAYOUT
----------------------------------------------------------------------
Contenitore glassmorphism principale e suddivisione in due colonne.
====================================================================== */
.panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(76, 201, 255, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 138, 61, 0.12), transparent 30%);
}

.layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
    gap: 24px;
    padding: 30px;
}

.intro,
.services {
    min-width: 0;
}

.intro-card,
.services-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: calc(var(--radius-xl) - 8px);
    background: linear-gradient(180deg, rgba(8, 16, 29, 0.58), rgba(8, 16, 29, 0.4));
}

.intro-card::after,
.services-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 52%);
}

/* ======================================================================
AD.MAINTENANCE — INTRO / HERO CONTENT
----------------------------------------------------------------------
Badge, titolo, presentazione testuale e testo animato della colonna sinistra.
====================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 17px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 138, 61, 0.34);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 138, 61, 0.24), rgba(255, 106, 0, 0.14));
    color: #fff2e8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 26px rgba(255, 106, 0, 0.16);
    animation: fadeUp 0.7s ease both;
}

.badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 rgba(255, 138, 61, 0.55);
    animation: pulse-orange 1.8s infinite;
}

h1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    /* max-width: 10ch; */
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 5.0rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    animation: fadeUp 0.82s ease both;
}

.intro-greeting {
    display: block;
    font-size: 1.1em;
}

.intro-name {
    display: block;
    line-height: 0.8;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 5%, var(--blue) 35%, var(--orange) 72%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 7.5s ease infinite;
    font-weight: bold;
}

.lead {
    max-width: 62ch;
    margin: 38px 0 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.82;
    color: var(--muted);
    animation: fadeUp 0.95s ease both;
}
.lead b { color:var(--white); }

.typing-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 38px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    color: #eaf8ff;
    animation: fadeUp 1.08s ease both;
    height:50px;
}

.typing-wrap strong {
    font-size: 0.98rem;
}

.cursor {
    display: inline-block;
    width: 9px;
    height: 1.06em;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--orange), var(--orange-strong));
    animation: blink 1s steps(1) infinite;
}

/* ======================================================================
AD.MAINTENANCE — CTA BUTTONS
----------------------------------------------------------------------
Pulsanti di contatto con varianti cromatiche e icone Font Awesome.
====================================================================== */
.cta-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
    animation: fadeUp 1.18s ease both;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    overflow: hidden;
    padding: 16px 20px 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 56%);
}

.btn:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: var(--shadow-md);
}

.btn.primary {
    background: linear-gradient(135deg, rgba(76, 201, 255, 0.18), rgba(255, 138, 61, 0.16));
    border-color: rgba(76, 201, 255, 0.34);
}

.btn.warm {
    background: linear-gradient(135deg, rgba(255, 138, 61, 0.16), rgba(255, 106, 0, 0.1));
    border-color: rgba(255, 138, 61, 0.28);
}

.btn .icon-fa {
    width: 26px;
    min-width: 26px;
    flex: 0 0 auto;
    font-size: 1.34rem;
    line-height: 1;
    text-align: center;
}

/* ======================================================================
AD.MAINTENANCE — SERVICES HEADER / STATUS
----------------------------------------------------------------------
Titolo della colonna destra e pill di stato online.
====================================================================== */
.services-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 28px;
    animation: fadeUp 0.8s ease both;
}

.services-title {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 1.7rem);
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(54, 211, 153, 0.24);
    border-radius: 999px;
    background: rgba(54, 211, 153, 0.12);
    color: #e8fff5;
    font-size: 13px;
    font-weight: 700;
}

.status-pill-off {
    color: var(--muted);
    border: 1px solid rgba(103, 0, 0, 0.24);
    background: rgba(246, 39, 39, 0.12);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 rgba(54, 211, 153, 0.6);
    animation: pulse 1.8s infinite;
}

.status-off {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 0 rgba(211, 50, 50, 0.6);
    animation: pulse-red 1.8s infinite;
}

/* ======================================================================
AD.MAINTENANCE — SERVICES GRID / CARDS
----------------------------------------------------------------------
Card dei servizi con varianti cromatiche, glow e icone.
====================================================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.service-card {
    position: relative;
    min-height: 168px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
    animation: fadeUp 0.95s ease both;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.045));
}

.service-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -34px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 68%);
    pointer-events: none;
}

.service-card.blue::before,
.service-card.orange::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    opacity: 0.9;
}

.service-card.blue::before {
    background: linear-gradient(90deg, transparent, rgba(76, 201, 255, 0.9), transparent);
}

.service-card.orange::before {
    background: linear-gradient(90deg, transparent, rgba(255, 138, 61, 0.9), transparent);
}

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.service-icon i {
    font-size: 1.3rem;
    line-height: 1;
}

.service-card.blue .service-icon {
    box-shadow: 0 0 0 1px rgba(76, 201, 255, 0.05), 0 0 28px rgba(76, 201, 255, 0.12);
}

.service-card.orange .service-icon {
    box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.05), 0 0 28px rgba(255, 138, 61, 0.12);
}

.service-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: bold;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

/* ======================================================================
AD.MAINTENANCE — OPTIONAL / SUPPORT CLASSES
----------------------------------------------------------------------
Stili di supporto lasciati disponibili per eventuali estensioni future.
====================================================================== */
.note {
    margin-top: 18px;
    color: var(--muted-2);
    font-size: 0.92rem;
    line-height: 1.7;
    animation: fadeUp 1.25s ease both;
}

.service-foot {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted-2);
    font-size: 0.92rem;
    line-height: 1.7;
    animation: fadeUp 1.05s ease both;
}

/* ======================================================================
AD.MAINTENANCE — SERVICES GRID / CARDS
----------------------------------------------------------------------
Card dei servizi con varianti cromatiche, glow e icone.
====================================================================== */

.share-row { display:none; padding:0 30px; }
.share-btn { display:block; width:100%; border:0; min-height:30px; text-transform:uppercase; font-size:13px; background-color:transparent; color: var(--muted); margin-bottom:30px; }
.share-btn:hover { color:var(--white); }
.share-btn i { margin-right:6px; font-size:14px; }

/* ======================================================================
AD.MAINTENANCE — ANIMATIONS
----------------------------------------------------------------------
Keyframes per glow, apparizione, cursore e status pulse.
====================================================================== */
@keyframes float {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, -18px, 0) scale(1.05);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@keyframes shine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(54, 211, 153, 0.5);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(54, 211, 153, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(54, 211, 153, 0);
    }
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.52);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(255, 138, 61, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 138, 61, 0);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 50, 50, 0.52);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(211, 50, 50, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 50, 50, 0);
    }
}

/* ======================================================================
AD.MAINTENANCE — RESPONSIVE: TABLET / SMALL DESKTOP
----------------------------------------------------------------------
Layout a colonna singola e adattamenti progressivi per schermi medi.
====================================================================== */
@media (max-width: 1100px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .services-head {
        flex-direction: column;
    }
}

/* ======================================================================
AD.MAINTENANCE — RESPONSIVE: TABLET / LARGE MOBILE
----------------------------------------------------------------------
Riduzione spaziature, heading più compatto e card in colonna singola.
====================================================================== */
@media (max-width: 960px) {
    .page {
        align-items: stretch;
        padding: 22px;
    }

    .layout {
        gap: 16px;
        padding: 16px;
    }

    .intro-card,
    .services-card {
        padding: 22px;
        border-radius: 22px;
    }

    h1 {
        max-width: none;
        font-size: clamp(2.15rem, 10vw, 3.7rem);
    }

    .intro-greeting {
        font-size: 1.12em;
    }

    .services-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-pill {
        order: -1;
    }

    .cta-group,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }
}

/* ======================================================================
AD.MAINTENANCE — RESPONSIVE: MOBILE
----------------------------------------------------------------------
Ottimizzazioni finali per schermi piccoli.
====================================================================== */
@media (max-width: 640px) {
    .page {
        padding: 22px;
    }

    .shell {
        margin-bottom:12px;
    }

    .panel {
        border-radius: 24px;
    }

    .layout {
        gap: 12px;
        padding: 12px;
    }

    .intro-card,
    .services-card {
        padding: 18px;
        border-radius: 18px;
    }

    .badge {
        font-size: 12px;
        margin-bottom: 22px;
    }

    .lead {
        line-height: 1.72;
    }

    .typing-wrap {
        width: 100%;
        align-items: flex-start;
        display: none;
    }

    .typing-wrap strong {
        display: inline-block;
        max-width: calc(100% - 20px);
        line-height: 1.55;
    }

    .btn {
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
        padding: 10px 14px;
        font-size:0.97rem; 
    }

    .status-pill {
        font-size: 12px;
        margin-bottom: 22px;
    }

    .service-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .service-card p,
    .service-foot,
    .note {
        font-size: 0.92rem;
    }

    .share-row { display: flex; }

}

/* ======================================================================
AD.MAINTENANCE — ACCESSIBILITY / REDUCED MOTION
----------------------------------------------------------------------
Disabilita animazioni e transizioni per utenti che lo richiedono.
====================================================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}