/* ======================================
   RESET & VARIABILI
   ====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================================
   LAYOUT BASE
   ====================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
    margin: 0;
    padding: 0;
}

/* ======================================
   SEZIONI
   ====================================== */
.section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: flex 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: flex;
}

/* Gradiente overlay sopra immagine */
.section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-left::after {
    background: linear-gradient(135deg, rgba(0, 224, 224, 0.6) 0%, rgba(0, 184, 184, 0.65) 100%);
}

.section-right::after {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.6) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.section:hover {
    flex: 2;
    transition: flex 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-left {
    background: linear-gradient(135deg, rgba(0, 224, 224, 0.85) 0%, rgba(0, 184, 184, 0.9) 100%);
}

.section-right {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.85) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.section-left::before {
    background-image: url('/home/images/professione-1.jpg');
}

.section-right::before {
    background-image: url('/home/images/professione-2.jpg');
}

.section:hover::before {
    opacity: 1;
}

/* Overlay gradiente sopra l'immagine */
.content {
    position: relative;
    z-index: 2;
    padding: 180px 30px 60px 30px;
    max-width: 600px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================================
   TIPOGRAFIA
   ====================================== */
.profession-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    transition: font-size 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.title-word {
    display: block;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================================
   INFO LIST
   ====================================== */
.info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-list li {
    padding: 12px 0;
    padding-left: 25px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: white;
    font-weight: bold;
}

/* ======================================
   CTA BUTTON
   ====================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: white;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow-icon {
    transform: translateX(3px);
}

/* ======================================
   LOGO CENTRALE
   ====================================== */
.center-logo {
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    z-index: 100;
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-logo.move-right {
    left: 66.6%;
}

.center-logo.move-left {
    left: 33.3%;
}

.center-logo img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.center-logo.active img {
    transform: scale(1.15) rotate(5deg);
}

/* ======================================
   FOOTER COPYRIGHT
   ====================================== */
.footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-align: center;
    width: 100%;
}

.footer p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    letter-spacing: 0.5px;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

/* ======================================   MOBILE ONLY ELEMENTS
   ====================================== */
.scroll-indicator,
.position-dots {
    display: none;
}

/* ======================================   RESPONSIVE
   ====================================== */
@media (max-width: 768px) {
    .center-logo {
        width: 60px;
        height: 60px;
        top: 50%;
        left: 50% !important;
    }
    
    .footer p {
        font-size: 9px;
    }
}



/* ======================================
   RESPONSIVE DESIGN
   ====================================== */
@media (max-width: 1200px) {
    .content {
        padding: 60px 40px;
    }
    
    .title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    
    .subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
    }
    
    .section {
        width: 100% !important;
        height: 95vh !important;
        min-height: 95vh;
        flex: none !important;
        scroll-snap-align: start;
    }
    
    /* Disabilita completamente hover su mobile */
    .section:hover {
        height: 95vh !important;
        flex: none !important;
    }
    
    .section:not(:hover) {
        height: 95vh !important;
    }
    
    /* Freccia scroll animata */
    .scroll-indicator {
        display: block;
        position: fixed;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
        color: white;
        z-index: 100;
        animation: bounce 2s infinite;
        pointer-events: none;
    }
    
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateX(-50%) translateY(0);
        }
        40% {
            transform: translateX(-50%) translateY(-10px);
        }
        60% {
            transform: translateX(-50%) translateY(-5px);
        }
    }
    
    /* Indicatori di posizione */
    .position-dots {
        display: flex;
        position: fixed;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 15px;
        z-index: 100;
    }
    
    .position-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .position-dots .dot.active {
        background: white;
        transform: scale(1.3);
    }
    
    /* Footer nascosto su mobile */
    .footer {
        display: none;
    }
    
    /* Logo fisso centrato in alto */
    .center-logo {
        position: fixed;
        left: 50%;
        top: 20px;
        transform: translateX(-50%);
        width: 70px;
        height: 70px;
        z-index: 1000;
        transition: none !important;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    }
    
    .center-logo svg {
        fill: #fff;
    }
    
    /* Nasconde movimento logo su mobile */
    .center-logo.move-left,
    .center-logo.move-right {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .content {
        padding: 120px 25px 80px 25px;
        max-width: 100%;
        justify-content: flex-start;
        display: flex;
        flex-direction: column;
    }
    
    .title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .description {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .info-list {
        margin-bottom: 25px;
    }
    
    .info-list li {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .info-card {
        padding: 16px;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    /* Nasconde linea divisoria su mobile */
    .center-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .center-logo {
        width: 50px;
        height: 50px;
        top: 20px;
        padding: 10px;
    }
    
    .content {
        padding: 100px 20px 50px 20px;
    }
    
    .profession-tag {
        font-size: 10px;
        letter-spacing: 2px;
    }
    
    .title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .description {
        font-size: 15px;
    }
}

/* ======================================
   PERFORMANCE & ACCESSIBILITY
   ====================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states per accessibilità */
.cta-button:focus-visible {
    outline: 3px solid var(--color-light);
    outline-offset: 4px;
}

.section:focus-within {
    outline: none;
}
