@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 200; src: url('../assets/fonts/montserrat-v31-latin-200.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 300; src: url('../assets/fonts/montserrat-v31-latin-300.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 400; src: url('../assets/fonts/montserrat-v31-latin-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 500; src: url('../assets/fonts/montserrat-v31-latin-500.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 600; src: url('../assets/fonts/montserrat-v31-latin-600.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 700; src: url('../assets/fonts/montserrat-v31-latin-700.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 800; src: url('../assets/fonts/montserrat-v31-latin-800.woff2') format('woff2'); }

@font-face { font-display: swap; font-family: 'Source Sans 3'; font-style: normal; font-weight: 200; src: url('../assets/fonts/source-sans-3-v19-latin-200.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Source Sans 3'; font-style: normal; font-weight: 300; src: url('../assets/fonts/source-sans-3-v19-latin-300.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; src: url('../assets/fonts/source-sans-3-v19-latin-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Source Sans 3'; font-style: italic; font-weight: 400; src: url('../assets/fonts/source-sans-3-v19-latin-italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Source Sans 3'; font-style: normal; font-weight: 500; src: url('../assets/fonts/source-sans-3-v19-latin-500.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; src: url('../assets/fonts/source-sans-3-v19-latin-600.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; src: url('../assets/fonts/source-sans-3-v19-latin-700.woff2') format('woff2'); }


/* ========================================= */
/* 1. GLOBAL TYPOGRAPHY & BEHAVIOR           */
/* ========================================= */
body {
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

p, span, a, li, label {
    font-family: inherit;
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 110px;
}

:root {
    --footer-main-display: flex;
}

.navbar-custom {
    background-color: #11136E;
    padding: 0.8rem 1rem;
    position: fixed !important;
    z-index: 1000;
    box-shadow:
        0 10px 30px 5px rgba(0, 0, 0, 0.4),
        inset 0 -10px 20px rgba(0, 0, 0, 0.3);
}

.navbar-custom .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
    padding: 1rem 0;
}

.navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center;
    height: 100%;
}

.navbar-brand img {
    width: 80px !important; 
    height: auto;
    vertical-align: middle !important;
    transition: width 0.3s ease;
}

.navbar-nav {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.navbar-scrolled {
    background-color: rgba(17, 19, 110, 0.91) !important; 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    padding: 0.8rem 1rem;
}

.navbar-custom .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 400 !important; 
    transition: color 0.3s ease, text-shadow 0.3s ease, font-weight 0.2s ease;
    position: relative;
    padding-bottom: 5px;
}

.navbar-custom .navbar-nav .nav-link:hover{
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    font-weight: 600 !important; 
}

.navbar-custom .navbar-nav .nav-link:focus,
.navbar-custom .navbar-nav .nav-link.show,
.navbar-custom .navbar-nav .nav-link:active {
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.dropdown-menu {
    width: 100%;
    border: none;
    border-radius: 0;
    text-align: center;
}

.dropdown-item {
    padding: 12px 25px !important;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: #f4f4fe !important;
    color: #11136E !important;
}

.layout {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    width: 100%;
    min-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4fe;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px !important;
    padding-bottom: 100px;
    z-index: 2;
}

.hero__body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__body picture { 
    display: flex; 
    justify-content: center; 
    width: 100%; 
}


.hero__title {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: #05178d;
    font-size: clamp(18px, 5vw, 40px);
    margin-top: -270px;
    padding: 20px 10px;
    
    box-sizing: border-box;
    width: 100%;
}

.hero__title h1 {
    margin-bottom: 0px !important;
}

.hero__subtitle-past {
    font-family: 'Montserrat', sans-serif;
    color: #5d5447 !important; 
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    margin-top: 120px !important;
    margin-bottom: 0px !important;
    
    font-size: 16px; 
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("../assets/img/wave.svg");
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: bottom center;
    z-index: 1;
    pointer-events: none;
}

.hero--privacy::after {
    background-image: url("../assets/img/wave-privacy.svg");
}

.hero--privacy .hero__title h1 {
    padding-top: 100px;
    text-transform: uppercase;
}

.hero--privacy {
    min-height: 300px;
    height: 50vh;
}

.hero--privacy .hero__img {
    display: none;
}

.hero--about::after {
    background-image: url("../assets/img/wave-about.svg");
}

.hero--about {
    min-height: 180px;
    height: 35vh;
}

.hero--about .hero__img {
    display: none;
}

.hero--about .hero__title {
    margin-top: 120px; 
}

.hero--about .hero__title h1 {
    padding-top: 0;
    font-weight: 700;
}

/* board section */
.board {
    position: relative;
    z-index: 10;
    margin-top: 10px;
}

.board__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0; /* Aggiunto per il fix */
    width: 100%; /* Aggiunto per il fix */
}

.board__body {
    width: 100%;
    overflow: hidden;
    clip-path: ellipse(100% 100% at 50% 0%);
}

.board__body picture {
    display: block;
    width: 100%;
}

.board__img {
    width: 70%;
    display: block;
    object-fit: cover;
    margin: 0 auto;
    height: auto;
    padding: 0 5px;
    border-radius: 0 0 30% 30%; 
}

.board__text {
    margin-top: 1.5rem;
    line-height: 1.2;
    width: 100%; /* Aggiunto per il fix */
    padding: 0; /* Aggiunto per il fix */
    font-size: 18px;
}

.board__text--title {
    color: #0223A1;
    margin: 0;
    margin-top: 30px !important;
    padding: 0;
    font-size: 28px !important;
    font-weight: 700 !important;
    width: 100%; /* Aggiunto per il fix */
    text-align: center; /* Aggiunto per il fix */
    display: block;
}

.board__text p,
.board__text h3 {
    margin: 0;
    padding: 0;
}

.board__text--description {
    color: #546373;
    font-size: 20px !important;
}

.board__text--names {
    color: #080808;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 50px !important;
}

.board__text--roles {
    color: #546373;
    font-size: 12px;
}

.board--about .board__content {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.board--about .board__text--title {
    position: absolute;
    top: 0;
    left: 0px;
    width: 100%;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center;
    color: #11136E;
    font-size: 28px;
    line-height: 1.1;
    z-index: 10;
}

.board--about .board__body {
    margin-top: 60px;
}

.info-card-section {
    width: 100%;
}

.info-card {
    min-height: 300px;
    /* Aumentiamo il terzo valore da 30px a 100px (o quanto preferisci) */
    margin: 40px auto 100px auto; 
    background-color: #f4f4fe;
    border-radius: 50px;
    padding: 0 50px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    width: 90%;
}

.info-card__title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 25px;
    font-weight: 500;
    color: #1d2548;
    text-align: left !important;
    line-height: 1.2;
    margin-top: 70px;
    margin-bottom: 30px;
}

.info-card__content {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 17px;
    color: #1d2548;
    text-align: left;
    line-height: 1.5;
}

.info-card__content p {
    margin: 0;
}

.info-card__spacer {
    margin-top: 30px !important;
}

.info-card__bg-icon {
    position: absolute;
    top: -20px;
    left: 40px;
    width: 90px;
    height: auto;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.info-card__button {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 10px 25px;
    margin-top: clamp(20px, 3vw, 40px);
    margin-bottom: 20px;
    width: fit-content;
    min-width: 150px;
    background-color: transparent;
    color: #3f51b5;
    border: 1.5px solid #3f51b5;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.info-card__button:hover {
    background-color: #3f51b5;
    color: #ffffff;
    transform: translateY(-2px);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer {
    background: linear-gradient(to bottom, #ededed 0%, #ffffff 100%);
    padding: 40px 20px 0 20px;
    color: #333;
    width: 100%;
}

.footer__container {
    display: var(--footer-main-display) !important;
    flex-direction: column;
    margin: 0 auto 10px auto;
    max-width: 1200px;
    gap: 20px;
}

.footer__section {
    flex: 1;
    min-width: 250px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.footer__section:last-child {
    border-bottom: none;
}

.footer__section--social {
    order: -1;
    border-bottom: none !important;
}

.footer__section--info {
    order: 2;
}

.footer__section--menu {
    order: 3;
}

.footer__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    color: #1d2548;
    text-transform: uppercase;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__info-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer__item {
    margin-top: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
    text-align: center;
}

.footer__link {
    color: #1d2548;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: #0b0e92;
}

.footer__social-icons {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.footer__social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer__social-link:hover {
    transform: translateY(-3px);
}

.footer__icon {
    width: 40px;
    height: 40px;
}

.footer__icon.footer__icon--wa,
.footer__icon--wa {
    fill: #0b0e92 !important;
    width: 40px !important;
    height: 40px !important;
    display: inline-block;
}

.footer__img {
    height: 150px;
    width: auto;
    display: block;
    margin: 50px auto 0px auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform: translateY(-18px);
}

.footer__img:hover {
    transform: translateY(-21px);
}

.footer__bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.90rem;
    font-weight: 500 !important;
    color: #1d2548;
    background: none;
    line-height: 1.6;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.maintenance-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    --footer-main-display: none;
}

.about-feature {
    padding: 20px 0;
    width: 100%;
}

.about-feature__container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.about-feature__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature__title {
    text-align: center;
    font-size: 28px;
    color: #11136E;
    border-top: 1px solid #002395;
    border-radius: 50px;
    padding-top: 10px;
}

.about-feature__text {
    padding-left: 15px;
    padding-right: 15px;
    color: #67768E;
}

.about-feature__text--alt {
    font-size: 18px;
    color: #67768E;
    padding: 0 20px;
}

.about-feature__text--scripture {
    text-align: center;
    margin-top: -20px;
    font-size: 16px !important;
    color: #11136E;
    line-height: 1.4;
}

.about-feature__scripture-part {
    display: inline-block;
    white-space: nowrap;
}

.about-feature__media {
    width: 100%;
}

.about-feature--purpose {
    border-top: 1px solid #ededed;
    padding-top: 60px;
    padding-bottom: 20px;
    background-color: #fafafa;
}

.about-feature--purpose .about-feature__item {
    border-left: 3px solid #002395;
    padding: 10px 25px;
    margin-bottom: 30px;
    border-radius: 0;
}

.missionary {
    width: 100%;
    background: linear-gradient(to right, #f4f4fe 0%, #f3f5f7 100%);
    position: relative;
    z-index: 10;
    margin-top: -490px;
    margin-bottom: 60px;
    padding: 60px 0;
    box-sizing: border-box;
}

.missionary__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.missionary__image-col {
    width: 100%;
    display: flex;
    justify-content: center;
    order: 1;
}

.missionary__img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.missionary__text-col {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    order: 2;
}

.missionary__greeting {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0d219c;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.missionary__role {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #546373;
    margin: 0 0 25px 0;
}

.missionary__description {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #1d2548;
    margin: 0 0 35px 0;
    line-height: 1.6;
}

.missionary__highlight {
    font-weight: 600;
    color: #0b0e92;
}

.comments-header__main,
.works-header__main {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    box-sizing: border-box;
    padding: 0 10px;
}

.comments-header__main span,
.works-header__main span {
    display: block;
    width: auto;
    max-width: 100%;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 30px;
    letter-spacing: 0.5px;
    white-space: normal !important;
    word-wrap: break-word;
    margin-top: 0px;

}

.comments-header__main span:first-child,
.works-header__main span:first-child {
    font-weight: 700;
    margin-bottom: 0px;
    line-height: 0.8;
    color: #000000;
    display: block;
}

.works-header__text {
    font-family: 'Source Sans 3', sans-serif;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 250;
    text-align: center;
    color: #1d2548;
    line-height: 1.5;
    margin-bottom: 0;
}


.comments-header__sub {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #000000;
    margin-top: 40px;
    text-align: center;
}

.comments-header__sub span {
    font-weight: 500;
}

.info-request {
    width: 100%;
    padding: 60px 20px;
    background-color: transparent;
    box-sizing: border-box;
}

.info-request__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-request__card {
    position: relative;
    background-color: #ffffff;
    min-height: 280px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: default;
    border-left: 4px solid #5a5eff;
}

.info-request__content-front,
.info-request__content-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.info-request__content-front {
    opacity: 1;
    z-index: 2;
    background-color: #ffffff;
}

.info-request__content-back {
    opacity: 0;
    z-index: 3;
    background-color: #f4f4fe;
    pointer-events: none;
}

.info-request__title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0;
}

.info-request__text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #546373;
    line-height: 1.5;
    margin: 0;
}

.info-request__card:hover .info-request__content-front {
    opacity: 0;
}

.info-request__card:hover .info-request__content-back {
    opacity: 1;
    pointer-events: auto;
}

html {
    scroll-behavior: smooth;
}

.not-found {
    width: 100%;
    min-height: auto;
    background: linear-gradient(to bottom, #ffffff 0%, #ededed 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0x;
    margin-top: 0px;
    margin-bottom: 0px;
}

.not-found__container {
    width: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    border-radius: 0;
    margin-top: 100px;
}

.not-found__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    font-weight: 600;
    color: #0223A1;
    text-align: center;
    margin: 0;
    margin-top: 30px;
    line-height: 1.2;
}

.not-found__img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 250px;
    margin-top: 30px;
}

.not-found__button {
    margin-top: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.not-found__button .contact__button-text {
    font-size: 18px;
}

.maintenance-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.maintenance-page * {
    box-sizing: border-box;
}

.maintenance {
    width: 100%;
    flex: 1;
    background: linear-gradient(to bottom, #ffffff 0%, #ededed 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.maintenance__container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.maintenance__img {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.maintenance__title {
    font-size: 28px;
    font-weight: 700;
    color: #0B0E92;
    margin: 0;
    line-height: 1.2;
}

.maintenance__logo {
    width: 120px;
    height: auto;
    display: block;
    margin: 10px 0 20px 0;
}

.maintenance__text {
    font-size: 16px;
    color: #546373;
    max-width: 600px;
    line-height: 1.5;
    margin: 0;
}

.maintenance__social-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
}

.maintenance__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 0 0 calc(33.333% - 15px);
}

.maintenance__social-link:hover {
    transform: scale(1.2);
}

.maintenance__social-icon {
    display: block;
    height: 40px;
    width: auto;
}

.maintenance__social-icon--wa {
    fill: #0B0E92;
}

.emergency-contacts {
    width: 100%;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    padding-top: 40px;
}

.emergency-contacts__title {
    font-size: 20px;
    font-weight: 600;
    color: #1d2548;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 30px;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.country-selector:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.country-selector__text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.country-selector__flag {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.country-selector__flag--uk {
    background-image: url('../assets/icons/uk-flag.svg');
    background-size: cover;
    background-position: center;
}

.country-selector::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: silver-spark 6s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes silver-spark {
    0% {
        left: -150%;
    }
    15% {
        left: 200%;
    }
    100% {
        left: 200%;
    }
}

.contact-us {
    margin-top: 40px;
    text-align: center;
}

.contact-us__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #546373;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block; 
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%   { transform: scale(1); }
    10%  { transform: scale(1.15); }
    20%  { transform: scale(1); }
    30%  { transform: scale(1.15); }
    40%  { transform: scale(1); }
    100% { transform: scale(1); }
}

.contact-us__phone {
    margin-top: 30px;
    text-align: center;
}

.contact-us__phone-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1122aa;
    text-decoration: none;
    letter-spacing: 1px;
    /* Usiamo border-bottom invece di underline per più controllo */
    border-bottom: 2px solid transparent; 
    transition: border-color 0.3s ease, opacity 0.3s ease;
    padding-bottom: 2px; /* Spazio tra numero e riga */
}

.contact-us__phone-link:hover {
    opacity: 0.8;
    border-color: #1122aa; /* La riga appare in modo fluido */
}


/* =========================================
   LONDON CONGREGATION SECTION
   ========================================= */

.london-section {
    padding: 20px 20px 80px 20px;
    width: 100%;
}

.london-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #0223A1;
}

.london-card__image-wrapper {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

/* Mobile: Immagine centrata 200x200 */
.london-card__image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.london-card__content {
    text-align: center;
}

.london-card__title {
    color: #0223A1;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

.london-card__text {
    color: #546373;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.london-card__details p {
    margin: 8px 0;
    color: #1d2548;
    font-size: 16px;
}

.london-card__link {
    color: #0223A1;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.london-card__link:hover {
    opacity: 0.7;
}


.country-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 50px;
    background-color: transparent;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.country-selector:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.country-selector__text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.country-selector__flag {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.country-selector__flag-img {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block;
    flex-shrink: 0;
}


.country-selector__flag--it {
    background: linear-gradient(to right, #009246 33.33%, #ffffff 33.33%, #ffffff 66.66%, #ce2b37 66.66%);
}

/* Posizionamento del menu: forzato a 10px più in basso */
.country-dropdown-menu {
    background-color: rgba(253, 252, 248, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    position: absolute !important;
    top: calc(100% + 10px) !important; 
    right: 0 !important; 
    left: auto !important;
    margin-top: 0 !important;
    min-width: 290px !important;
}

/* Il "Ponte invisibile" per evitare che il menu si chiuda scendendo col mouse */
.country-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -15px; 
    left: 0;
    width: 100%;
    height: 15px;
    background-color: transparent; 
}

.country-dropdown-menu .dropdown-item {
    padding: 10px 15px !important;
    color: #11136E !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.3s ease;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}


.country-dropdown-menu .dropdown-item:hover {
    background-color: rgba(17, 19, 110, 0.1) !important;
    transform: translateX(5px);
}

@media (max-width: 575px) {
    .country-dropdown-menu {
        position: fixed !important;
        top: 80px !important; 
        right: auto !important; 
        left: 50% !important;
        transform: translateX(-50%) !important; 
        width: 90% !important;
        max-width: 320px !important;
    }
}


/* RESPONSIVE DESIGN (Media Queries) */

/* Tablet (769px +) */
@media (min-width: 769px) {

    .navbar-brand img {
        width: 80px !important;
    }

    .hero__img {
        width: 320px;
    }

    .hero__title {
        margin-top: -500px;
        padding: 40px 10px;
    }

    .hero--about {
        min-height: 200px;
        height: 45vh;
    }

    .hero--about .hero__title {
        margin-top: 100px;
    }

    .hero--about .hero__title h1 {
        padding-top: 0;
        font-weight: 700;
    }

    .hero::after {
        height: 300px;
    }

    .hero--proiezione .hero__title h1 {
        font-size: 48px;
    }

    .hero--privacy .hero__title h1 {
        padding-top: 40px;
        font-size: 48px;
    }

    .hero__gratitude-btn {
        width: fit-content !important;
        max-width: 450px !important;
        margin-top: 0; /* 👈 Corretto l'errore "0 px" */
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 40px 50px !important;
    }

    .board__img--profile {
        max-width: 300px; /* Slightly larger on tablet */
    }

    .board--about .board__text--title {
        font-size: 45px !important;
    }

    .board--about .board__body {
        margin-top: 70px;
    }

    .info-card {
        margin-top: -30px !important;
    }

    .info-card {
        width: 80%;
    }

    .footer__container {
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap;
    }

    .footer__section {
        border-bottom: none;
        flex: 1;
        min-width: 200px;
        padding-bottom: 0;
    }

    .footer__title {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .footer__item {
        margin-top: 15px;
        line-height: 1.5;
        font-size: 0.85rem;
        text-align: center;
        font-weight: 500;
        color: #1d2548;
    }

    .footer__section--social,
    .footer__section--info,
    .footer__section--menu {
        order: 0;
    }

    .footer__img {
        margin: 70px auto 0px auto;
    }

    .about-feature__container {
        flex-direction: row;
        align-items: flex-start;
        gap: 60px;
    }

    .about-feature__content {
        justify-content: flex-start;
        flex: 1;
    }

    .about-feature__text {
        font-size: 18px;
    }

    .about-feature__scripture-part {
        font-size: 18px;
    }

    .about-feature__media {
        flex: 1;
    }

    .maintenance {
        padding: 60px 40px;
    }

    .maintenance__img {
        max-width: 300px;
    }

    .maintenance__title {
        font-size: 34px;
    }

    .maintenance__logo {
        width: 150px;
    }

    .maintenance__text {
        font-size: 18px;
    }

    .maintenance__social-bar {
        max-width: none;
        gap: 30px;
    }

    .maintenance__social-link {
        flex: 0 0 auto;
    }

    .missionary {
        height: auto;
        padding: 80px 0;
        margin-top: -700px;
        margin-bottom: 80px;
        border-radius: 30px;
    }

    .missionary__container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .missionary__image-col {
        justify-content: center;
        width: 100%;
        height: auto;
    }

    .missionary__img {
        max-width: 800px;
        width: 100%;
        max-height: none;
    }

    .missionary__text-col {
        align-items: center;
        text-align: center;
        padding: 0;
        margin-bottom: 0;
    }

    .missionary__greeting {
        font-size: 16px;
        margin-top: 0;
    }

    .missionary__name {
        font-size: 42px;
        margin-top: 0;
    }

    .missionary__role {
        font-size: 20px;
        margin-bottom: 30px;
        margin-top: 0;
    }

    .missionary__description {
        font-size: 20px;
        margin-top: 0;
    }
    
    .contact-us__title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .london-card {
        flex-direction: row;
        text-align: left;
        margin-bottom: 30px;
        padding: 50px;
        gap: 50px;
    }
    
    .london-card__image-wrapper {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .london-card__image {
        width: 300px;
        height: 300px;
    }
    
    .london-card__content {
        text-align: left;
    }

    .dropdown:hover > .country-dropdown-menu {
        display: block !important;
        margin-top: 0;
        animation: fadeInCountry 0.3s ease;
    }

    .country-dropdown-menu {
        position: absolute !important;
        top: calc(100% + 20px) !important;
        right: 0 !important; 
        left: auto !important;
        margin-top: 0 !important;
    }

    .country-dropdown-menu::before {
        content: "";
        position: absolute;
        top: -25px;
        left: 0;
        width: 100%;
        height: 25px;
        background-color: transparent;
    }
}
    
/* Animazione di comparsa fluida */
@keyframes fadeInCountry {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}    

/* =========================================
   FIX NAVBAR DESKTOP (CSS GRID)
   ========================================= */
@media (min-width: 992px) {
    
    .navbar-custom {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        top: 0;
        width: 100%;
        z-index: 9999 !important;
        transition: transform 0.3s ease-in-out !important;
    }
    
    .navbar-hidden {
        transform: translateY(-100%);
    }
    
    .navbar-custom .container-fluid {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .navbar-brand {
        justify-self: start;
        margin: 0 !important;
        position: static !important;
    }

    .navbar-custom .navbar-collapse {
        justify-self: center;
        display: flex !important;
        position: static !important;
        width: auto !important;
        transform: none !important;
    }

    .navbar-nav {
        position: static !important;
        transform: none !important;
        flex-direction: row;
        gap: 30px;
        margin: 0 !important;
        width: auto !important;
        align-items: center;
    }

    .hero__img {
        width: 320px;
    }

    .hero__title {
        margin-top: -500px;
        padding: 40px 10px;
    }

    .hero--about {
        min-height: 200px;
        height: 45vh;
    }

    .hero--about .hero__title {
        margin-top: 100px;
    }

    .hero--about .hero__title h1 {
        padding-top: 0;
        font-weight: 700;
    }

    .hero::after {
        height: 300px;
    }

    .hero--proiezione .hero__title h1 {
        font-size: 48px;
    }

    .hero--privacy .hero__title h1 {
        padding-top: 40px;
        font-size: 48px;
    }

    .hero__gratitude-btn {
        width: fit-content !important;
        max-width: 450px !important;
        margin-top: 0;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 40px 50px !important;
    }

    .country-wrapper-desktop {
        justify-self: end;
        position: static !important;
        transform: none !important;
        top: auto !important;
        right: auto !important;
        margin: 0 !important;
        display: flex !important;
    }

    .missionary {
        height: auto;
        padding: 80px 0;
        margin-top: -700px;
        margin-bottom: 80px;
        border-radius: 30px;
    }

    .missionary__container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .missionary__image-col {
        justify-content: center;
        width: 100%;
        height: auto;
    }

    .missionary__img {
        max-width: 800px;
        width: 100%;
        max-height: none;
    }

    .missionary__text-col {
        align-items: center;
        text-align: center;
        padding: 0;
        margin-bottom: 0;
    }

    .missionary__greeting {
        font-size: 16px;
        margin-top: 0;
    }

    .missionary__name {
        font-size: 42px;
        margin-top: 0;
    }

    .missionary__role {
        font-size: 20px;
        margin-bottom: 30px;
        margin-top: 0;
    }

    .missionary__description {
        font-size: 20px;
        margin-top: 0;
    }

   .news-card__img-wrapper {
        height: 280px;
    }

    .country-wrapper-desktop {
        position: absolute !important;
        right: 24px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .dropdown:hover > .country-dropdown-menu {
        display: block !important;
        margin-top: 0;
        animation: fadeInCountry 0.3s ease;
    }
}    

@keyframes fadeInCountry {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }

    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Desktop (1024px +) */
@media (min-width: 1024px) {

    .navbar {
        height: 100px !important;
    }

    .navbar-custom .container-fluid {
        position: relative !important; 
    }

    .navbar-brand {
        margin-left: 123px !important;
        margin-right: 0 !important;
    }

    .navbar-custom .navbar-collapse {
        position: static !important;
        display: flex !important;
        width: 100% !important;
        max-height: none;
        overflow-y: visible;
        padding: 0;
        transform: none !important;
    }

    .navbar-brand img {
        width: 90px !important;
    }    

    .navbar-nav {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        width: auto !important;
        flex-direction: row;
        gap: 30px;
        justify-content: center;
    }

    .navbar-custom .nav-item.dropdown:hover .dropdown-menu {
        display: block !important;
        margin-top: 0;
        animation: fadeIn 0.2s ease;
    }

    .navbar-custom .dropdown-menu {
        margin-top: 0;
    }

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

    .navbar-spacer-right {
        display: none !important;
    }

    .hero__img {
        width: 320px;
    }

    .hero__title {
        margin-top: -450px;
        padding: 40px 10px;
    }

    .hero--about {
        min-height: 200px;
        height: 45vh;
    }

    .hero--about .hero__title {
        margin-top: 100px;
    }

    .hero--about .hero__title h1 {
        padding-top: 0;
        font-weight: 700;
    }

    .hero::after {
        height: 300px;
    }

    .hero--proiezione .hero__title h1 {
        font-size: 48px;
    }

    .hero--privacy .hero__title h1 {
        padding-top: 40px;
        font-size: 48px;
    }

    .hero__gratitude-btn {
        width: fit-content !important;
        max-width: 450px !important;
        margin-top: 0;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 40px 50px !important;
    }

    .dropdown-menu {
        width: auto;
        text-align: left;
    }

    .board__body {
        clip-path: ellipse(60% 100% at 50% 0%);
    }

    .board__img {
        margin-top: 70px;
        width: 60%;
    }

    .board__text--title {
        margin-top: 60px !important;
        font-size: 40px;
    }

    .board__text--description {
        margin-top: 40px;
        font-size: 22px;
    }

    .board__text--names {
        font-size: 30px;
        margin-top: 20px !important;
    }

    .board__text--roles {
        font-size: 18px;
    }

    .board--about .board__text--title {
        font-size: 48px;
    }

    .board--about .board__body {
        margin-top: 60px;
    }

    .info-card {
        margin-top: -40px;
    }

    .info-card-section {
        width: 100%;
        margin-top: 100px;
    }

    .footer__title {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .footer__item {
        font-size: 0.95rem;
    }

    .about-feature__content {
        margin-top: 10px;
    }

    .about-feature__title {
        font-size: 48px;
    }

    .about-feature__text {
        font-size: 20px;
    }

    .about-feature__text--alt {
        font-size: 20px;
    }

    .not-found {
        min-height: auto;
        padding-top: 50px;
    }

    .not-found__container {
        width: calc(100% - 300px);
        max-width: 1200px;
        border-radius: 30px;
        padding: 60px;
        margin-top: 50px;
        margin-bottom: 0px;
    }

    .not-found__title {
        font-size: 35px;
        margin-top: 20px;
    }

    .not-found__img {
        margin-top: 50px;
        width: 100%;
        max-width: 500px;
        max-height: none;
    }

    .not-found__button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        margin-bottom: 0px;
    }

    .not-found__button .contact__button-text {
        font-size: inherit;
        margin: 0;
        padding: 0;
        line-height: 1;
    }

    .maintenance {
        padding: 80px 60px;
        margin-top: 0px;
    }

    .maintenance__container {
        margin-top: 20px;
    }

    .maintenance__img {
        max-width: 400px;
        margin-bottom: 20px;
    }

    .maintenance__title {
        font-size: 45px;
    }

    .maintenance__logo {
        width: 180px;
        margin: 20px 0 30px 0;
    }

    .maintenance__text {
        font-size: 20px;
    }

    .maintenance__social-icon {
        height: 50px;
    }

    .country-wrapper-desktop {
        position: absolute !important;
        right: 123px !important; /* Distanza bandiera dal bordo destro */
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10;
    }

    .missionary {
        height: auto;
        padding: 80px 0;
        margin-top: -700px;
        margin-bottom: 80px;
        border-radius: 30px;
    }

    .missionary__container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .missionary__image-col {
        justify-content: center;
        width: 100%;
        height: auto;
    }

    .missionary__img {
        max-width: 800px;
        width: 100%;
        max-height: none;
    }

    .missionary__text-col {
        align-items: center;
        text-align: center;
        padding: 0;
        margin-bottom: 0;
    }

    .missionary__greeting {
        font-size: 16px;
        margin-top: 0;
    }

    .missionary__name {
        font-size: 42px;
        margin-top: 0;
    }

    .missionary__role {
        font-size: 20px;
        margin-bottom: 30px;
        margin-top: 0;
    }

    .missionary__description {
        font-size: 20px;
        margin-top: 0;
    }
}