/**
 * Lorzeni Theme Main Stylesheet
 * 
 * Target: Dark-first, premium developer feeling, glassmorphism, neon accents
 */

/* ==========================================================================
   1. DESIGN TOKENS & ROOT VARIABLES
   ========================================================================== */
:root,
.editor-styles-wrapper {
    /* Colors */
    --bg-color: #06080d;
    --bg-secondary: #0b0f19;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    --color-primary: #00f0ff;
    /* Electric Cyan */
    --color-secondary: #bc62ff;
    /* Bright Violet */
    --color-tertiary: #0df2c9;
    /* Mint */
    --color-success: #10b981;
    --color-error: #ef4444;

    /* Card & Glassmorphism */
    --card-bg: rgba(11, 15, 25, 0.7);
    --card-bg-hover: rgba(18, 25, 42, 0.85);
    --glass-bg: rgba(6, 8, 13, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 240, 255, 0.4);

    /* Typography — Unbounded (display) + DM Sans (corpo) */
    --font-heading: "Unbounded", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows & Special */
    --neon-glow: 0 0 25px rgba(0, 240, 255, 0.2);
    --neon-glow-strong: 0 0 35px rgba(0, 240, 255, 0.4);
    --neon-purple-glow: 0 0 25px rgba(188, 98, 255, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Container sizes */
    --container-width: 1200px;
    --container-narrow: 800px;
}

/* Fix per evitare il problema 'nero su nero' o scritte invisibili all'interno dell'editor Gutenberg FSE */
.editor-styles-wrapper {
    background-color: #06080d !important;
    color: #f1f5f9 !important;
}

.editor-styles-wrapper p,
.editor-styles-wrapper li,
.editor-styles-wrapper blockquote,
.editor-styles-wrapper span,
.editor-styles-wrapper div {
    color: #cbd5e1;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
    color: #ffffff !important;
}


/* ==========================================================================
   2. GLOBAL RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(188, 98, 255, 0.02) 0%, transparent 40%),
        linear-gradient(to right, rgba(255, 255, 255, 0.007) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
    box-shadow: var(--neon-glow);
}

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: var(--bg-color);
}

/* Headings — Unbounded: impatta, respira, rompe lo schermo */
h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h4 {
    font-size: 1.35rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-tertiary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 1.25rem;
}

.mt-30 {
    margin-top: 1.875rem;
}

.mt-40 {
    margin-top: 2.5rem;
}

.mt-60 {
    margin-top: 3.75rem;
}

.mb-20 {
    margin-bottom: 1.25rem;
}

.mb-30 {
    margin-bottom: 1.875rem;
}

.mb-40 {
    margin-bottom: 2.5rem;
}

/* Screen Reader Utility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background-color: var(--bg-secondary);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    top: 10px;
    left: 10px;
    padding: 15px 30px;
    position: absolute;
    z-index: 100000;
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
}

/* ==========================================================================
   3. SYSTEM STYLING & BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.85rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #00b8ff 100%);
    color: var(--bg-color);
    border: none;
    box-shadow: 0 4px 14px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow-strong);
    color: var(--bg-color);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    box-shadow: var(--neon-glow);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   4. NAVIGATION HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.site-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}


.site-branding .site-title-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.logo-accent {
    color: var(--color-primary);
    font-weight: 600;
}

/* Navigation Links */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-menu a:hover,
.nav-menu .current-menu-item>a {
    color: var(--color-primary);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item>a::after {
    width: 100%;
}

/* Hamburger mobile button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-bar {
    width: 30px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Hamburger active transformation */
.menu-toggle[aria-expanded="true"] .hamburger-bar:first-child {
    transform: rotate(45deg);
    background-color: var(--color-primary);
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:last-child {
    transform: rotate(-45deg);
    background-color: var(--color-primary);
}

/* ==========================================================================
   5. HERO ARCHITECTURE
   ========================================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: calc(95vh - 80px);
}

/* Background grid canvas */
.hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#hero-particles {
    width: 100%;
    height: 100%;
    display: block;
}

/* Backlit glowing background accents */
.hero-glow-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(188, 98, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 57% 43%;
    gap: 3rem;
    align-items: center;
}

.hero-content-side {
    position: relative;
    z-index: 3;
}

.hero-image-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--color-primary);
    padding: 0.45rem 1.1rem;
    border-radius: 99px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 12px #10b981;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

.hero-eyebrow {
    display: block;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 0.35rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4.5vw, 3.8rem) !important;
}

.hero-title-sub {
    color: #ffffff;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 15%, var(--color-primary) 50%, var(--color-secondary) 85%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 6s linear infinite;
}

@keyframes textShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.text-accent {
    color: var(--color-primary);
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.35);
}

/* Console tag typing area */
.tech-console {
    background: rgba(10, 15, 25, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--color-primary);
    border-radius: 4px;
    padding: 0.65rem 1rem;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: monospace;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
}

.console-prompt {
    color: var(--color-tertiary);
    font-weight: bold;
}

.console-text {
    color: #ffffff;
}

.console-cursor {
    color: var(--color-primary);
    font-weight: bold;
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 680px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Stylized Hero Photo Layout */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 390px;
    border-radius: 20px;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, rgba(15, 20, 32, 0.8) 0%, rgba(7, 9, 16, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 20px 45px rgba(0, 0, 0, 0.6);
    padding: 10px;
    transition: var(--transition-smooth);
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    z-index: -1;
    opacity: 0.15;
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.15), 0 20px 50px rgba(0, 0, 0, 0.7);
}

.hero-image-wrapper:hover::after {
    opacity: 0.5;
}

.hero-avatar-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #0b0f19;
}

.hero-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover .hero-avatar-img {
    transform: scale(1.03);
}

/* Cyber placeholder icon/branding */
.cyber-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.cyber-placeholder svg {
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.4));
    animation: floating-svg 4s ease-in-out infinite;
}

.cyber-placeholder-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cyber-placeholder-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    max-width: 250px;
    line-height: 1.4;
}

@keyframes floating-svg {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Floating UI Badges */
.floating-badge {
    position: absolute;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    z-index: 5;
    animation: floating-badge-gentle 6s ease-in-out infinite;
}

.floating-badge-1 {
    top: 15%;
    left: -25px;
    animation-delay: 0s;
}

.floating-badge-2 {
    bottom: 12%;
    right: -25px;
    animation-delay: 1.8s;
}

.badge-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(0, 240, 255, 0.15);
}

.floating-badge-2 .badge-icon-wrapper {
    background: rgba(188, 98, 255, 0.1);
    color: var(--color-secondary);
    border-color: rgba(188, 98, 255, 0.15);
}

.badge-info {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.badge-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
}

@keyframes floating-badge-gentle {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-7px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* ==========================================================================
   6. SERVICES & PRODUCTS GIRD
   ========================================================================== */
.section-subtitle {
    display: block;
    color: var(--color-primary);
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    /* Unbounded a questa larghezza è già molto impegnativo, clamp conservativo */
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.section-desc {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.services-grid-5 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 1024px) {
    .services-grid-5 {
        grid-template-columns: repeat(6, 1fr);
    }

    .services-grid-5>.service-card {
        grid-column: span 2;
    }

    .services-grid-5>.service-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .services-grid-5>.service-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .services-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid-5>.service-card {
        grid-column: span 1;
    }

    .services-grid-5>.service-card:nth-child(5) {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
        width: 100%;
    }
}

/* Glassmorphism card */
.service-card {
    background: linear-gradient(135deg, rgba(15, 20, 32, 0.75) 0%, rgba(22, 30, 48, 0.45) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Service Click cover link */
.service-link-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, rgba(188, 98, 255, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

/* Top accent color line that lights on hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: var(--neon-glow), 0 15px 35px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.05);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.service-card:hover .service-icon {
    color: var(--color-tertiary);
    background: rgba(0, 240, 255, 0.12);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    border-color: rgba(0, 240, 255, 0.3);
}

.service-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.service-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.service-features li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--color-primary);
    font-weight: bold;
}

.service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card:hover .service-card-cta {
    color: var(--color-tertiary);
}

.service-card-cta svg {
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-cta svg {
    transform: translateX(4px);
}

/* ==========================================================================
   6.5 PORTFOLIO & PROJECTS SECTION
   ========================================================================== */
.portfolio-section {
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.8) 0%, rgba(7, 9, 16, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tech-glow-icon {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.3;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
}

.portfolio-card:hover .tech-glow-icon {
    opacity: 0.8;
    color: var(--color-tertiary);
    filter: drop-shadow(0 0 15px rgba(13, 242, 201, 0.6));
    transform: scale(1.08);
}

.portfolio-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.portfolio-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.portfolio-card-title,
.portfolio-card .wp-block-post-title,
.portfolio-card .wp-block-post-title a {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 0.85rem;
    font-family: var(--font-heading) !important;
    letter-spacing: -0.02em !important;
}

.portfolio-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.portfolio-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .tech-tag {
    border-color: rgba(0, 240, 255, 0.2);
    color: #ffffff;
}

.portfolio-more-link {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-primary);
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-more-link svg {
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-more-link {
    color: var(--color-tertiary);
}

.portfolio-card:hover .portfolio-more-link svg {
    transform: translateX(4px);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), var(--neon-glow);
}

.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.portfolio-card:hover::after {
    opacity: 1;
}

/* No results / empty state placeholder */
.no-results-box {
    background: linear-gradient(135deg, rgba(15, 20, 32, 0.7) 0%, rgba(22, 30, 48, 0.4) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 3.5rem 2rem;
    text-align: center;
    max-width: 650px;
    margin: 3rem auto 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.no-results-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    z-index: 1;
}

.no-results-text {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: -0.01em;
    font-weight: 600;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.25));
}

/* ==========================================================================
   7. ABOUT ME ("CHI SONO") & SKILLS
   ========================================================================== */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-meta {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-number {
    font-size: 2.5rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.meta-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.skills-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.skills-category {
    margin-bottom: 1.85rem;
}

.skills-category h4 {
    font-size: 0.95rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* Capsule badges with hover glow */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding: 0.4rem 0.95rem;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.skill-badge:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
}

/* ==========================================================================
   8. BLOG GRIDS
   ========================================================================== */
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.post-card-image-link {
    display: block;
    overflow: hidden;
}

.post-card-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #141a29;
    overflow: hidden;
}

.post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-card-img {
    transform: scale(1.05);
}

.post-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.post-card-content {
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.post-card-category {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card-divider {
    color: rgba(255, 255, 255, 0.1);
}

.post-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-card-title a {
    color: #ffffff;
}

.post-card-title a:hover {
    color: var(--color-primary);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
    margin-top: auto;
}

.post-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-card-more {
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-primary);
}

.post-card-more svg {
    transition: transform 0.3s ease;
}

.post-card-more:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   9. CONTACT PANEL & FORMS
   ========================================================================== */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 42% 58%;
}

.contact-info-panel {
    background: linear-gradient(145deg, #0e1322 0%, #151d33 100%);
    padding: 4rem 3.5rem;
    border-right: 1px solid var(--border-color);
}

.contact-headline {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.85rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.detail-icon {
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.06);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
}

.contact-form-panel {
    padding: 4rem 3.5rem;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.placeholder-tip {
    font-size: 0.85rem;
    color: var(--color-tertiary);
    background: rgba(13, 242, 201, 0.05);
    border: 1px solid rgba(13, 242, 201, 0.15);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* Inputs styling */
.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

label {
    display: block;
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    background: rgba(10, 15, 25, 0.8);
}

.form-control:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================================================
   10. STATIC & SINGLE POST TEMPLATES
   ========================================================================== */
.singular-page,
.singular-post {
    padding: 4rem 0;
}

.entry-header {
    margin-bottom: 4rem;
}

.entry-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.entry-category {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
}

.entry-meta-divider {
    color: rgba(255, 255, 255, 0.1);
}

.entry-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
}

.entry-meta-date {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.entry-thumbnail {
    margin-top: 3.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.featured-image {
    width: 100%;
    object-fit: cover;
    max-height: 550px;
}

/* Article content layout */
.entry-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.entry-content p {
    margin-bottom: 1.85rem;
    color: var(--text-secondary);
}

.entry-content h2 {
    font-size: 1.85rem;
    margin: 3.5rem 0 1.25rem 0;
}

.entry-content h3 {
    font-size: 1.45rem;
    margin: 2.5rem 0 1rem 0;
}

.entry-content blockquote {
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: rgba(0, 240, 255, 0.03);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.entry-content blockquote p {
    margin-bottom: 0;
    color: #ffffff;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.85rem 1.5rem;
    color: var(--text-secondary);
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Entry footer & pagination */
.entry-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 4rem;
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.entry-tags a {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.entry-tags a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.post-navigation {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2.5rem;
}

.nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.nav-previous,
.nav-next {
    display: flex;
    flex-direction: column;
}

.nav-next {
    text-align: right;
}

.nav-indicator {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05rem;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: var(--color-primary);
}

/* ==========================================================================
   11. CUSTOM PRODUCTS GRID TEMPLATE (page-prodotti.php)
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--neon-glow), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.product-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.product-badge.text-accent-badge {
    color: var(--color-tertiary);
    background: rgba(13, 242, 201, 0.06);
    border-color: rgba(13, 242, 201, 0.15);
}

.product-badge.text-secondary-badge {
    color: var(--color-secondary);
    background: rgba(168, 85, 247, 0.06);
    border-color: rgba(168, 85, 247, 0.15);
}

.product-icon {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.02);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.product-card:hover .product-icon {
    color: var(--bg-color);
    background: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
    border-color: var(--color-primary);
}

.product-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
}

.spec-tag {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-radius: 4px;
}

/* ==========================================================================
   12. COMMENTS ARCHITECTURE (comments.php)
   ========================================================================== */
.comments-area {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 4rem;
    margin-top: 4rem;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.comment-list {
    list-style: none;
    margin-bottom: 4rem;
}

.comment-list .comment-body {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.comment-meta img.avatar {
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.comment-author .fn {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #ffffff;
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.comment-reply {
    text-align: right;
}

.comment-reply a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    color: #ffffff;
}

.comment-reply a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

/* Replies indenting */
.comment-list .children {
    list-style: none;
    margin-left: 3rem;
}

/* Form comments */
.comment-respond {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   13. SEARCH UTILS & PAGINATION
   ========================================================================== */
.search-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.search-form-label {
    flex-grow: 1;
}

.search-form .search-submit {
    padding: 0.75rem 1.25rem;
}

.navigation.pagination {
    margin-top: 4rem;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
    grid-template-columns: none;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: #ffffff;
    font-weight: 600;
    font-family: var(--font-heading);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    border-color: var(--color-primary);
    background: rgba(0, 240, 255, 0.05);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

/* No posts fallback block */
.no-posts-found {
    grid-column: 1 / -1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   14. 404 ERROR PAGE
   ========================================================================== */
.error-page-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(80vh - 80px);
}

.error-404-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   15. FOOTER STYLING
   ========================================================================== */
.site-footer {
    background: #070910;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 3rem 0;
    margin-top: 6rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 45% 25% 30%;
    gap: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 320px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-site-link {
    color: var(--text-secondary);
}

.footer-widget-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-menu-list a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-menu-list a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-tech-info .tech-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   16. INTERSECTION OBSERVER ANIMATIONS (REVEAL ON SCROLL)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   17. RESPONSIVE MOBILE-FIRST ADAPTATIONS
   ========================================================================== */
@media (max-width: 1024px) {

    .services-grid,
    .products-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-tech-info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }

    .hero-content-side {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-side {
        order: -1;
        /* Show tech photo first on tablets/mobile */
        margin-bottom: 1rem;
    }

    .floating-badge {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

    /* Mobile Nav Toggle showing */
    .menu-toggle {
        display: flex;
    }

    .primary-menu-wrapper {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 80px);
        background: var(--bg-color);
        backdrop-filter: blur(15px);
        z-index: 999;
        padding: 3rem 2rem;
        border-top: 1px solid var(--border-color);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
    }

    .primary-menu-wrapper.active {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .nav-menu a {
        font-size: 1.35rem;
    }

    .grid-2col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 3rem 2rem;
    }

    .contact-form-panel {
        padding: 3rem 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .services-grid,
    .blog-grid,
    .products-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-meta {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .nav-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Esercizio: Scatola Citazione Cyber */
.cyber-quote-box {
    background: rgba(10, 15, 25, 0.7);
    /* Sfondo scuro semi-trasparente */
    border: 1px dashed var(--color-primary);
    /* Bordo tratteggiato viola */
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s ease;
    /* Transizione fluida per l'animazione */
    margin: 2rem 0;
}

/* Quando passi il mouse sopra il box... */
.cyber-quote-box:hover {
    border-style: solid;
    /* Il bordo diventa continuo */
    border-color: var(--color-secondary);
    /* Il colore passa a Cyan */
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
    /* Crea un bagliore neon attorno al box */
    transform: translateY(-5px);
    /* Solleva leggermente il box */
}

/* Stili per il Pattern Esperienze e Timeline */
.experiences-timeline-section {
    margin: 3rem 0;
}

.timeline-container {
    position: relative;
    border-left: 2px solid rgba(188, 98, 255, 0.2);
    /* Riga della timeline */
    padding-left: 2rem;
    margin-left: 0.5rem;
    margin-top: 3rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    background: rgba(15, 22, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 2.2rem;
    left: -2.6rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    border: 3px solid #06080d;
}

.timeline-role {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.timeline-meta {
    font-family: var(--wp--preset--font-family--mono);
    color: var(--color-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   11. SECTIONS STYLE FOR LANDING PAGE SEO AUTOMATICO
   ========================================================================== */

/* Hero Section Animazione Fade-in */
.hero-fade-in {
    animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sfondo speciale Hero SEO */
.hero-section-seo {
    position: relative;
    overflow: hidden;
}

/* Numeri Giganti per Risultati Reali */
.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 900;
    color: var(--color-tertiary);
    display: block;
    line-height: 1;
    letter-spacing: -0.05em;
    text-shadow: 0 0 25px rgba(13, 242, 201, 0.25);
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.stat-card:hover .stat-number {
    transform: scale(1.05);
    color: var(--color-primary);
    text-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
}

.stat-card {
    background: rgba(15, 20, 32, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: rgba(13, 242, 201, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Compare list reset */
.compare-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.compare-list li {
    margin-bottom: 1rem !important;
    font-size: 1.05rem;
    line-height: 1.5;
    position: relative;
    padding-left: 0 !important;
}

/* Pipeline automatizzata */
.pipeline-step-card {
    background: rgba(15, 20, 32, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pipeline-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    opacity: 0;
    transition: var(--transition-smooth);
}

.pipeline-step-card:hover {
    transform: translateY(-8px);
    border-color: rgba(188, 98, 255, 0.35);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), var(--neon-purple-glow);
}

.pipeline-step-card:hover::before {
    opacity: 1;
}

.pipeline-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pipeline-title {
    font-size: 1.25rem;
    font-weight: 750;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

/* Prezzi & Box */
.price-box {
    background: rgba(15, 22, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.price-box-featured {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.025);
}

.price-box:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), var(--neon-glow);
}

.price-box-featured:hover {
    border-color: #10b981;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.3);
}

.price-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-value {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 400;
}

.price-features-list,
.add-on-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.price-features-list li,
.add-on-list li {
    margin-bottom: 0.85rem !important;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem !important;
}

.price-features-list li::before,
.add-on-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.price-box-featured .price-features-list li::before {
    color: #10b981;
}

/* Tabella di Confronto */
.comparison-table table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: rgba(10, 15, 25, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.95rem;
}

.comparison-table th {
    background: rgba(15, 22, 42, 0.8);
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr.highlighted-row {
    background: rgba(13, 242, 201, 0.05);
}

.comparison-table tr.highlighted-row td {
    border-bottom-color: rgba(13, 242, 201, 0.15) !important;
}

.comparison-table tr:hover:not(.highlighted-row) td {
    background: rgba(255, 255, 255, 0.02);
}

/* Accordion FAQ */
.faq-accordion details {
    background: rgba(15, 20, 32, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.25rem;
    transition: var(--transition-smooth);
}

.faq-accordion details[open] {
    border-color: var(--color-primary);
    box-shadow: var(--neon-glow);
}

.faq-accordion summary {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    outline: none;
    user-select: none;
    letter-spacing: -0.01em;
}

.faq-accordion summary:hover {
    color: var(--color-primary);
}

.faq-accordion details p {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Griglie interne di posizionamento */
@media (min-width: 768px) {
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem !important;
    }

    .pricing-grid {
        display: flex !important;
        gap: 2rem !important;
    }
}

@media (max-width: 767px) {

    .stats-grid,
    .pricing-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .price-box {
        width: 100% !important;
        flex-basis: auto !important;
        padding: 2rem !important;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-table table {
        min-width: 600px;
    }

    .faq-accordion details {
        padding: 1rem 1.25rem;
    }

    .faq-accordion summary {
        font-size: 1rem;
    }
}