body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}

.btn-primary,
.btn-primary:hover {
    background-color: #d30d1c;
    border-color: #d30d1c;
}

.navbar {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.mt-2 {margin-top: 6px;}
.mt-4 {margin-top: 12px;}
.mt-6 {margin-top: 18px;}
.mt-8 {margin-top: 24px;}

.mb-2 {margin-bottom: 6px;}
.mb-4 {margin-bottom: 12px;}
.mb-6 {margin-bottom: 18px;}
.mb-8 {margin-bottom: 24px;}

.hero-section {
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    color: white;
    text-align: center;
    padding: 160px 20px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, .6);
}

.banner-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px auto;
}

.banner-section img {
    transition: transform 0.3s;
    border-radius: 5px;
}

.banner-section img:hover {
    transform: scale(1.05);
}

@media (max-width:768px) {
    .banner-section img {
        width: 100%;
        margin-bottom: 10px;
    }
}

.cta-banner img {
    width: 100%;
    margin: 30px 0;
    border-radius: 5px;
}

.news-section {
    margin-top: 40px;
}

.news-card {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    height: 200px;
    object-fit: cover;
    object-position: top;
}

.sidebar h3 {
    margin-bottom: 20px;
}

.event-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.event-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-bg {
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    padding: 160px 20px;
    color: #fff;
    text-align: center;
}

.section-bg h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.swiper-slide .card img {
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
}

.swiper-slide .card {
    width: 100%;
    max-width: 220px;
}

.cta-blue {
    background: #003366;
    color: #fff;
    text-align: center;
    padding: 50px 20px;
}

footer {
    background: #a1141d;
    color: #fff;
    padding: 40px 20px;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    padding-top: 15px;
    font-size: 14px;
}

.wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo-round {
    border-radius: 50%;
    border: 1px solid #dedede;
    object-fit: cover;
    padding: 2px;
}

.icona-banner i {
    font-size: 2rem;
}

.titolo-news {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.descrizione-news {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.titolo-evento,
.descrizione-evento {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.swiper-button-next,
.swiper-button-prev {
    color: #c60c49;
}

.swiper-button-next {
    right: -5px;
}

.swiper-button-prev {
    left: -5px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
}

.news-info {
    min-height: 135px;
}

.active>.page-link,
.page-link.active {
    background-color: #8b0430;
    border-color: #8b0430;
}

.page-link {
    color: #8b0430;
}

.news-item {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: none;
}

.hover-text:hover {
    color: #8b0430;
    text-decoration: underline;
}

.news-title-truncate {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: #d0181d;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: none;
}

.scrollTopBtn.visible {
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.scrollTopBtn:hover {
    background-color: #a10b3e;
    color: white;
    text-decoration: none;
}

.scrollTopBtn i {
    margin: 0;
    padding: 0;
    line-height: 1;
    display: block;
    vertical-align: middle;
    text-decoration: none !important;
    border: none;
}

@media (min-width: 992px) {
    .sidebar-with-border {
        border-left: 1px solid #ccc;
        padding-left: 30px;
    }

    .sidebar-padding {
        padding-right: 30px;
    }
}