@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* usa atkinson hyperlegible bold per titoli e bottoni , atkinson hyperlegible regular per i sottotitoli, public sans per il testo */

body {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #1D1D1D;
    background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 700!important;    
}

h1{
    font-size: 5.63rem!important;
    line-height: 5.63rem !important;
}

h2{
    font-size: 4.8rem!important;
    line-height: 4.8rem !important;
}

b, strong {
    font-weight: bold!important;
}

.subtitle {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 400;
    font-size: 2.88rem!important;
}

p {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.63rem!important;
}

.btn {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 700;
}

.green {
    background-color: #85E23C;
}

.grey {
    background-color: #F1F2ED;
}

.greenUnderline {
    position: relative;
    display: inline-block;
}
.grey span.greenUnderline {
    z-index: 1;
}

.roundedShaded {
    border-radius: 50px;
    box-shadow: 0px 3px 30px #00000029;
    padding: 3rem;
    margin: 0 1rem;
}

.separator {
    width: 100%;
    max-width: 180px;
    height: 2px;
    background-color: #85E23C;
    margin: 0 auto;
}

/* News Carousel Styles */
.news-carousel-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 6rem;
    margin-top: 2rem;
}

.news-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
    padding: 2rem ;
    touch-action: pan-y pinch-zoom;
    user-select: none;
}

.news-slide {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 0;
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #85E23C;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0px 3px 15px rgba(133, 226, 60, 0.3);
}

.carousel-btn:hover {
    background-color: #75d12a;
    transform: scale(1.1);
    box-shadow: 0px 5px 20px rgba(133, 226, 60, 0.5);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn span {
    line-height: 1;
}

/* Contact Form Styles */
.formContainer {
    padding: 2rem 0;
}

.form-input {
    border: 2px solid #f1f2ed;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #85E23C;
    box-shadow: 0 0 0 0.2rem rgba(133, 226, 60, 0.25);
    background-color: white;
    outline: none;
}

.form-input::placeholder {
    color: #999;
    font-weight: 400;
}

.contact-form .btn {
    font-size: 1rem;
    padding: 1rem 2rem;
    border: none;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    background-color: #75d12a;
    transform: translateY(-2px);
    box-shadow: 0px 8px 25px rgba(133, 226, 60, 0.4);
}

.form-check {
    text-align: left;
}
.form-check a {
    color: #85E23C;
    text-decoration: none;
}
.form-check-input[type=checkbox] {
    height: 25px;
    margin-right: 10px;
    margin-top: -2px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-pt-3{
        padding-top: 30px;
    }
    label.form-check-label {
        max-width: 245px;
    }
    .form-check-input[type=checkbox] {
        margin-top: 3px;
    }
    .roundedShaded {
        border-radius: 25px;
        padding: 1rem;
    }
    .roundedShaded img {
        max-width: 85%;
    }
    .news-slide {
        flex: 0 0 100%;
    }
    
    .news-carousel {
        gap: 1rem;
    }
    
    .contact-form {
        padding: 0;
        margin: 0;
    }
    
    .formContainer {
        padding: 2rem 0;
    }

    button.btn.green.text-dark.px-5.py-3.rounded-pill.fw-bold {
        border-radius: 8px !important;
    }
    .px-5 {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }
    
    
    /* Font size adjustments for mobile */
    h1 {
        font-size: 3rem !important;
        line-height: 3.2rem !important;
    }
    
    h2 {
        font-size: 2.5rem !important;
        line-height: 2.7rem !important;
    }
    
    .subtitle {
        font-size: 1.8rem !important;
    }
    
    p {
        font-size: 1.2rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .news-slide {
        flex: 0 0 calc(50% - 1rem);
    }
    
    /* Font size adjustments for tablet */
    h1 {
        font-size: 4rem !important;
        line-height: 4.2rem !important;
    }
    
    h2 {
        font-size: 3.5rem !important;
        line-height: 3.7rem !important;
    }
    
    .subtitle {
        font-size: 2.2rem !important;
    }
}

.roundedShaded.card.h-100 {
    padding: 1rem;
    border-radius: 30px;
    box-shadow: 0px 3px 8px #00000029;
}

.roundedShaded.card img.mb-3 {
    margin: auto;
    display: block;
    max-width: 100%;
}

.greenUnderline::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.1em;
    width: 100%;
    height: 0.5em;
    background-color: #85E23C;
    z-index: -1;
}

.text-left {
    text-align: left;
}

p.card-text {
    font-size: 1rem !important;
}

   
