/* ============================================
   WP DESIGN PRO - COMPLETE STYLESHEET
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --color-bg: #0a0a0a;
    --color-bg-alt: #111111;
    --color-bg-card: #1a1a1a;
    --color-text: #ffffff;
    --color-text-muted: rgba(255,255,255,0.6);
    --color-accent: #6366f1;
    --color-secondary: #8b5cf6;
    --color-tertiary: #ec4899;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --cursor-size: 20px;
    --section-padding: clamp(2rem, 8vw, 6rem);
    --container-max: 1400px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    font-size: 16px;
}

@media (max-width: 768px) {
    html { font-size: 14px; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
@media (pointer: fine) {
    body { cursor: none; }
    .cursor, .cursor-dot { display: block; }
}

@media (pointer: coarse) {
    body { cursor: auto; }
    .cursor, .cursor-dot { display: none !important; }
}

.cursor {
    position: fixed;
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    border-color: var(--color-secondary);
    background: rgba(99, 102, 241, 0.1);
}

.cursor.view {
    width: 80px;
    height: 80px;
    background: var(--color-accent);
    border-color: var(--color-accent);
    mix-blend-mode: normal;
}

.cursor.view::after {
    content: 'VIEW';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: white;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* ============================================
   WEBGL BACKGROUND
   ============================================ */
#webgl-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem var(--section-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    mix-blend-mode: normal;
}

.nav-landing {
    mix-blend-mode: normal;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
}

.logo {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: white;
    text-decoration: none;
    z-index: 101;
}

.nav-menu {
    display: flex;
    gap: clamp(2rem, 4vw, 3rem);
    list-style: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-menu.active { transform: translateX(0); }
    .nav-menu a { font-size: 1.5rem; }
}

/* ============================================
   SECTIONS BASE
   ============================================ */
section {
    position: relative;
    width: 100%;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-padding);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding);
    padding-top: 100px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    opacity: 0.7;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-inner {
    display: block;
    transform: translateY(100%);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.8;
    font-weight: 300;
    line-height: 1.7;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 600;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* ============================================
   WORKS SECTION
   ============================================ */
.works {
    padding: var(--section-padding) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-number {
    font-size: 0.875rem;
    opacity: 0.5;
    font-weight: 300;
    font-family: monospace;
}

/* ============================================
   PROJECTS GRID
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    background: var(--color-bg-alt);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: block;
}

.project-card:hover { transform: translateY(-10px); }

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.project-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-visual svg {
    width: 80%;
    height: auto;
    max-height: 60%;
}

.project-card.ecommerce  { background: var(--gradient-1); }
.project-card.brand      { background: var(--gradient-2); }
.project-card.mobile     { background: var(--gradient-3); }
.project-card.corporate  { background: var(--gradient-4); }

.project-info { position: relative; z-index: 3; }

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.project-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 4px 12px rgba(0,0,0,0.4);
}

/* Project cards — mobile orizzontali */
@media (max-width: 640px) {
    .project-card {
        aspect-ratio: auto;
        min-height: 100px;
    }

    .project-card-inner {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .project-visual {
        flex: 0 0 60px;
        height: 60px;
    }

    .project-visual svg {
        width: 100%;
        height: 100%;
        max-height: 50px;
    }

    .project-info { flex: 1; }
    .project-title { font-size: 1.1rem; }
    .project-category { font-size: 0.7rem; }
}

/* ============================================
   SVG ANIMATIONS
   ============================================ */
.code-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLine 2s ease forwards;
}

@keyframes drawLine { to { stroke-dashoffset: 0; } }

.typing-cursor { animation: blink 1s infinite; }

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.float-element { animation: float 3s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.rotate-slow { animation: rotateSlow 8s linear infinite; }

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pulse { animation: pulse 2s ease-in-out infinite; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--section-padding) 0;
    background: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.service-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.service-card.web-design       { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.service-card.brand-strategy   { background: linear-gradient(135deg, #2e1a1a 0%, #3e1616 100%); }
.service-card.development      { background: linear-gradient(135deg, #1a2e1a 0%, #163e16 100%); }
.service-card.digital-marketing { background: linear-gradient(135deg, #2e1a2e 0%, #3e163e 100%); }

.service-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-large {
    background: var(--color-accent);
    transform: scale(1.1) rotate(5deg);
}

.service-icon-large svg {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    transition: color 0.3s ease;
}

.service-card:hover .service-icon-large svg { color: white; }

.service-title-card {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 4px 12px rgba(0,0,0,0.4);
}

.service-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.7;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Service cards — mobile orizzontali */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        aspect-ratio: auto;
        min-height: 80px;
    }

    .service-card-inner {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .service-icon-large {
        width: 50px;
        height: 50px;
        min-width: 50px;
        border-radius: 12px;
        margin-bottom: 0 !important;
    }

    .service-icon-large svg {
        width: 24px;
        height: 24px;
    }

    .service-card-inner > div:last-child {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .service-title-card {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .service-category { font-size: 0.7rem; }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-alt);
}

.section-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    line-height: 1.7;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem 1.25rem;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.3); }

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.form-checkbox a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.form-checkbox a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.form-submit {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
}

.form-submit .btn {
    min-width: 220px;
    justify-content: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .form-group.full-width { grid-column: 1; }
    .form-submit { justify-content: stretch; }
    .form-submit .btn { width: 100%; min-width: auto; }
}

@media (max-width: 480px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Previene zoom su iOS */
    }

    .form-checkbox { align-items: flex-start; }
    .form-checkbox input[type="checkbox"] { margin-top: 2px; }
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
}

.pricing-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--color-bg-card);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
    position: relative;
}

.pricing-toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.pricing-toggle-label.active { color: white; }

.pricing-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--color-accent);
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.pricing-toggle.yearly .pricing-toggle-slider { transform: translateX(100%); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.pricing-card.popular {
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(180deg, var(--color-bg-card) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.pricing-card.popular::before {
    content: 'POPOLARE';
    position: absolute;
    top: 0;
    right: 2rem;
    background: var(--color-accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 0 0 12px 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.pricing-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.pricing-card.popular .pricing-icon {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.pricing-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    letter-spacing: -0.01em;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    line-height: 1;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.pricing-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    min-height: 45px;
}

.pricing-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    text-transform: none;
    letter-spacing: 0;
    font-family: inherit;
}

.pricing-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.pricing-card.popular .pricing-btn {
    background: white;
    color: var(--color-bg);
    border-color: white;
    font-weight: 700;
}

.pricing-card.popular .pricing-btn:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.pricing-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
    position: relative;
}

.pricing-divider::before {
    content: 'INCLUSO NEL PIANO';
    position: absolute;
    top: -10px;
    left: 0;
    background: var(--color-bg-card);
    padding-right: 1rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.pricing-content { display: none; }
.pricing-content.active { display: block; }

.pricing-note {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        gap: 2rem;
    }

    .pricing-card { padding: 2rem; }
    .pricing-card.popular { order: -1; }
}

@media (max-width: 480px) {
    .pricing-card { padding: 1.75rem; }
    .pricing-price { font-size: 2.75rem; }

    .pricing-toggle {
        width: 100%;
        max-width: 300px;
    }

    .pricing-toggle-label {
        flex: 1;
        text-align: center;
        padding: 0.6rem 1rem;
    }

    .pricing-features li { font-size: 0.85rem; }
}

/* ============================================
   TOOLTIP
   ============================================ */
.tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    flex-shrink: 0;
}

.tooltip-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.tooltip-icon:hover,
.tooltip-icon:focus,
.tooltip-icon.active {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(99, 102, 241, 0.1);
    outline: none;
}

.tooltip-text {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #1e1e2e;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    width: 220px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(99, 102, 241, 0.3);
}

@media (hover: hover) {
    .tooltip-wrap:hover .tooltip-text {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.tooltip-text.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.pricing-card:first-child .tooltip-text {
    left: 0;
    transform: translateX(0) translateY(6px);
}

.pricing-card:first-child .tooltip-text.visible,
.pricing-card:first-child .tooltip-wrap:hover .tooltip-text {
    transform: translateX(0) translateY(0);
}

.pricing-card:first-child .tooltip-text::after { left: 20px; }

.pricing-card:last-child .tooltip-text {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(6px);
}

.pricing-card:last-child .tooltip-text.visible,
.pricing-card:last-child .tooltip-wrap:hover .tooltip-text {
    transform: translateX(0) translateY(0);
}

.pricing-card:last-child .tooltip-text::after {
    left: auto;
    right: 20px;
}

@media (max-width: 480px) {
    .tooltip-text {
        width: 180px;
        font-size: 0.75rem;
    }
}


/* ============================================
   TRUSTPILOT SECTION
   ============================================ */
.tp-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-alt);
}

.tp-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.tp-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.tp-desc {
    font-size: 1rem;
    line-height: 1.75;
    opacity: 0.65;
    margin-bottom: 2rem;
    max-width: 400px;
}

.tp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.tp-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tp-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.tp-card:hover {
    border-color: rgba(0,182,122,0.3);
}

.tp-card-stars {
    margin-bottom: 0.75rem;
}

.tp-card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.tp-card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tp-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tp-card-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.tp-card-role {
    font-size: 0.75rem;
    opacity: 0.45;
    margin-top: 0.1rem;
}

.tp-trustbadge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(0,182,122,0.06);
    border: 1px solid rgba(0,182,122,0.2);
    border-radius: 12px;
}

.tp-trustbadge-label {
    font-size: 0.7rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tp-trustbadge-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.tp-trustbadge-link {
    margin-left: auto;
    font-size: 0.8rem;
    color: #00B67A;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.tp-trustbadge-link:hover { opacity: 0.75; }

@media (max-width: 900px) {
    .tp-inner {
        grid-template-columns: 1fr;
    }
    .tp-desc { max-width: 100%; }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.faq-item.faq-open::before { transform: scaleY(1); }

.faq-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 1.5rem 1.25rem;
    cursor: pointer;
    user-select: none;
    transition: padding-left 0.3s ease;
}

.faq-header:hover { padding-left: 1.75rem; }

.faq-number {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
    min-width: 24px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-item.faq-open .faq-number { color: var(--color-accent); }

.faq-question {
    flex: 1;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    line-height: 1.5;
}

.faq-item.faq-open .faq-question { color: #ffffff; }

.faq-icon {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    font-weight: 300;
}

.faq-item.faq-open .faq-icon {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: rotate(45deg);
    background: rgba(99, 102, 241, 0.1);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
    padding: 0 1.25rem 1.5rem 3.5rem;
    font-size: 0.925rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
    .faq-header {
        gap: 14px;
        padding: 1.25rem 1rem;
    }
    .faq-answer {
        padding: 0 1rem 1.25rem 2.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .faq-answer { padding: 0 0.75rem 1.25rem 2.25rem; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--section-padding) 0 2rem;
    background: var(--color-bg);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.footer-brand p {
    opacity: 0.7;
    line-height: 1.7;
    max-width: 300px;
    font-size: 0.9375rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 600;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}


/* ── Footer Trustpilot ── */
.footer-trustpilot {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem 0;
}

.footer-tp-link {
    display: inline-flex;
    text-decoration: none;
    color: inherit;
}

.footer-tp-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-tp-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-tp-label {
    font-size: 0.75rem;
    opacity: 0.45;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.footer-tp-logo { opacity: 0.9; }

.footer-tp-stars { display: flex; align-items: center; }

.footer-tp-cta {
    font-size: 0.8rem;
    color: #00B67A;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.footer-tp-link:hover .footer-tp-cta { opacity: 0.75; }

@media (max-width: 480px) {
    .footer-tp-inner { gap: 0.75rem; }
    .footer-tp-cta { display: none; }
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.6;
}

.footer-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    opacity: 0.6;
}

.footer-meta a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-meta a:hover { opacity: 1; }

@media (max-width: 640px) {
    .footer-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================
   LANDING PAGES
   ============================================ */
.landing-page-body { background: var(--color-bg); }
.landing-hero { position: relative; }

.landing-hero.ecommerce       { background: var(--gradient-1); }
.landing-hero.brand           { background: var(--gradient-2); }
.landing-hero.mobile          { background: var(--gradient-3); }
.landing-hero.corporate       { background: var(--gradient-4); }
.landing-hero.web-design      { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.landing-hero.brand-strategy  { background: linear-gradient(135deg, #2e1a1a 0%, #3e1616 100%); }
.landing-hero.development     { background: linear-gradient(135deg, #1a2e1a 0%, #163e16 100%); }
.landing-hero.digital-marketing { background: linear-gradient(135deg, #2e1a2e 0%, #3e163e 100%); }

.landing-content { padding: var(--section-padding) 0; }

/* ============================================
   ALTERNATE SECTIONS
   ============================================ */
.alternate-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

@media (max-width: 968px) {
    .alternate-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .alternate-section { gap: 1.5rem; }
}

.alternate-section.reverse { direction: rtl; }
.alternate-section.reverse > * { direction: ltr; }

.alternate-image {
    aspect-ratio: 16/10;
    background: var(--color-bg-card);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease;
}

.alternate-image:hover { transform: scale(1.02); }

@media (max-width: 768px) {
    .alternate-image { aspect-ratio: 4/3; }
}

.alternate-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.alternate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alternate-content h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.alternate-content p {
    font-size: 1.125rem;
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ============================================
   POPUP GALLERY
   ============================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
    width: min(80vh, calc(100vw - 200px));
    aspect-ratio: 1/1;
    background: var(--color-bg-card);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.popup-overlay.active .popup-content { transform: scale(1); }

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.popup-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2010;
}

.popup-close:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: rotate(90deg);
}

.popup-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2010;
}

.popup-nav:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.popup-nav.prev { left: 20px; }
.popup-nav.next { right: 20px; }

.popup-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2010;
}

@media (max-width: 768px) {
    .popup-content {
        width: calc(100vw - 120px);
    }
    .popup-nav { width: 44px; height: 44px; }
    .popup-nav.prev { left: 10px; }
    .popup-nav.next { right: 10px; }
}

//* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.popup-trigger { cursor: pointer; }

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (pointer: coarse) {
    .project-card:hover,
    .service-card:hover,
    .alternate-image:hover,
    .btn:hover {
        transform: none;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .nav, .cursor, .cursor-dot, #webgl-bg, .loader {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* ============================================
   WP DESIGN PRO — BLOG CSS
   Aggiungere in fondo a style.css
   Alto contrasto — WCAG AA compliant
   ============================================ */


/* ============================================
   VARIABILI BLOG
   ============================================ */
:root {
    --blog-card-radius: 16px;
    --blog-grid-gap: 1.5rem;
    --blog-sidebar-w: 220px;
    --article-max-w: 740px;
    --blog-text: #f0f0f0;
    --blog-text-muted: #b0b8c8;
    --blog-border: rgba(255,255,255,0.12);
    --blog-card-bg: #161616;
    --blog-pill-bg: rgba(99,102,241,0.3);
    --blog-pill-border: rgba(99,102,241,0.7);
    --blog-pill-color: #c7d2fe;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ============================================
   BLOG HERO
   ============================================ */
.blog-hero {
    padding: calc(var(--section-padding) + 80px) 0 var(--section-padding);
}

.blog-hero-inner { max-width: 700px; }

.blog-hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 1rem 0 1.5rem;
    color: #ffffff;
}

.blog-hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--blog-text-muted);
    line-height: 1.7;
}


/* ============================================
   FILTRI CATEGORIE
   ============================================ */
.blog-filters { padding-bottom: 3rem; }

.blog-filter-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.blog-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    color: #d0d8e8;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.filter-count {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.2);
    padding: 0.1em 0.5em;
    border-radius: 100px;
    color: #ffffff;
}


/* ============================================
   BADGE / PILL CATEGORIA
   ============================================ */
.blog-cat-pill {
    display: inline-block;
    padding: 0.25em 0.85em;
    background: var(--blog-pill-bg);
    border: 1px solid var(--blog-pill-border);
    color: var(--blog-pill-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.blog-cat-pill:hover {
    background: rgba(99,102,241,0.5);
    color: #ffffff;
}

.blog-cat-pill--large {
    font-size: 0.8125rem;
    padding: 0.3em 1em;
}

.blog-date {
    font-size: 0.8125rem;
    color: var(--blog-text-muted);
    font-weight: 500;
}

.blog-read-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--blog-text-muted);
    font-weight: 500;
}


/* ============================================
   ARTICOLO IN EVIDENZA
   ============================================ */
.blog-featured { margin-bottom: 3rem; }

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--blog-card-radius);
    overflow: hidden;
    background: var(--blog-card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.featured-card:hover {
    border-color: rgba(99,102,241,0.6);
    transform: translateY(-4px);
}

.featured-card-image {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    background: #111;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.featured-card:hover .featured-card-image img { transform: scale(1.04); }

.featured-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
}

.featured-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.3em 0.9em;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
}

.featured-card-body {
    padding: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.featured-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.featured-card-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #ffffff;
}

.featured-card-excerpt {
    font-size: 1rem;
    color: var(--blog-text-muted);
    line-height: 1.7;
}

.blog-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #a5b4fc;
    text-transform: uppercase;
    transition: gap 0.3s ease, color 0.2s ease;
}

.featured-card:hover .blog-read-link {
    gap: 0.85rem;
    color: #ffffff;
}

@media (max-width: 768px) {
    .featured-card { grid-template-columns: 1fr; }
    .featured-card-image { min-height: 240px; }
}


/* ============================================
   BLOG GRID
   ============================================ */
.blog-archive {
    padding-bottom: calc(var(--section-padding) * 1.5);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--blog-grid-gap);
    margin-bottom: 4rem;
}

.blog-grid--related {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .blog-grid,
    .blog-grid--related { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .blog-grid,
    .blog-grid--related { grid-template-columns: 1fr; }
}


/* ============================================
   BLOG CARD
   ============================================ */
.blog-card {
    background: var(--blog-card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--blog-card-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    border-color: rgba(99,102,241,0.5);
    transform: translateY(-6px);
}

.blog-card-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #111;
    display: block;
    flex-shrink: 0;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.blog-card:hover .blog-card-img { transform: scale(1.05); }

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover .blog-card-overlay { opacity: 1; }

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.blog-card-title {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0;
}

.blog-card-title a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover { color: #a5b4fc; }

.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--blog-text-muted);
    line-height: 1.65;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: auto;
}

.blog-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #d0d8e8;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.blog-card-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
    transform: translateX(3px);
}


/* ============================================
   PAGINAZIONE
   ============================================ */
.blog-pagination {
    display: flex;
    justify-content: center;
}

.blog-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    color: #d0d8e8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next { padding: 0.6rem 1.25rem; }

.blog-pagination .dots {
    background: none;
    border: none;
    color: var(--blog-text-muted);
}


/* ============================================
   BLOG VUOTO
   ============================================ */
.blog-empty {
    text-align: center;
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.blog-empty h3 { font-size: 1.5rem; font-weight: 700; color: #ffffff; }
.blog-empty p  { color: var(--blog-text-muted); max-width: 360px; }


/* ============================================
   ██████████████████████████████████████████
   SINGLE POST
   ██████████████████████████████████████████
   ============================================ */


/* ============================================
   BARRA PROGRESSO LETTURA
   ============================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    z-index: 9998;
    transition: width 0.1s linear;
    border-radius: 0 3px 3px 0;
}


/* ============================================
   HERO ARTICOLO
   ============================================ */
.article-hero {
    padding-top: calc(80px + var(--section-padding));
    padding-bottom: 3rem;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--blog-text-muted);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-breadcrumb a {
    color: var(--blog-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover { color: #a5b4fc; }
.article-breadcrumb svg { opacity: 0.5; flex-shrink: 0; }

.article-breadcrumb span:last-child {
    color: #e0e0e0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.article-topmeta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.article-meta-sep { color: rgba(255,255,255,0.3); }

.article-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    max-width: 900px;
    color: #ffffff;
}

.article-intro {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--blog-text-muted);
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 1.5rem;
}

.article-author-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--blog-text-muted);
}

.author-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(99,102,241,0.5);
    flex-shrink: 0;
}

.author-avatar-sm img,
.author-avatar-img { width: 100%; height: 100%; object-fit: cover; }

.article-author-mini strong { color: #f0f0f0; }

.article-featured-image {
    margin-top: 3rem;
    border-radius: 20px;
    overflow: hidden;
    max-height: 600px;
    padding: 0 var(--section-padding);
}

.article-featured-img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}


/* ============================================
   LAYOUT ARTICOLO: 3 colonne
   ============================================ */
.article-layout { padding: 3rem 0 4rem; }

.article-layout-inner {
    display: grid;
    grid-template-columns: var(--blog-sidebar-w) 1fr var(--blog-sidebar-w);
    gap: 2rem 3rem;
    align-items: start;
}

@media (max-width: 1300px) {
    .article-layout-inner {
        grid-template-columns: 60px 1fr var(--blog-sidebar-w);
    }
    :root { --blog-sidebar-w: 180px; }
}

@media (max-width: 1100px) {
    .article-layout-inner { grid-template-columns: 1fr; }
    .article-sidebar--left  { display: none; }
    .article-sidebar--right { display: none; }
}


/* ============================================
   SIDEBAR SINISTRA — Social share sticky
   ============================================ */
.article-sidebar--left {
    position: sticky;
    top: 120px;
}

.social-share-sticky {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.social-share-sticky.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.social-share-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blog-text-muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-bottom: 0.5rem;
}


/* ============================================
   SIDEBAR DESTRA — TOC sticky
   ============================================ */
.article-sidebar--right {
    position: sticky;
    top: 120px;
}

.toc-sticky {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toc-progress {
    height: 100px;
    width: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.toc-progress-bar {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--color-accent), var(--color-secondary));
    border-radius: 3px;
    transition: height 0.15s linear;
}


/* ============================================
   TOC — Indice contenuti
   ============================================ */
.toc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c0c8d8;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.toc-link {
    font-size: 0.8125rem;
    color: var(--blog-text-muted);
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.toc-link--h3 {
    padding-left: 1.25rem;
    font-size: 0.75rem;
}

.toc-link:hover {
    color: #f0f0f0;
    background: rgba(255,255,255,0.06);
}

.toc-link--active {
    color: #a5b4fc !important;
    border-left-color: var(--color-accent);
    background: rgba(99,102,241,0.1);
}

/* TOC inline mobile */
.article-toc {
    background: rgba(99,102,241,0.07);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1101px) {
    .article-toc { display: none; }
}


/* ============================================
   CONTENUTO ARTICOLO — Tipografia editoriale
   ============================================ */
.article-main { min-width: 0; }

.article-content {
    font-size: clamp(1rem, 1.5vw, 1.0625rem);
    line-height: 1.8;
    color: #e0e8f0;
    max-width: var(--article-max-w);
}

.article-content h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 2.5em 0 0.75em;
    color: #ffffff;
}

.article-content h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 2em 0 0.6em;
    color: #f5f5f5;
}

.article-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.5em 0 0.5em;
    color: #eeeeee;
}

.article-content p { margin-bottom: 1.4em; }

.article-content a {
    color: #a5b4fc;
    text-decoration: underline;
    text-decoration-color: rgba(165,180,252,0.5);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-content a:hover {
    color: #c7d2fe;
    text-decoration-color: #c7d2fe;
}

.article-content strong { color: #ffffff; font-weight: 700; }
.article-content em { font-style: italic; color: #d0d8e8; }

.article-content ul,
.article-content ol {
    margin: 1em 0 1.4em 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    color: #e0e8f0;
}

.article-content ul li::marker { color: #a5b4fc; }
.article-content ol li::marker { color: #a5b4fc; font-weight: 700; }

.article-content blockquote {
    margin: 2em 0;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--color-accent);
    background: rgba(99,102,241,0.08);
    border-radius: 0 12px 12px 0;
    font-size: 1.1em;
    font-style: italic;
    color: #d0d8e8;
    line-height: 1.7;
}

.article-content blockquote p { margin: 0; }

.article-content code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875em;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    color: #c7d2fe;
}

.article-content pre {
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.875em;
    line-height: 1.7;
}

.article-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #e0e8f0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
    display: block;
}

.article-content hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 2.5em 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9em;
}

.article-content th,
.article-content td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: left;
    color: #e0e8f0;
}

.article-content th {
    background: rgba(99,102,241,0.15);
    font-weight: 700;
    color: #ffffff;
}

.article-content tr:nth-child(even) td {
    background: rgba(255,255,255,0.03);
}

.article-content figure { margin: 2em 0; }

.article-content figcaption {
    font-size: 0.8125rem;
    color: var(--blog-text-muted);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}


/* ============================================
   TAG
   ============================================ */
.article-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--blog-text-muted);
    font-size: 0.8125rem;
    max-width: var(--article-max-w);
}

.article-tag {
    padding: 0.25em 0.85em;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    color: #c0c8d8;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-tag:hover {
    background: rgba(99,102,241,0.2);
    border-color: rgba(99,102,241,0.5);
    color: #c7d2fe;
}


/* ============================================
   SOCIAL SHARE MOBILE (inline)
   ============================================ */
.social-share-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8125rem;
    color: var(--blog-text-muted);
    max-width: var(--article-max-w);
}

@media (min-width: 1101px) {
    .social-share-inline { display: none; }
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: #c0c8d8;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-btn:hover { color: #ffffff; transform: translateY(-2px); }
.social-btn--twitter:hover  { background: #000000; border-color: #666; }
.social-btn--linkedin:hover { background: #0077b5; border-color: #0077b5; color: #ffffff; }
.social-btn--facebook:hover { background: #1877f2; border-color: #1877f2; color: #ffffff; }
.social-btn--copy:hover     { background: var(--color-accent); border-color: var(--color-accent); color: #ffffff; }


/* ============================================
   AUTORE BOX
   ============================================ */
.article-author-box {
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.author-box-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: calc(var(--article-max-w) + var(--blog-sidebar-w) + 3rem);
    margin: 0 auto;
    padding: 0 var(--section-padding);
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(99,102,241,0.5);
    flex-shrink: 0;
}

.author-avatar-img--lg { width: 100%; height: 100%; object-fit: cover; }

.author-box-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.author-box-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blog-text-muted);
}

.author-box-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.author-box-bio {
    font-size: 0.9rem;
    color: var(--blog-text-muted);
    line-height: 1.6;
    max-width: 560px;
}

@media (max-width: 480px) {
    .author-box-inner { flex-direction: column; }
}


/* ============================================
   NAVIGAZIONE PREV / NEXT
   ============================================ */
.article-prevnext { padding: 3rem 0; }

.prevnext-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .prevnext-grid { grid-template-columns: 1fr; }
}

.prevnext-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.75rem;
    background: var(--blog-card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--blog-card-radius);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.prevnext-card:not(.prevnext-card--empty):hover {
    border-color: rgba(99,102,241,0.5);
    transform: translateY(-4px);
}

.prevnext-card--empty { pointer-events: none; background: transparent; border-color: transparent; }
.prevnext-card--next  { text-align: right; }

.prevnext-direction {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a5b4fc;
}

.prevnext-card--next .prevnext-direction { justify-content: flex-end; }

.prevnext-title {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1.3;
}

.prevnext-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.prevnext-card:hover .prevnext-thumb { opacity: 0.18; }

.prevnext-direction,
.prevnext-title { position: relative; z-index: 1; }


/* ============================================
   ARTICOLI CORRELATI
   ============================================ */
.related-posts {
    padding: 4rem 0;
    background: var(--color-bg-alt);
}

.related-header { margin-bottom: 2.5rem; }

.related-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-top: 0.5rem;
    color: #ffffff;
}


/* ============================================
   CTA FINALE
   ============================================ */
.article-cta {
    padding: calc(var(--section-padding) * 1.5) 0;
}

.article-cta-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.article-cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #ffffff;
}

.article-cta-desc {
    font-size: 1.05rem;
    color: var(--blog-text-muted);
    line-height: 1.6;
}

/* ============================================
   STATEMENT SECTION
   ============================================ */
.statement {
    padding: var(--section-padding) 0;
}

.statement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

/* ── Label ── */
.statement-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.statement-label-line {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--color-accent);
    flex-shrink: 0;
}

/* ── Titolo ── */
.statement-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* ── Corpo ── */
.statement-body {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.75;
    opacity: 0.75;
    margin-bottom: 2rem;
}

/* ── Stat pills ── */
.statement-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.stat-num {
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    color: var(--color-text-muted);
}

/* ── Immagine wrap ── */
.statement-image-wrap {
    position: relative;
}

.statement-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(ellipse at center,
        rgba(99, 102, 241, 0.18) 0%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Browser frame ── */
.statement-frame {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--color-bg-card);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dot.red    { background: #ff5f57; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green  { background: #28c840; }

.browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.browser-score {
    flex-shrink: 0;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #28c840;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.browser-body {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.statement-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ============================================
   STATEMENT — TABLET
   ============================================ */
@media (max-width: 1024px) {
    .statement-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .statement-image-wrap {
        order: -1; /* immagine sopra il testo */
    }

    .statement-frame {
        max-width: 560px;
        margin: 0 auto;
    }
}

/* ============================================
   STATEMENT — MOBILE
   ============================================ */
@media (max-width: 640px) {
    .statement-grid {
        gap: 2rem;
    }

    .statement-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .statement-stats {
        gap: 0.5rem;
    }

    .stat-pill {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .statement-frame {
        max-width: 100%;
    }

    .browser-url {
        display: none; /* troppo stretto, nascosto su mobile piccolo */
    }
}

.footer-legal {
    display: flex;
    flex-direction: column;
}

/* ARTICOLI CORRELATI */
.related-articles {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.related-articles h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card-mini {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card-mini:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
}

.blog-card-mini h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card-mini p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.5;
}

.blog-card-mini .card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card-mini .card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}