body {
    font-family: Arial, sans-serif;
    line-height: 1.2;
    padding: 0;
    margin: 0;
}

header {
    background-color: #b00a0a;
    color: white;
    text-align: center;
    padding: 1rem;
}

main {
    padding: 2rem 1rem;
}

.background-image {
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    width: 100%;
}

.section {
    margin-bottom: 2rem;
}

#footer {
    background-color: #b00a0a;
    color: white;
    padding: 1rem;
}

.container, .image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.column, .image-column {
    flex: 1 1 300px;
    padding: 10px;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.image-column img {
    width: 100%;
    height: auto;
    display: block;
}

/* CENTRA SOLO LE IMMAGINI NELLE COLUMN */
.column img {
    display: block;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}
a:hover {
    text-decoration: underline;
}

.logo {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
  justify-content: lfet;
    
}

.icon {
    width: 60px;
    margin: 8px;
    height: auto;
}
.link{
background:url(../img/linkwhite.png) no-repeat left;
background-size:15px;
padding-left:20px;
}

.title {
    color: #9b0014;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #434343;
    font-size: 1.1rem;
    line-height: 1.4;
}

.italic {
    font-style: italic;
}

.activities {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.TextFooter {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.textcenter {
    text-align: center; 
    color: #434343;
    font-size: 1.1rem;
}

.max-width-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.TextFooter p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0.5rem 0;
}

     
.weather-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.weather-widget {
  max-width: 100%;
  text-align: center;
}




      
/* MEDIA QUERY per smartphone e tablet */
@media screen and (max-width: 800px) {
    .container, .image-row {
        flex-direction: column;
        align-items: stretch;
    }
 .weather-widget {
    font-size: 16px; /* Riduce la dimensione del font per schermi piccoli */
  }
    .column, .image-column {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;      /* fondamentale per evitare overflow */
        padding: 5px;      /* meno padding su mobile */
        box-sizing: border-box;
    }
    img, .image-column img {
    max-width: 50%;
    height: auto;
    }
    

    body {
        font-size: 15px;
    }
    .title {
        font-size: 1.3rem;
        text-align: center;
        word-break: break-word;
    }
    .subtitle {
        font-size: 1rem;
        text-align: center;
    }
    h1 {
        font-size: 1.8rem;
        text-align: center;
        word-break: break-word;
    }
    h2 {
        font-size: 1.6rem;
        text-align: center;
    }
    .icon {
        width: 50px;
        margin: 6px;
    }
    main {
        padding: 1rem 0.2rem;
    }
    .TextFooter p {
        font-size: 1rem;
        text-align: center;
    }
    .activities, .TextFooter, .max-width-wrapper {
        max-width: 100% !important;
    }
}

/* MEDIA QUERY aggiuntivo per schermi molto piccoli */
@media screen and (max-width: 500px) {
    h1, .title {
        font-size: 1.1rem;
        word-break: break-word;
        text-align: center;
    }
    .subtitle {
        font-size: 0.95rem;
    }
    main {
        padding: 0.5rem 0.1rem;
    }
}
