body.page-template-emulatore-opf .site-content,
body.page-template-emulatore-opf #primary,
body.page-template-emulatore-opf #content,
body.page-template-emulatore-opf .content-area,
body.page-template-emulatore-opf article {
    background: #0a0a0a !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.opf-wrapper {
    background: #0a0a0a;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

.opf-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    overflow: hidden;
    background: linear-gradient(160deg, #1a0a0a 0%, #0a0a0a 40%, #0d0505 100%);
}

.opf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(212,35,29,0.18) 0%, transparent 70%);
    z-index: 0;
}

.opf-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    padding: 0 40px;
}

.opf-hero-split {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 80px;
    align-items: center;
    text-align: left;
}

.opf-hero-text { order: 1; }
.opf-hero-product { order: 2; }

.opf-eyebrow-tag {
    display: inline-block;
    background: rgba(212,35,29,0.12);
    border: 1px solid rgba(212,35,29,0.2);
    color: #D4231D;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 20px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.opf-hero h1 {
    font-size: 5.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.opf-hero h1 span { color: #D4231D; }

.opf-hero p {
    font-size: 1.6rem;
    color: #cccccc;
    line-height: 1.8;
    font-family: Arial, sans-serif;
    margin-bottom: 40px;
}

.opf-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #D4231D;
    color: #fff;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.opf-hero-cta:hover {
    background: #b81c17;
    transform: translateY(-2px);
    color: #fff;
}

.opf-hero-product-img {
    width: 100%;
    max-width: 520px;
    display: block;
    border-radius: 20px;
    filter: drop-shadow(0 20px 60px rgba(212,35,29,0.25)) drop-shadow(0 8px 24px rgba(0,0,0,0.6));
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}

.opf-hero-product-img:hover {
    transform: translateY(-12px) scale(1.00);
    filter: drop-shadow(0 36px 80px rgba(212,35,29,0.45)) drop-shadow(0 16px 40px rgba(0,0,0,0.7));
}

.opf-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--opf-hero-bg) center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
}

@media (max-width: 968px) {
    .opf-hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .opf-hero h1 { font-size: 3.8rem; }
    .opf-hero-product-img { max-width: 280px; margin: 0 auto; }
}

/* Problem Section */
.opf-problem {
    padding: 12rem 2rem;
    background: #0a0a0a;
    position: relative;
}

.opf-problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #D4231D 50%, transparent 100%);
}

.opf-problem-container {
    max-width: 1400px;
    margin: 0 auto;
}

.opf-section-header {
    text-align: center;
    margin-bottom: 8rem;
}

.opf-section-tag {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #D4231D;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    padding: 1rem 2.5rem;
    border: 2px solid #D4231D;
    border-radius: 50px;
}

.opf-section-title {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.opf-section-subtitle {
    font-size: 1.9rem;
    line-height: 1.7;
    color: #999;
    max-width: 800px;
    margin: 0 auto;
}

.opf-problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 6rem;
}

.opf-problem-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid #222;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.opf-problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #D4231D 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.opf-problem-card:hover { transform: translateY(-10px); border-color: #D4231D; }
.opf-problem-card:hover::before { opacity: 1; }

.opf-problem-icon { font-size: 3rem; margin-bottom: 2rem; }

.opf-problem-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.opf-problem-card p {
    font-size: 1.6rem;
    line-height: 1.7;
    color: #999;
}

/* Benefits Carousel */
.opf-benefits {
    padding: 12rem 2rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
    position: relative;
}

.opf-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #D4231D 50%, transparent 100%);
}

.opf-carousel-wrapper {
    max-width: 1400px;
    margin: 6rem auto 0;
}

.opf-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #1a1a1a;
    border: 1px solid #222;
}

.opf-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.opf-carousel-slide {
    min-width: 100%;
    padding: 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.opf-carousel-slide-content h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: #ffffff;
}

.opf-carousel-slide-content p {
    font-size: 1.7rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 3rem;
}

.opf-carousel-slide-visual {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #D4231D 0%, #8B0000 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.3);
}

.opf-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem 0;
}

.opf-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.opf-carousel-dot.active {
    background: #D4231D;
    transform: scale(1.3);
}

/* Solution Section */
.opf-solution {
    padding: 12rem 2rem;
    background: #0a0a0a;
}

.opf-solution-container {
    max-width: 1400px;
    margin: 0 auto;
}

.opf-solution-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8rem;
    align-items: center;
    margin-top: 6rem;
}

.opf-solution-left h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: #D4231D;
}

.opf-solution-left p {
    font-size: 1.7rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 3rem;
}

.opf-solution-features {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

.opf-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 15px;
    border-left: 4px solid #D4231D;
    transition: all 0.3s ease;
}

.opf-feature-item:hover {
    transform: translateX(10px);
    background: #1a1a1a;
}

.opf-feature-icon {
    font-size: 2.5rem;
    color: #D4231D;
    flex-shrink: 0;
}

.opf-feature-text h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.opf-feature-text p {
    font-size: 1.5rem;
    color: #999;
    margin: 0;
}

.opf-solution-right { position: relative; }

.opf-device-mockup {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.opf-device-mockup img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(212, 35, 29, 0.3));
    border-radius: 30px;
    aspect-ratio: 3/4;
    object-fit: cover;
}

/* Installation Section */
.opf-installation {
    padding: 12rem 2rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 50%, #0a0a0a 100%);
    position: relative;
}

.opf-installation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #D4231D 50%, transparent 100%);
}

.opf-installation-container {
    max-width: 1400px;
    margin: 0 auto;
}

.opf-installation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 6rem;
}

.opf-install-step {
    text-align: center;
    padding: 3rem 2rem;
    background: #1a1a1a;
    border-radius: 15px;
    border: 1px solid #222;
    transition: all 0.4s ease;
    position: relative;
}

.opf-install-step::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(135deg, #D4231D 0%, transparent 100%);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.opf-install-step:hover { transform: translateY(-10px); }
.opf-install-step:hover::before { opacity: 0.3; }

.opf-install-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4231D 0%, #8B0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 900;
    margin: 0 auto 2rem;
    color: #ffffff;
}

.opf-install-step h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.opf-install-step p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #999;
}

/* Combo Section */
.opf-combo {
    padding: 12rem 2rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 50%, #0a0a0a 100%);
    position: relative;
}

.opf-combo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #D4231D 50%, transparent 100%);
}

.opf-combo-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.opf-combo-box {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(15, 15, 15, 0.95) 100%),
                var(--opf-combo-bg-image, none) center/cover no-repeat;
    border: 2px solid #D4231D;
    border-radius: 30px;
    padding: 6rem;
    margin-top: 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.opf-combo-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(212, 35, 29, 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.opf-combo-box > * {
    position: relative;
    z-index: 1;
}

.opf-combo-box h3 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #D4231D 0%, #ff6666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #ffffff;
}

.opf-combo-box p {
    font-size: 1.8rem;
    line-height: 1.7;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.opf-combo-features {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    margin-top: 4rem;
    align-items: center;
}

.opf-combo-plus {
    font-size: 6rem;
    font-weight: 900;
    color: #D4231D;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: plusPulse 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(212, 35, 29, 0.4);
}

@keyframes plusPulse {
    0%, 100% { transform: scale(1); text-shadow: 0 0 30px rgba(212, 35, 29, 0.4); }
    50% { transform: scale(1.15); text-shadow: 0 0 50px rgba(212, 35, 29, 0.7); }
}

.opf-combo-feature {
    background: #0a0a0a;
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid #333;
    text-align: left;
}

.opf-combo-feature h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #D4231D;
    margin-bottom: 1.5rem;
}

.opf-combo-feature ul { list-style: none; }

.opf-combo-feature li {
    font-size: 2.0rem;
    color: #cccccc;
    padding: 1rem 0;
    padding-left: 3rem;
    position: relative;
    text-align: left;
}

.opf-combo-feature li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #D4231D;
    font-weight: 900;
    font-size: 1.8rem;
}

.opf-combo-product {
    position: absolute;
    right: -80px;
    bottom: -60px;
    width: 320px;
    z-index: 10;
    pointer-events: none;
}

.opf-combo-product img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6));
}

/* CTA Final */
.opf-cta-final {
    padding: 12rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    text-align: center;
    position: relative;
}

.opf-cta-final::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #D4231D 50%, transparent 100%);
}

.opf-cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.opf-cta-content h2 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 3rem;
    color: #ffffff;
}

.opf-cta-content p {
    font-size: 1.9rem;
    line-height: 1.7;
    color: #999;
    margin-bottom: 5rem;
}

.opf-cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.opf-btn-primary,
.opf-btn-secondary {
    padding: 2rem 4rem;
    border-radius: 60px;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
    display: inline-block;
}

.opf-btn-primary {
    background: linear-gradient(135deg, #D4231D 0%, #8B0000 100%);
    color: #ffffff;
    box-shadow: 0 20px 60px rgba(212, 35, 29, 0.3);
}

.opf-btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(212, 35, 29, 0.5);
}

.opf-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.opf-btn-secondary:hover {
    background: #ffffff;
    color: #0a0a0a;
}

/* Responsive */
@media (max-width: 968px) {
    .opf-hero-content { grid-template-columns: 1fr; gap: 5rem; }
    .opf-hero-left h1 { font-size: 4.5rem; }
    .opf-problem-grid { grid-template-columns: 1fr; }
    .opf-carousel-slide { grid-template-columns: 1fr; padding: 4rem 3rem; }
    .opf-solution-content { grid-template-columns: 1fr; gap: 5rem; }
    .opf-installation-grid { grid-template-columns: repeat(2, 1fr); }
    .opf-combo-features { grid-template-columns: 1fr; gap: 2rem; }
    .opf-combo-plus { font-size: 4rem; padding: 1rem 0; }
    .opf-combo-product { display: none; }
    .opf-combo-box { padding: 4rem 2rem; }
    .opf-combo-feature { padding: 2.5rem 2rem; margin: 0; width: 100%; }
    .opf-combo-feature li { font-size: 1.6rem; }
    .opf-section-title { font-size: 3.5rem; }
    .opf-carousel-slide-visual {
        background: none;
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .opf-hero-left h1 { font-size: 3.2rem; }
    .opf-hero-left .subtitle { font-size: 1.8rem; }
    .opf-installation-grid { grid-template-columns: 1fr; }
    .opf-section-title { font-size: 2.8rem; }
    .opf-cta-content h2 { font-size: 3.2rem; }
    .opf-cta-buttons { flex-direction: column; }
    .opf-carousel-slide { padding: 3rem 2rem; }
    .opf-combo-box { padding: 4rem 2rem; }
}
