/* ====================================
   XTRACT - AI Automation Agency CSS
   ==================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Tokens */
    /* Fondo sezioni (HSL space-separated, uso: hsl(var(--background))):
       viola profondissimo, appena percettibile sul nero. */
    --background: 276 63% 3%;
    --color-black: rgb(0, 0, 0);
    --color-purple: rgb(129, 74, 200);
    --color-pink: rgb(223, 122, 254);
    --color-dark-glass: rgba(13, 13, 13, 0.8);
    --color-white: rgb(255, 255, 255);
    --color-white-05: rgba(255, 255, 255, 0.05);
    --color-gray: rgb(204, 204, 204);
    --color-dark-gray: rgb(34, 34, 34);
    --color-white-90: rgba(255, 255, 255, 0.9);
    --color-white-75: rgba(255, 255, 255, 0.75);

    /* Font Smoothing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Figtree', 'Figtree Placeholder', sans-serif;
    font-size: 16px;
    font-weight: 400;
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-black);
}

::-webkit-scrollbar-thumb {
    background: var(--color-purple);
    border-radius: 6px;
    border: 3px solid var(--color-black);
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(150, 100, 220);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-purple) var(--color-black);
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-list li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list li a:hover {
    color: var(--color-purple);
}

.breadcrumb-list li + li::before {
    content: "/";
    color: rgba(255, 255, 255, 0.25);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Particles Canvas Container */
.framer-s696he-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.framer-lL6no {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particles-canvas-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: transparent;
    transform: translateZ(0);
    border-radius: 0;
    position: relative;
}

#particlesCanvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* Header / Navigation */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    /* Effetto VETRO: fondo semi-trasparente + blur di ciò che scorre
       sotto (video hero compreso). Il fallback scuro pieno resta per i
       browser senza backdrop-filter. */
    background-color: rgba(5, 3, 8, 0.55);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 55px;
    width: auto;
    transition: height 0.3s ease;
}

.header.scrolled .logo-image {
    height: 32px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-mobile-logo {
    display: none;
}

.nav-menu li a {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-white);
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-menu li a:hover {
    opacity: 0.7;
}

/* CTA Button */
.btn-primary {
    padding: 8px 18px;
    background-color: rgb(129, 74, 200);
    color: var(--color-white);
    font-weight: 500;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 0.706592px 0.706592px -0.625px,
                rgba(0, 0, 0, 0.145) 0px 1.80656px 1.80656px -1.25px,
                rgba(0, 0, 0, 0.137) 0px 3.62176px 3.62176px -1.875px,
                rgba(0, 0, 0, 0.125) 0px 6.8656px 6.8656px -2.5px,
                rgba(0, 0, 0, 0.106) 0px 13.6468px 13.6468px -3.125px,
                rgba(0, 0, 0, 0.05) 0px 30px 30px -3.75px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    font-weight: 500;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero BG Circles - Exact CSS from original */
.framer-v5tokv {
    -webkit-filter: blur(10px);
    align-content: center;
    align-items: center;
    display: flex;
    filter: blur(10px);
    flex: none;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    height: min-content;
    justify-content: center;
    left: 50%;
    opacity: 0.6;
    overflow: hidden;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min-content;
    z-index: 1;
}

.framer-q5ecxp {
    aspect-ratio: 1 / 1;
    background: linear-gradient(229deg, #df7afe 13%, rgba(201, 110, 240, 0) 35.0235827429153%, rgba(164, 92, 219, 0) 64.17244225559735%, rgb(129, 74, 200) 88%);
    border-radius: 363px;
    flex: none;
    gap: 10px;
    height: 406px;
    overflow: hidden;
    position: relative;
    width: 406px;
    will-change: transform;
    animation: rotate-clockwise 20s linear infinite;
}

.framer-1mwerlq {
    aspect-ratio: 1 / 1;
    background: linear-gradient(141deg, #df7afe 13%, rgba(201, 110, 240, 0) 35.0235827429153%, rgba(164, 92, 219, 0) 64.17244225559735%, rgb(129, 74, 200) 88%);
    border-radius: 363px;
    flex: none;
    height: 300px;
    left: 50%;
    overflow: hidden;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    will-change: transform;
    z-index: 1;
    animation: rotate-counter-clockwise 15s linear infinite;
}

/* Animations */
@keyframes rotate-clockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-counter-clockwise {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

/* Container Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Card Styles */
.card {
    background: var(--color-dark-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(129, 74, 200, 0.3);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .nav-container {
        padding: 20px 30px;
    }

    .container {
        padding: 0 30px;
    }

    .section {
        padding: 80px 0;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 809px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        background: rgba(0, 0, 0, 1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 100%;
        height: 100vh;
        padding: 2rem;
        padding-top: calc(70px + 2rem);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
        gap: 1rem;
        align-content: start;
        list-style: none;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-mobile-logo {
        display: block;
        text-align: center;
        margin-bottom: 1.5rem;
        grid-column: 1 / -1;
    }

    .nav-mobile-logo a {
        display: inline-block;
    }

    .mobile-logo-image {
        height: 40px;
        width: auto;
    }

    .nav-menu li {
        display: block;
    }

    .nav-menu li:last-child {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }

    .nav-menu li a,
    .nav-menu li button {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        padding: 0;
        min-height: 120px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        transition: all 0.3s ease;
        width: 100%;
    }

    .nav-menu li a:hover,
    .nav-menu li button:hover {
        background: rgba(129, 74, 200, 0.1);
        border-color: rgba(129, 74, 200, 0.3);
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-container {
        padding: 15px 20px;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo {
        font-size: 20px;
    }
}

/* Text Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

.text-white-90 {
    color: var(--color-white-90);
}

.text-white-75 {
    color: var(--color-white-75);
}

/* Spacing Utilities */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }


/* Services Section */
.services-section {
    padding: 100px 0;
    background: var(--color-black);
}

.services-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 100px;
    /* Aria sopra il titolo: la sezione ha padding-top 0 (i loghi stanno
       attaccati alla griglia), il respiro lo dà l'header. */
    padding-top: 100px;
}

.services-badge {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    margin-bottom: 24px;
}

.services-badge .badge-text {
    color: white;
    font-size: 13px;
    font-weight: 400;
}

.services-main-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: 20px;
}

.services-main-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-image img {
    width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-content {
    padding: 20px 0;
}

.service-category-badge {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 24px;
}

.service-content-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: 16px;
}

.service-content-description {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
}

.service-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.service-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 18px;
    color: white;
    font-size: 13px;
    font-weight: 400;
}

/* Strategy Card */
.service-visual {
    width: 100%;
    /*display: flex;*/
    justify-content: center;
    align-items: center;
}

.strategy-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    /*max-width: 500px;*/
}

.strategy-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.strategy-step {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px 10px;
    color: white;
    font-size: 10px;
    font-weight: 500;
}

.strategy-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.strategy-description {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.strategy-visualization {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(34, 34, 34, 1);
    border-radius: 10px;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.radar-container {
    position: relative;
    width: 129px;
    height: 129px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.radar-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.radar-big {
    width: 129px;
    height: 129px;
}

.radar-medium {
    width: 90px;
    height: 90px;
}

.radar-small {
    width: 52px;
    height: 52px;
}

.radar-scan {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 129px;
    height: 129px;
    border-radius: 50%;
    background: conic-gradient(
        rgba(153, 238, 255, 0) 0deg,
        rgba(129, 74, 200, 0.2) 15deg,
        rgba(129, 74, 200, 0.6) 30deg,
        rgba(153, 238, 255, 0) 45deg
    );
    animation: radar-spin 3s linear infinite;
}

@keyframes radar-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.radar-label {
    font-size: 10px;
    color: white;
    font-weight: 500;
    text-align: center;
}

.check-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(34, 34, 34, 1);
    border-radius: 5px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 500;
}

.check-item svg {
    flex-shrink: 0;
}

.check-item.check-active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Responsive */
@media (max-width: 1199px) {
    .services-main-title {
        font-size: 42px;
    }

    .service-content-title {
        font-size: 32px;
    }

    .service-row {
        gap: 40px;
    }
}

@media (max-width: 809px) {
    .services-section {
        padding: 60px 0;
    }

    .services-header {
        margin-bottom: 50px;
    }

    .services-main-title {
        font-size: 36px;
    }

    .service-content-title {
        font-size: 28px;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-row-inverted {
        direction: ltr;
    }

    .strategy-grid {
        grid-template-columns: 1fr;
    }

    .radar-container {
        width: 150px;
        height: 150px;
    }

    .radar-big {
        width: 150px;
        height: 150px;
    }

    .radar-medium {
        width: 105px;
        height: 105px;
    }

    .radar-small {
        width: 60px;
        height: 60px;
    }

    .radar-scan {
        width: 150px;
        height: 150px;
    }
}
/* ============================================
   GRIGLIA DECORATIVA IN TESTA ALLE SEZIONI
   PNG trasparente 1920x229 (linee tenui + bagliore
   centrale), ripetuto in orizzontale e ancorato in alto.
   Applicare alle <section> della homepage.
   ============================================ */
.section-top-lines {
    position: relative;
    background-color: hsl(var(--background));
    /* Griglia di PUNTINI in testa alla sezione (dot sui nodi della vecchia
       griglia, con le stesse dissolvenze e bagliore dell'originale). */
    background-image: url(img/section_top_grid.png);
    background-repeat: repeat-x;
    background-position: center top;
    background-size: contain;
}

/* Linea di separazione sfumata SOPRA la griglia: bordo superiore della
   sezione che svanisce ai lati (via pseudo-elemento: niente div da
   aggiungere a mano in ogni sezione). */
.section-top-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
}

/* Variante SENZA linea sfumata in cima (es. la sezione che parte col
   carosello loghi): griglia sì, bordo sfumato no. */
.section-top-lines.no-top-line::before {
    content: none;
}

/* Banda decorativa a FONDO pagina: la stessa griglia RIBALTATA
   verticalmente (bagliore in basso), ancorata in basso, con la linea
   sfumata da 1px al bordo INFERIORE (prima del footer). */
.section-bottom-lines {
    position: relative;
    height: 130px;
    background-color: hsl(var(--background));
    background-image: url(img/section_bottom_grid.png);
    background-repeat: repeat-x;
    background-position: center bottom;
    background-size: contain;
}

.section-bottom-lines::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
}
