/* ============================================================
   STYLE_GRASP.CSS
   Stili specifici per la pagina "Metodo GRASP"
   Da collegare in grasp-method.html DOPO style.css
============================================================ */

/* --- HERO FUSION CONTAINER --- */
#grasp-hero-specific.fusion-container {
    position: relative;
    width: 100%;
    height: 600px; /* Altezza aumentata per compensare l'header grande */
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    margin-top: 0; /* Il padding-top è già nel body del style.css */
    z-index: 1;
}

/* Particelle sullo sfondo */
#particles-js {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

/* --- OVERLAY INIZIALE (Il "Velo") --- */
#grasp-hero-specific .hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(5px);
    z-index: 20;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease-in-out;
    pointer-events: none; /* Fondamentale per l'hover */
}

/* Quando il mouse entra, l'overlay sparisce */
#grasp-hero-specific.fusion-container:hover .hero-overlay,
#grasp-hero-specific .hero-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.overlay-content {
    text-align: center;
    max-width: 800px;
    padding: 30px;
    animation: graspFadeIn 1s ease-out forwards;
}
@keyframes graspFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    background: #000; color: #fff;
    padding: 6px 14px;
    font-weight: 700; font-size: 0.75rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* --- ACCORDION INTERATTIVO --- */
#grasp-hero-specific .grasp-wrapper {
    display: flex;
    width: 100%; height: 100%;
    gap: 1px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

#grasp-hero-specific .grasp-panel {
    position: relative;
    flex: 1;
    background: #ffffff;
    border-right: 1px solid #f0f0f0;
    border-top: 4px solid #333;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s;
    cursor: pointer;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Stato HOVER del pannello */
#grasp-hero-specific .grasp-panel:hover {
    flex: 8;
    background: #fff;
    border-top-color: #00aaff;
    box-shadow: inset 0 0 40px rgba(0, 170, 255, 0.05);
}

/* Lettera gigante */
.panel-letter {
    font-size: 3rem;
    font-weight: 900;
    color: #f4f4f4;
    position: absolute;
    top: 20px; left: 20px;
    transition: 0.5s;
    z-index: 1;
}

#grasp-hero-specific .grasp-panel:hover .panel-letter {
    font-size: 10rem;
    color: #f0f9ff;
    top: -20px; right: -10px; left: auto;
}

.panel-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #000;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.panel-desc {
    font-size: 0.95rem;
    color: #555;
    opacity: 0;
    max-height: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

#grasp-hero-specific .grasp-panel:hover .panel-desc {
    opacity: 1;
    max-height: 300px;
    transform: translateY(0);
    margin-top: 15px;
}

.killer-question {
    display: block;
    margin-top: 15px;
    padding: 12px;
    border-left: 3px solid #00aaff;
    background: rgba(0, 170, 255, 0.05);
    font-weight: 600;
    font-size: 0.85rem;
    color: #004466;
    font-style: italic;
}

/* --- ACTION BAR --- */
.action-bar {
    background: #111; color: #fff;
    padding: 40px 0;
    border-top: 1px solid #333;
    position: relative; z-index: 5;
}
.action-content {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1000px; margin: 0 auto; padding: 0 20px;
}
.action-text h3 { margin: 0; font-size: 1.5rem; color: #fff; }
.action-text p { margin: 5px 0 0 0; color: #999; font-size: 0.95rem; }

/* --- GRID & BOOK SECTION --- */
.shift-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; margin-top: 60px;
}
.shift-col {
    padding: 40px; background: #fff;
    border: 1px solid #eee; border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.shift-bad { border-top: 4px solid #ccc; }
.shift-good { border-top: 4px solid #00aaff; box-shadow: 0 15px 40px rgba(0, 170, 255, 0.08); }
.shift-title { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.shift-list li { margin-bottom: 12px; padding-left: 25px; position: relative; list-style: none; color: #555; }
.shift-bad li::before { content: '✕'; position: absolute; left: 0; color: #999; font-weight: bold; }
.shift-good li::before { content: '✓'; position: absolute; left: 0; color: #00aaff; font-weight: bold; }

.book-section { background: #fff; padding: 100px 0; border-top: 1px solid #eee; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.book-visual { display: flex; justify-content: center; perspective: 1000px; }
.css-book {
    width: 240px; height: 340px; background: #000;
    border-radius: 2px 10px 10px 2px;
    box-shadow: -15px 15px 30px rgba(0,0,0,0.3);
    position: relative; transform: rotateY(-15deg);
    transition: transform 0.5s ease;
    color: #fff; text-align: center; padding: 30px;
    display: flex; flex-direction: column; justify-content: center;
    border: 1px solid #333;
}
.css-book:hover { transform: rotateY(0deg) scale(1.05); }
.css-book::before {
    content: ''; position: absolute; right: 0; top: 5px; bottom: 5px; width: 15px;
    background: linear-gradient(to right, #ccc, #fff, #ccc);
    border-radius: 0 5px 5px 0; transform: translateX(10px) translateZ(-10px);
}
.book-badge { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: #00aaff; margin-bottom: 15px; display: block; }
.book-title { font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 10px; font-family: 'Times New Roman', serif; font-style: italic; }
.book-author { font-size: 0.9rem; color: #999; }
.status-badge { background: #f0f9ff; color: #00aaff; padding: 8px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 15px; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    #grasp-hero-specific.fusion-container { flex-direction: column; height: auto; }
    #grasp-hero-specific .hero-overlay { position: relative; opacity: 1 !important; visibility: visible !important; padding: 60px 20px; pointer-events: auto; }
    #grasp-hero-specific .grasp-wrapper { flex-direction: column; }
    #grasp-hero-specific .grasp-panel { height: 80px; border-bottom: 1px solid #eee; }
    #grasp-hero-specific .grasp-panel:hover { height: 400px; flex: none; }
    .action-content { flex-direction: column; text-align: center; gap: 20px; }
    .shift-grid, .book-grid { grid-template-columns: 1fr; }
    .book-visual { margin-bottom: 40px; }
}