/*GENERAL*/
body {
    margin: 0;
    font-family: 'Merriweather', sans-serif;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

main,
footer {
    margin: 3%;
}

p {
    line-height: 1.6;
    color: darkslategray;
}

.horizontal {
    margin-top: 40px;
    margin-bottom: 40px;
}

/*MAIN*/

.parteFundalBis {
    background-image: url("imagini/fundal.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box; 

    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 15px 3% 40px 3%;
}


.titlu {
    font-size: 3rem;
}

.textWhite,
.titlu {
    color: white;
    backdrop-filter: blur(1px); 
    -webkit-backdrop-filter: blur(1px);
    border-radius: 40px;
}

.titlua {
    text-decoration: none;
    color: black;
    font-weight: bolder;
}

.imagini, 
.imagini-tall {
    margin-top: 5%;
    width: 100%;
    border-radius: 10px;
}

.buton-contact {
    background-color: dodgerblue;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.buton-contact:hover {
    background-color: #0158b0;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.buton-custom:active {
    background-color: #265c91;
    transform: translateY(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.orar-poster{
    margin-top: 5%;
    width: 100%;
    border-radius: 10px;
    transition: transform 0.4s ease-in-out;
}

.orar-poster:hover{
    transform: scale(1.1); 
}

@media (min-width: 1024px) {
    .parteFundalBis {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box; 

    background-image: url("imagini/fundal.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 160px 15%;

    }

    .text-fundal .titlu {
        font-size: 3.5rem;
        line-height: 1.2;
    }
    
    .parteFundalBis .imagini {
        max-width: 450px;
        height: auto;
    }

    .text-fundal {
        flex: 1;
    }

    .text-fundal p {
        font-size: 1.1rem;
    }

    .cont-imagine2 {
        flex: 1; 
        display: flex;
        justify-content: center;
    }


    .comunitatea-section {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 60px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .comunitatea-section .subTitle {
        flex: 1; 
        margin-top: 0;
    }

    .comunitatea-section .comunitatea-text {
        flex: 1; 
    }

    hr.horizontal {
        max-width: 1200px;
        margin: 60px auto; 
    }

    .definitionContainer {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto 80px auto;
    }

    .timetable {
        padding: 60px 0;
        margin: 0;
        width: 100vw; 
        
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .timetable-container {
        display: flex;
        max-width: 1200px;
        margin: 0 auto;
        gap: 80px;
        padding: 0 20px;
        align-items: flex-start;
    }

    .timetable-left {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .timetable-right {
        flex: 1;
        padding-top: 80px;
        
    }

    .orar-poster {
        width: 100%;
        max-width: 450px;
        height: auto;
        border: 10px solid white;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    .timetable .proverb {
        font-size: 1.5rem;
        line-height: 1.4;
        max-width: 450px;
    }

    .timetable ul {
        list-style: none;
        padding-left: 0;
    }

    .timetable li {
        margin-bottom: 10px;
        display: flex;
        gap: 10px;
    }

    .timetable li::before {
        content: "✥";
        color: white;
    }

    .galerie {
        text-align: center;
        margin-top: 50px;
        max-width: 1200px; 
        margin-left: auto;
        margin-right: auto;
}

    .galerie-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin: 30px 0;
}

    .galerie-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        grid-template-rows: repeat(2, 250px); 
        gap: 20px;
        margin: 40px 0;
}

    
    .galerie-grid img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin-top: 0; 
        border-radius: 15px;
}

    .imagini-tall {
        grid-column: 3;
        grid-row: 1 / 3;
}
}

.subTitle {
    font-size: 2rem;
    line-height: 1.6;
    color: rgb(121, 169, 206);
}

.link {
    color: rgb(121, 169, 206);
    font-size: 1.3rem;
}

.subsubTitle {
    color: rgb(121, 169, 206);
    font-size: 1.2rem;
    font-weight: normal;
}

.timetable {
    padding: 8% 3% 8% 3%;
    margin: 0 -4% 0 -4%;
    background-color: rgb(121, 169, 206);
}

.timetable p,
h3,
ul,
ol,
li {
    color: white;
    font-family: 'Merriweather', sans-serif;
}

.listItem {
    color: white;
}

.proverb {
    font-size: 1.2rem;
    font-weight: bold;

}

.day {
    font-weight: bold;
    font-style: italic;
}

ul {
    list-style-type: "✥ ";
}

.linkWhite {
    color: white;
    font-size: 1.3rem;
}

.galerie{
    text-align: center;
}

footer {
    color: rgb(121, 169, 206);
    background-color: rgb(31, 31, 31);
    margin: 0%;
    padding: 3%;
}

footer p {
    color: rgb(121, 169, 206);
    font-weight: bolder;
}

/* NAVBAR PRINCIPALE */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    position: relative;

    /*sticky*/
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(238, 238, 238, 0.5);
}

/* GRUPPO LOGO + TESTO */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    max-width: 50px;
    height: auto;
    display: block;
}

/* TESTO DEL TITOLO */
.titlua {
    display: flex;
    flex-direction: column;
}

.titlua span {
    display: block;
    font-weight: bold;
    font-size: 18px;
    color: #000;
}

/* BOTTONE HAMBURGER */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* MENU A TENDINA (NAV LINKS) */
.nav-links {
    display: none;
    /* Nascosto di default */
    list-style: none;
    margin: 0;
    padding: 20px;
    flex-direction: column;
    width: 100%;
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-links li {
    margin-bottom: 15px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    display: block;
}

/* CLASSE ATTIVA PER MOSTRARE IL MENU */
.nav-links.active {
    display: flex;
}

@media (min-width: 1050px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex;    
        flex-direction: row; 
        position: static; 
        width: auto;
        box-shadow: none;
        padding: 0;
        background-color: transparent;
    }
    .nav-links a:hover {
        color:rgb(121, 169, 206);
        transition: color 0.3s ease;

    }

    .nav-links li {
        margin-bottom: 0;
        margin-left: 15px;
        margin-right: 10px;
    }

    .nav-links li a {
        font-size: 16px;
    }

    .currentPage{
        color: rgb(121, 169, 206);
    }
}

summary {
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2c3e50;
}

summary::after {
    content: "+";
    font-size: 1.5rem;
}

details[open] summary::after {
    content: "−";
}

.continut-text {
    margin-top: 10px;
    color: #555;
    line-height: 1.6;
    padding-left: 5px;
    animation: aparitie 0.4s ease-out;
}

@keyframes aparitie {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/*CONTACT PAGE*/

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-link {
    color: rgb(121, 169, 206);
    text-decoration: none;
    font-family: 'Merriweather', serif;
    word-break: break-all;
}

/*ACTIVITATE PAGE*/
.activitateGrid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; 
    padding: 20px;
    box-sizing: border-box;
}

.centerDiv {
    text-align: center;
}


.activitateItem {
    margin-bottom: 30px;
    width: 100% !important; 
    max-width: none !important;
}

.activitateItem p {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

.subsubTitle {
    margin-bottom: 15px;
}
@media (min-width: 1024px) {
  
  .activitateGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    align-items: start; 
  }
  
  .centerDiv {
    grid-column: 1 / -1; 
  }

  .activitateItem {
    margin-bottom: 0;
  }
}

/*GALERIE PAGE*/

.galeriePrima {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
}

.galleria {
  column-count: 2;
  column-gap: 10px;
}

.galleria a {
  display: block;
  break-inside: avoid;
  margin-bottom: 10px;
  overflow: hidden; 
  border-radius: 10px; 
}

.fotoGriglia {
  width: 100%;
  height: auto; 
  object-fit: cover; 
  transition: transform 0.4s ease-in-out;
  display: block;
}


.fotoGriglia:hover {
  transform: scale(1.1); 
  border-radius: 10px;
}

@media (min-width: 1024px) {
  
  .main-galerie {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    row-gap: 20px;
  }

  .subTitle {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-self: end; 
  }

  main > p {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    align-self: start;
  }

  .galeriePrima {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    height: 100%;
    max-height: 500px; 
    margin-bottom: 0;
  }
  
  .galleria {
    grid-column: 1 / 3; 
    column-count: 3;
    column-gap: 20px; 
    margin-top: 40px; 
  }

  .fotoGriglia {
    height: auto; 
    max-height: 350px; 
  }
}

/*CONTACT page*/

.contactPage {
    display: block !important;
    width: 100%;
    max-width: 800px; 
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}
.contactPage p {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-link:hover {
    text-decoration: underline;
}
.map{
    width: 94%;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 10px;
}
.map iframe{
    width: 100%;
    height: 350px;
    display: block;
    border: none;
}

@media (min-width: 768px) {
  .mappa-container {
    max-width: 800px;
  }
  
  .mappa-container iframe {
    height: 450px; 
  }
}

/*ORGANIGRAMA PAGE*/
.arcadie{
    text-align: center;
}

.parohImage{
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 30px;
    margin-left: auto;
    margin-right: auto;
}

.organigrama {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px; 
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto; 
}

.worker {
    text-align: center;
}

.portrait {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-bottom: 15px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0);
}

.nume {
    color: rgb(121, 169, 206);
    font-size: clamp(16px, 4.5vw, 2rem);
    font-weight: bold;
    margin: 0;
}
@media (min-width: 1024px) {
    .containerAboutUs {
        padding: 0 10%; 
        max-width: 1200px;
    }

    .organigrama {
        grid-template-columns: repeat(3, 1fr); 
        gap: 40px;
    }

    .parohImage {
        max-width: 300px; 
    }
}

/*ABOUT US PAGE*/
.containerAboutUs {
    margin: 0 auto;
}

.zigzag {
    display: flex;
    flex-direction: column; 
    gap: 30px;
    margin-bottom: 50px;
    align-items: center;
}

.bloccoTesto {
    width: 100%;
}

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

.bloccoFoto img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
}

@media (min-width: 1000px) {
    .containerAboutUs {
        max-width: 1200px; 
        padding: 0 3%; 
    }

    .zigzag {
        flex-direction: row;
        justify-content: space-between;
    }

    .bloccoTesto, 
    .bloccoFoto {
        flex: 1; 
    }
    
    .containerAboutUs .zigzag:nth-child(2) .bloccoTesto {
        order: 2; 
    }

    .containerAboutUs .zigzag:nth-child(2) .bloccoFoto {
        order: 1;
    }
   
}