/* ==========================================================================
   1. Variabili Globali e Setup di Base
   ==========================================================================  */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, svg, iframe {
  max-width: 100%;
  height: auto;
}

:root {
    /* Palette Colori Primaria */
    --primary-color: #1572A1;
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #ecfeff;

    /* Palette Colori Neutri */
    --dark: #0f172a;
    --medium: #334155;  
    --light-text: #cbd5e1;
    --secondary: #64748b;
    
    --bg-light: linear-gradient(to bottom, #ffffff, #d2f3f853, #ffffff);
    --bg-white: #ffffff;
    --border-color: #e2e8f0;

    /* Colori di Stato */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Gradienti */
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--primary));
    --deep-blue-gradient: linear-gradient(135deg, #0a2e4e, var(--primary-color));

    /* UI & Spaziatura */
    --radius: 0.75rem;
    --radius-lg: 1.25rem;

    /* Ombre */
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.07), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transizioni */
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

/* Reset e Stili Globali */
body {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    background-color: var(--bg-white);
    color: var(--medium);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    overflow-x: hidden;
}

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

section {
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
}

/* Tipografia */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin: 0;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    letter-spacing: -2px;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -1.5px;
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-weight: 400;
    line-height: 1.75;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.lead {
    font-size: 1.25rem;
    color: var(--secondary);
    max-width: 750px;
    margin: 1.5rem auto 2.5rem auto;
}

/* ==========================================================================
   2. Header e Navigazione
   ========================================================================== */

.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-slow);
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-color);
}

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

.logo {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 180px;
    height: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav a:not(.btn) {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:not(.btn):hover {
    color: var(--dark);
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    transition: width 0.3s ease-in-out;
}

.main-nav a:not(.btn):hover::after {
    width: 60%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-menu-btn .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 3px;
}

.mobile-menu-btn.open .icon-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.open .icon-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .icon-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   3. Componenti Riutilizzabili (Bottoni, Badge, etc.)
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-slow);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: #e9c94a;
    color: #ffffff;
    border:var(--primary) 2px solid;
    
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--bg-white);
    border-color: #0e3c52;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: var(--shadow-md);
}

.btn-pulsing {
    animation: subtle-pulse 2.5s infinite ease-in-out;
}

.step-badge {
    display: inline-block;
    padding: 0.7em 1.2em;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    border-radius: 999px;
    background: var(--primary-gradient);
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(21, 114, 161, 0.2), 0 3px 6px rgba(0, 0, 0, 0.1);
    transform: rotate(-3deg);
}

.coming-soon-badge {
    background: linear-gradient(135deg, #8f9ebb, #5b9fff94);
    color: #f9fafb;
    font-size: 0.75rem;
    padding: 0.3em 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5%;
}

.coming-soon-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: shimmer 4s infinite linear;
}

.section-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.section-divider-top {
    top: -1px;
    bottom: auto;
    transform: rotate(0deg);
}

.section-divider svg {
    position: relative;
    display: block;
    width: 100%; 
    height: 120px;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: currentColor;
    animation: blink 0.7s infinite;
    vertical-align: bottom;
}



/* ==========================================================================
   4. Stili delle Sezioni Principali
   ========================================================================== */

.hero-optimized {
    background: linear-gradient(135deg, #0a2e4e 0%, #1572A1 100%);
    color: white;
    padding: 5rem 0 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-optimized .container {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-headline-ctr {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
}

.hero-headline-ctr .highlight-text {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-pain {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle-pain strong {
    color: white;
    font-weight: 700;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
}

.benefit-item strong {
    color: white;
    font-weight: 700;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn-xl {
    padding: 18px 40px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.btn-subtitle {
    font-size: 0.8em;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 5px;
}

.btn-secondary-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    display: inline-flex;
    align-items: center;
}
.btn-secondary-outline svg {
    color: #09a271; 
}
.btn-secondary-outline:hover {
    background: white;
    color: #0E3C52;
}
.btn-secondary-outline:hover svg {
        color: #0E3C52; 
}

.hero-social-proof-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-visual {
    font-size: 1.1em;
}

.rating-text strong {
    color: white;
    font-weight: 700;
}

.proof-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2em;
}

.trust-badges-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-badge-inline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.icon {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

html.menu-open {
    overflow: hidden;
}

#come-funziona {
    background: var(--bg-light);
}

.efficiency-strip {
    padding: 100px 0;
    background: linear-gradient(to right, #ffffff, #f1f5f9, #ffffff);
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.strip-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    align-items: center;
}

.mini-badge {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    display: block;
}

.strip-info h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.strip-info p {
    color: var(--secondary);
    font-size: 1.1rem;
}

.strip-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.metric-card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    border: 1px solid #f1f5f9;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
    margin-bottom: 15px;
}

.metric-data .number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

.metric-data .label {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
}

.metric-card.highlight {
    background: var(--primary);
}

.metric-card.highlight .number,
.metric-card.highlight .label {
    color: white;
}

.metric-card.highlight .metric-icon svg {
    fill: white;
}

/*==========================================================================
   VIDEO SECTION - OTTIMIZZATA
   ========================================================================== */

.video-section {
    background: #f8fafc;
    padding: 80px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-header {
    text-align: center;
    margin-bottom: 50px;
    
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
    background: #000 ; /* FORZATO */
}

.video-wrapper-outer {
    width: 100%;
    max-width: 1100px;  /* Limita la larghezza massima */
    margin: 0 auto; 

}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height:0;
    overflow: hidden;
    cursor: pointer;
    background: #000; 
    border-radius: 15px;
    margin: 0 auto;
}

.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.4s ease;
}


.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(15, 23, 42, 0.3) 0%,
        rgba(15, 23, 42, 0.6) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: background 0.3s ease;
    border-radius: 10px;
}

.video-container:hover .video-overlay {
    background: radial-gradient(
        circle,
        rgba(15, 23, 42, 0.3) 0%,
        rgba(15, 23, 42, 0.6) 100%
    );
}

.play-button,
.play-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 0 rgba(255, 255, 255, 0.4);
    animation: pulse-play 2s infinite;
}


.video-duration,
.click-to-play-text {
    color: white;
    margin-top: 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    animation: fade-in-up 0.6s ease-out 0.3s both;
}
.video-element {
    position: absolute;
    top: 0 ;
    left: 0 ;
    width: 100% ;
    height: 100% ;
    object-fit: cover;
    z-index: 3 ;
    border-radius: 10px ;
}

.play-button:hover,
.play-btn:hover {
    transform: scale(1.15);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 15px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

.play-button:active,
.play-btn:active {
    transform: scale(0.95);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Icona Play */
.play-icon {
    width: 36px;
    height: 36px;
    margin-left: 5px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Animazione pulse */
@keyframes pulse-play {
    0%, 100% {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.3),
            0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.3),
            0 0 0 20px rgba(255, 255, 255, 0);
    }
}


@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    border-radius: 10px;
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid white;
    opacity: 0;
    z-index: -1;
}

.video-cta {
    text-align: center;
    margin-top: 40px;
}

.video-cta p {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .video-wrapper-outer {
        margin: 0 auto;
        border-radius: 12px;
        box-shadow: none;
        max-width: 100%;
    }

    .video-container {
        border-radius: 12px;
    }

    .play-button,
    .play-btn {
        width: 70px;
        height: 70px;
    }

    .play-icon {
        width: 28px;
        height: 28px;
    }

    .video-duration,
    .click-to-play-text {
        font-size: 0.95rem;
        margin-top: 1.2rem;
    }

    .video-section {
        padding: 60px 1ren;
    }

    .video-header {
        margin-bottom: 30px;
    }

    .video-cta {
        margin-top: 30px;
    }

    .video-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 50px 0.5rem;
    }
    
    .video-wrapper-outer {
        border-radius: 8px;
    }
    
    .video-container {
        border-radius: 8px;
    }
    .play-button,
    .play-btn {
        width: 60px;
        height: 60px;
    }

    .play-icon {
        width: 24px;
        height: 24px;
    }

    .video-duration,
    .click-to-play-text {
        font-size: 0.9rem;
    }

    
}


.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    margin-bottom: 6rem;
}

.feature:last-child {
    margin-bottom: 0;
}

.feature:nth-child(even) .feature-image {
    order: -1;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--secondary);
}

.feature-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
}

.feature-image:hover img {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
}

#comparison {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: var(--light-text);
    padding: 10rem 0;
}

#comparison h2 {
    color: var(--bg-white);
}

#comparison .section-subtitle {
    color: var(--light-text);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 4rem auto 0;
}

.comparison-column {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    color: var(--medium);
    min-width: 0; 
    overflow-wrap: break-word; 
}

.comparison-column.recommended {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.column-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.column-header svg {
    width: 40px;
    height: 40px;
    color: var(--dark);
}

.column-header .insreminder-logo-icon {
    width: 150px;
    height: auto;
}

.column-header h3 {
    font-size: 1.75rem;
    color: var(--dark);
}

.comparison-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-column ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.comparison-column ul li svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.comparison-column .icon-check-circle {
    color: var(--success);
}

.comparison-column .icon-times-circle {
    color: var(--error);
}

#target-audience {
    background-color: var(--bg-light);
}

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

.audience-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-slow);
    border-left: 5px solid transparent;
}

.audience-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--primary);
}

.audience-card .icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    box-shadow: 0 8px 15px rgba(21, 114, 161, 0.25);
    color: white;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.audience-card:hover .icon-wrapper {
    transform: scale(1.1) translateY(-5px);
}

.audience-card .icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.audience-card h3 {
    margin-bottom: 1rem;
}

#pricing {
    background-color: var(--bg-white);
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-weight: 600;
    color: var(--secondary);
    transition: color 0.3s;
    cursor: pointer;
}

.toggle-label.active {
    color: var(--primary);
}

.annual-discount {
    background: var(--warning);
    color: var(--dark);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.vat-info {
    display: inline-block;
    background-color: #e0f2fe;
    color: #0c4a6e;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3em 0.8em;
    border-radius: 999px;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #bae6fd;
}

.pricing-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pricing-card .price-container {
    margin: 1.5rem 0;
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
}

.pricing-card .price-desc {
    color: var(--secondary);
    margin-bottom: 2rem;
    min-height: 40px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 2rem 0;
    flex-grow: 1;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pricing-card ul li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary);
}

.price-value[data-period="yearly"] {
    display: none;
}

.all-plans-include {
    margin-top: 4rem;
    text-align: center;
}

.all-plans-include h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.all-plans-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-feature svg {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.guarantee-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.guarantee-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--primary-light);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition-slow);
}

.guarantee-box:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
    border-style: solid;
}

.guarantee-box .guarantee-logo {
    width: 150px;
    height: auto;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.guarantee-box:hover .guarantee-logo {
    transform: rotate(5deg) scale(1.05);
}

.guarantee-content h3 {
    color: var(--primary-dark);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.guarantee-content p {
    color: var(--medium);
    margin: 0;
    text-align: left;
}

/* ==========================================================================
   FAQ SECTION - OTTIMIZZATA
   ========================================================================== */

/* ==========================================================================
   FAQ SECTION - UNIFICATA PER LANDING E BLOG
   ========================================================================== */

.faq-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.faq-container,
.faq-container-enhanced {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(21, 114, 161, 0.1);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(21, 114, 161, 0.15);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: color 0.3s ease;
    gap: 20px;
}

.faq-question:hover {
    color: var(--primary);
}

/* IMPORTANTE: Supporto per entrambe le strutture HTML */
.faq-question > span:first-child,
.faq-question-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

/* Supporto icone SVG e testuali */
.faq-icon,
.faq-toggle-icon {
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
}

.faq-toggle-icon {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 300;
}

/* Rotazione icone quando attivo */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.faq-answer-content {
    padding: 0 24px 24px;
    color: var(--secondary);
    line-height: 1.7;
}

.faq-answer-content p {
    margin: 0 0 1rem 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content strong {
    color: var(--dark);
    font-weight: 600;
}

.faq-answer-content ol,
.faq-answer-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.faq-answer-content li:last-child {
    margin-bottom: 0;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-question {
        padding: 20px 16px;
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 0 16px 20px;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        font-size: 0.95rem;
        padding: 18px 14px;
    }

    .faq-answer-content {
        font-size: 0.9rem;
        padding: 0 14px 18px;
    }
}






.final-cta-wrapper {
    padding: 10rem 1.5rem;
    position: relative;
    background-color: var(--bg-light);
}

.final-cta {
    background: linear-gradient(60deg, var(--dark) 0%, var(--primary) 100%);
    color: white;
    padding: 6rem 2rem;
    border-radius: calc(var(--radius-lg) * 1.5);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.final-cta h2 {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
}

.final-cta .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.final-cta .btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    background: white;
    color: var(--primary);
    transition: var(--transition-slow);
    border-radius: var(--radius);
}

.final-cta .btn:hover {
    color: var(--primary-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.main-footer {
    padding: 8rem 0 2rem 0;
    background-color: var(--bg-light);
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.main-footer .logo {
    margin-bottom: 1.5rem;
    display: inline-flex;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: scale(1.2) translateY(-3px);
}

.social-links a svg {
    width: 24px;
    height: 24px;
}

.copyright {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    box-sizing: border-box;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark);
    color: var(--light-text);
    padding: 1.5rem 1rem;
    z-index: 1050;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    width: 100%;
    max-width: 100%;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.cookie-banner.show { 
    transform: translateY(0); 
}

.cookie-content { 
    min-width: 0;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-content p { 
    min-width: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text);
    flex: 1;
    min-width: 200px;
}

.cookie-content p a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-actions button {
    border: none;
    padding: 0.6em 1.2em;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-cookie-accept {
    background-color: var(--primary);
    color: white;
}

.btn-cookie-accept:hover {
    background-color: var(--primary-dark);
}

.btn-cookie-reject {
    background-color: var(--secondary);
    color: white;
}

.btn-cookie-reject:hover {
    background-color: var(--medium);
}

.clickable-image {
    cursor: zoom-in;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.9);
    align-items: center;
    justify-content: center;
    animation: lightbox-fade-in 0.3s ease;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    animation: lightbox-zoom-in 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* ==========================================================================
   5. Animazioni e Accessibilità
   ========================================================================== */

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

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

@keyframes lightbox-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes lightbox-zoom-in {
    from {
        transform: scale(0.9);
    }
    to {
        transform: scale(1);
    }
}

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

@keyframes shimmer {
    0% {
        left: -150%;
    }
    50% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms ;
        animation-iteration-count: 1 ;
        transition-duration: 0.01ms ;
        scroll-behavior: auto ;
    }
        .trust-carousel {
        animation: none !important;
    }
    
    .trust-badge-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   VALUE STRIP E STILI OTTIMIZZATI
   ========================================================================== */

.value-strip {
    background: #f8fafc;
    padding: 60px 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card.highlight {
    background: linear-gradient(135deg, #0E3C52 0%, #1a5570 100%);
    color: white;
}

.value-number {
    font-size: 3em;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 10px;
}

.value-card.highlight .value-number {
    color: white;
}

.value-label {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
    color: #0E3C52;
}

.value-card.highlight .value-label {
    color: white;
}

.value-desc {
    font-size: 0.9em;
    color: #6b7280;
}

.value-card.highlight .value-desc {
    color: rgba(255,255,255,0.9);
}

.problem-solution-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.column-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.problem-badge {
    background: #fee2e2;
    color: #dc2626;
}

.solution-badge {
    background: #d1fae5;
    color: #059669;
}

.problem-column h2,
.solution-column h2 {
    font-size: 2em;
    margin-bottom: 30px;
    line-height: 1.2;
}

.problem-list,
.solution-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.problem-item,
.solution-item {
    display: flex;
    gap: 15px;
    align-items: start;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.problem-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.solution-icon {
    color: #10b981;
    font-size: 1.5em;
    flex-shrink: 0;
}

.problem-item strong,
.solution-item strong {
    font-weight: 700;
    color: #0E3C52;
    display: block;
    margin-bottom: 5px;
}

.solution-item p {
    margin: 0;
    font-size: 0.95em;
    color: #6b7280;
}

.problem-quote {
    background: #f8fafc;
    padding: 25px;
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    font-style: italic;
    color: #4b5563;
}

.problem-quote cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-size: 0.9em;
    color: #6b7280;
}

.solution-cta {
    margin-top: 30px;
    text-align: center;
}

.cta-note {
    margin-top: 12px;
    font-size: 0.9em;
    color: #6b7280;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.btn-block {
    /* width: 100%; */
    display: block;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.step-number {
    display: inline-block;
    padding: 6px 14px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-content h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #0E3C52;
}

.feature-desc {
    font-size: 1.05em;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 20px;
}

.feature-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    color: #374151;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
}

.testimonial-quote {
    font-size: 4em;
    color: #0E3C52;
    opacity: 0.15;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 25px;
    padding-top: 20px;
    color: #374151;
}

.testimonial-author {
    border-top: 2px solid #e5e7eb;
    padding-top: 15px;
}

.author-info {
    margin-bottom: 10px;
}

.author-name {
    font-weight: 700;
    color: #0E3C52;
    font-size: 1.05em;
}

.author-role {
    color: #6b7280;
    font-size: 0.9em;
    margin-top: 3px;
}

.testimonial-metric {
    margin-top: 15px;
    padding: 12px;
    background: #f0f9ff;
    border-left: 3px solid #10b981;
    border-radius: 6px;
    font-size: 0.95em;
    color: #0E3C52;
}

.pricing-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card-enhanced {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.pricing-card-enhanced.trial-card {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.pricing-card-enhanced.recommended {
    border-color: #0E3C52;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.trial-card .card-badge {
    background: #10b981;
}

.pricing-card-enhanced h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.price-display {
    margin: 1.5rem 0;
}

.price-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-big {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
}

.price-period {
    font-size: 1.1rem;
    color: var(--secondary);
}

.price-subtitle {
    color: var(--secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.feature-list-enhanced {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    flex-grow: 1;
}

.feature-list-enhanced li {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.icon-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #10b981;
}

.card-footer-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--secondary);
    text-align: center;
}

.badge-soon {
    display: inline-block;
    background: linear-gradient(135deg, #8f9ebb, #5b9fff94);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 600;
}

.guarantee-block {
    margin-top: 60px;
}

.guarantee-inner {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border: 2px solid #10b981;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.guarantee-icon {
    flex-shrink: 0;
}

.guarantee-icon svg {
    width: 60px;
    height: 60px;
    color: #10b981;
}

.guarantee-content h3 {
    font-size: 1.5rem;
    color: #0E3C52;
    margin-bottom: 10px;
}

.guarantee-content p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.faq-container-enhanced {
    max-width: 850px;
    margin: 0 auto;
}

.btn-trial {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
}

.btn-trial:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

html {
    scroll-padding-top: 100px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid #0891b2;
    outline-offset: 2px;
}

.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   6. Media Queries per Responsività
   ========================================================================== */

@media (max-width: 991px) {
    .strip-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .strip-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .feature {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .feature-text .step-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-image {
        order: -1 ;
    }

    .guarantee-box {
        flex-direction: column;
        text-align: center;
    }

    .guarantee-inner {
        flex-direction: column;
        text-align: center;
    }

    .pricing-card.recommended {
        transform: scale(1);
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 85%;
        max-width: 350px;
        background-color: var(--bg-white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 1.5rem 2rem;
        box-sizing: border-box;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        visibility: hidden;
    }

    .main-nav > a:not(.btn) {
        display: none;
    }

    .main-nav .nav-actions {
        display: none;
    }

    .main-nav.mobile-active {
        transform: translateX(0);
        visibility: visible;
    }

    .main-nav.mobile-active > a:not(.btn) {
        display: block;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.1rem;
    }

    .main-nav.mobile-active .nav-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 2rem;
        gap: 1rem;
    }

    .problem-solution-wrapper {
        grid-template-columns: 1fr;
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 1rem;
    }

    .hero-optimized {
        padding: 3rem 0 4rem 0;
    }

    .hero-headline-ctr {
        font-size: 2.6rem;
    }

    .hero-subtitle-pain {
        font-size: 1.1rem;
    }

    .trust-badges-row {
        gap: 0.75rem;
    }

    .trust-badge-inline {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-social-proof-enhanced {
        flex-direction: column;
        gap: 1rem;
    }

    .section-divider svg {
        height: 70px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    #comparison {
        padding: 5rem 1rem;
    }

    .pricing-grid,
    .pricing-grid-enhanced {
        grid-template-columns: 1fr;
    }

    .pricing-card,
    .pricing-card-enhanced {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .cookie-content {
        width: 100%;
        max-width: 1200px;
        padding: 0.5rem;
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-actions button {
        width: 100%;
        min-width: 0;
        font-size: 1rem;
    }

    .video-container {
        border-radius: 0;
    }

    .play-btn {
        width: 60px;
        height: 60px;
    }

    .play-btn svg {
        width: 24px;
        height: 24px;
    }
        .faq-question {
        padding: 20px 16px;
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 0 16px 20px;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
    }

    .video-wrapper {
        margin: 0 -1rem;
        border-radius: 0;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-icon {
        width: 24px;
        height: 24px;
    }

    .video-section {
        padding: 60px 0;
    }

    .video-header {
        margin-bottom: 30px;
    }

    .video-cta {
        margin-top: 30px;
    }

    .video-cta p {
        font-size: 1rem;
    }
}

.column-header h3 { 
    min-width: 0; 
}

@media (max-width: 700px) {
    .audience-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .comparison-grid { 
        grid-template-columns: 1fr; 
        max-width: 100%; 
        margin: 2rem 1rem; 
    }
    
    .comparison-column { 
        padding: 1.5rem; 
    }
    
    .column-header { 
        gap: 0.5rem; 
    }
    
    .column-header .insreminder-logo-icon { 
        width: 48px; 
        height: auto; 
    }
    
    .column-header h3 { 
        font-size: 1.15rem; 
        word-break: break-word; 
        margin: 0; 
    }
}
@media (max-width: 480px) {
    .faq-question {
        font-size: 0.95rem;
        padding: 18px 14px;
    }

    .faq-answer-content {
        font-size: 0.9rem;
        padding: 0 14px 18px;
    }

    .play-button {
        width: 50px;
        height: 50px;
    }

    .play-icon {
        width: 20px;
        height: 20px;
    }
}


@media print {
    .main-header,
    .hero-optimized,
    .cookie-banner,
    footer {
        display: none ;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   UX ENHANCEMENTS (AGGIUNTE)
   ========================================================================== */

/* 1. Selezione del testo in tinta con il brand */
::selection {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* 2. Scrollbar personalizzata (più elegante e meno invasiva) */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 3. Miglioramento Focus (Accessibilità per navigazione da tastiera) */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 4. Micro-interazioni sui bottoni (Feedback tattile al click) */
.btn:active {
    transform: scale(0.98); /* Leggero "click" effect */
}

/* 5. Hover Cards (Audience & Comparison) - Feedback di profondità */
.audience-card, 
.comparison-column {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.comparison-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    z-index: 2; /* Porta in primo piano */
}

/* 6. Leggibilità migliorata per i testi lunghi */
p {
    line-height: 1.7; /* Aumenta leggermente per rilassare l'occhio */
    margin-bottom: 1.5rem; /* Più respiro tra i paragrafi */
}

/* 7. Input Form (se presenti o futuri) - Feedback immediato */
input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

/* 8. Link nel footer o nel testo */
a:not(.btn):not(.nav-link) {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}
a:not(.btn):not(.nav-link):hover {
    color: var(--primary);
    text-decoration-color: var(--primary);
}