/* Memorial Massimo Oresti - Override colori Ceccano (rossoblu) */

/* Blu Ceccano: #2e4d90  |  Rosso Ceccano: #c41e3a */

/* ===== Smooth scroll ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Navbar piu' compatta ===== */
.header_area .navbar .nav .nav-item .nav-link {
  padding: 16px 0 !important;
}
.navbar-toggler {
  margin-top: 14px !important;
  margin-bottom: 14px !important;
}

/* ===== Banner hero - sfondo coerente sempre ===== */
.memorial-banner {
  background: #2e4d90 url(../img/memorial/memorial-square.jpg) center center no-repeat !important;
  background-size: cover !important;
  min-height: 400px;
  margin-top: 15px;
}
@media (min-width: 1000px) {
  .memorial-banner {
    min-height: 550px;
  }
}
.memorial-banner::after {
  background: rgba(20, 35, 80, 0.6) !important;
}
.memorial-banner .hero-banner__content h1 {
  font-size: 36px;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .memorial-banner .hero-banner__content h1 {
    font-size: 50px;
  }
}
.memorial-banner .hero-banner__content h3 {
  font-size: 18px;
}
@media (min-width: 768px) {
  .memorial-banner .hero-banner__content h3 {
    font-size: 27px;
  }
}
.memorial-banner .hero-banner__content p {
  font-size: 14px !important;
  padding: 0 15px;
}
@media (min-width: 768px) {
  .memorial-banner .hero-banner__content p {
    font-size: 18px !important;
    padding: 0;
  }
}

/* ===== Accenti: da arancio a rossoblu ===== */
.header_area .navbar .nav .nav-item:hover .nav-link,
.header_area .navbar .nav .nav-item.active .nav-link {
  color: #2e4d90;
}

.blog__slide__label {
  color: #fff !important;
  background: #2e4d90 !important;
}

.widget-wrap .single-sidebar-widget__title::after {
  background: #c41e3a;
}

.widget-wrap .post-category-widget .cat-list li:hover a,
.widget-wrap .post-category-widget .cat-list li:hover p {
  color: #2e4d90;
}

.widget-wrap .tag_cloud_widget ul li a:hover {
  background: #2e4d90;
  color: #fff;
}

.button {
  background-color: #2e4d90;
  border-color: #2e4d90;
  color: #fff;
}
.button:hover {
  background-color: #c41e3a;
  border-color: #c41e3a;
  color: #fff;
}

/* ===== Footer ===== */
.footer-area {
  background: #152040;
}
.footer-area h6 {
  color: #fff;
}
.copy-right-text i,
.copy-right-text a,
.footer-text a {
  color: #c41e3a;
}
.footer-social a:hover i {
  color: #c41e3a;
}

/* ===== Navbar su scroll ===== */
.header_area.navbar_fixed .main_menu {
  background: #fff !important;
}

/* ===== Sidebar widget accent ===== */
.widget-wrap .newsletter-widget .bbtns {
  background: #2e4d90;
  border-color: #2e4d90;
  color: #fff;
}

/* ===== Blog pagination ===== */
.blog-pagination .page-item.active .page-link {
  color: #c41e3a;
  border-color: #2e4d90;
}
.blog-pagination .page-link:hover {
  color: #c41e3a;
  border-color: #2e4d90;
}

/* ===== Owl dots ===== */
.causes_slider .owl-dots .owl-dot.active {
  background: #c41e3a;
}

/* ===== Slider foto - altezza coerente su mobile ===== */
.blog-slider .blog__slide__img {
  overflow: hidden;
  max-height: 350px;
}
.blog-slider .blog__slide__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 767px) {
  .blog-slider .blog__slide__img {
    max-height: 250px;
  }
}

/* ===== Galleria immagini ===== */
#galleria img {
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
  height: 250px;
  object-fit: cover;
}
#galleria img:hover {
  transform: scale(1.03);
}
@media (max-width: 575px) {
  #galleria img {
    height: 200px;
  }
  #galleria .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ===== Sezione ricordi ===== */
#ricordi {
  background: #f5f7fb !important;
  padding: 40px 0 !important;
}
.testimonial-card {
  background: #fff;
  padding: 25px;
  border-radius: 4px;
  margin-bottom: 20px;
  height: 100%;
}
.testimonial-card p.quote {
  font-style: italic;
  color: #555;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
}
.testimonial-card p.author {
  text-align: right;
  font-weight: 700;
  margin-bottom: 0;
}
.testimonial-card.blu {
  border-left: 4px solid #2e4d90;
}
.testimonial-card.blu .author {
  color: #2e4d90;
}
.testimonial-card.rosso {
  border-left: 4px solid #c41e3a;
}
.testimonial-card.rosso .author {
  color: #c41e3a;
}
@media (max-width: 767px) {
  .testimonial-card {
    padding: 20px 15px;
  }
  .testimonial-card p.quote {
    font-size: 14px;
  }
}

/* ===== Sezione memorial torneo ===== */
#memorial {
  background: #f0f2f8;
  padding: 60px 0;
}
#memorial img {
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
@media (min-width: 992px) {
  #memorial img {
    margin-bottom: 0;
  }
}

/* ===== Bio sezione - immagini proporzionate ===== */
.single-recent-blog-post .thumb img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: top;
}

/* ===== Sidebar info - mobile spacing ===== */
@media (max-width: 991px) {
  .sidebar-widgets {
    margin-top: 40px;
  }
  .widget-wrap {
    margin-top: 0 !important;
  }
}

/* ===== Titoli sezione - mobile ===== */
@media (max-width: 575px) {
  h2 {
    font-size: 22px !important;
  }
  .single-recent-blog-post .details h3 {
    font-size: 20px;
  }
  .hero-banner__content h4 {
    font-size: 14px !important;
  }
}

/* ===== Navbar mobile ===== */
@media (max-width: 991px) {
  .header_area .navbar {
    background: #2e4d90 !important;
  }
  .header_area .navbar .nav .nav-item .nav-link {
    color: #fff !important;
  }
  .header_area .navbar .nav .nav-item:hover .nav-link,
  .header_area .navbar .nav .nav-item.active .nav-link {
    color: #c41e3a !important;
  }
  .navbar-brand {
    color: #fff !important;
  }
}
