html { scroll-behavior: smooth; }
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --orange: #FD9917;
            --orange-dark: #E88A0F;
            --orange-light: #FFAD33;
            --yellow: #FFD70B;
            --yellow-light: #FFE34D;
            --dark: #111111;
            --gray-900: #1a1a1a;
            --gray-700: #374151;
            --gray-600: #4B5563;
            --gray-500: #6B7280;
            --gray-300: #D1D5DB;
            --gray-100: #F3F4F6;
            --gray-50: #F9FAFB;
            --white: #ffffff;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            color: var(--dark);
            background: var(--white);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ===== NAVBAR ===== */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            padding: 16px 0;
            transition: all 0.3s ease;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 1px 20px rgba(0,0,0,0.08);
        }

        .navbar .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .navbar-logo img {
            height: 45px;
            transition: filter 0.3s;
        }

        .navbar-links {
            display: flex;
            align-items: center;
            gap: 32px;
            list-style: none;
        }

        .navbar-links a {
            color: var(--gray-600);
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            transition: color 0.2s;
        }

        .navbar-links a:hover {
            color: var(--orange);
        }

        .navbar-links a.active {
            color: var(--orange);
            font-weight: 600;
        }

        .navbar-cta {
            padding: 10px 24px !important;
            background: var(--orange) !important;
            color: var(--white) !important;
            border-radius: 10px;
            font-weight: 600 !important;
            transition: all 0.2s !important;
        }

        .navbar-cta:hover {
            background: var(--orange-dark) !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(253,153,23,0.4);
        }

        .navbar-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
        }

        .navbar-toggle span {
            display: block;
            width: 24px;
            height: 2px;
            background: var(--dark);
            margin: 5px 0;
            transition: all 0.3s;
        }

        /* ===== ARTICLE HERO ===== */
        .article-hero {
            position: relative;
            padding: 140px 0 60px;
            overflow: hidden;
            min-height: 400px;
            display: flex;
            align-items: flex-end;
        }

        .article-hero__bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            filter: blur(6px);
            transform: scale(1.1);
        }

        .article-hero__overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.75) 100%);
        }

        .article-hero__content {
            position: relative;
            z-index: 2;
            max-width: 780px;
        }

        .article-hero__category {
            display: inline-block;
            padding: 6px 18px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #fff;
            border-radius: 50px;
            margin-bottom: 16px;
        }

        .article-hero__title {
            font-size: 2.6rem;
            font-weight: 800;
            color: #fff;
            line-height: 1.2;
            margin-bottom: 16px;
        }

        .article-hero__meta {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
            color: rgba(255,255,255,0.8);
            font-size: 0.9rem;
        }

        .article-hero__meta i {
            margin-right: 4px;
        }

        /* ===== HERO ANIMATIONS (desktop only) ===== */
        @media (min-width: 769px) {
            @keyframes heroKenBurns {
                0%   { transform: scale(1.1); }
                100% { transform: scale(1.2); }
            }
            @keyframes heroFadeSlideUp {
                0%   { opacity: 0; transform: translateY(40px); }
                100% { opacity: 1; transform: translateY(0); }
            }
            @keyframes heroCategoryPop {
                0%   { opacity: 0; transform: translateY(16px) scale(0.9); }
                100% { opacity: 1; transform: translateY(0) scale(1); }
            }
            @keyframes heroOverlayFade {
                0%   { opacity: 0; }
                100% { opacity: 1; }
            }
            @keyframes heroShineLine {
                0%   { left: -60%; }
                100% { left: 120%; }
            }

            .article-hero__bg {
                animation: heroKenBurns 18s ease-out forwards;
            }

            .article-hero__overlay {
                opacity: 0;
                animation: heroOverlayFade 1s ease-out 0.1s forwards;
            }

            .article-hero__category {
                opacity: 0;
                animation: heroCategoryPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
            }

            .article-hero__title {
                opacity: 0;
                animation: heroFadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
            }

            .article-hero__meta {
                opacity: 0;
                animation: heroFadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
            }

            /* Linea di luce che scorre sul titolo */
            .article-hero__title {
                position: relative;
                overflow: hidden;
            }
            .article-hero__title::after {
                content: '';
                position: absolute;
                top: 0;
                left: -60%;
                width: 40%;
                height: 100%;
                background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
                transform: skewX(-20deg);
                animation: heroShineLine 2.5s ease-in-out 1.3s forwards;
                pointer-events: none;
            }

            /* Parallax scroll sullo sfondo */
            .article-hero[data-parallax] .article-hero__bg {
                will-change: transform;
                transition: transform 0.1s linear;
            }
        }

        /* ===== BREADCRUMB ===== */
        .blog-breadcrumb {
            background: var(--white);
            border-bottom: 1px solid var(--gray-100);
            padding: 14px 0;
            font-size: 0.85rem;
        }

        .blog-breadcrumb a {
            color: var(--orange);
            text-decoration: none;
        }

        .blog-breadcrumb a:hover {
            text-decoration: underline;
        }

        .blog-breadcrumb .sep {
            color: var(--gray-300);
            margin: 0 8px;
        }

        .blog-breadcrumb .current {
            color: var(--gray-500);
        }

        /* ===== ARTICLE BODY ===== */
        .article-wrapper {
            max-width: 780px;
            margin: 0 auto;
            padding: 48px 24px 60px;
        }

        .article-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 24px;
        }

        .article-tags span {
            display: inline-block;
            padding: 4px 12px;
            background: var(--gray-50);
            color: var(--gray-600);
            border-radius: 20px;
            font-size: 12px;
            border: 1px solid var(--gray-300);
        }

        /* Share buttons */
        .share-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 32px;
        }

        .share-bar a, .share-bar button {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            color: #fff;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 500;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: opacity 0.2s, transform 0.2s;
        }

        .share-bar a:hover, .share-bar button:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }

        /* TTS Player */
        .tts-player {
            background: linear-gradient(135deg, #FFF8EB 0%, #FFF0D4 100%);
            border: 1px solid #FFE0A6;
            border-radius: 16px;
            padding: 18px 22px;
            margin-bottom: 32px;
            display: flex;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
        }

        .tts-player__icon {
            background: var(--orange);
            color: #fff;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .tts-player__info {
            min-width: 120px;
        }

        .tts-player__label {
            font-weight: 700;
            font-size: 14px;
            color: var(--orange-dark);
            margin-bottom: 2px;
        }

        .tts-player__duration {
            font-size: 12px;
            color: var(--orange);
        }

        .tts-player audio {
            flex: 1;
            min-width: 200px;
            max-width: 100%;
        }

        .tts-player select {
            padding: 6px 10px;
            border: 2px solid #FFE0A6;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            color: var(--orange-dark);
            background: #fff;
            cursor: pointer;
            outline: none;
        }

        /* Article featured image */
        .article-featured-img {
            width: 100%;
            border-radius: 16px;
            margin-bottom: 32px;
            box-shadow: 0 4px 24px rgba(0,0,0,0.08);
        }

        /* Post content typography */
        .post-content {
            font-size: 1.05rem;
            line-height: 1.8;
            color: var(--gray-700);
        }

        .post-content h2, .post-content h3, .post-content h4 {
            color: var(--dark);
            margin-top: 32px;
            margin-bottom: 16px;
            font-weight: 700;
        }

        .post-content h2 { font-size: 1.6rem; }
        .post-content h3 { font-size: 1.3rem; }

        .post-content p {
            margin-bottom: 18px;
        }

        .post-content img {
            max-width: 100% !important;
            height: auto !important;
            border-radius: 12px;
            margin: 20px auto;
            display: block;
        }

        .post-content a {
            color: var(--orange);
            text-decoration: underline;
        }

        .post-content ul, .post-content ol {
            margin-bottom: 18px;
            padding-left: 24px;
        }

        .post-content blockquote {
            border-left: 4px solid var(--orange);
            padding: 16px 20px;
            margin: 24px 0;
            background: var(--gray-50);
            border-radius: 0 12px 12px 0;
            font-style: italic;
            color: var(--gray-600);
        }

        /* YouTube embed */
        .post-video {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            max-width: 100%;
            margin-bottom: 32px;
            border-radius: 16px;
        }

        .post-video iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        /* Prev/Next navigation */
        .article-nav {
            display: flex;
            gap: 16px;
            margin: 40px 0 32px;
            flex-wrap: wrap;
        }

        .article-nav__link {
            flex: 1;
            min-width: 200px;
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 18px 22px;
            background: var(--gray-50);
            border-radius: 16px;
            text-decoration: none;
            color: var(--dark);
            border: 1px solid var(--gray-300);
            transition: all 0.25s;
        }

        .article-nav__link:hover {
            border-color: var(--orange);
            box-shadow: 0 4px 16px rgba(253,153,23,0.15);
            transform: translateY(-2px);
        }

        .article-nav__link i {
            font-size: 20px;
            color: var(--orange);
            flex-shrink: 0;
        }

        .article-nav__link small {
            color: var(--gray-500);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .article-nav__link .nav-title {
            font-weight: 600;
            font-size: 14px;
            line-height: 1.3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .article-nav__link--next {
            justify-content: flex-end;
            text-align: right;
        }

        .article-nav__spacer {
            flex: 1;
            min-width: 200px;
        }

        /* Random articles grid */
        .random-articles-section {
            background: var(--gray-50);
            border-radius: 20px;
            padding: 32px;
            margin-bottom: 40px;
        }

        .random-articles-section h3 {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 24px;
            color: var(--dark);
        }

        .random-articles-section h3::after {
            content: '';
            display: block;
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--yellow), var(--orange));
            margin-top: 10px;
            border-radius: 2px;
        }

        .random-articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }

        .random-card {
            background: #fff;
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid var(--gray-300);
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
        }

        .random-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 28px rgba(0,0,0,0.10);
            border-color: var(--orange);
        }

        .random-card__img {
            width: 100% !important;
            height: 140px !important;
            min-width: 0 !important;
            max-width: 100% !important;
            object-fit: cover;
            display: block;
            margin: 0 !important;
            border-radius: 0 !important;
        }

        .random-card__body {
            padding: 14px 16px;
        }

        .random-card__title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--gray-900);
            line-height: 1.4;
            margin: 0;
        }

        /* ===== FOOTER ===== */
        .footer-new {
            background: var(--dark);
            padding: 80px 0 30px;
            color: rgba(255,255,255,0.7);
            border-top: 4px solid var(--yellow);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1.5fr;
            gap: 40px;
            margin-bottom: 60px;
        }

        .footer-brand img {
            height: 40px;
            filter: brightness(0) invert(1);
            margin-bottom: 16px;
        }

        .footer-brand p {
            font-size: 14px;
            line-height: 1.7;
            margin-bottom: 20px;
        }

        .footer-social {
            display: flex;
            gap: 12px;
        }

        .footer-social a {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            text-decoration: none;
            transition: all 0.2s;
        }

        .footer-social a:hover {
            background: var(--orange);
            transform: translateY(-2px);
        }

        .footer-col h4 {
            color: var(--white);
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .footer-col ul {
            list-style: none;
        }

        .footer-col ul li {
            margin-bottom: 12px;
        }

        .footer-col ul li a {
            color: rgba(255,255,255,0.6);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.2s;
        }

        .footer-col ul li a:hover {
            color: var(--orange);
        }

        .footer-contact-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 16px;
            font-size: 14px;
        }

        .footer-contact-item i {
            color: var(--orange);
            margin-top: 3px;
        }

        .footer-bottom-bar {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 991px) {
            .navbar-links { display: none; }
            .navbar-links.open {
                display: flex;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: var(--white);
                padding: 20px;
                box-shadow: 0 10px 30px rgba(0,0,0,0.1);
                border-radius: 0 0 16px 16px;
            }
            .navbar-links.open a { color: var(--gray-700); }
            .navbar-toggle { display: block; }
            .footer-grid { grid-template-columns: 1fr 1fr; }
            .article-hero__title { font-size: 2rem; }
        }

        @media (max-width: 600px) {
            .footer-grid { grid-template-columns: 1fr; }
            .footer-bottom-bar { flex-direction: column; gap: 16px; text-align: center; }
            .article-hero__title { font-size: 1.6rem; }
            .article-hero { min-height: 300px; padding-top: 100px; }
            .random-articles-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
            .random-card__img { height: 100px !important; }
            .article-nav { flex-direction: column; }
        }

/* ===== Blocchi ripresi dalla lista blog ===== */


        /* ===== BLOG HERO ===== */
        .blog-hero {
            position: relative;
            padding: 150px 0 70px;
            overflow: hidden;
        }

        .blog-hero__bg {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 40%, var(--orange-dark) 100%);
        }

        .blog-hero__bg::after {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 15% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 85% 20%, rgba(255,215,11,0.25) 0%, transparent 40%),
                radial-gradient(circle at 50% 80%, rgba(0,0,0,0.06) 0%, transparent 40%);
        }

        .blog-hero__particles {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 1;
        }

        .blog-hero__particles span {
            position: absolute;
            opacity: 0.4;
            animation: blogFloat 7s ease-in-out infinite;
        }

        .blog-hero__particles span:nth-child(1) { width: 6px; height: 6px; background: var(--yellow); top: 15%; right: 10%; animation-delay: 0s; }
        .blog-hero__particles span:nth-child(2) { width: 4px; height: 4px; background: rgba(255,255,255,0.6); top: 30%; right: 25%; animation-delay: 1.5s; }
        .blog-hero__particles span:nth-child(3) { width: 7px; height: 7px; background: rgba(255,255,255,0.3); bottom: 20%; right: 15%; animation-delay: 3s; }
        .blog-hero__particles span:nth-child(4) { width: 5px; height: 5px; background: var(--yellow); top: 60%; right: 35%; animation-delay: 2s; }
        .blog-hero__particles span:nth-child(5) { width: 6px; height: 6px; background: rgba(255,255,255,0.4); bottom: 30%; right: 5%; animation-delay: 4s; }
        .blog-hero__particles span:nth-child(6) { width: 4px; height: 4px; background: var(--yellow); top: 40%; left: 60%; animation-delay: 0.8s; }
        .blog-hero__particles span:nth-child(7) { width: 7px; height: 7px; background: rgba(255,255,255,0.35); top: 20%; left: 70%; animation-delay: 3.5s; }
        .blog-hero__particles span:nth-child(8) { width: 5px; height: 5px; background: var(--yellow); bottom: 35%; left: 55%; animation-delay: 1.2s; }

        @keyframes blogFloat {
            0%, 100% { transform: translateY(0); opacity: 0.5; }
            50% { transform: translateY(-12px); opacity: 0.8; }
        }

        .blog-hero__content {
            position: relative;
            z-index: 2;
            text-align: center;
        }

        .blog-hero__badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            border-radius: 50px;
            background: rgba(0,0,0,0.15);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255,215,11,0.3);
            color: var(--white);
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 20px;
        }

        .blog-hero__badge i {
            color: var(--yellow);
        }

        .blog-hero h1 {
            color: #fff;
            font-size: clamp(2rem, 4vw, 3.2rem);
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 14px;
        }

        .blog-hero p {
            color: rgba(255,255,255,0.85);
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 28px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* ===== HERO FLOATING SHAPES (desktop) ===== */
        .blog-hero__shapes {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 1;
            overflow: hidden;
            display: none;
        }

        .blog-hero__shape {
            position: absolute;
            border-radius: 16px;
            opacity: 0;
        }@media (min-width: 769px) {

            .blog-hero__shapes { display: block; }

            .blog-hero__shape:nth-child(1) {
                width: 120px; height: 120px;
                border: 2px solid rgba(255,255,255,0.2);
                top: 12%; right: 8%;
                border-radius: 24px;
                animation: shapeFloat1 8s ease-in-out infinite;
            }
            .blog-hero__shape:nth-child(2) {
                width: 60px; height: 60px;
                background: rgba(255,215,11,0.15);
                top: 55%; right: 15%;
                border-radius: 50%;
                animation: shapeFloat2 6s ease-in-out 1s infinite;
            }
            .blog-hero__shape:nth-child(3) {
                width: 80px; height: 80px;
                border: 2px solid rgba(255,255,255,0.15);
                bottom: 20%; right: 5%;
                border-radius: 50%;
                animation: shapeFloat3 9s ease-in-out 0.5s infinite;
            }
            .blog-hero__shape:nth-child(4) {
                width: 90px; height: 90px;
                background: rgba(255,255,255,0.06);
                top: 18%; left: 5%;
                border-radius: 20px;
                transform: rotate(45deg);
                animation: shapeFloat2 7s ease-in-out 2s infinite;
            }
            .blog-hero__shape:nth-child(5) {
                width: 50px; height: 50px;
                border: 2px solid rgba(255,215,11,0.2);
                bottom: 25%; left: 10%;
                border-radius: 12px;
                animation: shapeFloat1 6.5s ease-in-out 1.5s infinite;
            }
            .blog-hero__shape:nth-child(6) {
                width: 140px; height: 140px;
                border: 1.5px solid rgba(255,255,255,0.1);
                top: 35%; left: 2%;
                border-radius: 50%;
                animation: shapeFloat3 10s ease-in-out 0.8s infinite;
            }
}


        /* Search bar */
        .blog-search {
            display: flex;
            max-width: 520px;
            margin-left: auto;
            margin-right: auto;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 8px 30px rgba(0,0,0,0.15);
        }

        .blog-search__input {
            flex: 1;
            padding: 16px 24px;
            border: none;
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            outline: none;
            color: var(--dark);
        }

        .blog-search__input::placeholder { color: #aaa; }

        .blog-search__btn {
            background: var(--white);
            border: none;
            padding: 16px 22px;
            cursor: pointer;
            color: var(--orange);
            transition: background 0.2s, color 0.2s;
            display: flex;
            align-items: center;
        }

        .blog-search__btn:hover {
            background: var(--orange);
            color: #fff;
        }

        /* Search status */
        .blog-search-status {
            font-size: 0.95rem;
            color: var(--gray-600);
            margin-bottom: 24px;
        }

        .blog-search-status a {
            color: var(--orange);
            text-decoration: none;
            font-weight: 600;
        }

        .blog-search-status a:hover {
            text-decoration: underline;
        }

        /* Blog container layout */
        .blog-layout {
            max-width: 1200px;
            margin: 0 auto;
            padding: 48px 24px;
            display: flex;
            gap: 40px;
        }

        .blog-main {
            width: 100%;
        }

        /* Blog grid */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 28px;
        }

        /* Blog card */
        .blog-card {
            background: var(--white);
            border-radius: 20px;
            overflow: hidden;
            border: none;
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            display: flex;
            flex-direction: column;
        }

        .blog-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 36px rgba(0,0,0,0.12);
        }

        .blog-card__img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
        }

        .blog-card__body {
            padding: 24px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .blog-card__meta {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .blog-card__category {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            color: #fff;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .blog-card__date {
            color: var(--gray-500);
            font-size: 0.8rem;
        }

        .blog-card__title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--gray-900);
            margin: 0 0 10px;
            line-height: 1.4;
        }

        .blog-card__title a {
            color: inherit;
            text-decoration: none;
        }

        .blog-card__title a:hover {
            color: var(--orange);
        }

        .blog-card__excerpt { display: none; }
        .blog-card__link { display: none; }

        /* Featured card (first article) */
        .blog-card--featured {
            grid-column: 1 / -1;
            flex-direction: row;
            min-height: 320px;
        }

        .blog-card--featured > a:first-child {
            width: 50%;
            flex-shrink: 0;
            display: block;
        }

        .blog-card--featured .blog-card__img {
            width: 100%;
            height: 100%;
            min-height: 320px;
            object-fit: cover;
        }

        .blog-card--featured .blog-card__body {
            padding: 36px 40px;
            justify-content: center;
        }

        .blog-card--featured .blog-card__title {
            font-size: clamp(1.4rem, 2.5vw, 2rem);
            line-height: 1.3;
        }

        .blog-card--featured .blog-card__meta {
            margin-bottom: 16px;
        }

        .blog-card--featured .blog-card__category {
            font-size: 0.8rem;
            padding: 5px 14px;
        }

        .blog-card--featured .blog-card__date {
            font-size: 0.9rem;
        }@media (max-width: 600px) {

            .blog-card--featured {
                flex-direction: column;
                min-height: auto;
            }
            .blog-card--featured > a:first-child {
                width: 100%;
            }
            .blog-card--featured .blog-card__img {
                width: 100%;
                height: 220px;
                min-height: auto;
            }
            .blog-card--featured .blog-card__body {
                padding: 24px;
            }
}


        /* Pagination */
        .blog-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
            margin-top: 40px;
        }

        .blog-pagination a, .blog-pagination span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 42px;
            height: 42px;
            padding: 0 14px;
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s;
        }

        .blog-pagination a {
            color: var(--gray-600);
            background: var(--gray-50);
            border: 1px solid var(--gray-300);
        }

        .blog-pagination a:hover {
            background: var(--orange);
            color: #fff;
            border-color: var(--orange);
        }

        .blog-pagination span.current {
            background: var(--orange);
            color: #fff;
            font-weight: 700;
            border: 1px solid var(--orange);
        }

        .blog-pagination span.dots {
            background: none;
            color: var(--gray-500);
            border: none;
        }@media (max-width: 600px) {

            .blog-grid { grid-template-columns: 1fr; }
            .blog-hero h1 { font-size: 1.8rem; }
}

/* ==========================================================================
   SEZIONE RIPARAZIONI
   ========================================================================== */

.rip-hero { position: relative; min-height: 380px; display: flex; align-items: center;
    background: linear-gradient(135deg, #111 0%, #1f2937 100%); overflow: hidden; padding: 120px 0 60px; }
.rip-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .25; }
.rip-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,.55) 0%, rgba(17,17,17,.85) 100%); }
.rip-hero .container { position: relative; z-index: 2; }
.rip-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rip-hero__badge { display: inline-flex; align-items: center; gap: 6px; background: var(--orange); color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px; }
.rip-hero__badge--ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.rip-hero h1 { color: #fff; font-size: 2.6rem; line-height: 1.15; font-weight: 800; max-width: 900px; }
.rip-hero p.rip-hero__sub { color: rgba(255,255,255,.8); margin-top: 14px; font-size: 1.05rem; max-width: 720px; }
.rip-hero__meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: rgba(255,255,255,.75); font-size: 14px; }
.rip-hero__meta i { color: var(--orange); margin-right: 6px; }

/* Barra dati rapidi */
.rip-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 32px 0; }
.rip-fact { background: var(--gray-50); border: 1px solid var(--gray-300); border-radius: 12px; padding: 16px 18px; }
.rip-fact__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); }
.rip-fact__value { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-top: 6px; }
.rip-fact__value i { color: var(--orange); margin-right: 6px; }

/* Blocchi di contenuto */
.rip-block { margin: 36px 0; }
.rip-block h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.rip-block h2 i { color: var(--orange); }
.rip-block .rip-block__body { font-size: 1.05rem; line-height: 1.8; color: var(--gray-700); }
.rip-block .rip-block__body p { margin-bottom: 16px; }
.rip-block .rip-block__body img { max-width: 100%; height: auto; border-radius: 10px; }
.rip-block--problem { background: #FFF7ED; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; padding: 22px 24px; }

.rip-parts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.rip-parts li { display: flex; align-items: flex-start; gap: 10px; background: var(--gray-50);
    border: 1px solid var(--gray-300); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.rip-parts li i { color: #16a34a; margin-top: 3px; }

/* Galleria foto */
.rip-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rip-gallery figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--gray-300); background: var(--gray-50); }
.rip-gallery img { width: 100%; height: 190px; object-fit: cover; display: block; cursor: zoom-in; transition: transform .35s; }
.rip-gallery figure:hover img { transform: scale(1.04); }
.rip-gallery figcaption { padding: 10px 12px; font-size: 13px; color: var(--gray-600); }

.rip-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center;
    justify-content: center; z-index: 9999; padding: 20px; }
.rip-lightbox.open { display: flex; }
.rip-lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.rip-lightbox__close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 32px;
    background: none; border: 0; cursor: pointer; line-height: 1; }

/* CTA */
.rip-cta { background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%); border-radius: 16px;
    padding: 28px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 40px 0; }
.rip-cta h3 { font-size: 1.35rem; font-weight: 800; color: #111; margin-bottom: 6px; }
.rip-cta p { color: rgba(17,17,17,.75); font-size: 15px; }
.rip-cta a { background: #111; color: #fff; padding: 14px 26px; border-radius: 999px; text-decoration: none;
    font-weight: 700; white-space: nowrap; transition: transform .2s, background .2s; }
.rip-cta a:hover { background: #000; transform: translateY(-2px); }

/* Griglia riparazioni (lista) */
.rip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.rip-card { background: #fff; border: 1px solid var(--gray-300); border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.rip-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.09); }
.rip-card__img { width: 100%; height: 200px; object-fit: cover; display: block; background: var(--gray-100); }
.rip-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.rip-card__device { display: inline-block; align-self: flex-start; background: var(--dark); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 6px; margin-bottom: 10px; }
.rip-card__title { font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.rip-card__title a { color: var(--dark); text-decoration: none; }
.rip-card__title a:hover { color: var(--orange-dark); }
.rip-card__excerpt { color: var(--gray-600); font-size: 14px; line-height: 1.65; flex: 1; }
.rip-card__meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--gray-100); font-size: 13px; color: var(--gray-500); }
.rip-card__meta i { color: var(--orange); margin-right: 5px; }

/* Filtri marca */
.rip-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.rip-filters a { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--gray-600);
    border: 1px solid var(--gray-300); border-radius: 999px; padding: 7px 14px; transition: all .2s; }
.rip-filters a:hover { border-color: var(--orange); color: var(--orange-dark); }
.rip-filters a.active { background: var(--dark); border-color: var(--dark); color: #fff; }

/* Blocco "Le ultime riparazioni" (solo testo) */
.rip-links { margin: 40px 0; padding: 24px 26px; background: var(--gray-50); border: 1px solid var(--gray-300); border-radius: 14px; }
.rip-links__title { font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; color: var(--dark);
    text-transform: uppercase; letter-spacing: .04em; }
.rip-links__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.rip-links__item { padding: 12px 14px; background: #fff; border: 1px solid var(--gray-300); border-radius: 10px; }
.rip-links__item a { color: var(--dark); font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none; display: block; }
.rip-links__item a:hover { color: var(--orange-dark); }
.rip-links__device { display: block; margin-top: 6px; font-size: 12px; color: var(--gray-500); }
.rip-links__all { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700;
    color: var(--orange-dark); text-decoration: none; }
.rip-links__all:hover { text-decoration: underline; }

/* Box "pubblicita" riparazione dentro l'articolo del blog */
.rip-ad { margin: 38px 0; border: 1px solid var(--gray-300); border-radius: 14px; overflow: hidden;
    background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.rip-ad__flag { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, #eceff1 10px, #eceff1 20px);
    padding: 8px 16px; border-bottom: 1px solid var(--gray-300); }
.rip-ad__flag-tag { background: var(--gray-700); color: #fff; font-size: 10px; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; }
.rip-ad__flag-note { font-size: 11px; color: var(--gray-500); letter-spacing: .02em; }
.rip-ad__inner { display: flex; gap: 18px; padding: 18px; }
.rip-ad__thumb { flex-shrink: 0; width: 150px; height: 110px; border-radius: 10px; overflow: hidden; display: block; }
.rip-ad__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rip-ad__body { flex: 1; min-width: 0; }
.rip-ad__kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--orange-dark); margin-bottom: 6px; }
.rip-ad__title { font-size: 1.15rem; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.rip-ad__title a { color: var(--dark); text-decoration: none; }
.rip-ad__title a:hover { color: var(--orange-dark); }
.rip-ad__desc { font-size: 14px; line-height: 1.6; color: var(--gray-600); margin-bottom: 10px; }
.rip-ad__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--gray-500); margin-bottom: 10px; }
.rip-ad__meta i { color: var(--orange); margin-right: 4px; }
.rip-ad__cta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
    color: #fff; background: var(--dark); padding: 9px 18px; border-radius: 999px; text-decoration: none; transition: background .2s; }
.rip-ad__cta:hover { background: var(--orange-dark); }

/* Correlate in fondo */
.rip-related { margin-top: 50px; padding-top: 30px; border-top: 2px solid var(--gray-100); }
.rip-related h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; }
.rip-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.rip-related__card { display: block; text-decoration: none; border: 1px solid var(--gray-300);
    border-radius: 12px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.rip-related__card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.rip-related__img { width: 100%; height: 120px; object-fit: cover; display: block; background: var(--gray-100); }
.rip-related__body { padding: 12px 14px; }
.rip-related__title { font-size: 14px; font-weight: 700; color: var(--dark); line-height: 1.4; }
.rip-related__device { display: block; margin-top: 6px; font-size: 12px; color: var(--gray-500); }

.rip-wrapper { max-width: 900px; margin: 0 auto; padding: 40px 24px 60px; }
.rip-list-wrapper { max-width: 1200px; margin: 0 auto; padding: 40px 24px 60px; }

.rip-empty { text-align: center; padding: 60px 20px; color: var(--gray-500); }

@media (max-width: 767px) {
    .rip-hero h1 { font-size: 1.85rem; }
    .rip-hero { min-height: 300px; padding: 100px 0 40px; }
    .rip-ad__inner { flex-direction: column; }
    .rip-ad__thumb { width: 100%; height: 170px; }
    .rip-cta { flex-direction: column; align-items: flex-start; }
    .rip-gallery img { height: 160px; }
}

/* --- Hardware / Software e blocco servizio --- */
.rip-hero__badge--type { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }

.rip-intro { font-size: 1.05rem; line-height: 1.75; color: var(--gray-600); max-width: 860px; margin-bottom: 26px; }

.rip-filters__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--gray-500); align-self: center; margin-right: 4px; }
.rip-filters--type { margin-bottom: 14px; }
.rip-filters--type a i { margin-right: 6px; }

.rip-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rip-card__device { margin-bottom: 0; }
.rip-card__type { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; padding: 5px 10px; border-radius: 6px; }
.rip-card__type--hardware { background: #FFF1DE; color: #9A5A00; }
.rip-card__type--software { background: #E4F0FF; color: #14548C; }

.rip-service { border: 1px solid var(--gray-300); border-left: 4px solid var(--dark);
    border-radius: 0 14px 14px 0; padding: 24px 26px; margin: 40px 0; background: #fff; }
.rip-service__label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--gray-500); margin-bottom: 8px; }
.rip-service__title { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
.rip-service__title a { color: var(--dark); text-decoration: none; }
.rip-service__title a:hover { color: var(--orange-dark); }
.rip-service__claim { color: var(--gray-600); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.rip-service__links { display: flex; flex-wrap: wrap; gap: 10px; }
.rip-service__links a { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--gray-700);
    border: 1px solid var(--gray-300); border-radius: 999px; padding: 8px 16px; transition: all .2s; }
.rip-service__links a:hover { border-color: var(--orange); color: var(--orange-dark); }

.rip-parts--tools li { background: #fff; }
.rip-parts--tools li i { color: var(--orange); }

.rip-ad__flag { background: linear-gradient(90deg, #FFF7ED 0%, #F8FAFC 100%); }
.rip-ad__flag-tag { background: var(--orange-dark); color: #fff; }
.rip-ad__flag-tag i { margin-right: 5px; }
.rip-ad--service { border-color: #E5D5BE; }
