/* ==========================================
   INDEX.CSS - Exhibition Layout (100% Responsive)
   ========================================== */

/* Layout Principale Alternato */
.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Header della Pagina */
.work-header {
    padding: clamp(6rem, 12vw, 10rem) 5% 3rem;
    text-align: center;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-header h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    background: linear-gradient(135deg, var(--gold-light), #ffffff 50%, var(--gold-dark));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.8vw, 6px);
    font-weight: 800;
    animation: goldShimmer 6s linear infinite;
}

.work-header p {
    color: var(--gold-main); 
    margin-top: 1rem; 
    letter-spacing: 3px; 
    font-weight: 600; 
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}

/* Sezione Esibizione Progetti */
.portfolio-section { 
    padding: 2rem 5% clamp(4rem, 8vw, 10rem); 
}

.project-row {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
    margin-bottom: clamp(5rem, 12vw, 12rem);
    opacity: 0;
    transform: translateY(40px) scale(0.99);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-row.visible { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
}

.project-row:nth-child(even) { 
    flex-direction: row-reverse; 
}

/* Visual Block (Contenitore con Glassmorphism Inteso) */
.project-visual {
    flex: 1.2;
    width: 100%;
    position: relative;
    border-radius: clamp(16px, 3vw, 28px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.1);
    aspect-ratio: 16/10;
    padding: clamp(10px, 2vw, 25px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s;
}

.project-visual:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
}

.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: clamp(10px, 2vw, 18px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-visual:hover img { 
    transform: scale(1.03); 
}

/* Griglia Meta Tag (Badge Tipo e Numero a Specchio) */
.meta-container {
    position: absolute;
    top: clamp(15px, 2.5vw, 35px);
    left: clamp(15px, 2.5vw, 35px);
    right: clamp(15px, 2.5vw, 35px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}

.project-tag {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 6px clamp(10px, 1.5vw, 18px);
    border-radius: 50px;
    font-size: clamp(0.65rem, 1.2vw, 0.75rem);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-tag.pwa { border-color: var(--gold-light); color: var(--gold-light); }
.project-tag.web-app { border-color: #007aff; color: #007aff; }

.project-number {
    font-size: clamp(0.7rem, 1.3vw, 0.9rem);
    font-weight: 600;
    color: var(--gold-main);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px clamp(10px, 1.3vw, 14px);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Info Testuali Progetto */
.project-info { 
    flex: 1; 
    width: 100%;
}

.project-info h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    margin: 0.5rem 0 1rem;
    color: white;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.project-info p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    font-weight: 300;
}

/* Pulsante Link Esterno */
.view-btn {
    padding: 0.9rem clamp(1.5rem, 2.5vw, 2.5rem);
    background: transparent;
    border: 1px solid var(--gold-main);
    color: var(--gold-main);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
}

.view-btn:hover {
    background: var(--gold-main);
    color: black;
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15);
}

/* Keyframes Spostamento Fluido dell'Oro */
@keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Breakpoint unico per Tablet e Mobile */
@media (max-width: 968px) {
    .project-row, .project-row:nth-child(even) { 
        flex-direction: column; 
        text-align: center; 
        gap: 2rem; 
        margin-bottom: clamp(4rem, 10vw, 7rem);
    }
    .project-info {
        padding: 0 5%;
    }
}