/* =========================================
   HOME.CSS - Stili specifici per la Home Page
   ========================================= */

/* --- HERO SECTION --- */
.hero {
    /* Patina NERA leggera (0.4) */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/sfondo.jpg'); /* ../ per tornare indietro di una cartella se l'immagine è nella root */
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }

/* --- QUICK LINKS GALLEGGIANTI --- */
.quick-links-container {
    max-width: 1200px;
    margin: -60px auto 80px auto; 
    position: relative;
    z-index: 10;
}
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.q-link {
    background-color: var(--white);
    padding: 25px 15px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    text-decoration: none;
    color: var(--csi-blue);
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.q-link i { font-size: 2.5rem; color: var(--csi-orange); transition: color 0.3s ease; }
.q-link span { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.q-link:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); border-color: var(--csi-blue); }
.q-link.highlight { border-color: var(--csi-orange); }
.q-link.highlight:hover { background-color: var(--csi-orange); color: var(--white); }
.q-link.highlight:hover i { color: var(--white); }

/* --- SEZIONE CHI SIAMO --- */
.about {
    background-color: white;
    padding: 1px 5% 80px 5%; /* 1px per non far uscire i margini, trucco CSS */
}
.about-container {
    display: flex; align-items: center; justify-content: space-between; gap: 50px;
    max-width: 1200px; margin: 0 auto;
}
.about-text { flex: 1; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 10px; box-shadow: 20px 20px 0px var(--csi-blue); }
.subtitle { color: var(--csi-orange); font-weight: bold; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; display: block; margin-bottom: 10px; }
.about-text h2 { font-size: 2.5rem; color: var(--csi-blue); line-height: 1.2; margin-bottom: 20px; }
.about-text p { font-size: 1.1rem; color: #555; margin-bottom: 20px; line-height: 1.8; }
.about-stats { display: flex; gap: 30px; margin-top: 30px; border-top: 1px solid #ddd; padding-top: 20px; }
.stat strong { display: block; font-size: 2rem; color: var(--csi-orange); }
.stat { font-size: 0.9rem; color: #666; }

/* --- BANNER CTA (Safeguarding) --- */
.cta-banner {
    background-color: var(--csi-blue);
    color: white;
    padding: 40px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin: 0; 
}
.cta-text h2 { font-size: 2rem; margin-bottom: 5px; }
.cta-text p { font-size: 1.1rem; opacity: 0.9; }

/* --- SEZIONE ATTIVITA' --- */
.activities { padding: 50px 5%; text-align: center; }
.activities h2 { color: var(--csi-blue); margin-bottom: 40px; font-size: 2rem; }

/* --- SEZIONE NEWS DINAMICA --- */
.news-section { padding: 20px 5%; background-color: var(--white); }
.news-container { max-width: 1200px; margin: 0 auto; }
.news-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-wrap: wrap; gap: 15px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #eee; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); }
.news-img { height: 250px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #f0f4f8; border-bottom: 3px solid var(--csi-orange); }
.news-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.news-date { font-size: 0.8rem; color: #888; margin-bottom: 10px; font-weight: bold; text-transform: uppercase; }
.news-title { font-size: 1.2rem; color: var(--csi-blue); margin-bottom: 15px; line-height: 1.4; }
.news-excerpt { font-size: 0.95rem; color: #666; margin-bottom: 20px; flex-grow: 1; }
.news-link { color: var(--csi-orange); font-weight: bold; text-decoration: none; font-size: 0.9rem; align-self: flex-start; }
.news-link:hover { text-decoration: underline; }

/* --- SEZIONE APP MYCSI --- */
.app-section { background: white; color: var(--csi-blue); padding: 80px 5%; margin-top: 0px; position: relative; overflow: hidden; }
.app-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.app-text { flex: 1; z-index: 2; }
.app-tag { background-color: var(--csi-orange); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; text-transform: uppercase; display: inline-block; margin-bottom: 20px; letter-spacing: 1px; }
.app-text h2 { font-size: 3rem; line-height: 1.1; margin-bottom: 20px; }
.app-text p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; }
.app-features { display: flex; gap: 15px; margin-bottom: 40px; }
.feature-item { background: rgba(0, 0, 0, 0.1); padding: 8px 15px; border-radius: 50px; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.2); }
.feature-item i { color: var(--csi-orange); }
.store-buttons-container { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-store { background-color: #111; color: white; text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 10px 22px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); transition: all 0.3s ease; }
.btn-store:hover { background-color: #333; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.btn-store i { font-size: 28px; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-text span { font-size: 0.65rem; text-transform: uppercase; }
.store-text strong { font-size: 1.1rem; font-weight: 600; }
.app-image-col { flex: 1; display: flex; justify-content: center; position: relative; }
.app-image-col img { max-width: 100%; width: 350px; transform: rotate(-5deg); filter: drop-shadow(0 25px 30px rgba(0,0,0,0.5)); border-radius: 20px; border: 4px solid rgba(255,255,255,0.1); transition: transform 0.5s; }
.app-image-col img:hover { transform: rotate(0deg) scale(1.05); }

/* --- REGOLE MOBILE PER LA HOME --- */
@media (max-width: 768px) {
    .hero h1, .titolo-gigante { font-size: 2rem; }
    
    .quick-links-container { margin-top: -30px; margin-bottom: -30px; }
    .q-link { padding: 15px; }
    .q-link i { font-size: 2rem; }
    .q-link span { font-size: 1rem; }
    
    .about-container { flex-direction: column; }
    .about-image img { box-shadow: 10px 10px 0px var(--csi-blue); margin-top: 20px; }
    .about-stats { flex-direction: column; gap: 30px; }
    
    .cta-banner { flex-direction: column; text-align: center; gap: 20px; }
    .btn-strip { width: 100%; display: block; text-align: center; }

    .news-header { flex-direction: column; align-items: flex-start; }

    .app-container { flex-direction: column; text-align: center; padding-bottom: 20px; }
    .app-features { justify-content: center; flex-wrap: wrap; }
    .store-buttons-container { justify-content: center; }
    .app-image-col img { margin-top: 40px; transform: rotate(0); width: 80%; }
}