/* --- Inizio public.css --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', sans-serif;
    line-height: 1.6;
    color: #333;
}

.news-detail {
    max-width: 900px !important;
}

/* Header con navbar */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0e2547;
    padding: 10px 20px;
}

    .header-container img {
        height: 120px;
        margin-left: 30px;
    }

nav {
    display: flex;
    gap: 15px;
}

    nav a {
        color: white;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 300;
        padding: 10px 15px;
        /* border-radius: 30px;
        transition: 0.3s;
        border: 1px solid white;*/
    }

/*        nav a:hover {
            background-color: white;
            color: #0e2547;
        }*/

.area-personale {
    background-color: white;
    color: #0e2547 !important;
    position: relative;
    padding-left: 40px !important;
}

    .area-personale .profile-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.2rem;
        color: #0e2547;
    }

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/*@media (max-width: 1000px) {
    .header-container {
        justify-content: center;
        position: relative;
    }

        .header-container img {
            height: 70px;
        }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #1a3657;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 999;
    }

        nav.open {
            right: 0;
        }

    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 1000;
        cursor: pointer;
    }
}*/

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    background-image: url('../assets/HOMEPAGE.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: left;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 30px;
    text-align: left;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    text-align: left;
    font-weight: 200;
}

.hero-button {
    font-size: 2rem;
    display: inline-block;
    background-color: #ffc107;
    color: #0e2547;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

    .hero-button:hover {
        background-color: #ad8200;
    }

.hero-button-2 {
    font-size: 1.3rem;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

    .hero-button-2:hover {
        color: #174180;
    }

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: left;
        height: 120vh;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Sezione Normative Vigenti */
.concetti-chiave {
    padding: 40px 20px;
    margin: 40px auto;
    max-width: 1200px;
}

.titolo-sottotitolo {
    text-align: center;
    margin-bottom: 40px;
}

.concetti-chiave h2 {
    font-size: 2.5rem;
    color: #0e2547;
    margin-bottom: 10px;
}

.sottotitolo-concetti {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

/* Stile per il container delle schede */
.schede-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px auto;
    max-width: 1200px;
}

/* Stile per ogni scheda */
.scheda {
    background-color: white;
    border-radius: 15px;
    width: 30%;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.scheda-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding-bottom: 60px;
}

.scheda-img {
    width: 50%;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto 15px auto; /* Modificato per centrare */
    display: block; /* Aggiunto per centrare */
}


.scheda h3 {
    font-size: 1.5rem;
    color: #0e2547;
    margin-bottom: 10px;
}

.scheda p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.scheda-button-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: 20px;
}

.scheda-button {
    display: inline-block;
    background-color: #0e2547;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

    .scheda-button:hover {
        background-color: #1a3657;
    }

@media (max-width: 768px) {
    .scheda {
        width: 100%;
        min-height: auto;
    }
}

/* Sezione Vantaggi di VRC */
.vantaggi-section {
    background-color: #0e2547;
    padding: 100px 20px;
    margin: 40px 0;
    width: 100%;
    text-align: center;
}

.vantaggi-container {
    max-width: 1200px;
    margin: 0 auto;
    color: white;
}

    .vantaggi-container h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        color: white;
    }

.intro-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #ddd;
}

.intro-text-2 {
    font-size: 1.2rem;
    margin: 50px;
    line-height: 1.6;
    color: #ddd;
}

.vantaggi-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.vantaggio-card {
    background-color: white;
    border-radius: 10px;
    width: 30%;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .vantaggio-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

.vantaggio-icona {
    font-size: 2.5rem;
    color: #0e2547;
    margin-bottom: 15px;
}

    .vantaggio-icona img {
        width: 50%;
        object-fit: cover;
        border-radius: 10px;
    }

.vantaggio-testo h4 {
    font-size: 1.5rem;
    color: #0e2547;
    margin-bottom: 10px;
}

.vantaggio-testo p {
    font-size: 1.3rem;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .vantaggio-card {
        width: 100%;
    }

    .vantaggi-container h2 {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .vantaggio-testo h4 {
        font-size: 1.2rem;
    }

    .vantaggio-testo p {
        font-size: 0.9rem;
    }
}

/* Nuovo stile per la sezione News */
/* Sezione News con titolo uniformato a Normative vigenti */
.news-section {
    padding: 40px 20px;
    margin: 40px auto;
    max-width: 1200px;
}

    .news-section .section-title {
        text-align: center;
        margin-bottom: 40px;
    }

    .news-section h2 {
        font-size: 2.5rem;
        color: #0e2547;
        margin-bottom: 10px;
    }

    .news-section .section-title p {
        font-size: 1.2rem;
        color: #555;
        line-height: 1.6;
    }

.news-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-image {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 20px;
}

.news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1.6rem;
    color: #0e2547;
    margin-bottom: 15px;
}

.news-card p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    background-color: #0e2547;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

    .read-more-btn:hover {
        background-color: #1a3657;
        transform: translateY(-2px);
    }

@media (max-width: 1000px) {
    .news-grid-container {
        grid-template-columns: 1fr;
    }
}

.footer-vrc {
    background-color: #0e2547;
    color: white;
    text-align: center;
    padding: 30px 20px 20px 20px;
    margin-top: 60px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

    .footer-links a {
        background-color: white;
        color: #0e2547;
        font-size: 0.9rem;
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: 400;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        .footer-links a:hover {
            background-color: #ffc107;
            color: #0e2547;
        }

    .footer-links i {
        margin-right: 5px;
    }

.footer-copyright {
    font-size: 0.9rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}


/* --- Inizio about.css --- */
body {
    font-family: 'Oswald', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #0e2547;
    padding: 20px;
    color: white;
    text-align: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0e2547;
    padding: 10px 20px;
}

    .header-container img {
        height: 120px;
        margin-left: 30px;
    }

nav {
    display: flex;
    gap: 15px;
}

    nav a {
        color: white;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 300;
        padding: 10px 15px;
    }

/* nav a:hover {
            background-color: white;
            color: #0e2547;
        }*/

.area-personale {
    background-color: white;
    color: #0e2547 !important;
    position: relative;
    padding-left: 40px !important;
}

    .area-personale .profile-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.2rem;
        color: #0e2547;
    }

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}
/*
@media (max-width: 1000px) {
    .header-container {
        justify-content: center;
        position: relative;
    }

        .header-container img {
            height: 70px;
        }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #1a3657;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 999;
    }

        nav.open {
            right: 0;
        }

    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 1000;
        cursor: pointer;
    }
}*/

.main-content {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

    .main-content h1 {
        font-size: 2.8rem;
        color: #0e2547;
        margin-bottom: 20px;
        text-align: center;
    }

    .main-content p {
        font-size: 1.2rem;
        line-height: 1.8;
        margin-bottom: 20px;
        color: #555;
    }

    .main-content img {
        width: 100%;
        max-width: 800px;
        height: auto;
        margin: 30px auto;
        display: block;
        border-radius: 10px;
    }

.footer-vrc {
    background-color: #0e2547;
    color: white;
    text-align: center;
    padding: 30px 20px 20px 20px;
    margin-top: 60px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

    .footer-links a {
        background-color: white;
        color: #0e2547;
        font-size: 0.9rem;
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: 400;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        .footer-links a:hover {
            background-color: #ffc107;
            color: #0e2547;
        }

    .footer-links i {
        margin-right: 5px;
    }

.footer-copyright {
    font-size: 0.9rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}

.modal-body {
    padding: 50px !important;
}
