/* Stili specifici homepage */

/* Hero Privacy */
.privacy-hero {
    background: #ffffff;
    padding: 40px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    text-align: center;
}

.privacy-headline {
    font-size: 2rem;
    color: #2d3748;
    margin: 0 0 15px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.privacy-subheadline {
    font-size: 1.15rem;
    color: #3b4494;
    margin: 0 0 30px 0;
    font-weight: 500;
}

.privacy-explanation {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto 25px auto;
}

.privacy-explanation h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin: 0 0 20px 0;
}

.privacy-explanation p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
    margin: 0 0 15px 0;
}

.privacy-explanation p:last-child {
    margin-bottom: 0;
}

.privacy-explanation strong {
    color: #2d3748;
}

.privacy-result {
    font-size: 1.1rem;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

.launch-notice {
    font-size: 0.95rem;
    color: #4a515a;
    margin: 0;
}

@media (max-width: 768px) {
    .privacy-hero {
        padding: 16px 8px;
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .privacy-headline {
        font-size: 1.25rem;
    }
    
    .privacy-subheadline {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .privacy-explanation {
        padding: 12px 10px;
    }
}

/* Nota Pre-Lancio */
.pre-launch-notice {
    background: #e7f3ff;
    color: #333;
    padding: 0;
    margin: 30px 0;
    border-radius: 8px;
    border-left: 5px solid #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pre-launch-notice-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: #3d4690;
    list-style: none;
}

.pre-launch-notice-summary::-webkit-details-marker {
    display: none;
}

.pre-launch-notice-summary::after {
    content: '\25BC';
    font-size: 0.75em;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #667eea;
}

.pre-launch-notice[open] .pre-launch-notice-summary::after {
    transform: rotate(180deg);
}

.pre-launch-notice-summary:hover {
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px 8px 0 0;
}

.pre-launch-notice-summary:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: -3px;
    border-radius: 8px;
}

.pre-launch-notice-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
}

.pre-launch-notice-text {
    padding: 0 20px 16px 20px;
}

.pre-launch-notice-text p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: #3d4452;
}

.hero-tagline {
    text-align: center;
    font-size: 1.2em;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.features-highlight {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.features-highlight span {
    background: #f8f9fa;
    padding: 0.5rem 0.938rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    color: #555;
}

/* Dual Path Section */
.dual-path {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 40px 0;
    border-radius: 8px;
}

.dual-path h2 {
    text-align: center;
    color: #3b4494;
    font-size: 2rem;
    margin-bottom: 40px;
}

.path-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.path-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.path-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.path-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1;
}

.path-box h3 {
    color: #3b4494;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.path-box > p {
    color: #4a515a;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.path-benefits {
    text-align: left;
    margin: 25px 0;
    padding: 0;
    list-style: none;
}

.path-benefits li {
    padding: 10px 0;
    color: #495057;
    font-size: 1rem;
    border-bottom: 1px solid #f8f9fa;
}

.path-benefits li:last-child {
    border-bottom: none;
}

.path-box .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #4a54b0 0%, #5e3a8a 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.path-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

/* Manifesto */
.manifesto {
    background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
    padding: 50px 40px;
    margin: 40px 0;
    border-radius: 12px;
    text-align: center;
}

.manifesto__testo {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #2d3748;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.manifesto__testo strong {
    color: #1a5632;
    font-weight: 700;
}

/* Platform Intro */
.platform-intro {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.platform-intro p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Fix h1 che esce dallo schermo su Firefox mobile */
    #homepage-title {
        font-size: 1.4rem;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .dual-path {
        padding: 24px 4px; /* Fix: padding laterale minimo */
        margin: 20px -8px; /* Espande fino ai bordi del wrapper */
        border-radius: 0;
    }
    
    .dual-path h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .path-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .path-box {
        padding: 20px 14px; /* Fix: ridotto padding interno */
        border-radius: 8px;
    }
    
    .path-icon {
        font-size: 2.5rem;
    }
    
    .path-box h3 {
        font-size: 1.3rem;
    }
    
    .path-box > p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .path-benefits li {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    .path-box .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    .manifesto {
        padding: 30px 16px;
        margin: 20px 0;
        border-radius: 8px;
    }
    
    .manifesto__testo {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #homepage-title {
        font-size: 1.2rem;
    }
    
    .privacy-hero {
        padding: 12px 6px;
        margin: 8px 0;
    }
    
    .privacy-headline {
        font-size: 1.1rem;
    }
    
    .dual-path {
        padding: 20px 2px;
    }
    
    .path-box {
        padding: 16px 10px;
    }
    
    .path-box h3 {
        font-size: 1.2rem;
    }
    
    .manifesto {
        padding: 24px 12px;
    }
    
    .manifesto__testo {
        font-size: 0.95rem;
    }
}

/* ========================================
   ALERT SESSIONE SCADUTA
   ======================================== */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.alert-warning a {
    color: #533f03;
    font-weight: 600;
    text-decoration: underline;
}

.alert-warning a:hover {
    color: #1d1606;
}

.alert-dismissible {
    padding-right: 48px;
    position: relative;
}

.alert-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    border-radius: 4px;
}

.alert-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

.alert-close:focus-visible {
    outline: 2px solid #533f03;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .alert {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        padding-right: 16px;
    }
    
    .alert-dismissible {
        padding-top: 40px;
    }
    
    .alert-close {
        top: 8px;
        right: 8px;
        transform: none;
    }
}
