/* --- PALETTE CURUNAS ---

   Nero profondo: #000000
   Grigio scuro: #1a1a1a
   Grigio medio: #2c2c2c
   Grigio acciaio: #415a77
   Bianco sporco: #f0f0f0
   Ciano tech: #4dd0e1

*/

/* ======================== */
/* BASE & RESET             */
/* ======================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f0f0;
    color: #1a2332;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================== */
/* HEADER                   */
/* ======================== */

.header {
    background: #000000;
    color: white;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(77, 208, 225, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.header-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 20px;
}

.header .logo {
    width: clamp(160px, 60vw, 520px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

@media (max-width: 760px) {
    .header {
        padding: 12px 16px;
        height: 260px;
    }

    .header .logo {
        width: auto;
        height: 220px;
        max-width: 95%;
    }
}

@media (max-width: 420px) {
    .header {
        padding: 10px 12px;
        height: 220px;
    }

    .header .logo {
        width: auto;
        height: 190px;
        max-width: 95%;
    }
}

.header-text {
    text-align: left;
}

.header h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
    background: linear-gradient(120deg, #ffffff, #4dd0e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .tagline {
    font-size: 1.1rem;
    color: #4dd0e1;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0;
}

/* ======================== */
/* HERO SECTION             */
/* ======================== */

.hero {
    background: linear-gradient(180deg, #ffffff 0%, #f0f3f7 100%);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e5eb;
}

.hero h2 {
    font-size: 2.8rem;
    color: #0d1b2a;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.hero p {
    font-size: 1.15rem;
    color: #415a77;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ======================== */
/* SECTIONS                 */
/* ======================== */

.section {
    background-color: white;
    margin: 60px auto;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.section h2 {
    color: #0d1b2a;
    border-left: 5px solid #4dd0e1;
    padding-left: 20px;
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: 700;
}

.section h3 {
    color: #1b263b;
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 600;
}

.section h4 {
    color: #415a77;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.section p {
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.85;
}

.section-intro {
    font-size: 1.1rem;
    color: #415a77;
    margin-bottom: 30px;
    font-style: italic;
}

/* ======================== */
/* ABOUT SECTION           */
/* ======================== */

.about-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
}

.mission-list {
    list-style: none;
    margin: 25px 0 30px 0;
    padding: 0;
}

.mission-list li {
    background: #f0f8fc;
    border-left: 4px solid #4dd0e1;
    padding: 15px 20px;
    margin: 12px 0;
    border-radius: 0 6px 6px 0;
    font-size: 1.05rem;
    color: #1a2332;
    transition: all 0.3s ease;
}

.mission-list li:hover {
    background: #e8f5f9;
    border-left-color: #0d1b2a;
    transform: translateX(5px);
}

.mission-list strong {
    color: #0d1b2a;
    font-weight: 700;
}

/* ======================== */
/* DIVISIONS GRID          */
/* ======================== */

.divisions-section {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.division-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-top: 5px solid #000000;
}

.division-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.division-header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 0 25px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.division-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.division-logo {
    width: auto;
    height: 100%;
    max-height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.division-body {
    padding: 30px 25px;
}

.division-body p {
    color: #415a77;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.75;
}

.division-body h4 {
    color: #0d1b2a;
    margin-top: 25px;
    margin-bottom: 18px;
    font-size: 1.15rem;
}

/* ======================== */
/* COLLABORATORS           */
/* ======================== */

.collaborators {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.collaborator-card {
    background: #f8fafc;
    border-left: 4px solid #4dd0e1;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.collaborator-card:hover {
    background: #f0f8fc;
    border-left-color: #0d1b2a;
    transform: translateX(4px);
}

.collaborator-card strong {
    color: #0d1b2a;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 8px;
}

.collaborator-card p {
    color: #415a77;
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.7;
}

.btn-link {
    display: inline-block;
    color: #4dd0e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.btn-link::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.btn-link:hover {
    color: #0d1b2a;
}

.btn-link:hover::after {
    transform: translateX(4px);
}

/* ======================== */
/* ROADMAP SECTION         */
/* ======================== */

.roadmap-section {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
}

.roadmap-content {
    max-width: 850px;
    margin: 0 auto;
}

.vision-list {
    list-style: none;
    margin: 25px 0 30px 0;
    padding: 0;
}

.vision-list li {
    background: linear-gradient(135deg, #f0f8fc 0%, #e8f5f9 100%);
    border-left: 4px solid #4dd0e1;
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 0 6px 6px 0;
    color: #1a2332;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vision-list li:hover {
    background: linear-gradient(135deg, #e8f5f9 0%, #e0f2f7 100%);
    transform: translateX(4px);
}

/* ======================== */
/* PARTNERSHIPS GRID       */
/* ======================== */

.partnerships-section {
    background: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #1b263b 0%, #2c3e50 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 600;
    font-size: 1.05rem;
    min-height: 120px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.partner-link:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #4dd0e1 0%, #2c3e50 100%);
    box-shadow: 0 10px 25px rgba(77, 208, 225, 0.3);
    border-color: #4dd0e1;
}

.partner-link span {
    display: block;
}

/* ======================== */
/* CTA SECTION             */
/* ======================== */

.cta-section {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    color: white;
    text-align: center;
    padding: 80px 40px;
}

.cta-section h2 {
    color: white;
    border-left: 5px solid #4dd0e1;
    padding-left: 20px;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.cta-section p {
    color: #c5d3e0;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #4dd0e1 0%, #00bcd4 100%);
    color: #0d1b2a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(77, 208, 225, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(77, 208, 225, 0.5);
    background: linear-gradient(135deg, #00bcd4 0%, #4dd0e1 100%);
}

/* ======================== */
/* FOOTER                   */
/* ======================== */

.footer {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    color: #b8c5d6;
    text-align: center;
    padding: 50px 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(77, 208, 225, 0.2);
}

.footer p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #4dd0e1;
    font-style: italic;
    margin-top: 15px !important;
    font-weight: 500;
}

/* ======================== */
/* RESPONSIVE DESIGN       */
/* ======================== */

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .header {
        padding: 16px 20px;
        height: 260px;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .header .logo-section {
        flex-direction: column;
        gap: 15px;
    }

    .header .logo {
        width: auto;
        max-width: 95%;
        height: auto;
        max-height: 220px;
    }

    .header-text {
        text-align: center;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 40px 25px;
        margin: 40px auto;
    }

    .section h2 {
        font-size: 1.8rem;
        padding-left: 15px;
        border-left: 4px solid #4dd0e1;
    }

    .divisions-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .partner-link {
        padding: 25px 15px;
        font-size: 0.95rem;
        min-height: 100px;
    }

    .cta-section {
        padding: 60px 25px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .mission-list li,
    .vision-list li {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header .tagline {
        font-size: 0.95rem;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .section h3 {
        font-size: 1.3rem;
    }

    .section {
        padding: 30px 20px;
        margin: 25px auto;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-link {
        padding: 20px;
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .mission-list li,
    .vision-list li {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* ======================== */
/* ANIMATIONS              */
/* ======================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: slideInUp 0.6s ease-out;
}