/* ===================================================
   SCUDO BLU ITALIA - Stylesheet
   Colors: #024EA0 | #4A98EC | #FFFFFF | #bd222d (accent)
   Font: Open Sans (variable, includes condensed)
   =================================================== */

@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;
}

/* ===== UTILITY ===== */
.font-condensed {
    font-stretch: condensed;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #024EA0;
    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: 28px;
    height: auto;
    margin-left: 20px;
    flex-shrink: 0;
}

.nav-home {
    margin-right: auto;
}

.nav-home-link {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0 36px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-home-link:hover {
    background-color: transparent;
    color: #bd222d;
}

.nav-home-link.active {
    color: #4A98EC;
}

.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 400;
    min-width: unset;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-links a[href="index.html"] {
    padding: 0 36px;
}

.nav-links a[href="../index.html"] {
    padding: 0 36px;
}

.nav-links a:hover {
    background-color: rgba(74, 152, 236, 0.25);
}

.nav-links a.active {
    color: #4A98EC;
    }

.nav-links a.active:hover {
    background-color: transparent;
}

/* 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;
}

/* ===== BACKGROUND VARIANTS ===== */
.bg-dark {
    background-color: #024EA0;
    color: #FFFFFF;
}

.bg-light-blue {
    background-color: #4A98EC;
    color: #FFFFFF;
}

.bg-white {
    background-color: #FFFFFF;
    color: #024EA0;
}

/* ===== 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;
}

.section-intro {
    font-size: 1rem;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 30px;
    margin-top: -20px;
}

/* ===== AUTO-BOLD ON LINKS ===== */
.page-content a:not(.flag-link):not(.form-link) {
    font-weight: 600;
}

/* Dark bg links */
.bg-dark .page-content a {
    color: #FFFFFF;
}

.bg-dark .page-content a:hover {
    color: #FFFFFF;
}

/* Light-blue bg links */
.bg-light-blue .page-content a {
    color: #FFFFFF;
}

.bg-light-blue .page-content a:hover {
    color: #FFFFFF;
}

/* White bg links */
.bg-white .page-content a {
    color: #024EA0;
}

.bg-white .page-content a:hover {
    color: #bd222d;
}

.page-content a:hover,
.page-content a:hover * {
    color: #bd222d !important;
}

/* Highlight span (non-link color accent) */
.text-highlight.blu {
    color: #024EA0;
}

.text-highlight.azzurro {
    color: #4A98EC;
}

.text-highlight.rosso {
    color: #bd222d;
}

.text-highlight.bianco {
    color: #FFFFFF;
}

.text-highlight.nero {
    color: #000000;
}
/* ===== HOME PAGE ===== */
.home-section {
    min-height: calc(100vh - 52px);
    display: flex;
    align-items: center;
}

.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: 180px;
    height: auto;
    margin-bottom: 10px;
	margin-left: 33px;
}

.home-title {
    font-size: 3rem;
    font-weight: 400;
    font-stretch: condensed;
    letter-spacing: 1px;
    line-height: 1.1;
    color: #024EA0;
}

.home-subtitle {
    font-size: 2.2rem;
    font-weight: 300;
    font-stretch: condensed;
    margin-bottom: 60px;
    color: #024EA0;
}

.home-badge {
    color: #4A98EC;
    font-size: 1.3rem;
    font-weight: 400;
    font-stretch: condensed;
    margin-bottom: 15px;
}

.bsi-logo {
    display: flex;
    align-items: center;
    gap: 2px;
}

.bsi-logo-icon {
    width: 60px;
    height: auto;
}

.bsi-logo-text {
    font-stretch: condensed;
    color: #024EA0;
}

.bsi-logo-text .bsi-name {
    font-size: 1.55rem;
    font-weight: 400;
    display: block;
    letter-spacing: 0.5px;
}

.bsi-logo-text .bsi-sub {
    font-size: 1.1rem;
    font-weight: 400;
    display: block;
}

.home-right {
    flex: 1;
}

.home-text {
    font-size: 1.15rem;
    line-height: 1.85;
    text-align: right;
    color: #024EA0;
}

.home-text p + p {
    margin-top: 20px;
}

/* ===== CHI SIAMO ===== */
.chi-siamo-container {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 60px;
    gap: 50px;
    align-items: flex-start;
}

.chi-siamo-left {
    flex: 0 0 330px;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

.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;
}

/* ===== PER SAPERNE DI PIÙ / DOCS LIST ===== */
.docs-list {
    list-style: disc;
    padding-left: 28px;
    font-size: 1.05rem;
    line-height: 2.3;
}

.bg-light-blue .docs-list li {
    color: #024EA0;
}

/* ===== ATTIVITÀ / EVENTS LIST ===== */
.events-list {
    list-style: disc;
    padding-left: 28px;
    font-size: 1.05rem;
    line-height: 2;
}

.events-list li {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Evento futura: tutto bianco */
.events-list li.event-upcoming {
    color: #FFFFFF;
}

/* Titolo evento futuro: bianco normal */
.events-list li.event-upcoming .event-title {
    color: #FFFFFF;
	font-weight: 600;
}

/* Sottotitolo evento futuro: bianco italic */
.events-list li.event-upcoming .event-subtitle {
    color: #FFFFFF;
    font-style: italic;
	font-weight: 600;
}

/* Evento passato: tutto azzurro */
.events-list li.event-past {
    color: #4A98EC;
}

/* Titolo evento passato: bianco normal */
.events-list li.event-past .event-title {
    color: #4A98EC;
	font-weight: 600;
}

/* Sottotitolo evento passato: bianco italic */
.events-list li.event-past .event-subtitle {
    color: #4A98EC;
    font-style: italic;
	font-weight: 600;
}

/* Link negli eventi passati: azzurro grassetto */
.events-list li.event-past .past-event-link {
    color: #4A98EC !important;
    font-weight: 600;
}

.chi-siamo-right a {
    color: #4A98EC !important;
}

.chi-siamo-right a:hover {
    color: #bd222d !important;
}

/* Link negli eventi futuri: azzurro grassetto */
.events-list li.event-upcoming .past-event-link {
    color: #4A98EC !important;
    font-weight: 600;
}

.events-list li.event-upcoming .past-event-link:hover {
    color: #bd222d !important;
}.chi-siamo-right p + p {
    margin-top: 16px;
}

/* Events list on white background */
.bg-white .events-list li {
    color: rgba(2, 78, 160, 0.45);
}

.bg-white .events-list li.event-upcoming {
    color: #024EA0;
}

.bg-white .events-list li.event-upcoming .event-title,
.bg-white .events-list li.event-upcoming .event-subtitle {
    color: #024EA0;
}

.bg-white .events-list li.event-past {
    color: #4A98EC;
}

.bg-white .events-list li.event-past .event-title,
.bg-white .events-list li.event-past .event-subtitle {
    color: #4A98EC;
}

.bg-white .events-list li.event-past .past-event-link {
    color: #4A98EC !important;
}

.bg-white .events-list li.event-past .past-event-link:hover {
    color: #bd222d !important;
}

.events-list em {
    font-style: italic;
}

.event-body {
    font-size: 0.8rem;
    line-height: 1.7;
}

/* ===== COME ASSOCIARSI ===== */
.membership-cards {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.membership-card {
    flex: 1;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
}

.membership-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #024EA0;
    margin-bottom: 15px;
}

.membership-card p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #024EA0;
}

.form-link {
    color: #FFFFFF !important;
    font-style: italic;
    font-size: 0.88rem;
    font-weight: 700 !important;
    word-break: break-all;
    display: inline-block;
    transition: color 0.3s ease;
}

.form-link:hover {
    color: #bd222d !important;
}

.qr-code {
    width: 180px;
    height: 180px;
    margin: 20px auto 0;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bank-info h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: #024EA0;
}

.bank-info p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #024EA0;
}

/* ===== CONTATTI ===== */
.contatti-container {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 60px;
    gap: 60px;
    align-items: center;
}

.contatti-left {
    flex: 1;
}

.contatti-left .section-title {
    color: #4A98EC;
    font-size: 2.8rem;
}

.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: #024EA0;
}

.contatti-org-name .blue {
    color: #4A98EC;
}

.contatti-address {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.contatti-emails a {
    display: block;
    color: #4A98EC;
    font-size: 1rem;
    line-height: 1.9;
}

.contatti-emails a:hover {
    color: #bd222d;
}

.contatti-website {
    margin-top: 25px;
    font-size: 1rem;
    color: #024EA0;
}

.contatti-right {
    flex: 0 0 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-large {
    width: 320px;
    height: auto;
}

.gallery-caption {
    margin-top: 40px;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 1);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #024EA0;
    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-logo {
    width: 48px;
    height: auto;
}

.footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-right a {
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 400;
}

.footer-right a:hover {
    color: #bd222d;
}

/* ===== 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;
    }

    .home-badge {
        text-align: center;
    }

    .bsi-logo {
        justify-content: center;
    }

    .lang-flags {
        justify-content: center;
    }

    .chi-siamo-container {
        flex-direction: column;
        padding: 50px 30px;
    }

    .chi-siamo-left {
        flex: none;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }

    .content-wrapper {
        padding: 50px 30px;
    }

    .membership-cards {
        flex-direction: column;
    }

    .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: #024EA0;
        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(2, 78, 160, 0.90);
    }
	
	.nav-links a:hover,
.nav-links a:active {
    color: #bd222d;
    background-color: rgba(2, 78, 160, 0.90);
	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;
    }
}
