
.hero-section{


    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 300px;

    background-image: url('../images/backgroundHomepage.webp');
    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}


.hero-content{
    color: var(--light-color);
}


.hero-content h1 {
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p:first-of-type{
    font-size: 0.8rem;
    margin-top: 10px;
    margin-bottom: 20px;
}

@media (max-width: 870px) {

    .hero-section{
        height: 40vh;
    }
    .hero-content h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
        margin: auto 0.5rem;
    }
    .hero-section h1 span{
        display: block;
    }
    .hero-content p {
        font-size: clamp(0.7rem, 4vw, 0.85rem);
        margin: auto 1rem;
    }
    .hero-content p:first-of-type{
        font-size: clamp(0.6rem, 3vw, 0.7rem);
        margin: 1.20rem 1rem;
    }
}

.content-wrapper.preview{
    margin: 3em auto;
}

.section-title.preview{
    margin-bottom: 1.5em;
}

.content-wrapper.preview p:last-of-type{
    margin: 3em auto 0.5em;
}

.cta-preview{
    display: flex;
    justify-content: center;
    gap: 1em;
}

.cta-preview .btn-cta{
    transition: background 0.3s, transform 0.2s;
}

.cta-preview .btn-cta:hover{
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
}
.cta-preview.social a{
    color: var(--primary-color);
    text-decoration: none;
    font-size: 3em;
    transition: transform 0.3s, color 0.3s;
}
.cta-preview.social a:hover{
    color: var(--primary-color-hover);
    transform: translateY(-3px);
}

.section-title{
    color: var(--primary-color);
    text-align: center;
    margin-top: 1em;
}

.section-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

@media (max-width: 870px) {
    .section-subtitle{
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

.section-text{
    width: 90%;
    margin: 0.5em auto 0.5em auto;
    text-align: start;
}

/* --- SEZIONE MAPPA --- */

/* Contenitore della mappa */
.map-wrapper {
    position: relative;
    margin: 5em auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    width: 100%;
    aspect-ratio: 16/9;
}

.map-wrapper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mobile-map-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Area Bottone */
.map-cta {
    margin-top: 30px;
    text-align: center;
    display: none;
}

.btn-navigate {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-family: var(--text-font), sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(46, 46, 92, 0.3);
}

.btn-navigate:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-3px);
}

.small-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
}

/* --- MOBILE --- */
@media (max-width: 870px) {

    .mobile-map-overlay {
        display: block;

    }

    .map-cta{
        display: revert;
    }
}

.external{
    margin: 5rem auto;
}

.external div{
    margin: 0 auto;
    transition: all 0.3s;
}

.external div:hover{
    transform: translateY(-3px);
}

.external div img{
    width: 100%;
}


.assisi div{
    max-width: 40%;
}

.francesco div{
    max-width: 50%;
}

.chiesa div{
    max-width: 50%;
    padding-bottom: 0.5rem;
}