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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
    background: #f8f7f5;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.15;
    color: #1a1a1a;
}
h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1.5rem; }
h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; }
p { color: #444; }

/* =====================
   LAYOUT
   ===================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =====================
   RAINBOW BAR
   ===================== */
.rainbow-bar {
    height: 3px;
    background: linear-gradient(90deg, #e63946, #f4831f, #f7c948, #3dba6e, #2196f3, #7b2ff7);
}

/* =====================
   HEADER & NAV
   ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 0 #eee;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}
.brand em { font-style: normal; font-weight: 400; color: #666; }

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #444;
    transition: color 0.2s;
}
.nav-links a:hover { color: #1a1a1a; }

.nav-cta {
    background: #1a1a1a;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.nav-cta:hover { opacity: 0.85; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s;
}

/* =====================
   BUTTONS
   ===================== */
.btn-primary {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 11px 24px;
    border-radius: 6px;
    transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 11px 24px;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: #aaa; }

/* =====================
   HERO
   ===================== */
.hero {
    background: #fff;
    padding: 5rem 0 4rem;
    border-bottom: 1px solid #eee;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 1rem; }

.hero h1 .accent {
    position: relative;
    display: inline-block;
}
.hero h1 .accent::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e63946, #f4831f, #f7c948, #3dba6e, #2196f3, #7b2ff7);
    border-radius: 2px;
}

.hero p { font-size: 1rem; color: #555; margin-bottom: 2rem; }

.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-visual {
    background: #f8f7f5;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #eee;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-box {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #eee;
}
.stat-box .num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}
.stat-box .lbl {
    font-size: 0.7rem;
    color: #888;
    margin-top: 4px;
}
.rb-bar {
    height: 2px;
    margin-top: 12px;
    background: linear-gradient(90deg, #e63946, #f4831f, #f7c948, #3dba6e, #2196f3, #7b2ff7);
    border-radius: 2px;
}

/* =====================
   SECTION COMMONS
   ===================== */
.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.4rem;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* =====================
   SERVICES
   ===================== */
.services-section {
    padding: 4rem 0;
    background: #f8f7f5;
}

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

.svc-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.4rem;
    border: 1px solid #eee;
    transition: border-color 0.2s, transform 0.2s;
}
.svc-card:hover {
    border-color: #ccc;
    transform: translateY(-2px);
}
.svc-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f8f7f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 12px;
    border: 1px solid #eee;
}
.svc-card p { font-size: 0.875rem; color: #777; line-height: 1.6; }

/* =====================
   OFFERS
   ===================== */
.offers-section {
    padding: 4rem 0;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

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

.offer-card {
    border-radius: 10px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.offer-card:hover {
    border-color: #ccc;
    transform: translateY(-2px);
}
.offer-img {
    background: #f8f7f5;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-bottom: 1px solid #eee;
}
.offer-body { padding: 1rem; }

.badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-new { background: #e8f4fe; color: #1a6db5; }
.badge-used { background: #fef3e8; color: #c05e10; }

.price {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 4px 0;
}
.price span { font-size: 0.75rem; color: #888; font-weight: 400; }

.offer-cta {
    display: inline-block;
    font-size: 0.8rem;
    color: #555;
    margin-top: 8px;
    transition: color 0.2s;
}
.offer-cta:hover { color: #1a1a1a; }

/* =====================
   PARTNERS
   ===================== */
.partners-section {
    padding: 2.5rem 0;
    background: #f8f7f5;
}

.partners-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    align-items: center;
}

.partner-chip {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.partner-chip:hover {
    border-color: #ccc;
}

.partner-chip img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* =====================
   PAGE (default template)
   ===================== */
.page-content {
    padding: 4rem 0;
    background: #fff;
    min-height: 60vh;
}
.page-content h1 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.page-body h2 { font-size: 1.1rem; margin: 2rem 0 0.5rem; }
.page-body h3 { font-size: 1rem; margin: 1.5rem 0 0.4rem; }
.page-body p { margin-bottom: 1rem; font-size: 0.9rem; }
.page-body ul, .page-body ol {
    margin: 0.5rem 0 1rem 1.5rem;
    font-size: 0.9rem;
    color: #444;
}
.page-body ul { list-style: disc; }
.page-body ol { list-style: decimal; }
.page-body a { color: #2196f3; text-decoration: underline; }

/* =====================
   FOOTER
   ===================== */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 3rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}
.footer-brand em { font-style: normal; font-weight: 400; color: #666; }

.footer-col p {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.footer-social a img {
    width: 36px;
    height: 36px;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}
.footer-social a:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 0.4rem;
}
.footer-col ul a {
    font-size: 0.85rem;
    color: #999;
    transition: color 0.2s;
}
.footer-col ul a:hover { color: #fff; }

.footer-contacts li {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.4rem;
}
.footer-contacts a {
    color: #999;
    transition: color 0.2s;
}
.footer-contacts a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 1rem 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-bottom p { font-size: 0.75rem; color: #555; }
.footer-bottom a { color: #555; transition: color 0.2s; }
.footer-bottom a:hover { color: #999; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .offers-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; text-align: center; }

    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #eee;
        gap: 1rem;
        z-index: 99;
    }
}

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

/* =====================
   PAGE HERO
   ===================== */
.page-hero {
    background: #fff;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #eee;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { font-size: 1rem; color: #555; max-width: 600px; }

/* =====================
   CONTATTI
   ===================== */
.contatti-section {
    padding: 4rem 0;
    background: #f8f7f5;
}

.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.contatti-info h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-list strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 2px;
}

.info-list p, .info-list a {
    font-size: 0.95rem;
    color: #333;
}

.info-list a:hover { color: #1a1a1a; }

.contatti-form-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #eee;
}

.contatti-form-wrap h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    color: #1a1a1a;
    transition: border-color 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #aaa;
    background: #fff;
}

.form-group textarea { resize: vertical; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-label input { width: auto; }
.checkbox-label a { color: #2196f3; text-decoration: underline; }

.form-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .contatti-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* =====================
   GRAV FORM OVERRIDE
   ===================== */
.form-wrapper .form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1rem;
}

.form-wrapper label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.form-wrapper input[type="text"],
.form-wrapper input[type="email"],
.form-wrapper textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    color: #1a1a1a;
    transition: border-color 0.2s;
    width: 100%;
}

.form-wrapper input[type="text"]:focus,
.form-wrapper input[type="email"]:focus,
.form-wrapper textarea:focus {
    outline: none;
    border-color: #aaa;
    background: #fff;
}

.form-wrapper textarea { resize: vertical; }

.form-wrapper input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-wrapper .form-field.checkboxes label {
    display: flex;
    align-items: center;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 0.85rem;
    cursor: pointer;
}

.form-wrapper input[type="submit"],
.form-wrapper button[type="submit"] {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 11px 24px;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.form-wrapper input[type="submit"]:hover,
.form-wrapper button[type="submit"]:hover {
    opacity: 0.85;
}

.form-wrapper .notices.green {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: none;
}

/* =====================
   SERVIZI DETAIL
   ===================== */
.servizi-detail {
    padding: 4rem 0;
    background: #f8f7f5;
}

.servizio-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #eee;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.servizio-item:hover {
    border-color: #ccc;
    transform: translateY(-2px);
}

.servizio-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #f8f7f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.servizio-body h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.servizio-body p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.servizio-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.servizio-features li {
    font-size: 0.85rem;
    color: #555;
    padding-left: 1rem;
    position: relative;
}

.servizio-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #aaa;
    font-size: 0.75rem;
}

/* =====================
   SERVIZI CTA
   ===================== */
.servizi-cta {
    padding: 4rem 0;
    background: #1a1a1a;
    text-align: center;
}

.servizi-cta h2 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.servizi-cta p {
    color: #999;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.servizi-cta .btn-primary {
    background: #fff;
    color: #1a1a1a;
}

.servizi-cta .btn-primary:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .servizio-item {
        grid-template-columns: 1fr;
    }
    .servizio-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    .servizio-features {
        grid-template-columns: 1fr;
    }
}

/* =====================
   OFFERTE
   ===================== */
.offerte-section {
    padding: 4rem 0;
    background: #f8f7f5;
}

.offerte-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
}

.filter-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #aaa;
    color: #1a1a1a;
}

.filter-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

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

.offerta-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.offerta-card:hover {
    border-color: #ccc;
    transform: translateY(-2px);
}

.offerta-card.hidden {
    display: none;
}

.offerta-img {
    background: #f8f7f5;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-bottom: 1px solid #eee;
}

.offerta-body {
    padding: 1.2rem;
}

.offerta-body h3 {
    font-size: 1rem;
    margin: 6px 0 8px;
}

.offerta-desc {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.offerta-body .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.offerta-body .btn-primary {
    font-size: 0.8rem;
    padding: 8px 18px;
}

.offerte-note {
    margin-top: 2.5rem;
    padding: 1.2rem 1.5rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    font-size: 0.9rem;
    color: #555;
}

.offerte-note a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: underline;
}

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

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

/* =====================
   BLOG
   ===================== */
.blog-section {
    padding: 4rem 0;
    background: #f8f7f5;
}

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

.blog-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.blog-card:hover {
    border-color: #ccc;
    transform: translateY(-2px);
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.blog-date {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}

.blog-cat {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f0ede8;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card h2 a {
    color: #1a1a1a;
    transition: color 0.2s;
}

.blog-card h2 a:hover {
    color: #444;
}

.blog-card p {
    font-size: 0.875rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-read-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.2s;
}

.blog-read-more:hover {
    color: #444;
}

.blog-empty {
    text-align: center;
    padding: 4rem 0;
    color: #888;
    font-size: 0.95rem;
}

/* =====================
   ARTICLE PAGE
   ===================== */
.article-page {
    padding: 4rem 0;
    background: #fff;
    min-height: 60vh;
}

.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.article-header h1 {
    margin: 0.75rem 0 1rem;
}

.back-link {
    font-size: 0.85rem;
    color: #888;
    transition: color 0.2s;
}

.back-link:hover {
    color: #1a1a1a;
}

.article-body {
    max-width: 720px;
}

.article-body h2 {
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem;
}

.article-body h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
}

.article-body p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.article-body ul, .article-body ol {
    margin: 0.5rem 0 1.2rem 1.5rem;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.8;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body a {
    color: #2196f3;
    text-decoration: underline;
}

.article-body strong { font-weight: 600; }

.article-body code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: #f8f7f5;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.article-body pre {
    background: #1a1a1a;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

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

.article-cover {
    width: 100%;
    max-height: 320px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}
.article-cover img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    object-position: center;
    background: #f8f7f5;
}

/* =====================
   OFFERTA DETAIL
   ===================== */
.offerta-detail-section {
    padding: 4rem 0;
    background: #f8f7f5;
}

.offerta-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.offerta-detail-img {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.offerta-detail-img img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.offerta-scadenza {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c05e10;
    background: #fef3e8;
    padding: 6px 14px;
    border-radius: 6px;
    text-align: center;
}

.offerta-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.offerta-prezzi {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0.5rem 0;
}

.prezzo-originale {
    font-size: 1.1rem;
    color: #aaa;
    text-decoration: line-through;
    font-weight: 500;
}

.prezzo-offerta {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    font-family: 'Space Grotesk', sans-serif;
}

.sconto-badge {
    background: #e63946;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
}

.prezzo-iva {
    width: 100%;
    font-size: 0.8rem;
    color: #888;
}

.offerta-codice {
    font-size: 0.85rem;
    color: #777;
    background: #f8f7f5;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.offerta-cta {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 14px 28px;
    font-size: 1rem;
}

.offerta-specs h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #f0ede8;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 0.85rem;
    color: #888;
    padding: 8px 0;
    width: 40%;
    vertical-align: top;
}

.spec-value {
    font-size: 0.85rem;
    color: #1a1a1a;
    padding: 8px 0;
    font-weight: 500;
}

.offerta-desc {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 2rem;
}

.offerta-desc p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .offerta-detail-grid { grid-template-columns: 1fr; }
}

.price-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0;
}
.price-old {
    font-size: 0.85rem;
    color: #aaa;
    text-decoration: line-through;
}
.sconto-badge-sm {
    background: #e63946;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}
.offerta-exp {
    font-size: 0.75rem;
    color: #c05e10;
    font-weight: 600;
}

.offerta-exp.scaduta {
    color: #999;
}

/* Sezione offerte scadute */
.offerte-scadute-section {
    margin-top: 3.5rem;
}

.offerte-scadute-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #bbb;
}

.offerte-scadute-header::before,
.offerte-scadute-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

/* Offerta card scaduta */
.offerta-card.scaduta {
    opacity: 0.7;
}

/* Offer card scaduta (homepage) */
.offer-card.scaduta {
    opacity: 0.65;
}

.offerta-card.scaduta .price {
    color: #aaa;
}

.offerta-img {
    position: relative;
}

.offerta-scaduta-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #888;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Banner offerta scaduta (pagina dettaglio) */
.offerta-scaduta-banner {
    background: #fef3e8;
    border-top: 1px solid #f4c58a;
    border-bottom: 1px solid #f4c58a;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: #7a3a00;
}

.offerta-scaduta-banner strong {
    font-weight: 700;
}

/* Scadenza pill quando scaduta */
.offerta-scadenza-expired {
    background: #f0f0f0;
    color: #888;
}

/* Prezzi offerta scaduta */
.offerta-detail-expired .prezzo-offerta {
    color: #aaa;
}

.offerta-detail-expired .sconto-badge {
    background: #ccc;
}

/* ===== Cookie Banner ===== */
#lc-consent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    z-index: 9000;
    padding: 1rem 0;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #e63946, #f4831f, #f7c948, #3dba6e, #2196f3, #7b2ff7) 1;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-inner p {
    font-size: 0.85rem;
    color: #ccc;
    margin: 0;
    flex: 1;
    min-width: 200px;
    line-height: 1.5;
}
.cookie-inner a { color: #2196f3; text-decoration: underline; }
.cookie-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.cookie-btns .btn-primary,
.cookie-btns .btn-secondary {
    font-size: 0.8rem;
    padding: 8px 16px;
}

/* ===== Cookie Modal ===== */
#cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}
.cookie-modal-box {
    position: relative;
    background: #1e1e1e;
    border-radius: 12px;
    padding: 2rem;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid #2c2c2c;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    color: #fff;
}
.cookie-modal-box h3 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}
.cookie-modal-box > p {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.cookie-category {
    border-top: 1px solid #2c2c2c;
    padding: 1rem 0;
}
.cookie-category:last-of-type {
    border-bottom: 1px solid #2c2c2c;
    margin-bottom: 1.5rem;
}
.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
}
.cookie-category-header strong {
    font-size: 0.9rem;
    font-weight: 600;
}
.cookie-badge-required {
    font-size: 0.65rem;
    background: #2196f3;
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 0.5rem;
    font-weight: 600;
    vertical-align: middle;
}
.cookie-category-desc {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    line-height: 1.5;
}
.cookie-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.cookie-modal-actions .btn-primary,
.cookie-modal-actions .btn-secondary {
    font-size: 0.85rem;
    padding: 10px 20px;
}

/* ===== Cookie Toggle Switch ===== */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}
.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #444;
    border-radius: 26px;
    transition: background 0.25s;
}
.cookie-slider:before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
}
.cookie-toggle input:checked + .cookie-slider {
    background: #2196f3;
}
.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(20px);
}
.cookie-toggle input:focus-visible + .cookie-slider {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

/* ===== Floating Cookie Settings Button ===== */
#cookie-settings-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 8000;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 14px rgba(0,0,0,0.35);
    padding: 0;
}
#cookie-settings-btn:hover {
    background: #2c2c2c;
    transform: scale(1.1);
}
#cookie-settings-btn svg {
    width: 20px;
    height: 20px;
    fill: #aaa;
}

@media (max-width: 600px) {
    .cookie-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .cookie-btns { width: 100%; justify-content: flex-end; }
    .cookie-modal-box { padding: 1.5rem; }
    .cookie-modal-actions { flex-direction: column; }
    .cookie-modal-actions .btn-primary,
    .cookie-modal-actions .btn-secondary { width: 100%; text-align: center; }
}