/* Stili comuni per le pagine interne */
.internal-page {
    padding-top: 120px;
    min-height: 100vh;
}

.internal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left; /* Aggiunto allineamento a sinistra */
}

.page-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #111;
    text-align: left; /* Aggiunto allineamento a sinistra */
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    font-weight: 400;
    text-align: left; /* Aggiunto allineamento a sinistra */
}

.text-section {
    margin-bottom: 3rem;
    text-align: left; /* Aggiunto allineamento a sinistra */
}

.text-section h2 {
    font-size: 2rem;
    color: #111;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.text-section h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 1.5rem 0 1rem;
    font-weight: 500;
}

.text-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.text-section ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 2rem;
    text-align: left; /* Aggiunto allineamento a sinistra */
}

.text-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.text-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000000;
}

.text-section strong {
    color: #222;
    font-weight: 600;
}

/* EVO CRM Specific Styles */
.evo-hero {
    max-width: 800px;
    margin: 0 auto 80px;
    text-align: center;
}

.evo-payoff {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #FFC700, #FF8A00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.evo-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 50px;
}

.browser-window-container {
    max-width: 1200px;
    margin: 0 auto 100px;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(50px);
    padding: 40px;
}

.browser-window {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    will-change: transform;
}

.browser-header {
    background: #f1f1f1;
    padding: 15px;
    display: flex;
    align-items: center;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
}

.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FFBD2E; }
.browser-dots span:nth-child(3) { background: #28C940; }

.browser-address-bar {
    margin-left: 20px;
    padding: 6px 12px;
    background: #fff;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.browser-content {
    padding: 20px;
    background: #fff;
}

.evo-demo {
    width: 100%;
    height: auto;
    display: block;
}

/* Aggiungi dopo gli altri overlay */
.card-overlay.purple { background-color: rgba(147, 51, 234, 1); }
.card-overlay.green { background-color: rgba(34, 197, 94, 1); }
.card-overlay.cyan { background-color: rgba(6, 182, 212, 1); }
.card-overlay.yellow { background-color: rgba(234, 179, 8, 1); }

/* Aggiungi questo per gestire il contenitore dei servizi */
.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #111;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 220px; /* Spazio per il menu */
    padding-left: 10%;
    max-width: 900px; /* Aumentato da 600px a 900px */
    color: #fff;
}

.hero-content .page-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #FFC700, #FF8A00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap; /* Impedisce l'a capo del titolo */
}

.hero-content .evo-payoff {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    line-height: 1.2;
}

.hero-content .evo-description {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px; /* Stesso max-width del payoff per allineamento */
}

#world-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Permette scroll touch su mobile */
}

#world-container canvas {
    pointer-events: none; /* Disabilita interazione con canvas 3D */
}



/* Responsive */
@media screen and (max-width: 1200px) {
    .hero-content {
        max-width: 700px;
    }
    
    .hero-content .page-title {
        white-space: normal; /* Permette l'a capo su schermi più piccoli */
    }
}

@media screen and (max-width: 768px) {
    .internal-page {
        padding-top: 150px;
    }

    .page-title {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
        text-align: left; /* Allineato a sinistra su mobile */
        margin-bottom: 30px;
        word-wrap: break-word;
    }

    .text-section h2 {
        font-size: 1.5rem;
    }

    .hero-content {
        padding-left: 5%; /* Padding sinistro per respiro */
        padding-right: 5%;
        padding-top: 180px;
        max-width: 90%;
        margin: 0 auto;
        text-align: left; /* Testo allineato a sinistra */
    }
    
    .hero-content .evo-payoff,
    .hero-content .evo-description {
        text-align: left; /* Forzato a sinistra */
        padding-left: 0; /* Reset padding per allineamento perfetto */
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .evo-payoff {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        margin-bottom: 20px;
        word-wrap: break-word;
        hyphens: auto;
    }

    .evo-description {
        font-size: 0.95rem !important;
        padding: 0 20px;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .browser-window-container {
        margin: 0 20px 60px;
    }
}

@media (min-width: 1200px) {
    .cards-wrapper {
        grid-template-columns: repeat(3, 1fr); /* 3 colonne su desktop */
    }
}

@media (max-width: 1199px) {
    .cards-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile Landscape - Orientamento orizzontale */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
        max-width: 90%;
    }
    
    .hero-content .page-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.1 !important;
    }
    
    .evo-payoff {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
    }
    
    .evo-description {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .scroll-indicator {
        display: none;
    }
}
