/* Theme Variables - Ottimizzato */
:root {
    --background-color: #fafafa;
    --text-color: #1d1d1f;
    --frame-color: #fafafa;
}

body.dark-mode {
    --background-color: #000000;
    --text-color: #f5f5f7;
    --frame-color: #000000;
}

/* General Styles */
body {
    font-family: 'SF Pro Display', Arial, sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d3d3d3 var(--background-color);
}

body.dark-mode {
    scrollbar-color: #3a3a3c #000000;
}

/* Logo Styles */
.logo {
    height: 25px;
    width: auto;
}

/* Header Styles */
header {
    background-color: #fafafa;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
    background-color: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(5px);
}

body.dark-mode header {
    background-color: rgba(0, 0, 0, 0.9);
}

body.dark-mode header.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.header-container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.logo-link {
    display: inline-block;
    margin-left: 15px;
    flex-shrink: 0;
}

.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 20px;
}

.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 525;
    transition: color 0.3s ease;
}

body.dark-mode .nav-menu li a {
    color: #f5f5f7;
}

.nav-menu li a:hover,
body.dark-mode .nav-menu li a:hover {
    color: #45b6fe;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
}

.theme-icon {
    font-size: 17px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

body.dark-mode .theme-icon {
    color: #f5f5f7;
}

.theme-toggle:hover .theme-icon {
    color: #45b6fe;
    background: linear-gradient(90deg, #45b6fe, #d95bc5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-icon.moon {
    display: none;
}

body.dark-mode .theme-icon.sun {
    display: none;
}

body.dark-mode .theme-icon.moon {
    display: block;
}

.hamburger {
    display: block;
    cursor: pointer;
    margin-right: 15px;
    z-index: 3000;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 3px;
    background-color: var(--text-color);
    margin: 6px 0;
    transform-origin: center;
    transition: transform 0.3s ease;
}

body.dark-mode .hamburger span {
    background-color: #f5f5f7;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
}

.hamburger.active span:nth-child(2) {
    transform: rotate(-45deg) translateY(-6px);
}

.mobile-menu {
    transform: translateY(-100%);
    transition: transform 1s ease;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 2000;
    text-align: center;
}

body.dark-mode .mobile-menu {
    background: #000000;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu ul li {
    margin-bottom: 40px;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 30px;
    font-weight: 600;
    transition: color 0.3s ease;
}

body.dark-mode .mobile-menu ul li a {
    color: #f5f5f7;
}

.mobile-menu ul li a:hover,
body.dark-mode .mobile-menu ul li a:hover {
    color: #45b6fe;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mobile-menu .social-icons,
.footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    font-size: 24px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

body.dark-mode .social-icon {
    color: #f5f5f7;
}

.social-icon:hover {
    color: #45b6fe;
    background: linear-gradient(90deg, #45b6fe, #d95bc5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
    background: var(--background-color);
    text-align: left;
    padding: 40px 20px 10px;
}

.hero-section h1 {
    margin-left: 50px;
    font-size: 70px;
    max-width: 1000px;
    color: var(--text-color);
}

/* Intro and Benefits Section */
.intro-benefits-section {
    background-color: var(--background-color);
}

.introduction {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 40px;
    padding-left: 200px;
}

@media (max-width: 769px) {
    .introduction {
        padding-left: 50px;
        margin-left: 30px;
    }
}

.introduction h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.introduction p {
    font-size: 18px;
    color: #6e6e73;
}

body.dark-mode .introduction p {
    color: #a1a1a6;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-wrapper {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background: transparent;
    padding-left: 250px;
}

@media (max-width: 769px) {
    .carousel-wrapper {
        padding: 0;
        margin-left: 50px;
    }
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.benefit-card {
    position: relative;
    width: 350px;
    height: 450px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    flex-shrink: 0;
}

body.dark-mode .benefit-card {
    background-color: #1c1c1e;
}

.benefit-card:hover {
    transform: scale(1.025);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.card-content {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    text-align: left;
    color: white;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 16px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1d1d1f;
    transition: color 0.3s ease;
    z-index: 10;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .carousel-arrow {
    color: #f5f5f7;
}

.carousel-arrow:hover {
    color: #45b6fe;
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

/* Service Sections */
.service-section {
    padding: 60px 20px;
    background-color: var(--background-color);
    text-align: left;
}

.service-container {
    max-width: 1500px;
    margin: 0 auto;
}

.service-container h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-color);
    margin-left: 50px;
}

.service-container p {
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 30px;
    margin-left: 50px;
}

body.dark-mode .service-container p {
    color: #a1a1a6;
}

/* Onepage Section Specific Styles */
.onepage-content {
    position: relative;
    min-height: 90vh;
}

.onepage-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.onepage-features {
    position: relative;
    top: 20px;
    left: 0;
    width: 96%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    padding: 0 15px;
    box-sizing: border-box;
}

.onepage-features .feature-card {
    width: 100%;
    height: 180px;
    background-color: rgba(255, 255, 255, 0.75);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .onepage-features .feature-card {
    background-color: rgba(28, 28, 30, 0.75);
}

.onepage-features .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

body.dark-mode .onepage-features .feature-card:hover {
    box-shadow: 0 5px 10px rgba(255,255,255,0.1);
}

.onepage-features .feature-card i {
    font-size: 28px;
    color: #45b6fe;
    margin-bottom: 10px;
}

.onepage-features .feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.onepage-features .feature-card p {
    font-size: 14px;
    color: #6e6e73;
    margin: 0;
}

body.dark-mode .onepage-features .feature-card p {
    color: #a1a1a6;
}

/* Responsive Adjustments for Onepage */
@media (max-width: 769px) {
    .onepage-content {
        min-height: auto;
    }

    .onepage-image {
        position: relative;
        aspect-ratio: 8 / 6;
        overflow: hidden;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .onepage-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .onepage-features {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 0 10px;
    }

    .onepage-features .feature-card {
        width: 100%;
        height: auto;
        min-height: 120px;
        padding: 15px;
        background-color: #fff;
    }

    body.dark-mode .onepage-features .feature-card {
        background-color: #1c1c1e;
    }

    .onepage-features .feature-card i {
        font-size: 15px;
    }

    .onepage-features .feature-card h3 {
        font-size: 16px;
    }

    .onepage-features .feature-card p {
        font-size: 14px;
    }
}

/* CTA Styles */
.cta-container {
    text-align: center;
    margin-top: 20px;
}

.cta-button {
    padding: 12px 24px;
    background-color: #45b6fe;
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #3ca5e6;
}

/* Onepage CTA Styles */
.onepage-cta {
    text-align: left;
    margin-top: 40px;
}

.onepage-cta p {
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 30px;
    margin-left: 50px;
}

body.dark-mode .onepage-cta p {
    color: #a1a1a6;
}

/* Multipagina Image Styles */
.multipagina-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 10px;
}

/* Multipagina CTA Styles */
.multipagina-cta {
    text-align: left;
    margin-top: 40px;
}

.multipagina-cta p {
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 30px;
    margin-left: 50px;
}

body.dark-mode .multipagina-cta p {
    color: #a1a1a6;
}

/* Landing Page CTA Styles */
.landing-page-cta {
    text-align: left;
    margin-top: 10px;
}

.landing-page-cta p {
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 30px;
    margin-left: 50px;
}

body.dark-mode .landing-page-cta p {
    color: #a1a1a6;
}

/* Landing Page Section Styles */
.landing-page-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin-left: 10px;
}

.landing-page-features {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.landing-page-features .feature-card {
    width: 85%;
    height: 180px;
    background-color: rgba(255, 255, 255, 0.75);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .landing-page-features .feature-card {
    background-color: rgba(28, 28, 30, 0.75);
}

.landing-page-features .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

body.dark-mode .landing-page-features .feature-card:hover {
    box-shadow: 0 5px 10px rgba(255,255,255,0.1);
}

.landing-page-features .feature-card i {
    font-size: 28px;
    color: #45b6fe;
    margin-bottom: 10px;
}

.landing-page-features .feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.landing-page-features .feature-card p {
    font-size: 14px;
    color: #6e6e73;
    margin: 0;
}

body.dark-mode .landing-page-features .feature-card p {
    color: #a1a1a6;
}

.landing-page-preview {
    width: 75%;
    position: relative;
}

.landing-page-preview iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border-radius: 10px;
}

.fullscreen-btn {
    position: absolute;
    bottom: 10px;
    right: 20px;
    padding: 10px 20px;
    background-color: #45b6fe;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fullscreen-btn:hover {
    background-color: #3ca5e6;
}

/* Fullscreen Modal Styles */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    height: 90%;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 10px 20px;
    background-color: #45b6fe;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: #3ca5e6;
}

/* Responsive Adjustments for Landing Page */
@media (max-width: 769px) {
    .landing-page-content {
        flex-direction: column;
        margin-left: 20px;
    }

    .landing-page-features {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }

    .landing-page-features .feature-card {
        width: 45%;
        height: auto;
        min-height: 120px;
        padding: 15px;
        background-color: #fff;
    }

    body.dark-mode .landing-page-features .feature-card {
        background-color: #1c1c1e;
    }

    .landing-page-features .feature-card i {
        font-size: 15px;
    }

    .landing-page-features .feature-card h3 {
        font-size: 16px;
    }

    .landing-page-features .feature-card p {
        font-size: 14px;
    }

    .landing-page-preview {
        width: 100%;
        height: 400px;
    }
}

/* Responsive Adjustments */
@media (max-width: 769px) {
    .desktop-nav .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-section h1 {
        margin-left: 0;
        font-size: 46px;
        font-weight: 600;
    }

    .introduction {
        padding-left: 20px;
    }

    .introduction h2 {
        font-size: 30px;
    }

    .introduction p {
        font-size: 16px;
    }

    .carousel-wrapper {
        padding-left: 20px;
    }

    .benefit-card {
        width: 300px;
        height: 400px;
    }

    .service-container h2 {
        margin-left: 20px;
        font-size: 30px;
    }

    .service-container p {
        margin-left: 20px;
        font-size: 16px;
    }

    .onepage-cta p {
        margin-left: 20px;
        font-size: 16px;
    }

    .multipagina-cta p {
        margin-left: 20px;
        font-size: 16px;
    }

    .multipagina-image img {
        margin: 10px 0;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        text-align: center;
    }
}

/* Accessibilità: Focus styles */
:focus-visible {
    outline: 2px solid #45b6fe;
    outline-offset: 2px;
}

/* CTA Section - Aggiunto se utile, ma non nel codice orig */
.cta-section {
    background-color: var(--background-color);
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #6e6e73;
}

body.dark-mode .cta-section p {
    color: #a1a1a6;
}

.cta-button-large {
    padding: 15px 30px;
    background-color: #45b6fe;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 40px;
    font-size: 17px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cta-button-large:hover {
    background-color: white;
    color: #3ca5e6;
    border-color: #3ca5e6;
}

body.dark-mode .cta-button-large:hover {
    background-color: #000000;
}

/* Footer Styles */
.footer {
    background-color: #f5f5f7;
    padding: 40px 20px;
    color: #1d1d1f;
}

body.dark-mode .footer {
    background-color: #373737;
    color: #f5f5f7;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-column {
    margin: 10px;
    min-width: 200px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 10px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

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

.footer-column ul li {
    margin-bottom: 5px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #1d1d1f;
    transition: color 0.3s ease;
}

body.dark-mode .footer-column ul li a {
    color: #f5f5f7;
}

.footer-column ul li a:hover,
body.dark-mode .footer-column ul li a:hover {
    color: #45b6fe;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.footer-bottom a {
    color: #1d1d1f;
    text-decoration: none;
}

body.dark-mode .footer-bottom a {
    color: #f5f5f7;
}

.footer-bottom a:hover {
    color: #45b6fe;
}

/* Scrollbar Styles */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--background-color);
}

body::-webkit-scrollbar-thumb {
    background-color: #d3d3d3;
    border-radius: 10px;
}

body.dark-mode::-webkit-scrollbar-thumb {
    background-color: #3a3a3c;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #45b6fe, #d95bc5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .introduction {
        padding-left: 100px;
    }

    .carousel-wrapper {
        padding-left: 100px;
    }

    .service-container h2, .service-container p {
        margin-left: 30px;
    }

    .onepage-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .landing-page-content {
        flex-direction: column;
    }

    .landing-page-features {
        width: 100%;
        flex-direction: row;
        gap: 30px;
    }
}