/* ==========================================================================
   PAGINA NEWS E PROGETTI
   ========================================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px); }
  to {
    opacity: 1;
    transform: translateY(0); } }

@keyframes btn-bounce {
  0% {
    transform: translateY(0); }
  25% {
    transform: translateY(-8px); }
  50% {
    transform: translateY(0); }
  70% {
    transform: translateY(-4px); }
  85% {
    transform: translateY(0); }
  100% {
    transform: translateY(0); } }

.news-grid-section {
  padding: 4rem 0;
  background: var(--bg-white); }
  .news-grid-section .l-container {
    max-width: unset;
    margin: 0;
    padding: 0 5rem 0 2rem;
    width: 100%; }
    @media (max-width: 992px) {
      .news-grid-section .l-container {
        padding: 0 2rem; } }
    @media (max-width: 768px) {
      .news-grid-section .l-container {
        padding: 0 0.75rem; } }
  .news-grid-section .project-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: transform 0.3s ease; }
    .news-grid-section .project-card:hover {
      transform: translateY(-4px); }
    @media (max-width: 768px) {
      .news-grid-section .project-card:hover {
        transform: none; } }
  .news-grid-section .project-card__link {
    display: flex;
    flex-direction: column;
    height: auto !important;
    text-decoration: none;
    color: inherit; }
  .news-grid-section .project-content {
    padding: 10px 0 0 0;
    display: flex;
    flex-direction: column; }
  .news-grid-section .project-img {
    height: 250px;
    overflow: hidden;
    border-radius: 0;
    background: #eee;
    contain: layout paint; }
    @media (max-width: 768px) {
      .news-grid-section .project-img {
        height: 200px; } }
  .news-grid-section .project-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: translateZ(0); }
  .news-grid-section .project-kicker {
    margin: 10px 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
    color: var(--primary-pink-medium); }
  .news-grid-section .project-card h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 24px;
    color: var(--primary-fuxia);
    min-height: 48px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden; }
    @media (max-width: 768px) {
      .news-grid-section .project-card h3 {
        font-size: 20px;
        line-height: 20px;
        min-height: 40px; } }
  .news-grid-section .project-card p {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 22px;
    color: var(--neutral-dark-grey);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    padding-bottom: 0; }
    @media (max-width: 768px) {
      .news-grid-section .project-card p {
        font-size: 16px;
        line-height: 18px;
        min-height: 36px; } }
  .news-grid-section .project-tags {
    margin-top: auto;
    padding: 12px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap; }
  .news-grid-section .project-tags .tag {
    display: inline-block;
    background: var(--primary-pink);
    color: var(--primary-fuxia);
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    border-radius: 40px;
    cursor: pointer;
    border: 0;
    transition: background .15s ease, color .15s ease, transform .15s ease; }
    .news-grid-section .project-tags .tag:hover {
      background: var(--primary-fuxia);
      color: var(--bg-white);
      transform: translateY(-1px); }
    @media (max-width: 768px) {
      .news-grid-section .project-tags .tag {
        font-size: 14px;
        padding: 8px 12px; } }
.news-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  opacity: 0; }
  .news-filters.is-visible {
    animation: fadeInDown 0.8s ease forwards; }
  .news-filters .filter-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark); }
  .news-filters .filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap; }
  .news-filters .filter-btn {
    background: var(--primary-pink);
    color: var(--primary-fuxia);
    border: none;
    padding: 10px 16px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease; }
    .news-filters .filter-btn:hover {
      background: var(--primary-fuxia);
      color: var(--bg-white);
      transform: translateY(-1px); }
    .news-filters .filter-btn.active {
      background: var(--primary-fuxia);
      color: var(--bg-white);
      animation: btn-bounce 0.5s ease; }
  @media (max-width: 768px) {
    .news-filters {
      flex-direction: column;
      align-items: flex-start; }
      .news-filters .filter-label {
        font-size: 1rem; }
      .news-filters .filter-buttons {
        width: 100%; }
      .news-filters .filter-btn {
        font-size: 14px;
        padding: 8px 12px; } }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 24px; }
  @media (max-width: 992px) {
    .news-grid {
      grid-template-columns: repeat(2, 1fr); } }
  .news-grid .project-card.hidden {
    display: none; }
  .news-grid .project-card {
    opacity: 0; }
    .news-grid .project-card.is-visible {
      animation: fadeInDown 0.8s ease forwards; }
    .news-grid .project-card.is-visible:nth-child(1) {
      animation-delay: 0.1s; }
    .news-grid .project-card.is-visible:nth-child(2) {
      animation-delay: 0.2s; }
    .news-grid .project-card.is-visible:nth-child(3) {
      animation-delay: 0.3s; }
    .news-grid .project-card.is-visible:nth-child(4) {
      animation-delay: 0.4s; }
    .news-grid .project-card.is-visible:nth-child(5) {
      animation-delay: 0.5s; }
    .news-grid .project-card.is-visible:nth-child(6) {
      animation-delay: 0.6s; }
  @media (max-width: 600px) {
    .news-grid {
      grid-template-columns: 1fr;
      gap: 1rem; } }
.news-load-more {
  margin-top: 3rem;
  text-align: center; }
  .news-load-more .btn-load-more {
    background: transparent;
    color: var(--primary-fuxia);
    border: none;
    outline: 1px solid var(--primary-fuxia);
    border-radius: 2px;
    padding: 13px 16px;
    width: 160px;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%; }
    .news-load-more .btn-load-more:hover {
      background: var(--primary-fuxia);
      color: var(--bg-white); }
    .news-load-more .btn-load-more.hidden {
      display: none; }
