/* General Styles - Ottimizzato, ridondanze rimosse */
body {
    font-family: 'SF Pro Display', Arial, sans-serif;
    color: #1d1d1f;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d3d3d3 #fafafa;
}

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

/* 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: #1d1d1f;
    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;
    margin-left: 0;
}

.theme-icon {
    font-size: 17px;
    color: #1d1d1f;
    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: #000;
    margin: 6px 0;
    transform-origin: center 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: #fafafa;
    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: #1d1d1f;
    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 {
    display: inline-block;
    font-size: 24px;
    color: #1d1d1f;
    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 {
    background: #fafafa;
    text-align: left;
    padding: 40px 20px 10px;
    margin-bottom: 40px;
}

body.dark-mode .hero-section {
    background: #000000;
}

.hero-section h1 {
    margin-left: 50px;
    font-size: 70px;
    max-width: 1000px;
}

.intro-services-section {
    background-color: #fafafa;
}

body.dark-mode .intro-services-section {
    background-color: #000000;
}

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

.introduction h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1d1d1f;
}

body.dark-mode .introduction h2 {
    color: #f5f5f7;
}

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

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

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

.carousel-title {
    padding-left: 250px;
    font-size: 33px;
    color: #1d1d1f;
    margin-bottom: 10px;
}

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

.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;
}

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

.service-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 .service-card {
    background-color: #1c1c1e;
}

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

.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;
}

.why-choose-section {
    padding: 60px 20px;
    background-color: #fafafa;
    text-align: left;
}

body.dark-mode .why-choose-section {
    background-color: #000000;
}

.why-choose-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1d1d1f;
    margin: 10px 0 10px 50px;
    text-align: left;
}

body.dark-mode .why-choose-section h2 {
    color: #f5f5f7;
}

.why-choose-section p {
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 20px;
    max-width: 800px;
    margin: 10px 0 10px 50px;
    text-align: left;
}

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

#stats-chart {
    width: 100%;
    max-width: 1300px;
    margin: 40px auto;
}

.contact-section {
    padding: 60px 20px;
    background-color: #fafafa;
    text-align: center;
}

body.dark-mode .contact-section {
    background-color: #000000;
}

.contact-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1d1d1f;
}

body.dark-mode .contact-section h2 {
    color: #f5f5f7;
}

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

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

.cta-button {
    padding: 10px 15px;
    background-color: #45b6fe;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 40px;
    font-size: 15px;
    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:hover {
    background-color: #3ca5e6;
    color: white;
    border-color: #3ca5e6;
}

.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;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #fafafa;
}

body.dark-mode::-webkit-scrollbar-track {
    background: #000000;
}

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

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

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

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

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

@media (max-width: 769px) {
    .nav-menu {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero-section h1 {
        margin-left: 0;
        font-size: 46px;
        font-weight: 600;
    }
    .introduction {
        padding-left: 50px;
        margin-left: 30px;
    }
    .carousel-title {
        padding-left: 50px;
        font-size: 24px;
    }
    .carousel-wrapper {
        gap: 10px;
        padding-left: 50px;
    }
    .service-card {
        width: 300px;
        height: 400px;
    }
    .card-content h3 {
        font-size: 18px;
    }
    .card-content p {
        font-size: 14px;
    }
    .carousel-arrow {
        font-size: 20px;
    }
    .carousel-arrow.left {
        left: 5px;
    }
    .carousel-arrow.right {
        right: 5px;
    }
    .why-choose-section h2 {
        font-size: 30px;
        margin-left: 0;
    }
    .why-choose-section p {
        font-size: 16px;
        margin-left: 0;
    }
    .contact-section h2 {
        font-size: 30px;
    }
    .contact-section p {
        font-size: 16px;
    }
}