/* ==================== */
/* Global Styles        */
/* ==================== */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f9f9f9; /* leggero contrasto sul bianco puro */
    color: #333;
    line-height: 1.6;
}

/* Main content area */
main {
    flex: 1;
}

/* Header */
header {
    background-color: #003366;
    color: white;
    padding: 20px;
    text-align: center;
    top: 0;
    z-index: 1000;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* About Section */
.about {
    padding: 60px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about .container {
    max-width: 950px;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Big Card */
.big-card {
    background: #fff;
    border: 2px solid #003366;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 50px 40px;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 850px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Bordo animato in alto */
.big-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #003366, #00aaff, #003366);
    background-size: 200% 100%;
    animation: borderLine 4s linear infinite;
}

@keyframes borderLine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.big-card img {
    max-width: 220px;
    margin-bottom: 25px;
}

.big-card h2 {
    margin: 15px 0 20px 0;
    font-size: 32px;
    font-weight: bold;
    color: #003366;
    letter-spacing: 1px;
}

/* Fix Paragrafo: Font pulito, niente corsivo globale e testo centrato */
.big-card p {
    font-size: 17px;
    color: #444;
    line-height: 1.8;
    text-align: center; /* Puoi mettere 'left' se preferisci l'allineamento a sinistra */
    padding: 0 10px;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-style: normal;
    margin-bottom: 20px;
}

/* Mantiene il corsivo solo per il testo racchiuso in <em> */
.big-card p em {
    font-style: italic;
}

/* Hover Effects */
.big-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ==================== */
/* Responsive Design    */
/* ==================== */

/* Tablet */
@media (max-width: 768px) {
    .about {
        padding: 40px 15px;
    }

    .big-card {
        padding: 35px 25px;
        max-width: 95%;
    }

    .big-card h2 {
        font-size: 26px;
    }

    .big-card p {
        font-size: 16px;
    }
}

/* Smartphone */
@media (max-width: 480px) {
    .about {
        padding: 25px 10px;
    }

    .big-card {
        padding: 25px 15px;
        border-radius: 10px;
    }

    .big-card img {
        max-width: 150px;
    }

    .big-card h2 {
        font-size: 22px;
    }

    .big-card p {
        font-size: 15px;
        line-height: 1.6;
    }
}