/* ============================================
   VARIABILI CSS - PALETTE COLORI
   ============================================ */
:root {
    --p-bordeaux: #7A1F3D;
    --p-vineyard: #728C3A;
    --p-circuit-blue: #2CA7C6;
    --p-midnight-navy: #1A2A43;
    --bg-neutral: #F8F6F4;
    
    /* Overlay opacities */
    --overlay-bordeaux: rgba(122, 31, 61, 0.45);
    --overlay-vineyard: rgba(114, 140, 58, 0.40);
    --overlay-circuit-blue: rgba(44, 167, 198, 0.40);
    --overlay-dark: rgba(0, 0, 0, 0.20);
    
    /* Transizioni */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   CHROME COMPATIBILITY FIXES
   ============================================ */
/* Fix per Chrome - viewport units e layout */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .section {
        height: 100vh;
        min-height: 100vh;
    }
    
    .section-contact {
        height: 100vh !important;
        min-height: 100vh !important;
    }
    
    .section-contact .contact-content {
        flex: 1;
    }
    
    .contact-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 2;
    }
}

/* Fix aggiuntivo per Chrome usando @supports */
@supports (-webkit-appearance: none) and (not (-moz-appearance: none)) {
    .section {
        height: 100vh;
        min-height: 100vh;
    }
    
    .section-contact {
        height: 100vh;
        min-height: 100vh;
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

/* Ottimizzazioni mobile - meno aggressive */
@media (max-width: 768px) {
    /* Mantieni scroll snap ma riduci la rigidità */
    html {
        scroll-snap-type: y proximity; /* Cambiato da mandatory a proximity */
    }
}

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

/* ============================================
   SEZIONI BASE
   ============================================ */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Fallback per browser legacy */
    height: 100vh;
    min-height: 100lvh; /* Fallback aggiuntivo */
    height: 100lvh;
    min-height: 100svh; /* Fallback per browser che non supportano dvh */
    height: 100svh;
    min-height: 100dvh; /* Dynamic viewport height - Safari iOS 15+ */
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    overflow: hidden;
    margin: 0;
    padding: 0;
    padding-top: env(safe-area-inset-top);
    isolation: isolate;
    z-index: 0;
}

/* Sezioni problema: allineamento in basso a sinistra */
.section-problem {
    align-items: flex-end;
    justify-content: flex-start;
}

/* ============================================
   VIDEO BACKGROUND
   ============================================ */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    transform: scale(1.05);
    transition: transform var(--transition-slow);
    will-change: transform;
    pointer-events: none;
}

.section:hover .video-background {
    transform: scale(1);
}

/* ============================================
   OVERLAY COLORATI - DOPPIO STRATO ELEGANTE
   ============================================ */

/* Overlay scuro base (30-40% nero) - applicato a tutte le sezioni problema */
.section-problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.35);
}

/* Overlay colorato Pantone sopra lo strato scuro - con gradiente verticale */
.section-problem::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Sezione 1: Bordeaux con gradiente verticale */
.section[data-overlay="bordeaux"]::after {
    background: linear-gradient(
        180deg,
        rgba(122, 31, 61, 0.15) 0%,
        rgba(122, 31, 61, 0.25) 50%,
        rgba(122, 31, 61, 0.40) 100%
    );
}

/* Sezione 2: Vineyard Green con gradiente verticale */
.section[data-overlay="vineyard"]::after {
    background: linear-gradient(
        180deg,
        rgba(114, 140, 58, 0.12) 0%,
        rgba(114, 140, 58, 0.22) 50%,
        rgba(114, 140, 58, 0.35) 100%
    );
}

/* Sezione 3: Circuit Blue con gradiente verticale */
.section[data-overlay="circuit-blue"]::after {
    background: linear-gradient(
        180deg,
        rgba(44, 167, 198, 0.12) 0%,
        rgba(44, 167, 198, 0.22) 50%,
        rgba(44, 167, 198, 0.35) 100%
    );
}

/* Sezione soluzione: sfondo chiaro senza video */
.section-solution {
    background-color: var(--bg-neutral);
    min-height: 100vh; /* Fallback finale */
    min-height: 100lvh; /* Fallback aggiuntivo */
    min-height: 100svh; /* Fallback */
    min-height: 100dvh; /* Dynamic viewport height - Safari iOS 15+ */
    overflow: hidden;
    isolation: isolate;
    z-index: 1;
}

.section-solution .video-background {
    display: none;
}

.section-solution::after {
    display: none;
}

.section-testimonials::before,
.section-contact::before {
    display: none;
}

.section-testimonials {
    overflow: hidden;
    isolation: isolate;
    z-index: 1;
}

.section-contact {
    overflow: hidden;
    isolation: isolate;
    z-index: 1;
}

/* ============================================
   CONTENUTO
   ============================================ */
.content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 90%;
    text-align: center;
    padding: 3rem 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--transition-base) forwards;
    margin: 0 auto;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenuto sezioni problema: allineato a sinistra - PULITO E LEGGIBILE */
.section-problem .content {
    text-align: left;
    padding-bottom: 5rem;
    padding-left: 4rem;
    padding-right: 4rem;
    padding-top: 3rem;
    animation-delay: 0.2s;
    background: transparent;
    max-width: 85%;
    position: relative;
    z-index: 3;
    margin-left: 0;
    margin-right: auto;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
.title-large {
    font-size: clamp(2.5rem, 7vw, 8vw);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 2.5rem;
    color: var(--p-midnight-navy);
    text-shadow: 
        0 0 20px rgba(0, 0, 0, 0.8),
        0 4px 30px rgba(0, 0, 0, 0.6),
        0 2px 15px rgba(0, 0, 0, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.4),
        -1px -1px 2px rgba(255, 255, 255, 0.3);
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
}

.title-large::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--p-bordeaux), var(--p-circuit-blue));
    transition: width var(--transition-slow);
    border-radius: 2px;
}

.section-problem .title-large::after {
    width: 100px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
}

/* Titoli nelle sezioni problema: ELEGANTE E LEGGIBILE */
.section-problem .title-large {
    color: #FFFBF8; /* Bianco leggermente caldo */
    font-weight: 800;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.subtitle {
    font-size: clamp(1.2rem, 2.5vw, 2.5vw);
    font-weight: 400;
    line-height: 1.6;
    color: var(--p-midnight-navy);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), 0 1px 6px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s 0.3s both;
}

/* Sottotitoli sezioni problema: ELEGANTE E LEGGIBILE */
.section-problem .subtitle {
    margin: 0;
    max-width: 100%;
    color: #FFFBF8; /* Bianco leggermente caldo */
    font-weight: 500;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.4),
        0 3px 12px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.7;
}

/* ============================================
   SEZIONE SOLUZIONE - LAYOUT COMPATTO
   ============================================ */
.section-solution {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
}

.solution-content {
    max-width: 1100px;
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.solution-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 0;
}

/* Colonna sinistra: Logo e branding */
.solution-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    padding: 0;
    justify-content: center;
    align-self: center;
}

.fenovite-logo {
    max-width: 360px;
    width: 100%;
    height: auto;
    margin: 0;
}

.product-label {
    font-size: 0.7rem;
    color: rgba(26, 42, 67, 0.55);
    font-weight: 400;
    margin: 0;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    text-align: center;
    width: 100%;
}

.datimeteox-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    opacity: 0.75;
    margin: 0 auto;
}

/* Colonna destra: Funzionalità */
.solution-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
}

.feature-item {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
    width: 100%;
    padding: 0;
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    min-width: 0;
}

.feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all var(--transition-base);
    margin: 0;
    padding: 0.875rem 0.75rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Dashboard - Circuit Blue */
.feature-dashboard .feature-icon {
    color: var(--p-circuit-blue);
    background: rgba(44, 167, 198, 0.1);
}

.feature-dashboard:hover .feature-icon {
    background: rgba(44, 167, 198, 0.15);
    box-shadow: 0 8px 20px rgba(44, 167, 198, 0.2);
}

.feature-dashboard .feature-title {
    color: var(--p-circuit-blue);
}

/* Report - Bordeaux */
.feature-report .feature-icon {
    color: var(--p-bordeaux);
    background: rgba(122, 31, 61, 0.1);
}

.feature-report:hover .feature-icon {
    background: rgba(122, 31, 61, 0.15);
    box-shadow: 0 8px 20px rgba(122, 31, 61, 0.2);
}

.feature-report .feature-title {
    color: var(--p-bordeaux);
}

/* Pagina - Vineyard Green */
.feature-page .feature-icon {
    color: var(--p-vineyard);
    background: rgba(114, 140, 58, 0.1);
}

.feature-page:hover .feature-icon {
    background: rgba(114, 140, 58, 0.15);
    box-shadow: 0 8px 20px rgba(114, 140, 58, 0.2);
}

.feature-page .feature-title {
    color: var(--p-vineyard);
}

.feature-title {
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    font-weight: 600;
    color: var(--p-midnight-navy);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    width: 100%;
}

.feature-description {
    font-size: clamp(0.9rem, 1vw, 0.95rem);
    color: rgba(26, 42, 67, 0.7);
    line-height: 1.5;
    margin: 0;
    width: 100%;
}

/* CTA Sezione Soluzione - CENTRATA SULLA PAGINA */
.solution-cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
    width: 100%;
}

.solution-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: white;
    background: linear-gradient(135deg, var(--p-bordeaux), #8B2A4A);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(122, 31, 61, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.solution-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.solution-cta:hover::before {
    left: 100%;
}

.solution-cta:hover {
    background: linear-gradient(135deg, #8B2A4A, var(--p-bordeaux));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 31, 61, 0.4);
}

.solution-cta:active {
    transform: translateY(0);
}

/* ============================================
   SEZIONE TESTIMONIANZE
   ============================================ */
.section-testimonials {
    background-color: var(--bg-neutral);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.section-testimonials .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    gap: 2.5rem;
}

.testimonials-title {
    margin: 0;
    color: var(--p-midnight-navy);
    text-shadow: none;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
}

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

.testimonial-card {
    background: white;
    border: 1px solid rgba(26, 42, 67, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    gap: 0.75rem;
    min-width: 0;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(26, 42, 67, 0.1);
    display: block;
    flex-shrink: 0;
}

.testimonial-info {
    margin-bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.testimonial-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--p-midnight-navy);
    margin: 0;
    line-height: 1.3;
    text-align: left;
}

.testimonial-role {
    font-size: 0.75rem;
    color: rgba(44, 167, 198, 0.8);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    margin: 0;
}

.testimonial-quote {
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(26, 42, 67, 0.75);
    line-height: 1.5;
    margin: 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.testimonial-quote.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.testimonial-card {
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

.testimonial-card::after {
    content: '...';
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: white;
    padding-left: 0.5rem;
    color: rgba(44, 167, 198, 0.8);
    font-weight: 600;
    pointer-events: none;
    opacity: 0.8;
}

.testimonial-card.expanded::after {
    display: none;
}

/* CTA Sezione Testimonianze */
.testimonials-cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0;
}

.testimonials-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: white;
    background: linear-gradient(135deg, var(--p-bordeaux), #8B2A4A);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(122, 31, 61, 0.3);
    position: relative;
    overflow: hidden;
}

.testimonials-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.testimonials-cta:hover::before {
    left: 100%;
}

.testimonials-cta:hover {
    background: linear-gradient(135deg, #8B2A4A, var(--p-bordeaux));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 31, 61, 0.4);
}

.testimonials-cta:active {
    transform: translateY(0);
}

/* ============================================
   SEZIONE CONTATTI
   ============================================ */
.section-contact {
    background-color: var(--bg-neutral);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 0;
    width: 100%;
    isolation: isolate;
}

.contact-content {
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem 1rem 2rem;
}

/* Header con loghi (come sezione 4) */
.contact-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-fenovite-logo {
    max-width: 360px;
    width: 100%;
    height: auto;
    margin: 0;
}

.contact-product-label {
    font-size: 0.8rem;
    color: rgba(26, 42, 67, 0.55);
    font-weight: 400;
    margin: 0;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    text-align: center;
}

.contact-datimeteox-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    opacity: 0.75;
    margin: 0 auto;
}

/* Testo introduttivo */
.contact-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(26, 42, 67, 0.8);
    margin: 0 auto 2.5rem;
    max-width: 500px;
    text-align: center;
}

/* Wrapper bottoni contatti */
.contact-buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}

/* Form contatti */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border: 2px solid rgba(26, 42, 67, 0.2);
    border-radius: 10px;
    background: white;
    color: var(--p-midnight-navy);
    transition: all var(--transition-base);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--p-circuit-blue);
    box-shadow: 0 0 0 4px rgba(44, 167, 198, 0.15), 0 4px 12px rgba(44, 167, 198, 0.1);
    transform: translateY(-2px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* CTA Invia */
.contact-submit-btn {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: white;
    background: linear-gradient(135deg, var(--p-bordeaux), #8B2A4A);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-base);
    margin: 1rem auto 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(122, 31, 61, 0.3);
    display: inline-block;
    text-decoration: none;
}

.contact-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.contact-submit-btn:hover::before {
    left: 100%;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #8B2A4A, var(--p-bordeaux));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 31, 61, 0.4);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Link secondario meno evidente */
.contact-secondary-link {
    display: block;
    margin: 1.25rem auto 0;
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    background: #6B7280;
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 2px 6px rgba(107, 114, 128, 0.2);
}

.contact-secondary-link:hover {
    background: #5B6370;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.35);
}

.contact-secondary-link:active {
    transform: translateY(0);
    background: #4B5563;
}

/* Footer sezione contatti - Full width in fondo */
.contact-footer {
    width: 100%;
    max-width: 100%;
    background-color: #000000;
    padding: 0.75rem 1.5rem;
    margin: 0;
    margin-top: auto;
    border-radius: 0;
    text-align: center;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    display: block;
    z-index: 2;
}

.footer-text {
    margin: 0;
    padding: 0;
    color: white;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
    width: 100%;
    display: block;
}

/* ============================================
   RESPONSIVE - BREAKPOINTS OTTIMIZZATI
   ============================================ */

/* Mobile Small (max 480px) */
@media (max-width: 480px) {
    .section {
        padding: 0.5rem;
    }

    .content {
        width: 95%;
        padding: 1rem;
    }

    .section-problem .content {
        padding-bottom: 3.5rem;
        padding-left: 1.75rem;
        padding-right: 1.75rem;
        padding-top: 2.5rem;
        max-width: 92%;
    }

    .title-large {
        font-size: clamp(2rem, 9vw, 9vw);
        margin-bottom: 1.5rem;
    }

    .section-problem .title-large {
        font-size: clamp(2.2rem, 10vw, 10vw);
    }

    .title-large::after {
        width: 60px;
        height: 3px;
    }

    .subtitle {
        font-size: clamp(1rem, 4.5vw, 4.5vw);
        line-height: 1.5;
    }

    .section-problem .subtitle {
        font-size: clamp(1.1rem, 5vw, 5vw);
        line-height: 1.6;
    }

    /* ============================================
       SEZIONE SOLUZIONE MOBILE PORTRAIT
       ============================================ */
    
    .section-solution {
        padding: 4rem 1rem 4rem 1rem;
        min-height: auto;
    }

    .solution-content {
        gap: 2rem;
        padding: 1rem 0;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .solution-layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .solution-left {
        margin-bottom: 0;
        align-items: center;
        gap: 0.35rem;
    }

    .fenovite-logo {
        max-width: 280px;
    }

    .product-label {
        font-size: 0.65rem;
    }

    .datimeteox-logo {
        max-width: 180px;
    }

    .solution-right {
        gap: 1.5rem;
    }

    .feature-item {
        gap: 0.875rem;
        align-items: flex-start;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        padding: 0.625rem;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .feature-title {
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
        line-height: 1.25;
    }

    .feature-description {
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .solution-cta-wrapper {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .solution-cta {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        justify-content: center;
        text-align: center;
    }

    /* ============================================
       SEZIONE TESTIMONIANZE MOBILE PORTRAIT
       LAYOUT ORIZZONTALE: FOTO A SINISTRA, TESTO A DESTRA
       OTTIMIZZATO PER 375x667
       ============================================ */
    
    .section-testimonials {
        padding: 5.5rem 0.875rem 5.5rem 0.875rem !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        overflow-y: auto !important;
    }

    .section-testimonials .content {
        gap: 1.25rem !important;
        max-width: 100% !important;
        padding: 0 !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
    }

    .testimonials-title {
        font-size: 1.6rem !important;
        margin: 0 0 0.875rem 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        width: 100% !important;
        flex-shrink: 0 !important;
    }

    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 0.875rem !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .testimonial-card {
        padding: 1rem !important;
        border-radius: 10px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.875rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .testimonial-img {
        width: 60px !important;
        height: 60px !important;
        margin: 0 !important;
        display: block !important;
        flex-shrink: 0 !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }

    .testimonial-content {
        gap: 0.5rem !important;
        align-items: flex-start !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .testimonial-info {
        gap: 0.2rem !important;
        align-items: flex-start !important;
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .testimonial-name {
        font-size: 0.875rem !important;
        margin: 0 !important;
        text-align: left !important;
        line-height: 1.25 !important;
        font-weight: 600 !important;
    }

    .testimonial-role {
        font-size: 0.65rem !important;
        text-align: left !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .testimonial-quote {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        text-align: left !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }

    .testimonial-quote.expanded {
        display: block !important;
        -webkit-line-clamp: unset !important;
        overflow: visible !important;
    }

    .testimonial-card {
        cursor: pointer !important;
        position: relative !important;
    }

    .testimonial-card::after {
        content: '...' !important;
        position: absolute !important;
        bottom: 1rem !important;
        right: 1rem !important;
        background: white !important;
        padding-left: 0.5rem !important;
        color: rgba(44, 167, 198, 0.8) !important;
        font-weight: 600 !important;
        pointer-events: none !important;
    }

    .testimonial-card.expanded::after {
        display: none !important;
    }

    .testimonials-cta-wrapper {
        margin-top: 0.75rem !important;
        width: 100% !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .testimonials-cta {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.875rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ============================================
       SEZIONE CONTATTI MOBILE PORTRAIT
       Tutto visibile in una schermata - COMPLETAMENTE RIFATTA
       ============================================ */
    
    .section-contact {
        height: 100dvh !important;
        min-height: 100dvh !important;
        height: 100svh !important; /* Fallback */
        min-height: 100svh !important;
        height: 100lvh !important; /* Fallback aggiuntivo */
        min-height: 100lvh !important;
        height: 100vh !important; /* Fallback finale */
        min-height: 100vh !important;
        max-height: 100dvh !important;
        max-height: 100svh !important; /* Fallback */
        max-height: 100lvh !important; /* Fallback aggiuntivo */
        max-height: 100vh !important; /* Fallback finale */
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        overflow: hidden !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }

    .section-contact .contact-content {
        padding: 1rem 1rem 0.5rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.75rem !important;
        overflow-y: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* Logo + "un prodotto di" - ultra compatto */
    .contact-header {
        margin-bottom: 0.75rem !important;
        gap: 0.3rem !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .contact-fenovite-logo {
        max-width: 280px !important;
        width: auto !important;
        height: auto !important;
    }

    .contact-product-label {
        font-size: 0.6rem !important;
        margin: 0 !important;
    }

    .contact-datimeteox-logo {
        max-width: 180px !important;
        width: auto !important;
        height: auto !important;
    }

    /* Testo introduttivo - compatto */
    .contact-intro {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin: 0 auto 0.75rem !important;
        max-width: 100% !important;
        padding: 0 !important;
        color: rgba(26, 42, 67, 0.85) !important;
        flex-shrink: 0 !important;
        text-align: center !important;
    }

    /* Form - compatto */
    .contact-form {
        gap: 1.25rem !important;
        padding: 0 !important;
        margin: 0 auto;
        max-width: 100% !important;
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 0;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.9rem !important;
        font-size: 0.9rem !important;
        border: 2px solid rgba(26, 42, 67, 0.2) !important;
        border-radius: 8px !important;
    }

    .contact-form textarea {
        min-height: 100px !important;
        flex: 1;
    }

    /* Wrapper bottoni - compatto */
    .contact-buttons-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Pulsante principale - compatto */
    .contact-submit-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.85rem 1.25rem !important;
        font-size: 0.85rem !important;
        margin: 0 !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Link secondario - ultra compatto */
    .contact-secondary-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.45rem 0.9rem !important;
        font-size: 0.65rem !important;
        margin: 0 !important;
        text-align: center !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Footer - in fondo alla schermata */
    .contact-footer {
        padding: 0.6rem 1rem !important;
        margin: 0 !important;
        flex-shrink: 0;
        width: 100% !important;
        max-width: 100% !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .footer-text {
        font-size: 0.6rem !important;
        white-space: normal !important;
        line-height: 1.4 !important;
        overflow: visible !important;
        text-overflow: clip !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Mobile Large / Tablet Small (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .content {
        width: 92%;
        padding: 1.5rem;
    }

    .section-problem .content {
        padding-bottom: 4rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        padding-top: 2.5rem;
        max-width: 88%;
    }

    .title-large {
        font-size: clamp(2.2rem, 7.5vw, 7.5vw);
        margin-bottom: 1.5rem;
    }

    .section-problem .title-large {
        font-size: clamp(2.5rem, 8vw, 8vw);
    }

    .subtitle {
        font-size: clamp(1.1rem, 3.5vw, 3.5vw);
    }

    .section-problem .subtitle {
        font-size: clamp(1.2rem, 4vw, 4vw);
    }

    .solution-content {
        padding: 5rem 2rem;
    }

    .solution-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .solution-left {
        margin-bottom: 3rem;
    }

    .fenovite-logo {
        max-width: 280px;
    }

    .datimeteox-logo {
        max-width: 170px;
    }

    .solution-right {
        gap: 2.75rem;
    }

    .feature-item {
        gap: 2rem;
    }

    .feature-icon {
        width: 70px;
        padding: 1.125rem 0.875rem;
    }

    /* Sezione Soluzione Mobile Large */
    .section-solution {
        padding: 1.75rem 1rem;
        min-height: auto;
    }

    .solution-content {
        gap: 1.75rem;
    }

    .solution-layout {
        gap: 1.5rem;
    }

    .fenovite-logo {
        max-width: 260px;
    }

    .datimeteox-logo {
        max-width: 170px;
    }

    .solution-right {
        gap: 1.5rem;
    }

    .feature-item {
        gap: 0.875rem;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
        padding: 0.55rem;
    }

    .feature-icon svg {
        width: 19px;
        height: 19px;
    }

    .feature-title {
        font-size: 0.9rem;
    }

    .feature-description {
        font-size: 0.78rem;
    }

    .solution-cta {
        padding: 0.8rem 1.35rem;
        font-size: 0.88rem;
    }


    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .content {
        width: 88%;
        padding: 2rem;
    }

    /* Sezione testimonianze su tablet */
    .section-testimonials {
        padding: 4rem 2rem;
    }

    .section-testimonials .content {
        gap: 2rem;
    }

    .testimonials-title {
        font-size: 2.2rem;
    }

    /* Sezione Soluzione Tablet */
    .section-solution {
        padding: 2.5rem 1.5rem;
    }

    .solution-content {
        gap: 2.5rem;
    }

    .solution-layout {
        grid-template-columns: 1fr 1.3fr;
        gap: 2.5rem;
    }

    .fenovite-logo {
        max-width: 360px;
    }

    .datimeteox-logo {
        max-width: 240px;
    }

    .solution-right {
        gap: 2rem;
    }

    .feature-item {
        gap: 1.25rem;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        padding: 0.75rem;
    }

    .feature-icon svg {
        width: 26px;
        height: 26px;
    }

    .feature-title {
        font-size: 1.15rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }

    /* Sezione Testimonianze Tablet */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-img {
        width: 75px;
        height: 75px;
    }

    .section-problem .content {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .title-large {
        font-size: clamp(2.8rem, 6.5vw, 6.5vw);
    }

    .section-problem .title-large {
        font-size: clamp(3rem, 7vw, 7vw);
    }

    .subtitle {
        font-size: clamp(1.3rem, 2.8vw, 2.8vw);
    }

    .section-problem .subtitle {
        font-size: clamp(1.4rem, 3vw, 3vw);
    }

    .solution-content {
        padding: 6rem 2.5rem;
    }

    .solution-layout {
        gap: 5rem;
    }

    .fenovite-logo {
        max-width: 320px;
    }

    .datimeteox-logo {
        max-width: 200px;
    }

    .solution-right {
        gap: 2.75rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1.3fr;
        gap: 3rem;
    }
}

/* Desktop (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .content {
        max-width: 1100px;
    }
}

/* Desktop Large (1441px+) */
@media (min-width: 1441px) {
    .content {
        max-width: 1400px;
    }

    .title-large {
        font-size: clamp(4rem, 6vw, 6vw);
    }

    .subtitle {
        font-size: clamp(1.5rem, 2.2vw, 2.2vw);
    }
}

/* Landscape Mobile - Generale */
@media (max-height: 500px) and (orientation: landscape) {
    .section {
        min-height: 100dvh;
        min-height: 100svh; /* Fallback */
        min-height: 100lvh; /* Fallback aggiuntivo */
        min-height: 100vh; /* Fallback finale */
        height: auto;
        padding: 2rem 0;
    }

    .section-problem .content {
        padding-bottom: 2rem;
    }

    .title-large {
        font-size: clamp(2rem, 5vw, 5vw);
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: clamp(1rem, 2vw, 2vw);
    }

    /* Sezione Testimonianze Landscape */
    .section-testimonials {
        padding: 2.5rem 1.5rem;
    }

    .section-testimonials .content {
        gap: 1.5rem;
    }

    .testimonials-title {
        font-size: 2rem;
    }

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

    .testimonial-card {
        padding: 1.25rem;
    }

    .testimonial-img {
        width: 60px;
        height: 60px;
    }
}

/* Mobile Landscape - Sezione Soluzione Ottimizzata */
@media (max-width: 900px) and (max-height: 600px) and (orientation: landscape) {
    /* Sezione più compatta */
    .solution-content {
        padding: 2.5rem 1.5rem;
        width: 95%;
    }

    /* Colonne più vicine */
    .solution-layout {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
        align-items: center;
    }

    /* Blocco logo più snello */
    .solution-left {
        gap: 0.5rem;
    }

    .fenovite-logo {
        max-width: 200px;
    }

    .product-label {
        font-size: 0.7rem;
    }

    /* Sezione Testimonianze Landscape Tablet */
    .section-testimonials {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .section-testimonials .content {
        gap: 2rem;
    }

    .testimonials-title {
        font-size: 2rem;
    }

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

    .testimonial-card {
        padding: 1.25rem;
    }

    .testimonial-img {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }

    .testimonial-info {
        margin-bottom: 0.75rem;
    }

    .testimonial-name {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .testimonial-role {
        font-size: 0.7rem;
    }

    .testimonial-quote {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .testimonials-cta {
        padding: 0.9rem 1.75rem;
        font-size: 0.95rem;
        margin: 0;
    }

    .datimeteox-logo {
        max-width: 140px;
    }

    /* Funzionalità più dense */
    .solution-right {
        gap: 1.5rem;
    }

    .feature-item {
        gap: 1.5rem;
        align-items: center;
    }

    /* Icone più piccole e compatte */
    .feature-icon {
        width: 56px;
        padding: 0.75rem 0.625rem;
        border-radius: 14px;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

    /* Testi ridotti */
    .feature-title {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .feature-description {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
        line-height: 1.5;
    }

    /* CTA più vicina */
    .solution-cta-wrapper {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .solution-cta {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   UTILITY - ACCESSIBILITÀ
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .testimonial-card,
    .submit-btn,
    .solution-cta {
        transition: none;
    }
}

/* ============================================
   FIX PER VIDEO SU MOBILE
   ============================================ */
@media (max-width: 768px) {
    .section {
        overflow: hidden !important;
        isolation: isolate !important;
        z-index: 0 !important;
    }

    .video-background {
        object-position: center center !important;
        transform: scale(1.15) !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        position: absolute !important;
        z-index: 0 !important;
    }

    .section:hover .video-background {
        transform: scale(1.12) !important;
    }

    .section-problem::before {
        background: rgba(0, 0, 0, 0.45);
    }

    .section[data-overlay="bordeaux"]::after {
        background: linear-gradient(
            180deg,
            rgba(122, 31, 61, 0.20) 0%,
            rgba(122, 31, 61, 0.30) 50%,
            rgba(122, 31, 61, 0.45) 100%
        );
    }

    .section[data-overlay="vineyard"]::after {
        background: linear-gradient(
            180deg,
            rgba(114, 140, 58, 0.18) 0%,
            rgba(114, 140, 58, 0.28) 50%,
            rgba(114, 140, 58, 0.40) 100%
        );
    }

    .section[data-overlay="circuit-blue"]::after {
        background: linear-gradient(
            180deg,
            rgba(44, 167, 198, 0.18) 0%,
            rgba(44, 167, 198, 0.28) 50%,
            rgba(44, 167, 198, 0.40) 100%
        );
    }

    /* OVERRIDE FINALE PER TESTIMONIANZE MOBILE - LAYOUT ORIZZONTALE COMPATTO */
    .section-testimonials {
        padding: 5.5rem 0.875rem 5.5rem 0.875rem !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        overflow-y: auto !important;
    }

    .section-testimonials .content {
        gap: 1.25rem !important;
        max-width: 100% !important;
        padding: 0 !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    .testimonials-title {
        font-size: 1.6rem !important;
        margin: 0 0 0.875rem 0 !important;
        padding: 0 !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }

    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 0.875rem !important;
        width: 100% !important;
    }

    .testimonial-card {
        padding: 1rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.875rem !important;
    }

    .testimonial-img {
        width: 60px !important;
        height: 60px !important;
        margin: 0 !important;
        display: block !important;
        flex-shrink: 0 !important;
    }

    .testimonial-content {
        gap: 0.5rem !important;
        align-items: flex-start !important;
        flex: 1 !important;
    }

    .testimonial-info {
        gap: 0.2rem !important;
        align-items: flex-start !important;
    }

    .testimonial-name {
        font-size: 0.875rem !important;
        text-align: left !important;
    }

    .testimonial-role {
        font-size: 0.65rem !important;
        text-align: left !important;
    }

    .testimonial-quote {
        font-size: 0.75rem !important;
        text-align: left !important;
    }

    .testimonials-cta-wrapper {
        margin-top: 0.75rem !important;
        width: 100% !important;
        flex-shrink: 0 !important;
    }

    .testimonials-cta {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.875rem !important;
        width: 100% !important;
    }
}

    /* Sezione Testimonianze - Ottimizzazione generale mobile */
    /* Rimossa per evitare conflitti con mobile portrait specifico */

    .testimonials-cta {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
.section,
.video-background,
.content {
    will-change: transform;
}

/* Ottimizzazioni mobile - solo performance, mantieni funzionalità */
@media (max-width: 768px) {
    /* Riduci will-change su mobile */
    .video-background {
        will-change: auto;
    }
    
    /* Riduci transizioni pesanti su mobile */
    .video-background {
        transition: transform 0.3s ease-out;
    }
    
    /* Ottimizza rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Assicura che i video siano contenuti nelle sezioni */
    .section {
        overflow: hidden !important;
        isolation: isolate !important;
        contain: layout style paint !important;
    }

    .video-background {
        transform: scale(1.15) !important;
        object-fit: cover !important;
        object-position: center center !important;
        will-change: auto !important;
    }

    /* Assicura che le sezioni senza video non mostrino contenuto di altre */
    .section-solution,
    .section-testimonials,
    .section-contact {
        background-color: var(--bg-neutral) !important;
        overflow: hidden !important;
        isolation: isolate !important;
        z-index: 1 !important;
    }
}

/* ============================================
   SMOOTH SCROLLING ENHANCEMENTS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

