body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #fff;
}

header {
    background: rgba(51, 51, 51, 0.9);
    color: #fff;
    padding: 0;
    text-align: center;
    margin: 0;
}

.header-container,
.header-image,
section,
footer,
.background-section,
.info-section {
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

/* HEADER E MENU */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    color: #fff;
    position: relative;
    flex-direction: row;
    gap: 16px;
    box-sizing: border-box;
    padding: 30px 36px 20px 36px;
    min-height: 120px;
}

.header-title {
    flex: 0 0 auto;
    text-align: left;
    padding-left: 0;
    margin: 0;
    font-size: 2.7rem;
    font-weight: 700;
    margin-right: 40px;
}

.header-title a {
    color: #fff;
    text-decoration: none;
}
.header-title a:link {
    color: #fff; 
}

.header-title a:visited {
    color: #fff; 
}

.header-title a:hover {
    color: #fff; 
}

.header-title a:active {
    color: #fff; 
}    

.subtitles {
    flex: 1 1 auto;
    text-align: center;
    font-size: 1.05rem;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    position: absolute;
    left: 47.5%;
    transform: translateX(-50%);
    padding: 0 20px;
}

.subtitles p {
    margin: 0 0 2px 0;
    line-height: 1.05;
}
.subtitles p:last-child {
    margin-bottom: 0;
}

nav {
    flex: 0 0 auto;
    text-align: right;
    margin-left: 40px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    gap: 16px;
}

nav ul li {
    white-space: nowrap;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

section {
    padding: 20px 36px;
    margin: 24px auto;
    box-sizing: border-box;
}

.section-title {
    margin-top: 0px;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #333;
    color: #fff;
}

footer a {
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: #fff; /* Mantieni il colore coerente con il footer */
}
footer a:hover {
    color: #92BC6D; /* Opzionale: colore diverso al passaggio mouse */
}

/* HEADER IMAGE E OVERLAY */
.header-image {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    min-height: 250px;
    box-sizing: border-box;
    overflow: visible;
}

.full-width-image {
    display: block;
    width: 100%;
    max-width: 100vw;
    height: auto;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    object-fit: cover;
    border-radius: 0px 0px 18px 18px;
}

/* Overlay stagioni centrato e mai a tutta larghezza */
.overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0 0 0;
    z-index: 2;
    pointer-events: none;
    background: none;
}
.stagioni-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.stagioni-card {
    background-color: #444;
    color: #fff;    
    font-weight: 500;
    font-size: 1.1rem; /* DIMINUISCI LA DIMENSIONE DEL TESTO */
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(34,51,88,0.10);
    padding: 7px 10px;   /* RIDUCI IL PADDING */
    width: calc(50% - 16px);
    max-width: 340px;
    text-align: center;
    letter-spacing: 0.5px;
    pointer-events: auto;
    transition: background 0.2s;
    margin-bottom: 0;
    box-sizing: border-box;
    /*white-space: nowrap;      /* TESTO SU UNA SOLA RIGA */
    overflow: hidden;
    text-overflow: ellipsis;  /* ... se troppo lungo */
}
.stagioni-card:last-child:nth-child(odd) {
    margin-left: 25%;
    margin-right: 25%;
}
.stagioni-card:hover {
    background: #92BC6D;
    color: #223358;
}

/* --- SEZIONE "LA SPERANZA NON È UNA STRATEGIA" --- */
.info-section {
    background-color: #fff;
    padding: 20px 36px;
    /*margin: 10px auto 32px auto;*/
    box-sizing: border-box;
    max-width: 1100px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.info-container {
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}

.info-container-internal {
    display: flex;
    align-items: stretch;
    gap: 38px;
    width: 100%;
    box-sizing: border-box;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 2%;
    padding-right: 2%;
    text-align: left;
}

.info-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 90vw;
    max-width: 280px;
    border-radius: 18px;
    height: 100%;
    min-height: 400px;
    max-height: 500px;
    object-fit: cover;
    background: #eee;
    flex-shrink: 0;
}

.info-text {
    flex: 1 1 0;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px;
    font-size: 1.00rem;
    margin: 0;
    background-color: #444;
    color: #fff;
    /*padding: 34px 38px;*/
    padding: 10px 20px;
    box-sizing: border-box;
    line-height: 1.3;
}

.info-text h2 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 2.2rem;
    font-weight: bold;
}

.info-text p {
    margin: 0 0 0.8em 0;
    font-size: 1.00em;
}

/* --- ALTRE SEZIONI --- */
.background-section {
    /*background-image: url('../img/background-home.png');*/
    background-color: #84A96C;
    background-size: cover;
    background-position: center;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    min-height: 300px;
    margin-top: 0;
    box-sizing: border-box;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 18px 18px 0px 0px;
}

.info-text-profilo h2{
    margin-bottom: 16px;
}

.info-text-profilo p {
    margin-top: 0;
}

.box {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin: 10px;
    width: 30%;
    text-align: center;
    position: relative;
    line-height: 1.4;
    box-sizing: border-box;
}

.box-video {
	width: 100%;
}

.box h3 {
    margin-bottom: 4px;   /* o anche meno, ad esempio 6px */
}

.box p {
    margin-top: 0;
}




/* --- HAMBURGER MENU --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin: 0 auto;
}
.hamburger-bar {
    width: 28px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}
.hamburger.open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger.open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.info-image-profilo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin-right: 20px;
}

.activity-columns {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.activity-column {
    flex: 1;
    margin: 0 8px;
    min-width: 0;
}

.full-width-box {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
/* --- CARDS ALLENATORE --- */
.activity-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
    margin: 18px 0 30px 0;
}
.activity-card {
    background: rgba(255,255,255,0.93);
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    padding: 16px 24px;
    min-width: 220px;
    max-width: 270px;
    margin: 0 2px 14px 2px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}
.activity-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
.activity-year {
    font-size: 1.17rem;
    font-weight: bold;
    color: #84A965;
    margin-bottom: 3px;
}
.activity-club {
    font-weight: 600;
    color: #223358;
    margin-bottom: 2px;
    text-align: left;
}
.activity-cat {
    color: #555;
    font-size: 1.05rem;
    font-weight: 400;
    text-align: left;
}

/* --- CONTATTI --- */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 30vh;
    background: linear-gradient(120deg, #e8f0e5 0%, #f8fafc 100%);
}

.contact-info {
    background: rgba(255,255,255,0.97);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(34,60,160,0.08);
    padding: 36px 42px 32px 42px;
    display: flex;
    align-items: center;
    gap: 36px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
}

.info-image-profilo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(34,60,160,0.10);
    margin-right: 0;
    margin-bottom: 0;
    background: #f0f0f0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.13rem;
    color: #223358;
}

.contact-details p {
    margin: 0;
    line-height: 1.5;
}

.contact-details strong {
    font-size: 1.22rem;
    color: #2260a0;
    letter-spacing: 0.5px;
}

.contact-details a {
    color: #2260a0;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.contact-details a:hover {
    color: #92BC6D;
    text-decoration: underline;
}

.contact-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    color: #92BC6D;
    font-size: 1.15em;
}
/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
        position: absolute;
        top: 12px;
        right: 16px;
        left: auto;
        margin: 0;
    }    
    .header-container {
        flex-direction: column;
        align-items: center;
        padding: 18px 10px 12px 10px;
        min-height: unset;
    }
    .header-image {
        position: relative;
        min-height: unset;
        padding-bottom: 0;
    }    
    .overlay {
        position: static;
        transform: none;
        top: unset;
        left: unset;
        margin: 0 auto 10px auto;
        width: 98%;
        max-width: 98vw;
        min-width: unset;
        border-radius: 10px;
        z-index: 1;
        background: none;
        padding: 8px 0 0 0;
    }    
    .full-width-image {
        display: block;
        width: 100%;
        max-width: 100vw;
        height: auto;
        margin: 0 auto;
        border-radius: 0 0 10px 10px;
        object-fit: cover;
    }   
    .stagioni-list {
        gap: 10px;
    }    
    .stagioni-card {
        width: calc(50% - 10px);
        max-width: 99vw;
        font-size: 0.98rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 8px 8px;
    } 
    .header-title {
        font-size: 2rem;
        margin-right: 0;
        margin-bottom: 8px;
        text-align: center;
        width: 100%;
    }
    .subtitles {
        position: static;
        left: unset;
        transform: none;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }
    .contact-info {
        background: rgba(255,255,255,0.97);
        border-radius: 18px;
        box-shadow: 0 4px 24px rgba(34,60,160,0.08);
        padding: 15px 15px 15px 15px;
        display: flex;
        align-items: center;
        gap: 36px;
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
        flex-wrap: wrap;
    }  
    .info-text-profilo h2{
        margin-top: 0px;
    }      
    nav {
        margin-left: 0;
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
    nav ul li {
        width: 100%;
        padding: 8px 18px;
    }
    nav ul li a {
        width: 95%;
        display: block;
        font-size: 1.08rem;
        text-align: center;
    }

    .header-image {
        position: relative;
        min-height: unset;
        padding-bottom: 0;
    }
    .overlay {
        position: static;
        transform: none;
        top: unset;
        left: unset;
        margin: 0 auto 10px auto;
        width: 98%;
        max-width: 98vw;
        min-width: unset;
        border-radius: 10px;
        z-index: 1;
    }
    .info-section {
        flex-direction: column;
        padding: 10px 4vw;
    }
    .info-container {
        flex-direction: column;
        gap: 12px;
        padding: 0;
    }
    .info-image {
        width: 100%;
        max-width: 98vw;
        min-height: 180px;
        max-height: 260px;
    }
    .info-text {
        min-height: unset;
        font-size: 0.98rem;
        padding: 10px 8px;
    }
    .background-section {
        flex-direction: column;
        padding: 10px 2vw;
    }
    .box {
        width: 98%;
        margin: 10px auto;
    }
    .full-width-image {
        display: block;
        width: 100%;
        max-width: 100vw;
        height: auto;
        margin: 0 auto;
        border-radius: 0 0 10px 10px;
    }    
}

@media (max-width: 600px) {
    .header-title {
        font-size: 1.4rem;
    }
    .subtitles {
        font-size: 0.98rem;
    }
    .info-text h2 {
        font-size: 1.3rem;
    }
    .overlay {
        padding: 4px 0 0 0;
        font-size: 0.93em;
    }
    .stagioni-card {
        font-size: 0.93rem;
        padding: 7px 4px;
    }
    .box h3 {
        font-size: 1.05rem;
    }
    .box {
        padding: 8px 2vw;
    }
    .info-image {
        min-height: 120px;
        max-height: 180px;
    }
}

/* Hamburger menu visibile solo su mobile */
@media (max-width: 800px) {
    .hamburger {
        display: flex;
        position: absolute;
        top: 12px;
        right: 16px;
        left: auto;
        margin: 0;
    }
    nav {
        display: none;
        width: 100%;
    }
    nav.show {
        display: block;
        background: #333;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100%;
        max-width: none;
        margin: 0;
        box-sizing: border-box;
        padding: 0 0 10px 0;
        overflow-x: hidden;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
    nav ul li {
        width: 100%;
        padding: 8px 18px;
    }
    nav ul li a {
        width: 95%;
        display: block;
        font-size: 1.08rem;
        text-align: center;
    }

}


