/* Sezioni della home del prototipo (prototipo/index.html). */

.parallax-container { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: white; text-align: center; }
.hero { height: 85vh; }
.parallax-bg {
    position: absolute; top: -35%; left: 0; width: 100%; height: 130%;
    background-size: cover; background-position: center; z-index: -1;
    filter: brightness(0.9);
}
/* Gli stili in linea del prototipo, qui come classi. */
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(50px, 7vw, 80px); margin: 0; line-height: 1.1; text-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.hero p { font-size: 18px; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 8px; font-weight: 500; opacity: 0.95; }
.hero .btn { margin-top: 35px; }

.mission-wrapper { padding: 120px 10%; background: var(--white); position: relative; border-top: 2px solid var(--waap-crimson); }
.mission { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: center; }
.mission h2 { color: var(--logo-blue); font-family: 'Playfair Display', serif; font-size: 52px; margin-bottom: 30px; line-height: 1.2; }
.mission h2 span { color: var(--waap-crimson-bright); font-style: italic; font-weight: 400; display: block; margin-top: 5px; }
.mission p { font-size: 18px; color: #475569; text-align: justify; margin-bottom: 20px; font-weight: 300; line-height: 1.8; }

.fao-link { text-decoration: none; color: inherit; }
.fao-card {
    background: var(--ice-gray); padding: 50px; text-align: center; border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.12); transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.05); position: relative; z-index: 2; margin-top: -20px;
    cursor: pointer;
}
.fao-card:hover { transform: translateY(-20px) scale(1.03); box-shadow: 0 45px 90px rgba(0,0,0,0.18); background: #fff; }
.fao-card img { width: 280px; margin-bottom: 25px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15)); transition: var(--transition-smooth); }

.fao-text-content {
    color: var(--logo-blue);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
}

.scientific-break-container { height: 600px; }
.scientific-break-container h3 { font-family: 'Playfair Display', serif; font-size: 48px; max-width: 800px; position: relative; z-index: 2; line-height: 1.2; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }

@media (max-width: 1350px) {
    .mission { grid-template-columns: 1fr; }
    .mission-wrapper { padding: 80px 5%; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 45px; }
    .fao-card { margin-top: 20px; }

    /* Su un telefono la card FAO (logo di 280px più 50px di margine per lato)
       era più larga dello schermo e spingeva la pagina a destra (Carlo). */
    .mission > * { min-width: 0; }
    .fao-card { padding: 35px 25px; }
    .fao-card img { max-width: 100%; }

    /* Titolo della fascia più piccolo (Carlo). */
    .scientific-break-container h3 { font-size: 32px; padding: 0 5%; }
}
