@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wdth,wght@0,75..100,300..800;1,75..100,300..800&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    font-size: 20px;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #091527;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
    border-bottom: 3px solid #4A98EC;
}

.navbar-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-logo {
    width: 260px;
    height: auto;
    margin-left: 20px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    transition: background-color 0.3s ease;
}

/* Hover: azzurro */
.nav-links a:hover,
.nav-links a:active {
    background-color: #4A98EC;
}

/* Pagina attiva: azzurro più chiaro, mantenuto anche in hover/tap */
.nav-links a.active,
.nav-links a.active:hover,
.nav-links a.active:active {
    background-color: #7aaee0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px 22px;
    gap: 5px;
    margin-left: auto;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== MAIN CONTENT ===== */
.page-content {
    flex: 1;
    padding-top: 52px;
}

.bg-white {
    background-color: #FFFFFF;
    color: #000000;
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 60px;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 2.4rem;
    font-weight: 300;
    margin-bottom: 35px;
}

/* ===== LINKS NEL CONTENUTO ===== */
.page-content a,
.page-content a:hover {
    color: #000000;
    font-weight: 600;
}

/* ===== HOME PAGE ===== */
.home-section {
    min-height: calc(100vh - 52px);
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('imgs/home-background.jpg');
    background-size: cover;
    background-position: 60% center;
    background-repeat: no-repeat;
}

/* Velo chiaro sopra la foto, per mantenere leggibile il testo */
.home-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.home-container {
    position: relative;
    z-index: 1;
}

.home-container {
    display: flex;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 60px;
    gap: 70px;
    align-items: center;
}

.home-left {
    flex: 0 0 400px;
}

.logo-main {
    width: 220px;
    height: auto;
    margin-bottom: 10px;
    margin-left: 13px;
}

.home-title {
    font-size: 2.45rem;
    font-weight: 400;
    font-stretch: condensed;
    letter-spacing: 1px;
    line-height: 1.1;
    color: #000000;
}

.home-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    font-stretch: condensed;
    margin-bottom: 60px;
    color: #000000;
}

.home-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

.home-text {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: right;
    color: #000000;
}

/* ===== TITOLI DI PAGINA (About us, Contacts) ===== */
.about-title,
.contacts-title {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 60px 0;
}

.about-title .section-title,
.contacts-title .section-title {
    margin-bottom: 0;
}

/* ===== CHI SIAMO ===== */
.chi-siamo-container {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 60px;
    gap: 50px;
    align-items: flex-start;
}

.about-title + .chi-siamo-container,
.contacts-title + .contatti-container {
    padding-top: 35px;
}

.chi-siamo-left {
    flex: 0 0 330px;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
}

.org-logo {
    width: 220px;
}

.org-logo img {
    width: 100%;
    height: auto;
}

.chi-siamo-right {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.8;
}

.chi-siamo-right p + p {
    margin-top: 16px;
}

/* ===== ATTIVITÀ / EVENTS LIST ===== */
.page-intro {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.events-list {
    list-style: disc;
    padding-left: 28px;
    font-size: 1.05rem;
    line-height: 2;
}

.events-list li {
    margin-bottom: 14px;
    color: #000000;
}

.events-list .event-title {
    font-weight: 600;
}

.event-body {
    font-size: 0.8rem;
    line-height: 1.4;
    display: block;
}

/* Link di download sotto l'elenco */
.download-link {
    margin-top: 40px;
    font-size: 1.2rem;
}

/* ===== CASE STUDIES ===== */
.case-studies-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 60px;
    text-align: center;
}

.case-studies-container .section-title {
    text-align: left;
}

.case-studies-figure {
    display: block;
}

.case-studies-img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

/* ===== CONTATTI ===== */
.contatti-container {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 60px;
    gap: 60px;
    align-items: center;
}

.contatti-left {
    flex: 1;
}

.contatti-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #555;
}

.contatti-org-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #000000;
}

.contatti-address {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.contatti-emails a {
    display: block;
    font-size: 1rem;
    line-height: 1.9;
}

.contatti-website {
    margin-top: 25px;
    font-size: 1rem;
    color: #000000;
}

.contatti-right {
    flex: 0 0 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-large {
    width: 320px;
    height: auto;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #091527;
    border-top: 3px solid #4A98EC;
    padding: 30px 60px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .nav-links a {
        min-width: 125px;
        font-size: 0.82rem;
    }
}

@media (max-width: 960px) {
    .home-container {
        flex-direction: column;
        gap: 35px;
        padding: 30px 30px;
    }

    .home-left {
        flex: none;
        text-align: center;
        width: 100%;
    }

    .logo-main {
        margin: 0 auto 15px;
    }

    .home-title, .home-subtitle {
        text-align: center;
    }

    .about-title,
    .contacts-title {
        padding: 50px 30px 0;
    }

    .about-title + .chi-siamo-container,
    .contacts-title + .contatti-container {
        padding-top: 35px;
    }

    .chi-siamo-container {
        flex-direction: column;
        padding: 50px 30px;
    }

    .chi-siamo-left {
        flex: none;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }

    .content-wrapper,
    .case-studies-container {
        padding: 50px 30px;
    }

    .contatti-container {
        flex-direction: column;
        padding: 50px 30px;
    }

    .contatti-right {
        flex: none;
        width: 100%;
    }

    .logo-large {
        width: 240px;
    }

    .footer {
        padding: 25px 30px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 700px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        background: #091527;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 14px 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        min-width: unset;
        height: auto;
        justify-content: flex-start;
        background-color: rgba(9, 21, 39, 0.90);
    }

    .nav-links a:hover,
    .nav-links a:active {
        font-weight: 700;
    }

    .hamburger {
        display: flex;
    }

    .home-section {
        min-height: auto;
    }

    .home-title {
        font-size: 2.2rem;
    }

    .home-subtitle {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
