/* Web Design V2 - Glass Morphism & Minimal Grid */
/* Codice: Alessandro Terracciano - info@whooho.it */

/* ============================
   BASE STYLES
   ============================ */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ============================
   GLASS MORPHISM CARDS
   ============================ */

.glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FFC700, #FF8A00);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.glass:hover::before {
    transform: scaleX(1);
}

.glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 199, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 199, 0, 0.1);
}

.glass-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FFC700, #FF8A00);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.glass-dark:hover::before {
    transform: scaleX(1);
}

.glass-dark:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 199, 0, 0.3);
    transform: translateY(-5px);
}

/* ============================
   SECTION HEADERS
   ============================ */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

[data-theme="dark"] .section-title {
    color: #fff;
}

[data-theme="light"] .section-title {
    color: #111;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

[data-theme="dark"] .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .section-subtitle {
    color: #666;
}

/* ============================
   HERO SECTION
   ============================ */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #111;
}

.black-hole-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.9; /* Aumentata per maggiore visibilità */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 220px; /* Spazio per il menu */
    padding-left: 10%;
    max-width: 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; /* Versione standard per compatibilità */
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.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: 700px;
}

/* Responsive Hero */
@media screen and (max-width: 1200px) {
    .hero-content {
        max-width: 700px;
    }
    
    .hero-content .page-title {
        white-space: normal;
    }
}

@media screen and (max-width: 768px) {
    .hero-content {
        padding-left: 5%;
        padding-right: 5%;
        padding-top: 180px;
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
    }
    
    .hero-content .page-title {
        font-size: 3rem;
        text-align: center;
        white-space: normal;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content .evo-payoff {
        font-size: 2rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content .evo-description {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile Landscape - Orientamento orizzontale */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        padding-top: 80px;
        padding-bottom: 40px;
        max-width: 90%;
    }
    
    .hero-content .page-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }
    
    .hero-content .evo-payoff {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
    
    .hero-content .evo-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    .scroll-indicator {
        display: none; /* Nasconde scroll indicator in landscape */
    }
}

/* Legacy styles - kept for compatibility */
.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button.primary {
    background: linear-gradient(135deg, #FFC700, #FF8A00);
    color: #000;
    border: none;
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 199, 0, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-button.secondary:hover {
    border-color: #FFC700;
    background: rgba(255, 199, 0, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.scroll-indicator p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #FFC700;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        opacity: 1;
        top: 8px;
    }
    50% {
        opacity: 0.3;
        top: 20px;
    }
}

/* ============================
   SHOWCASE SECTION
   ============================ */

.showcase-section {
    position: relative;
    background: #fff;
    color: #000;
    padding: 0;
    overflow: visible;
}

/* Showcase Container (Pinned) */
.showcase-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

/* Left Side: Text (gestito da GSAP pin) */
.showcase-text-wrapper {
    padding: 100px 60px;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    z-index: 10;
}

/* Right Side: Image Fixed (gestito da GSAP) */
.showcase-visual-wrapper {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

/* Individual Power Item - sovrapposti per GSAP pin */
.power-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.power-item.active {
    opacity: 1;
    pointer-events: auto;
}

/* Power Text */
.power-text {
    max-width: 600px;
}

.power-number {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 20px;
}

.power-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0 0 30px 0;
    color: #000;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.power-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: #333;
    margin: 0;
    font-weight: 400;
}

/* Power Visual */
.power-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.power-visual.active {
    opacity: 1;
}

.power-image {
    width: 80%;
    max-width: 600px;
    aspect-ratio: 4 / 5;
    background: #e8e8e8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.power-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.power-image i {
    font-size: 5rem;
    color: #000;
    opacity: 0.15;
    position: absolute;
    z-index: 0;
}

/* Accent marca */
.power-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FFC700, #FF8A00);
    margin-top: 30px;
    border-radius: 2px;
}

/* Progress Indicators */
.showcase-progress {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.showcase-progress .progress-dots {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.showcase-progress .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.showcase-progress .dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #000;
    transition: all 0.3s ease;
}

.showcase-progress .dot.active::before {
    width: 100%;
    height: 100%;
}

.showcase-progress .dot:hover {
    background: #bbb;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .showcase-container {
        grid-template-columns: 1fr;
    }
    
    .showcase-visual-wrapper {
        display: none; /* Hide on mobile per semplicità */
    }
    
    .showcase-text-wrapper {
        padding: 60px 30px;
    }
    
    .power-item {
        min-height: 80vh;
    }
    
    .power-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .power-description {
        font-size: 1rem;
    }
    
    .showcase-progress {
        right: 20px;
    }
    
    .showcase-progress .progress-dots {
        gap: 15px;
    }
    
    .showcase-progress .dot {
        width: 8px;
        height: 8px;
    }
}

/* Tablet */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .showcase-text-wrapper {
        padding: 80px 40px;
    }
    
    .power-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
}

/* ============================
   PORTFOLIO SECTION
   ============================ */

.portfolio-section {
    padding: 120px 20px;
    background: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card::before {
    background: linear-gradient(90deg, #FFC700, #FF8A00);
}

.project-card:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(255, 199, 0, 0.3);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #FFC700;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.project-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: #FFC700;
    color: #FFC700;
    background: rgba(255, 199, 0, 0.05);
}

/* ============================
   TECH SECTION
   ============================ */

.tech-section {
    padding: 120px 20px;
    background: #000;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    padding: 40px 30px;
    position: relative;
}

.tech-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FFC700, #FF8A00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.tech-icon {
    font-size: 2.5rem;
    color: #FFC700;
    margin-bottom: 20px;
}

.tech-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.tech-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================
   SERVICES SECTION
   ============================ */

.services-section {
    padding: 120px 20px;
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.service-card::before {
    background: linear-gradient(90deg, #FFC700, #FF8A00);
}

.service-card:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(255, 199, 0, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #666;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    border-color: #FFC700;
    color: #FFC700;
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* ============================
   PROCESS TIMELINE
   ============================ */

.process-section {
    padding: 120px 20px;
    background: #000;
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-item {
    opacity: 0;
    transform: translateX(-50px);
}

.timeline-content {
    padding: 40px 35px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 35px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFC700, #FF8A00);
    color: #000;
    font-size: 1.2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255, 199, 0, 0.3);
}

.timeline-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    padding-top: 10px;
}

.timeline-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================
   FOOTER
   ============================ */

.site-footer {
    padding: 60px 20px 30px;
    background: #000;
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFC700;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #FFC700;
}

.footer-col ul li i {
    margin-right: 10px;
    color: #FFC700;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    border-color: #FFC700;
    color: #FFC700;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFC700;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tech-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        gap: 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 40px;
    }

    .portfolio-section,
    .tech-section,
    .services-section,
    .process-section,
    .contact-form-section {
        padding: 80px 20px;
    }

    .tech-card,
    .service-card {
        padding: 30px 20px;
    }

    .timeline-content {
        padding: 30px 25px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        left: 25px;
        top: -18px;
    }
}
