/* ====================== GENERALE ====================== */
body {
    font-family: Arial, sans-serif;
    color: #1f3b53;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

/* ====================== HERO ====================== */
.hero {
    position: relative;
    height: 400px;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .overlay {
    /*background: rgba(0,0,0,0.35);*/
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-group a {
    margin: 5px;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background-color: #1d3d61;
    color: #fff;
}
.btn-primary:hover {
    background-color: #11324a;
}

.btn-secondary {
    background-color: #e7f0f6;
    color: #1d3d61;
}
.btn-secondary:hover {
    background-color: #cbd9e5;
}

/* ====================== INTRO ====================== */
.intro {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.intro h2 {
    color: #1d3d61;
    font-size: 2rem;
    margin-bottom: 15px;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
}
.text-section{text-align: center;}

.grid-attivita{
	    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}
/* Cards interne all’intro */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    flex: 1 1 250px;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.05), 0 8px 25px rgba(0,0,0,0.15);
}

.card img {
    max-height: 70px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.2rem;
    color: #11324a;
    margin-bottom: 8px;
}

/* ====================== ATTIVITÀ ====================== */
.attivita-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.card-att {
    flex: 1 1 280px;
    background-color: #f7f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-att:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-att h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #11324a;
}

.evento-date {
    font-weight: bold;
    color: #0a568c;
    margin-bottom: 10px;
}

.evento-diff {
    display: block;
    font-size: 0.95rem;
    color: #1f3b53;
    margin-bottom: 10px;
}

/* ====================== LISTE ====================== */
.attivita-sezione, .attivita-sottosezioni {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

.attivita-sezione h2, .attivita-sottosezioni h2 {
    color: #1d3d61;
    margin-bottom: 15px;
}

.attivita-sezione ul, .attivita-sottosezioni ul {
    list-style: disc;
    padding-left: 25px;
}

.attivita-sezione li, .attivita-sottosezioni li {
    margin-bottom: 10px;
}
#attivita-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}
/* ====================== GALLERY ====================== */
.gallery {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.gallery h2 {
    color: #1d3d61;
    margin-bottom: 20px;
}

.slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.slide {
    flex: 0 0 auto;
    min-width: 300px;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    background-color: #fff;
}

.slide img {
    width: 100%;
    display: block;
}

.slide p {
    margin: 10px 0;
    padding: 0 10px;
    font-size: 0.95rem;
    color: #1f3b53;
}

.slider::-webkit-scrollbar {
    height: 8px;
}

.slider::-webkit-scrollbar-thumb {
    background: rgba(29, 61, 97, 0.5);
    border-radius: 4px;
}

.slider::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

/* ====================== CTA FINALE ====================== */
.cta-final {
    text-align: center;
    margin: 40px 0;
    background-color: #1d3d61;
    padding: 40px 20px;
    border-radius: 12px;
    color: #fff;
}

.cta-final h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-final p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.cta-final a.btn-primary {
    background-color: #e7f0f6;
    color: #1d3d61;
    padding: 12px 25px;
    display: inline-block;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
    transition: 0.3s;
}

.cta-final a.btn-primary:hover {
    background-color: #cbd9e5;
}

/* ====================== PAGINAZIONE ====================== */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 5px;
}

.pag-btn {
    padding: 8px 14px;
    background-color: #e7f0f6;
    color: #11324a;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.pag-btn:hover {
    background-color: #cbd9e5;
}

.pag-btn.active {
    background-color: #0a568c;
    color: #fff;
}

/* ====================== CENTRATURA ====================== */
.center {
    text-align: center;
    margin-top: 20px;
}

/* ====================== SEZIONI TESTO ====================== */
.intro, #attivita, .attivita-sezione, .attivita-sottosezioni {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.grid-attivita {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.evento-card {
    padding: 20px;
    background: #f8f8f8;
    border-left: 4px solid #0B3D91;
    border-radius: 4px;
}
/* ========================= BOTTONI MESE (stile CAI) ========================= */

.filtro-mesi {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.mese-btn {
    background-color: #0B3D91; /* blu istituzionale tipo CAI */
    color: #ffffff;            /* testo bianco */
    border: 2px solid #ffffff;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mese-btn:hover {
    background-color: #ffffff;
    color: #0B3D91;
    border-color: #0B3D91;
}

.mese-btn.active {
    background-color: #F29900; /* arancione come colore attivo */
    color: #ffffff;
    border-color: #F29900;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;

    justify-content: center;      /* 👈 centra le slide */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}