/* --- FONT NOHEMI --- */
@font-face { font-family: 'Nohemi'; src: url('assets/font/Nohemi-Thin.woff') format('woff'); font-weight: 100; font-style: normal; }
@font-face { font-family: 'Nohemi'; src: url('assets/font/Nohemi-ExtraLight.woff') format('woff'); font-weight: 200; font-style: normal; }
@font-face { font-family: 'Nohemi'; src: url('assets/font/Nohemi-Light.woff') format('woff'); font-weight: 300; font-style: normal; }
@font-face { font-family: 'Nohemi'; src: url('assets/font/Nohemi-Regular.woff') format('woff'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Nohemi'; src: url('assets/font/Nohemi-Medium.woff') format('woff'); font-weight: 500; font-style: normal; }
@font-face { font-family: 'Nohemi'; src: url('assets/font/Nohemi-SemiBold.woff') format('woff'); font-weight: 600; font-style: normal; }
@font-face { font-family: 'Nohemi'; src: url('assets/font/Nohemi-Bold.woff') format('woff'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'Nohemi'; src: url('assets/font/Nohemi-ExtraBold.woff') format('woff'); font-weight: 800; font-style: normal; }
@font-face { font-family: 'Nohemi'; src: url('assets/font/Nohemi-Black.woff') format('woff'); font-weight: 900; font-style: normal; }

/* --- SETUP GLOBALE & VARIABILI --- */
:root {
    --color-bg-light: #ffffff;
    --color-bg-beige: rgb(242, 236, 232);
    --color-bg-dark: #000000;
    --color-text-dark: #1a1a1a;
    --color-text-light: #ffffff;
    --color-accent: #d13127; /* Colore rosso/arancio */
    --color-grey: #888888;
    --color-border: #e0e0e0;
    --font-main: 'Nohemi', sans-serif;
    --container-width: 1200px;
    --section-padding: 80px 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.5;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Prevent horizontal overflow from animations */
main {
    overflow-x: clip;
    width: 100%;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

h1, h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); margin-bottom: 0.5rem; }
p { margin-bottom: 1.5rem; color: #555; font-size: clamp(0.9rem, 1.5vw, 1rem); }

.text-highlight { font-weight: 700; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: clamp(40px, 8vw, 80px) clamp(15px, 3vw, 20px); }
.bg-beige { background-color: var(--color-bg-beige); }
.bg-dark { background-color: var(--color-bg-dark); color: var(--color-text-light); }
.text-light p { color: #ccc; }

/* --- BOTTONI --- */
.btn {
    padding: clamp(8px, 1.5vw, 12px) clamp(16px, 3vw, 28px);
    border-radius: 0;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    text-decoration: none;
}

.btn-black { background-color: var(--color-text-dark); color: var(--color-text-light); }
.btn-black:hover { background-color: #333; }
.btn-outline { background-color: transparent; border: 1px solid var(--color-border); color: var(--color-text-dark); }
.btn-outline:hover { border-color: var(--color-text-dark); background-color: #f0f0f0; }

/* --- NAVBAR --- */
.navbar {
    padding: 25px 0; /* 15px base + 10px extra for desktop */
    border-bottom: 1px solid var(--color-border);
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Compensate for fixed navbar height - only for landing page */
body.landing-page {
    padding-top: 70px;
}

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

.navbar-content .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 500;
    margin-right: 25px;
}

.logo { font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.logo img { height: clamp(36px, 5vw, 48px); width: auto; display: block; }
.mobile-menu-toggle { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer;}

/* --- HERO BANNER (Scrolling Text) --- */
.hero-banner {
    position: relative;
    height: 90vh;
    overflow: hidden;
    background-color: var(--color-accent);
    max-width: 100vw;
}

.hero-bg-img,
.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.scrolling-text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    white-space: nowrap;
    overflow: hidden;
}

.scrolling-text {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    padding-right: 50px;
    animation: scrollText 120s linear infinite;
}

@keyframes scrollText {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* --- SEZIONI STANDARD A DUE COLONNE --- */
.hero-split, .split-layout {
    display: flex;
    align-items: center;
    gap: clamp(30px, 5vw, 60px);
}

.hero-text, .text-content { flex: 1; }
.hero-interactive, .image-content { flex: 1; }
.hero-interactive { flex: 1.3; }
.right-heavy .image-content { flex: 1.2; }
.image-content img { width: 100%; height: auto; display: block; }

/* Phone image con aspect ratio 4:5 */
.right-heavy .image-content img {
    aspect-ratio: 4/5;
    object-fit: cover;
}

/* --- OPACITY SLIDER COMPONENT --- */
.opacity-slider {
    width: 100%;
}

.opacity-images {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: white;
    overflow: hidden;
    outline: 2px solid var(--color-border);
    outline-offset: 0;
}

.opacity-img-bottom {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.opacity-img-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    opacity: 0.5;
}

.opacity-slider-container {
    position: relative;
    width: 100%;
    height: 20px;
    margin-top: 20px;
}

.opacity-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--color-bg-beige);
    transform: translateY(-50%);
}



.opacity-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
}

.opacity-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--color-text-dark);
    border-radius: 50%;
    cursor: pointer;
}

.opacity-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--color-text-dark);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.opacity-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-grey);
    text-transform: uppercase;
}



/* --- PERFECT RESULTS (LAYOUT A TRE COLONNE) --- */
.triple-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.triple-layout > div { flex: 1; }
.triple-layout .image-content { flex: 2; }
.triple-layout .image-content img { max-height: 800px; object-fit: contain; }

/* Detail Showcase - hover effect */
.detail-showcase {
    position: relative;
}

.detail-showcase .detail-img {
    max-height: 800px;
    object-fit: contain;
    transition: opacity 0.5s ease;
}

.detail-showcase .detail-img:not(.detail-default) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
}

.detail-showcase .detail-img.active {
    opacity: 1;
}

.feature-item { margin-bottom: 30px; border-left: 2px solid var(--color-border); padding-left: 20px; }
.feature-icon { width: 48px; height: 48px; flex-shrink: 0; }

/* Feature items per dispositivi touch (mobile + tablet) */
body.touch-device .feature-item.has-hover {
    cursor: pointer;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: none;
    border: 2px solid transparent;
    background: var(--color-bg-beige);
    transition: all 0.3s ease;
}

body.touch-device .feature-item.has-hover.active {
    background: var(--color-text-dark);
    border-color: var(--color-text-dark);
}

body.touch-device .feature-item.has-hover.active .feature-header h3 {
    color: var(--color-text-light);
}

body.touch-device .feature-item.has-hover.active .feature-icon {
    filter: invert(1);
}

body.touch-device .feature-item.has-hover p {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    transition: all 0.3s ease;
}

body.touch-device .feature-item.has-hover.active p {
    max-height: 100px;
    opacity: 1;
    margin-top: 10px;
    color: rgba(255,255,255,0.8);
}

body.touch-device .feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

body.touch-device .feature-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-text-dark);
    border-bottom: 2px solid var(--color-text-dark);
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

body.touch-device .feature-item.has-hover.active .feature-arrow {
    transform: rotate(45deg);
    border-color: var(--color-text-light);
}

/* Feature item hover effect - Desktop only (non-touch) */
@media (min-width: 751px) {
    body:not(.touch-device) .feature-item.has-hover {
        cursor: pointer;
        padding: 20px;
        margin-left: 0;
        margin-bottom: 20px;
        border-left: none;
        border: none;
        background: transparent;
        transition: background-color 0.3s ease;
    }

    body:not(.touch-device) .feature-item.has-hover:hover {
        background-color: var(--color-bg-beige);
    }

    body:not(.touch-device) .feature-header {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    body:not(.touch-device) .feature-header h3 {
        margin: 0;
        flex: 1;
        font-size: 1.15rem;
    }

    body:not(.touch-device) .feature-arrow {
        content: '';
        width: 12px;
        height: 12px;
        border-right: 2px solid var(--color-text-dark);
        border-bottom: 2px solid var(--color-text-dark);
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    body:not(.touch-device) .feature-item.has-hover:hover .feature-arrow {
        transform: rotate(-135deg);
    }

    body:not(.touch-device) .feature-item.has-hover p {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin: 0;
        padding-left: 68px;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    }

    body:not(.touch-device) .feature-item.has-hover:hover p {
        max-height: 100px;
        opacity: 1;
        margin-top: 1rem;
    }

    body:not(.touch-device) .feature-arrow-mobile {
        display: none;
    }

    body:not(.touch-device) .feature-item .mobile-text {
        display: none;
    }
    
    body:not(.touch-device) .feature-item .desktop-text {
        display: inline;
    }
}

/* --- MAGIC SECTION (GRID) --- */
.centered-header { text-align: center; }
.subtitle { max-width: 600px; margin: 0 auto 60px auto; }

.process-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    text-align: left;
    align-items: stretch;
}

.process-step {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.process-step img { 
    width: 100%; 
    max-width: 350px; 
    height: 350px;
    object-fit: contain;
    margin-bottom: 20px; 
    border-radius: 4px; 
}

.process-step h3 { color: var(--color-text-light); }

.process-step p {
    flex-grow: 1;
}

/* --- EXAMPLES CAROUSEL --- */
.examples-section {
    overflow: hidden;
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
}

.carousel-wrapper {
    width: 100vw;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 auto;
    width: clamp(280px, 35vw, 480px);
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.carousel-item img {
    width: 100%;
    border-radius: 4px;
    background: white;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
    display: block;
}

.carousel-item .img-bottom {
    display: block;
}

.carousel-item .img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item:hover .img-top {
    opacity: 1;
}

.carousel-nav {
    display: none;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    background: var(--color-text-dark);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 50%;
}

.nav-arrow-left,
.nav-arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.nav-arrow-left {
    left: 20px;
}

.nav-arrow-right {
    right: 20px;
}

.nav-arrow:hover {
    background: var(--color-accent);
}

.swipe-hint {
    display: none;
}

.hold-hint {
    display: none;
}

/* --- PRICING SECTION --- */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: white;
    padding: clamp(20px, 4vw, 40px) clamp(15px, 3vw, 30px);
    border-radius: 0;
    flex: 1;
    max-width: 350px;
    min-width: 200px;
    text-align: left;
    border: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card .btn {
    margin-top: auto;
    text-align: center;
}

.pricing-card.popular {
    border: 2px solid var(--color-text-dark);
    transform: scale(1.05); /* Leggermente più grande */
    z-index: 2;
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text-dark);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-header { margin-bottom: 10px; }
.card-header p { margin-bottom: 0; font-weight: 700; color: var(--color-text-dark); }

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.card-row h3 {
    margin: 0;
}

.card-row .price {
    margin: 0;
}

.price-block {
    text-align: right;
}

.price-block .price {
    margin: 0;
}

.price-block .price-with-discount {
    justify-content: flex-end;
    margin-bottom: 2px;
}

.credits-count {
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem;
}
.price { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 15px; }

.pack-description { margin-bottom: 25px; color: var(--color-grey); font-size: 0.95rem; }
.price-per-credit { margin-bottom: 25px; color: var(--color-grey); font-size: 0.85rem; }

.price-with-discount {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.original-price {
    font-size: 0.95rem;
    color: var(--color-grey);
    text-decoration: line-through;
}

.discount-badge {
    background: #dcfce7;
    color: #166534;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}

.pricing-card .btn { width: 100%; }
.price-subtext { text-align: center; font-size: 0.9rem; margin-top: 10px; }

/* --- FOOTER --- */
footer { padding: 80px 0 30px; border-top: 1px solid var(--color-border); background-color: var(--color-bg-beige); }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 60px; }
.footer-brand { max-width: 300px; }
.footer-brand .logo { margin-bottom: 20px; }
.footer-links { display: flex; gap: 80px; }
.link-column h4 { margin-bottom: 20px; }
.link-column a { display: block; text-decoration: none; color: var(--color-grey); margin-bottom: 10px; transition: color 0.3s; }
.link-column a:hover { color: var(--color-text-dark); }
.link-column .powered-by { 
    margin-top: 30px; 
    font-size: 0.85rem; 
    color: var(--color-grey);
}
.link-column .powered-by a { 
    display: inline; 
    margin: 0;
    color: var(--color-text-dark);
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    margin-top: 40px;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--color-grey);
    margin: 0;
}

.footer-brand .social-icon {
    display: inline-block;
    margin-top: 15px;
}

/* --- PAGE CONTENT (About, Privacy, Support, Cookies) --- */
.page-content {
    min-height: 60vh;
}

.page-content .container {
    max-width: 800px;
}

.page-content h1 {
    margin-bottom: 1rem;
    text-align: center;
}

.page-content .last-updated {
    text-align: center;
    margin-bottom: 3rem;
}

.page-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.content-block {
    max-width: 800px;
}
.content-block p {
    line-height: 1.8;
}


/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet e Mobile (max 750px) */
@media (max-width: 750px) {
    /* Prevent horizontal scroll on mobile */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Fixed navbar for mobile - ensure always visible */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 15px 0; /* Reset to original padding on mobile */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    body.landing-page {
        padding-top: 79px; /* Reset body padding for mobile navbar height */
    }
    
    main {
        overflow-x: clip;
    }
    
    section, .container {
        max-width: 100vw;
    }
    
    /* Disable AOS animations that cause horizontal overflow */
    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Layout colonne */
    .hero-split, .split-layout, .triple-layout, .process-grid, .pricing-grid {
        flex-direction: column;
        gap: 40px;
    }
    .triple-layout > div, .process-step, .pricing-card { width: 100%; max-width: none; }
    .image-content { order: -1; }
    .hero-interactive { order: -1; }
    .process-grid { text-align: center; }
    .pricing-card.popular { transform: none; }

    /* Titoli più grandi */
    h1, h2 { font-size: 2.8rem; }
    h3 { font-size: 1.3rem; }
    .scrolling-text { font-size: 2.5rem; }
    .hero-banner { height: 75vh; }
    
    /* Testi leggermente più grandi su mobile */
    p { font-size: 1.05rem; }
    
    /* Tutto centrato */
    .hero-text, .text-content, .features-list { text-align: center; }
    .feature-item { border-left: none; padding-left: 0; text-align: center; }
    
    /* Colonne testi più strette */
    .hero-text p, .text-content p, .subtitle { 
        max-width: 280px; 
        margin-left: auto;
        font-size: 1.05rem; 
        margin-right: auto; 
    }
    
    .nav-links { display: none; }
    .mobile-menu-toggle { display: none; }
    
    /* Header mobile - logo a sinistra, login piccolo a destra */
    .navbar-content .logo {
        position: static;
        transform: none;
    }
    
    .navbar-content .logo img {
        height: 44px; /* Slightly larger on mobile */
    }
    
    .nav-actions {
        display: block;
    }
    
    .nav-actions .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    /* Larger buttons on mobile */
    .btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    /* Perfect Results - testo prima dell'immagine su mobile */
    .triple-layout .text-content {
        order: -2;
    }
    
    .triple-layout .image-content {
        order: -1;
    }
    
    .triple-layout .features-list {
        order: 0;
    }

    /* Feature items - schede orizzontali selezionabili su mobile */
    .features-list {
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin-top: 20px;
        justify-content: center;
    }
    
    .feature-item {
        display: block;
        padding: 0;
        background: var(--color-bg-beige);
        border-radius: 0;
        margin-bottom: 0;
        flex: 1;
        cursor: pointer;
        transition: flex 0.3s ease, background 0.3s ease;
        border: 2px solid transparent;
        height: 120px;
        position: relative;
        overflow: hidden;
    }
    
    .feature-item.active {
        background: var(--color-text-dark);
        border-color: var(--color-text-dark);
        flex: 2.5;
    }
    
    .feature-item.active .feature-header {
    }
    
    .feature-item.active p {
        display: block;
        color: rgba(255,255,255,0.8);
        opacity: 0;
        visibility: hidden;
        position: absolute;
        left: 12px;
        bottom: 10px;
        right: 30px;
    }
    
    .feature-item.active.text-visible p {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.2s ease;
    }
    
    .feature-item.active .feature-arrow-mobile {
        transform: rotate(135deg);
        border-color: var(--color-text-light);
    }
    
    .feature-item.active .feature-header h3 {
        display: none;
    }
    
    .feature-header {
        display: block;
    }
    
    .feature-icon {
        display: block;
        width: 28px;
        height: 28px;
        position: absolute;
        top: 12px;
        left: 12px;
    }
    
    .feature-item.active .feature-icon {
        display: none;
    }
    
    .feature-header h3 {
        font-size: 0.85rem;
        margin: 0;
        text-align: left;
        line-height: 1.3;
        position: absolute;
        top: 48px;
        left: 12px;
        right: 25px;
    }
    
    .feature-item.active .feature-header h3 {
        display: none;
    }
    
    .feature-arrow {
        display: none;
    }
    
    .feature-arrow-mobile {
        display: block;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--color-text-dark);
        border-bottom: 2px solid var(--color-text-dark);
        transform: rotate(-45deg);
        position: absolute;
        right: 12px;
        top: 50%;
        margin-top: -4px;
    }
    
    .feature-item p {
        display: none;
        font-size: 0.75rem;
        margin: 0;
        text-align: left;
        line-height: 1.4;
        max-width: none;
        padding: 0;
    }
    
    .feature-item .desktop-text {
        display: none;
    }
    
    .feature-item .mobile-text {
        display: inline;
    }

    /* Pricing cards compatte */
    .pricing-grid { gap: 15px; }
    .pricing-card { 
        padding: 25px 20px; 
        max-width: 100%;
        background: white;
        border: 1px solid var(--color-border);
    }
    .pricing-card.popular {
        border: 2px solid var(--color-text-dark);
    }
    .pricing-card h3 { 
        font-size: 1.2rem; 
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    .price { 
        font-size: 1.8rem; 
        margin-bottom: 0;
    }
    .credits-count {
        font-size: 1rem;
        margin-top: 1rem;
    }
    .pack-description { 
        font-size: 0.75rem; 
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }
    .pricing-card .btn { 
        padding: 14px 20px; 
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .card-header { margin-bottom: 5px; }
    .card-header p { font-size: 0.9rem; }
    .popular-tag { 
        font-size: 0.65rem; 
        padding: 5px 12px; 
        top: -12px;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .price-with-discount {
        margin-bottom: 0;
    }
    .original-price {
        font-size: 0.85rem;
    }
    .discount-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    /* Footer migliorato */
    footer { padding: 50px 0 25px; }
    
    .footer-content { 
        flex-direction: column; 
        gap: 35px; 
        text-align: center;
        margin-bottom: 35px;
    }
    
    .footer-brand { 
        max-width: 100%; 
    }
    
    .footer-brand .logo {
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .footer-links { 
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }
    
    .link-column h4 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .link-column a {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        padding-top: 20px;
        margin-top: 30px;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
    }
    
    .social-icon {
        font-size: 0.9rem;
    }

    /* Carousel touch-friendly - centered single item */
    .carousel-wrapper {
        cursor: grab;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y pinch-zoom;
        width: 100vw;
        margin-left: 0;
        padding-left: calc(50vw - 140px); /* Center first item: half screen minus half item width */
        padding-right: calc(50vw - 140px); /* Allow last item to center too */
        box-sizing: content-box;
    }
    
    .nav-arrow-left,
    .nav-arrow-right {
        display: none;
    }
    
    .swipe-hint {
        display: none;
        position: absolute;
        bottom: 70px;
        left: 50vw;
        transform: translateX(-50%);
        z-index: 10;
        pointer-events: none;
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }
    
    .swipe-hint.visible {
        display: block;
        animation: swipeNudge 0.6s ease-in-out 2;
    }
    
    @keyframes swipeNudge {
        0%, 100% { transform: translateX(-50%); }
        50% { transform: translateX(calc(-50% - 15px)); }
    }
    
    .swipe-hint.hidden {
        opacity: 0;
        display: none;
    }
    
    .swipe-hint img {
        width: 60px;
        height: auto;
    }
    
    .hold-hint {
        display: block;
        position: absolute;
        bottom: 70px;
        left: 50vw;
        transform: translateX(-50%);
        z-index: 10;
        pointer-events: none;
        opacity: 0.7;
        transition: opacity 0.3s ease;
        animation: holdPulse 0.8s ease-in-out 2;
    }
    
    @keyframes holdPulse {
        0%, 100% { transform: translateX(-50%) scale(1); }
        50% { transform: translateX(-50%) scale(0.85); }
    }
    
    .hold-hint.visible {
        display: block;
    }
    
    .hold-hint.hidden {
        opacity: 0;
        display: none;
    }
    
    .hold-hint img {
        width: 60px;
        height: auto;
    }
    
    .carousel-wrapper:active {
        cursor: grabbing;
    }
    
    .carousel-track {
        gap: 15px;
    }
    
    .carousel-item {
        width: 280px;
        flex: 0 0 280px;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .carousel-item img {
        pointer-events: none;
        padding: 8px;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        -webkit-user-drag: none;
        display: block;
    }
    
    /* Disabilita hover CSS su touch, gestito da JS */
    .carousel-item:hover .img-top {
        opacity: 0;
    }
}

/* --- VIDEO POPUP STYLES --- */
.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.video-popup-overlay.active {
    display: flex;
}

.video-popup-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-popup-player {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

.video-popup-close {
    position: absolute;
    top: -50px;
    right: -20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.video-popup-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

/* Play button overlay for phone image */
.phone-video-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.phone-video-container .phone-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.phone-video-container .phone-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.phone-video-container.playing .phone-image {
    opacity: 0;
}

.phone-video-container.playing .phone-video {
    opacity: 1;
    pointer-events: auto;
}

.phone-video-container.playing .play-button-overlay {
    opacity: 0;
    pointer-events: none;
}

.phone-image-container {
    position: relative;
    display: inline-block;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-button-overlay:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button-overlay::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .video-popup-container {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .video-popup-close {
        top: -40px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .play-button-overlay {
        width: 60px;
        height: 60px;
    }
    
    .play-button-overlay::before {
        border-left: 15px solid #fff;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
    }
}


/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    flex: 1;
    min-width: 280px;
    margin: 0;
    color: #ccc;
    font-size: 0.9rem;
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.cookie-buttons .btn-outline {
    border-color: #555;
    color: var(--color-text-light);
}

.cookie-buttons .btn-outline:hover {
    border-color: var(--color-text-light);
    background: rgba(255, 255, 255, 0.1);
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cookie-modal.active {
    display: flex;
}

.cookie-modal-content {
    background: var(--color-bg-light);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-content h3 {
    margin-bottom: 15px;
}

.cookie-modal-content > p {
    color: var(--color-grey);
    margin-bottom: 25px;
}

.cookie-option {
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
}

.cookie-option:last-of-type {
    border-bottom: none;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-option-header label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

.cookie-option-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-badge {
    font-size: 0.75rem;
    background: var(--color-bg-beige);
    padding: 3px 8px;
    color: var(--color-grey);
}

.cookie-option p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-grey);
}

.cookie-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* Mobile cookie banner */
@media (max-width: 750px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-buttons .btn {
        flex: 1;
        min-width: 100px;
    }
    
    .cookie-modal-content {
        padding: 20px;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    .cookie-modal-buttons .btn {
        width: 100%;
    }
}


/* --- LEGAL CONTENT STYLES --- */
.legal-content h2 {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-content h3 {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

.legal-content a {
    color: var(--color-text-dark);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-accent);
}

.last-updated {
    color: var(--color-grey);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Cookie table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.cookie-table th {
    background: var(--color-bg-beige);
    font-weight: 600;
}

.cookie-table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

@media (max-width: 750px) {
    .cookie-table {
        font-size: 0.8rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 8px 10px;
    }
}


/* --- LEGAL PAGE NAVIGATION --- */
.legal-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.legal-nav .btn {
    min-width: 150px;
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-text-dark);
}

.legal-content h4 {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content ol li {
    margin-bottom: 0.5rem;
    color: #555;
}

#terms-of-service {
    margin-top: 4rem;
    padding-top: 2rem;
}


/* --- ABOUT PAGE --- */
.company-info {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--color-bg-beige);
}

.company-info h3 {
    margin-bottom: 1rem;
}

.company-info p {
    margin-bottom: 1rem;
}

/* --- SUPPORT PAGE --- */
.support-channels {
    display: flex;
    gap: 30px;
    margin: 1.5rem 0;
}

.page-content .content-block + .content-block {
    margin-top: 5rem;
}

.support-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text-dark);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
    transition: border-color 0.3s;
}

.support-link:hover {
    border-color: var(--color-text-dark);
}

.support-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-grey);
    margin-bottom: 4px;
}

.support-value {
    font-weight: 500;
}

/* --- FAQ ACCORDION STYLES --- */
.faq-list {
    margin-top: 1.5rem;
}

details.faq-item {
    border-bottom: 1px solid var(--color-border);
}

details.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-text-dark);
    border-bottom: 2px solid var(--color-text-dark);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

details.faq-item[open] summary::after {
    transform: rotate(-135deg);
}

details.faq-item p {
    margin: 0;
    padding: 0 0 1.25rem 0;
    color: #555;
    line-height: 1.7;
}

details.faq-item a {
    color: var(--color-text-dark);
}

@media (max-width: 750px) {
    .support-channels {
        flex-direction: column;
        gap: 20px;
    }
}


/* --- LEGAL ACCORDION STYLES --- */
.legal-accordion {
    margin-top: 2rem;
}

details.legal-section {
    margin-bottom: 1rem;
}

details.legal-section summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.25rem;
    list-style: none;
    background: var(--color-bg-beige);
    transition: background 0.3s;
}

details.legal-section summary:hover {
    background: #efe9e0;
}

details.legal-section summary::-webkit-details-marker {
    display: none;
}

details.legal-section summary::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-text-dark);
    border-bottom: 2px solid var(--color-text-dark);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

details.legal-section[open] summary::after {
    transform: rotate(-135deg);
}

details.legal-section .legal-content {
    padding: 2rem 0;
}

details.legal-section .legal-content h3 {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 1.1rem;
}

details.legal-section .legal-content h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

details.legal-section .legal-content h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

@media (max-width: 750px) {
    details.legal-section summary {
        padding: 1.25rem;
        font-size: 1.1rem;
    }
    
    details.legal-section .legal-content {
        padding: 1.5rem;
    }
}


/* --- SOCIAL ICON --- */
.social-icon { 
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--color-accent);
}

.social-icon svg {
    display: block;
}
