/* Scroll padding per header fisso - Fix anchor links */
html {
   scroll-padding-top: 100px;
}

@media (max-width: 1024px) {
   html {
      scroll-padding-top: 90px;
   }
}

/* --- FOOTER TEAM FABIANA LUPERINI --- */
.site-footer {
   position: relative;
   background: linear-gradient(135deg, #1E3A8A, #EC4899);
   color: white;
   font-family: 'Poppins', 'Montserrat', sans-serif;
   margin-top: 48px;
   padding: 16px 0 48px 0;
}
.site-footer a {
   color: white;
}
.footer-container {
   max-width: 1180px;
   margin: 0 auto;
   padding: 0 28px;
}
.footer-main {
   display: flex;
   flex-direction: column;
   gap: 6px;
   align-items: center;
   margin: 0;
}
.footer-brand {
   text-align: center;
   width: 100%;
}
.footer-main{
   padding-bottom: 0;
}
.footer-links-row {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 12px;
   width: 100%;
   padding: 0;
   max-width: 1000px;
}
.footer-links-row .footer-col {
   text-align: center;
   padding: 0;
   margin-bottom: 0px;
}

.footer-title {
   font-size: 1.25rem;
   font-weight: 700;
   margin-bottom: 8px;
   letter-spacing: 0.02em;
   color: #ffffff;
}
.footero-col {
   padding: 0;
}
.footer-col h4 {
   font-size: 1rem;
   font-weight: 600;
   margin-bottom: 14px;
   letter-spacing: 0.02em;
   color: #ffffff;
}
.footer-logo {
   width: 70px;
   height: auto;
   margin-bottom: 14px;
   border-radius: 10px;
   box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}
.footer-tagline {
   font-size: 0.96rem;
   color: rgba(255,255,255,0.85);
   margin: 0;
   line-height: 1.7;
}
.footer-meta {
   margin-top: 20px;
   font-size: 0.88rem;
   color: rgba(255,255,255,0.7);
   line-height: 1.6;
}
.footer-meta span {
   display: block;
   margin-bottom: 6px;
}
.footer-meta span strong {
   color: #ffffff;
   font-weight: 600;
   margin-right: 6px;
}
.footer-col ul {
   list-style: none;
   padding: 0;
   margin: 0;
}
.footer-col li {
   margin-bottom: 10px;
   font-size: 0.94rem;
   color: rgba(255,255,255,0.85);
}
.footer-links ul {
   display: flex;
   flex-direction: column;
   gap: 15px;
   max-width: none;
   align-items: center;
}
.footer-links li {
   margin-bottom: 0;
   text-align: center;
}
.footer-docs ul {
   display: flex;
   flex-direction: column;
   gap: 15px;
   max-width: none;
   align-items: center;
}
.footer-docs li {
   margin-bottom: 0;
   text-align: center;
}
.footer-col a {
   text-decoration: none;
   color: rgba(255,255,255,0.9);
   font-weight: 500;
   transition: color 0.2s ease;
}
.footer-col a:hover {
   color: #ffffff;
}
.footer-contact-list li {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   margin-bottom: 0;
   text-align: center;
   
}
.footer-col .footer-contact-list {
   padding: 0;
}
.footer-icon {
   margin-top: 2px;
   color: rgba(255,255,255,0.7);
   font-size: 0.98rem;
}
.footer-hours {
   margin: 12px 0 0 0;
   font-size: 0.9rem;
   color: rgba(255,255,255,0.7);
}
.footer-social {
   display: flex;
   justify-content: center;
   gap: 12px;
   margin-top: 18px;
}
.footer-social a {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 36px;
   height: 36px;
   border-radius: 50%;
   background: linear-gradient(135deg, #E1306C, #C13584);
   color: #ffffff;
   transition: none;
}
.footer-social a i {
   color: #ffffff !important;
}
.footer-social a:hover {
   background: linear-gradient(135deg, #E1306C, #C13584);
   color: #ffffff;
   transform: scale(1.1);
}

/* Nascondi blocchi esterni indesiderati */
div.glasp-extension,
.glasp-extension {
   display: none !important;
   visibility: hidden !important;
}

.footer-secondary {
   display: flex;
   flex-wrap: wrap;
   gap: 16px;
   align-items: center;
   justify-content: space-between;
   padding: 0 !important;
   margin: 0 !important;
   font-size: 0.9rem;
   color: rgba(255,255,255,0.75);
}

.footer-divider {
   margin: 0 !important;
   padding: 0 !important;
   height: 1px;
   background: rgba(255,255,255,0.2);
}
.footer-bottom-links {
   display: flex;
   gap: 20px;
}
.footer-bottom-links a {
   color: rgba(255,255,255,0.9);
   text-decoration: none;
   font-weight: 500;
}
.footer-bottom-links a:hover {
   color: #ffffff;
}
.footer-certifications {
   display: flex;
   gap: 20px;
   flex-wrap: wrap;
   color: rgba(255,255,255,0.7);
}

/* Tablet layout tweaks */
@media (min-width: 641px) {
   /* Disabilita accordion su desktop */
   .footer-toggle i {
      display: none;
   }
   
   .footer-accordion-content {
      max-height: none !important;
      overflow: visible !important;
      opacity: 1 !important;
      visibility: visible !important;
      background: transparent !important;
   }
   
   .footer-accordion-item {
      border: none;
      background: transparent !important;
   }
   
   .footer-accordion-item ul,
   .footer-accordion-item li {
      background: transparent !important;
   }
}

@media (max-width: 1024px) {
   .footer-container {
      padding: 0 18px;
   }
   .footer-links-row {
      grid-template-columns: repeat(2, 1fr);
      gap: 18px;
   }
   .footer-accordion-content {
      background: transparent !important;
   }
   .footer-accordion-item,
   .footer-accordion-item ul,
   .footer-accordion-item li {
      background: transparent !important;
   }
   .footer-col {
      background: transparent !important;
   }
   .footer-secondary {
      justify-content: center;
      gap: 10px;
   }
   nav ul {
      gap: 0.25rem;
   }
   nav ul li a {
      padding: 8px 10px;
      font-size: 0.95rem;
   }
}
@media (max-width: 480px) {
   .sponsor-row {
      flex-direction: column;
   }
   .sponsor {
      margin-bottom: 15px;
   }
}

/* Immagini gare a venire */
.upcoming-card img {
   height: 200px;
   object-fit: cover;
}

@media (max-width: 640px) {
   .site-footer {
      padding: 6px 8px 4px;
      margin-top: 12px;
   }
   .footer-container {
      padding: 0 8px;
   }
  .footer-links-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    height: auto;
  }

  .footer-toggle {
    padding: 2px 0;
    margin: 0;
    line-height: 1;
  }


 .footer-accordion-content {
    max-height: 0 !important;
    overflow: hidden;
    background: transparent !important;
  }

  .footer-accordion-item.active .footer-accordion-content {
    max-height: 1000px !important; /* valore grande */
    background: transparent !important;
  }

  .footer-accordion-item,
  .footer-accordion-item ul,
  .footer-accordion-item li {
    background: transparent !important;
  }


   .footer-main {
      gap: 4px;
   }

   .footer-col {
      width: 100%;
   }
   .footer-col,
   .footer-col h4,
   .footer-col ul,
   .footer-col li,
   .footer-links li,
   .footer-docs li {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
   }
   
  .footer-links-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0 !important;
  }


  .footer-accordion-item {
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer-col {
    margin: 0 !important;
    padding: 0 !important;
  }
  .footer-toggle {
    display: block;
    margin: 0;
    padding: 1px 0 !important;
    line-height: 1;
  }
  .footer-toggle {
    letter-spacing: 0;
  }




   .footer-title {
      font-size: 1rem;
      margin-bottom: 4px;
   }
   .footer-tagline {
      font-size: 0.84rem;
      padding: 0;
      line-height: 1.3;
      display: none;
   }
   .footer-col h4 {
      font-size: 0.88rem;
      margin-bottom: 0;
   }
   .footer-col li {
      font-size: 0.84rem;
      margin-bottom: 3px;
   }
   
   .footer-col a {
      color: rgba(255,255,255,0.9) !important;
   }
   
   .footer-col a:hover {
      color: #ffffff !important;
   }
   
   .footer-links ul,
   .footer-docs ul {
      gap: 4px;
   }
   .footer-contact-list li {
      font-size: 0.84rem;
      flex-direction: row;
      gap: 4px;
      justify-content: center;
   }
   .footer-contact-list {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
   }
   .footer-secondary {
      flex-direction: column;
      align-items: center;
      gap: 1px;
      padding: 6px 0 4px !important;
      text-align: center;
      font-size: 0.8rem !important;
   }
   .footer-secondary > div {
      flex-direction: column !important;
      gap: 1px !important;
      font-size: 0.8rem !important;
      justify-content: center;
      align-items: center;
   }
   .footer-secondary span {
      font-size: 0.8rem;
   }
   .footer-bottom-links {
      flex-wrap: wrap;
      justify-content: center;
      gap: 4px;
   }
   .footer-logo {
      width: 48px;
      margin-bottom: 4px;
   }
   .footer-meta {
      margin-top: 6px;
      font-size: 0.8rem;
   }
   .footer-meta span {
      margin-bottom: 3px;
   }
   
   /* Accordion footer - SOLO MOBILE */
   .footer-accordion-item {
      margin: 0 auto !important;
      border-bottom: none;
      padding: 0 !important;
      width: 80%;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
   }
   
   .footer-toggle {
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      padding: 5px 0 !important;
      margin: 0 !important;
      user-select: none;
      color: #ffffff !important;
      font-weight: 600;
      font-size: 0.7rem;
      height: auto;
      min-height: 0;
      line-height: 0.8;
      width: 100%;
      text-align: center;
   }
   
   .footer-toggle h4 {
      margin: 0;
      padding: 0;
      font-size: 0.7rem;
      line-height: 1;
      height: auto;
      color: #ffffff !important;
   }
   
   .footer-toggle i {
      font-size: 0.55rem;
      transition: transform 0.3s ease;
      line-height: 0.8;
   }
   
   .footer-accordion-item.active .footer-toggle i {
      transform: rotate(180deg);
   }
   
   .footer-accordion-content {
      max-height: 0 !important;
      overflow: hidden !important;
      transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
      width: 100%;
      text-align: center;
      opacity: 0 !important;
      visibility: hidden !important;
      padding: 0 !important;
      margin: 0 !important;
      background: transparent !important;
   }
   
   .footer-accordion-item.active .footer-accordion-content {
      margin-top: 1px;
      opacity: 1 !important;
      visibility: visible !important;
      background: transparent !important;
   }
   }
   
   .footer-col {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
   }

/* ============================================
   DUPLICATE HEADER/NAV/CARD/MEMBER BLOCKS REMOVED
   (canonical versions kept below + header.css)
   ============================================ */

a.card-link {
   text-decoration: none;
   color: inherit;
}

nav ul li a.nav-link.dropdown-toggle {
   font-family: 'Teko', sans-serif;
}

.member-link {
   display: block;
   text-decoration: none;
   color: inherit;
}


/* Team grid / rider cards */
.team-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
   gap: 20px;
   align-items: start;
}


/* --- CARD STYLE TIPO TEAM BORA --- */
.member {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.12);
}

.member > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

/* --- STAFF CARD DISTINCTIONS --- */
.staff-member .member-img.staff-img {
  aspect-ratio: 3 / 4;
  min-height: unset;
  max-height: 320px;
  margin-top: 0;
  padding: 0;
  border-radius: 14px 14px 0 0;
  border-bottom: 2px solid #EC4899;
}

.staff-member .card-body {
  padding: 14px 12px 18px;
}

.staff-role {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1E3A8A;
  background: rgba(30, 58, 138, 0.08);
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.member-img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  border-radius: 12px 12px 0 0;
  margin-top: 10px;
  padding: 5px;
  min-height: 400px;
}

.card-body {
  padding: 18px 14px 25px;
  background: #fff;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-top: 8px;
  margin-bottom: 6px;
}

.flag-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-bottom: 6px;
}

.flag-text img {
  width: 22px;
  height: 16px;
  border-radius: 2px;
}

.member p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

/* Layout responsive 4 per riga, 2 su tablet, 1 su mobile */
@media (min-width: 1200px) {
  .col-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}
@media (max-width: 992px) {
  .col-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 576px) {
  .col-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


main {
   padding: 60px 40px;
   background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
   margin: 90px auto 40px auto;
   max-width: 1100px;
   box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
   border-radius: 16px;
   border: 1px solid rgba(30, 58, 138, 0.1);
}

@media (max-width: 768px) {
   main {
       padding: 30px 15px;
       margin: 100px 10px 20px 10px;
       border-radius: 8px;
   }
}

/* (wildcard div/main:hover rules removed — were causing spacing issues everywhere) */


/* Pulsanti .button (scoped — non più su tutti i button) */
a.button {
   display: inline-block;
   background: linear-gradient(135deg, #1E3A8A, #2563EB);
   color: #fff;
   padding: 12px 24px;
   text-decoration: none;
   border-radius: 10px;
   font-size: 1rem;
   font-weight: 500;
   transition: all 0.3s ease;
   box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

a.button:hover {
   background: linear-gradient(135deg, #2563EB, #EC4899);
   transform: translateY(-2px);
   box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3);
}


.flag-text {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   background-color: #f7f8ff; /* colore di sfondo identico */
   padding: 2px 6px;
   border-radius: 4px;
 }
  .flag-text img {
   text-decoration: none !important;
   border: none;
   display: inline-block;
   vertical-align: middle;
 }


/* Utility / global settings */
* {
   box-sizing: border-box;
}


html {
   scroll-behavior: smooth;
}


/* small responsive tweaks */
@media (max-width: 700px) {
   header {
       padding: 0.5rem 1rem;
   }


   nav ul {
       gap: 8px;
   }


   nav ul li a {
       font-size: 0.98rem;
       padding: 6px 8px;
   }


   main {
       padding: 20px;
       margin-top: 110px;
   }
}


/* Sezione about */
#about {
   background: url('https://via.placeholder.com/1200x400') no-repeat center center/cover;
   color: #1E3A8A;
   padding: 80px 20px;
   border-radius: 12px;
   backdrop-filter: brightness(0.85);
}


#about h2,
#about p {
   color: #1E3A8A;
}


#body {
   margin-bottom: 40px;
   padding-top: 80px;
   position: relative;
}


/* Variabili CSS */
:root {
   --font-family: 'Poppins', sans-serif;
   --primary-color: #1E3A8A;
   --secondary-color: #EC4899;
   --background-color: #FCE7F3;
   --accent-color: #60A5FA;
   --transition-fast: 0.3s ease;
   --transition-slow: 2s linear;
   --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


/* slideUp/slideDown kept for potential use */
@keyframes slideUp {
   from { transform: translateY(0); }
   to { transform: translateY(-100%); }
}
@keyframes slideDown {
   from { transform: translateY(-100%); }
   to { transform: translateY(0); }
}

/* header.hidden transition handled in header.css */


/* Stack cards vertically: 4 cards in a column layout */
.card-column {
   display: flex;
   flex-direction: column;
   gap: 20px;
}


.card-column .col-12,
.card-column .col-sm-6,
.card-column .col-lg-3{
   width: 100% !important;
   max-width: 100% !important;
}


/* ensure card occupies full width when stacked */
.card-column .card{
   width: 100%;
}


.upcoming-card {
   border: none;
   border-radius: 20px;
   overflow: visible;
   background: white;
   box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
   transition: all 0.4s ease;
   cursor: pointer;
}

.upcoming-card:hover {
   transform: scale(1.03);
   box-shadow: 0 0 25px rgba(255, 79, 191, 0.3), 0 0 40px rgba(0, 123, 255, 0.2);
}

.upcoming-card:hover img {
   transform: scale(1.05);
}

.upcoming-card .card-body {
   padding: 25px;
   background: linear-gradient(135deg, #ffffff, #f7f8ff);
}

.upcoming-card .card-title {
   font-weight: 600;
   color: #1b1b3a;
}

.upcoming-card .card-text {
   color: #555;
   font-size: 0.95rem;
}

/* Gare a venire - Card responsive */
.race-card {
   background: white;
   border-radius: 16px;
   overflow: hidden;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
   transition: all 0.3s ease;
   height: 100%;
   display: flex;
   flex-direction: column;
}

.race-card:hover {
   transform: translateY(-8px);
   box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.race-card-img-wrapper {
   width: 100%;
   aspect-ratio: 4 / 3;
   background: white;
   display: flex;
   align-items: center;
   justify-content: center;
   overflow: hidden;
   padding: 12px;
   box-sizing: border-box;
   border-bottom: 1px solid #eee;
}

.race-card-img-wrapper img {
   width: 100%;
   height: 100%;
   object-fit: contain;
}

.race-card-content {
   padding: 20px;
   flex: 1;
   display: flex;
   flex-direction: column;
}

.race-card-title {
   font-size: 1.2rem;
   font-weight: 700;
   color: #1b1b3a;
   margin: 0 0 8px 0;
   line-height: 1.3;
}

.race-card-location {
   font-size: 0.95rem;
   color: #666;
   margin: 0 0 8px 0;
}

.race-card-date {
   font-size: 0.85rem;
   color: #999;
   margin: 0 0 12px 0;
}

.race-card-category {
   display: inline-block;
   background: #007bff;
   color: white;
   padding: 6px 12px;
   border-radius: 20px;
   font-size: 0.8rem;
   font-weight: 600;
   width: fit-content;
}

@media (max-width: 1024px) {
   .race-card-title {
      font-size: 1.1rem;
   }
   
   .race-card-location {
      font-size: 0.9rem;
   }
   
   .race-card-content {
      padding: 16px;
   }
   
   .race-card-img-wrapper {
      aspect-ratio: 4 / 3;
   }
}

@media (max-width: 768px) {
   #gare-prossime .row {
      gap: 4px;
   }
   
   #gare-prossime .row > div {
      padding: 0;
      margin: 0;
      border: 0;
   }
   
   .race-card {
      flex-direction: row;
      border-radius: 12px;
      margin-bottom: 0;
   }
   
   .race-card-img-wrapper {
      width: 40%;
      min-width: 140px;
      aspect-ratio: 1;
      padding: 10px;
      border-bottom: none;
      border-right: 1px solid #eee;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
   }
   
   .race-card-img-wrapper img {
      max-height: 120px;
   }
   
   .race-card-content {
      padding: 12px;
      justify-content: center;
      align-items: center;
      display: flex;
      flex-direction: column;
   }
   
   .race-card-title {
      font-size: 0.95rem;
      margin-bottom: 4px;
   }
   
   .race-card-location {
      font-size: 0.8rem;
      margin-bottom: 3px;
   }
   
   .race-card-date {
      font-size: 0.7rem;
      margin-bottom: 6px;
   }
   
   .race-card-category {
      padding: 4px 10px;
      font-size: 0.7rem;
   }
}

@media (max-width: 480px) {
   .race-card {
      border-radius: 10px;
      margin-bottom: 10px;
   }
   
   .race-card-img-wrapper {
      width: 35%;
      min-width: 120px;
      padding: 8px;
   }
   
   .race-card-content {
      padding: 10px;
   }
   
   .race-card-title {
      font-size: 0.85rem;
   }
   
   .race-card-location {
      font-size: 0.75rem;
   }
   
   .race-card-date {
      font-size: 0.65rem;
   }
}

@media (max-width: 480px) {
   .race-card-horizontal {
      border-radius: 10px;
      margin-bottom: 10px;
   }
   
   .race-card-img-side {
      min-height: 150px;
      padding: 8px;
   }
   
   .race-card-img-side img {
      max-height: 100px;
   }
   
   .race-card-text-side {
      padding: 10px;
   }
   
   .race-card-title {
      font-size: 0.9rem;
   }
   
   .race-card-location {
      font-size: 0.8rem;
   }
   
   .race-card-date {
      font-size: 0.7rem;
   }
}

.container {
   margin-bottom: 0;
   padding: 0;
}

/* Pulsanti Mese e Anno in tema */
#monthDropdown.btn-dark,
#yearDropdown.btn-dark {
 background: linear-gradient(135deg, #60A5FA, #EC4899);
 border: none;
 color: #fff;
 font-weight: 600;
 border-radius: 10px;
 transition: all 0.3s ease;
 box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

#monthDropdown.btn-dark:hover,
#yearDropdown.btn-dark:hover {
 transform: translateY(-2px);
 opacity: 0.95;
 box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.dropdown.show > #monthDropdown.btn-dark,
.dropdown.show > #yearDropdown.btn-dark {
 background: linear-gradient(135deg, #EC4899, #60A5FA);
 color: #fff;
 box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#monthDropdown.btn-dark:focus,
#yearDropdown.btn-dark:focus,
#monthDropdown.btn-dark:active,
#yearDropdown.btn-dark:active {
 outline: none;
 box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.4);
}

.filters {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
 margin-bottom: 8px;
 align-items: center;
}

/* Podium badges */
.badge-podium {
  display: inline-block;
  min-width: 26px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}
.podium-1 { background: linear-gradient(180deg, #f6c23e, #d4a10a); }
.podium-2 { background: linear-gradient(180deg, #c0c0c0, #8f8f8f); }
.podium-3 { background: linear-gradient(180deg, #d98b4a, #b86a2b); }

/* Tabella risultati più compatta */
#resultsTable {
 width: 100%;
 border-collapse: collapse;
 table-layout: auto; /* permette larghezza dinamica */
}


#resultsTable th,
#resultsTable td {
 padding: 5px 10px;
 white-space: nowrap;
 text-align: left;
 vertical-align: middle;
 font-size: 0.92rem;
}


/* Rimuove il bordo visivo inutile */
#resultsTable th {
 font-weight: 600;
 color: #1E3A8A;
}


/* Rende visibili le righe al passaggio del mouse */
#resultsTable tbody tr:hover {
 background-color: #f2f4ff;
}


/* Rende la tabella più compatta nei dispositivi mobili */
@media (max-width: 768px) {
 #resultsTable th,
 #resultsTable td {
   font-size: 0.9rem;
   padding: 6px 8px;
 }
}
.accordion-button {
   font-weight: 500;
   font-size: 0.9rem;
   background: #f8f9fa;
   color: #212529;
   padding: 0.7rem 1rem;
}


.accordion-button:not(.collapsed) {
   color: #0c63e4;
   background-color: #e7f1ff;
   box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}


.accordion-item {
   background-color: #fff;
   border: 1px solid rgba(0,0,0,.125);
   margin-bottom: 3px;
   width: 100%;
}


.list-group-item {
   position: relative;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 1.2rem 1.5rem;
   background-color: transparent;
   border: none;
   border-bottom: 1px solid #eee;
}


.list-group-item:last-child {
   border-bottom: none;
}


.list-group-item .race-title {
   font-size: 1.1rem;
   font-weight: 500;
   color: #333;
   flex-grow: 1;
   padding: 0 1.5rem;
}


.list-group-item .race-title small {
   color: #888;
   font-size: 0.9em;
   font-weight: 400;
   margin-left: 0.5rem;
}


.list-group-item .date {
   color: #666;
   font-size: 0.95rem;
   min-width: 100px;
}


.list-group-item .category {
   color: #888;
   font-size: 0.9rem;
   display: block;
   margin-top: 0.3rem;
}


.badge {
   display: inline-block;
   min-width: 50px;
   padding: 0.3rem 0.6rem;
   font-size: 0.9rem;
   font-weight: 500;
   border-radius: 5px;
   text-align: center;
   background: #f0f0f0;
   color: #666;
}


.badge[style*="background-color:#FFD700"] {
   background: #FFD700 !important;
   color: #000 !important;
}


.badge[style*="background-color:#C0C0C0"] {
   background: #C0C0C0 !important;
   color: #000 !important;
}


.badge[style*="background-color:#CD7F32"] {
   background: #CD7F32 !important;
   color: #fff !important;
}


/* Stile menu a tendina coerente con il tema */
.dropdown-menu {
 border-radius: 10px;
 border: none;
 box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
 background: white;
 padding: 8px 0;
}


.dropdown-menu .dropdown-item {
 font-weight: 500;
 color: #1E3A8A;
 transition: all 0.25s ease;
}


.dropdown-menu .dropdown-item:hover {

background-color: #1E3A8A;
 color: white;
}
.sponsor-section {
   text-align: center;
   padding: 10px 0 6px;
   background-color: #f8f9fa;
}

.sponsor-divider {
   border: 0;
   border-top: 1px solid rgba(17, 24, 39, 0.15);
   background: linear-gradient(90deg, transparent, rgba(17, 24, 39, 0.12), transparent);
   width: 100%;
   max-width: 600px;
   margin: 4px auto 4px;
}

@media (max-width: 768px) {
   .sponsor-section {
      padding: 32px 12px 6px;
   }
   
   .sponsor-section .section-title {
       font-size: 1.5rem;
   }
   
   /* Secondary sponsors: compact grid on mobile */
   .sponsor-card {
      height: auto;
      min-height: 96px;
      padding: 12px;
   }

   .sponsor-card img {
      max-height: 50px;
      max-width: 80%;
      margin: 0 auto;
   }

   /* Featured (title/main) sponsors: keep larger cards */
   .sponsor-card.featured {
      height: auto;
      min-height: 100px;
      padding: 18px;
   }

   .sponsor-card.featured img {
      max-height: 110px;
      max-width: 100%;
      margin: 0 auto;
   }
   
   /* Featured sponsors: 2 per row; the 3rd goes below centered */
   #sponsorFeatured {
      overflow: visible;
      /* minimal spacing between cards, like the mock */
      --bs-gutter-x: 4px;
      --bs-gutter-y: 0px;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      justify-content: center !important;
   }

   /* Bootstrap adds margin-top to columns via `.row > *`; override it */
   #sponsorFeatured > div {
      margin-top: 0 !important;
   }

   #sponsorFeatured .sponsor-card.featured {
      margin-bottom: 0;
   }

   /* Top row: remove any residual margins */
   #sponsorFeatured > div:nth-child(-n + 2) {
      margin: 0 !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
      padding-bottom: 0 !important;
   }

   #sponsorFeatured > div:nth-child(-n + 2) .sponsor-card.featured {
      margin: 0 !important;
   }

   /* Bottom (3rd) featured sponsor: no padding */
   #sponsorFeatured > div:nth-child(3) {
      margin-top: 0 !important;
   }

   #sponsorFeatured > div:nth-child(3) .sponsor-card.featured {
      padding: 0 !important;
   }

   /* Secondary sponsors: compact grid on mobile - 3 per row */
   #sponsorSecondary {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 8px !important;
      justify-content: center !important;
      
      margin: 0 !important;
      padding: 0 2px 10px !important;

      /* neutralize bootstrap row gutters */
      --bs-gutter-x: 0px !important;
      --bs-gutter-y: 0px !important;
   }

   #sponsorSecondary > div {
      flex: 0 0 calc(33.333% - 6px) !important;
      padding: 0 !important;
      width: auto !important;
      max-width: none !important;
      margin: 0 !important;
   }

   .sponsor-divider {
      margin: 10px auto 14px;
      max-width: 520px;
   }
}


.section-title {
   font-size: 2rem;
   margin-bottom: 24px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   color: #1b1b3a;
   position: relative;
   text-align: center;
}

.section-title::after {
   content: "";
   display: block;
   width: 80px;
   height: 4px;
   background: linear-gradient(90deg, #007bff, #ff4fbf);
   margin: 10px auto 0;
   border-radius: 2px;
}

/* Secondary sponsors: force 3 per row globally */
#sponsorSecondary {
   display: flex !important;
   flex-wrap: wrap !important;
   gap: 8px !important;
   justify-content: center !important;
}

#sponsorSecondary > div {
   flex: 0 0 calc(33.333% - 6px) !important;
   max-width: calc(33.333% - 6px) !important;
   padding: 0 !important;
}

/* Featured sponsors: lateral spacing */
#sponsorFeatured {
   --bs-gutter-x: 18px;
   --bs-gutter-y: 6px;
}

/* Sponsor cards base (secondary) */
.sponsor-card {
   background-color: white;
   border-radius: 8px;
   padding: 0px;
   height: 80px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 0;
   transition: transform 0.2s ease, box-shadow 0.2s ease;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.sponsor-card:hover {
   transform: translateY(-2px);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


.sponsor-card img {
   max-height: 75px;
   max-width: 90%;
   object-fit: contain;
}


/* Featured sponsor cards (primary - bigger than secondary) */
.sponsor-card.featured {
   transform: scale(1.02);
   box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
   border: 3px solid rgba(96, 165, 250, 0.45);
   height: 100px;
   border-radius: 12px;
}

.sponsor-card.featured img {
   max-height: 82px;
   max-width: 92%;
}


.sponsor-card.featured:hover {
   transform: scale(1.05);
}


/* Secondary sponsors rows */
.sponsor-row {
   display: flex;
   justify-content: center;
   width: 100%;
   margin-top: 15px;
   gap: 20px;
   flex-wrap: wrap;
}


.sponsor {
   background-color: white;
   border-radius: 10px;
   padding: 10px;
   display: flex;
   justify-content: center;
   align-items: center;
   height: 120px;
   width: 160px;
   transition: all 0.3s ease;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
   flex-shrink: 0;
}

/* Responsive sponsor su mobile */
@media (max-width: 768px) {
   .sponsor-row {
      gap: 4px !important;
      margin-top: 4px !important;
   }
   .sponsor {
       width: 140px;
       height: 100px;
   }
   
   .sponsor img {
       max-width: 120px !important;
       max-height: 70px !important;
   }
}
#prx img{
   max-width: 200px;
   max-height: 150px;
   object-fit: contain;
   opacity: 0.9;
   transition: all 0.3s ease;
}
.sponsor img {
   max-width: 250px;
   max-height: 90px;
   object-fit: contain;
   opacity: 0.9;
   transition: all 0.3s ease;
}


.sponsor:hover {
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   transform: translateY(-3px);
}


.sponsor:hover img {
   filter: none;
   opacity: 1;
}
/* News cards — UAE Team Emirates inspired aesthetic */
.news-section-title {
   text-align: center;
   font-style: italic;
   font-weight: 700;
   font-size: 1.9rem;
   letter-spacing: 1px;
   margin-bottom: 28px;
   color: #111827;
}


.news-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 32px;
   max-width: 1200px;
   margin: 0 auto 40px auto;
   padding: 0 20px;
}

/* Carosello notizie atleta */
.news-carousel {
   position: relative;
}

.news-track {
   display: flex;
   gap: 24px;
   overflow: hidden;
   scroll-behavior: smooth;
   scroll-snap-type: x mandatory;
   padding-bottom: 6px;
}

.news-track .news-card {
   flex: 0 0 clamp(260px, 32vw, 360px);
   scroll-snap-align: start;
}

.news-carousel-controls {
   position: absolute;
   top: 50%;
   left: 0;
   width: 100%;
   display: flex;
   justify-content: space-between;
   transform: translateY(-50%);
   pointer-events: none;
}

.news-nav {
   background: rgba(255,255,255,0.9);
   border: 1px solid rgba(0,0,0,0.08);
   border-radius: 50%;
   width: 40px;
   height: 40px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 4px 12px rgba(0,0,0,0.08);
   color: #1E3A8A;
   cursor: pointer;
   pointer-events: auto;
   transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.news-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.news-nav:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

@media (max-width: 768px) {
   .news-track { gap: 16px; }
   .news-track .news-card { flex-basis: 82%; }
   .news-carousel-controls { padding: 0 6px; }
}


.news-card {
   background: #fff;
   border-radius: 6px;
   overflow: hidden;
   display: flex;
   flex-direction: column;
   height: 100%;
   box-shadow: 0 18px 40px rgba(11,20,34,0.06);
   transition: transform 360ms cubic-bezier(.2,.8,.2,1), box-shadow 360ms ease;
}


.news-card:hover {
   transform: translateY(-12px);
   box-shadow: 0 40px 80px rgba(11,20,34,0.12);
}


.news-image-container {
   position: relative;
   width: 100%;
   padding-bottom: 66.6667%; /* 3:2 */
   overflow: hidden;
   background: #000;
}


.news-image {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 600ms ease, filter 360ms ease;
}


.news-card:hover .news-image { transform: scale(1.06); filter: brightness(0.86); }


.news-accent {
   position: absolute;
   left: 0; right: 0; bottom: 0;
   background: linear-gradient(90deg,#b91c1c,#991516);
   color: #fff;
   padding: 18px 20px;
   text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}


.news-accent .kicker {
   font-size: 0.78rem;
   font-weight: 700;
   text-transform: uppercase;
   opacity: 0.95;
   margin-bottom: 6px;
}


.news-accent .headline {
   font-size: 1.05rem;
   font-weight: 800;
   line-height: 1.15;
   margin: 0;
   text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.5);
}


.news-content {
   padding: 18px 20px;
   background: #fff;
   display: flex;
   flex-direction: column;
   gap: 12px;
}

.news-card .card-title {
   text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.news-excerpt {
   color: #374151;
   font-size: 0.95rem;
   line-height: 1.6;
   margin: 0;
   display: -webkit-box;
   -webkit-line-clamp: 3;
   line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden;
}


.news-footer {
   margin-top: auto;
}


.news-cta {
   color: #b91c1c;
   font-weight: 700;
   text-decoration: none;
}


@media (max-width: 992px) {
   .news-grid { grid-template-columns: repeat(2, 1fr); }
}


@media (max-width: 576px) {
   .news-grid { grid-template-columns: 1fr; }
   .news-accent { padding: 12px 14px; }
   .news-content { padding: 14px; }
   .news-card {
      border: 2px solid rgba(15, 23, 42, 0.15);
      box-shadow: 0 14px 32px rgba(11, 20, 34, 0.15);
   }
}
/* card img responsive override */
.card img {
   width: 100%;
   max-width: 100%;
   height: auto;
   max-height: 240px;
   object-fit: cover;
   object-position: center;
   border-bottom: 4px solid #ff4fbf;
}

/* Immagini responsive */
@media (max-width: 768px) {
   .card img {
       height: 180px;
   }
   
   .upcoming-card img {
       height: 150px;
   }
   
   .news-card img,
   .news-img {
       height: auto !important;
       max-height: 240px;
       object-fit: cover;
       aspect-ratio: 16 / 9;
   }
}

/* Adattamento immagini news per orientamenti diversi */
.news-card .news-img {
   width: 100%;
   height: auto;
   aspect-ratio: 16 / 9;
   max-height: 320px;
   object-fit: cover;
   object-position: center;
   border-bottom: 4px solid #ff4fbf;
}

/* Layout orizzontale nella lista Notizie */
.news-card.d-flex .news-img {
   width: 240px;
   height: 170px;
   max-height: none;
   aspect-ratio: auto;
   border-bottom: none;
   border-radius: 12px;
   object-fit: cover;
   object-position: center;
   margin-right: 16px;
   flex-shrink: 0;
}

.news-hero {
   width: 100%;
   background: #000;
   border-radius: 16px;
   overflow: hidden; /* Mantiene il taglio quando l'immagine è orizzontale */
   margin-bottom: 28px;
   display: block;
   object-fit: cover;
   object-position: center;
   height: clamp(260px, 75vh, 950px);
}

.news-hero.is-portrait {
   height: auto;
   max-height: 85vh;
   width: auto;
   max-width: 100%;
   object-fit: contain;
   object-position: center;
   margin-left: auto;
   margin-right: auto;
}

.news-hero.is-landscape {
   height: clamp(260px, 75vh, 950px);
   object-fit: cover;
   object-position: center;
}

/* Spaziatura maggiore quando restano solo le esordienti (2 card) */
/* --- Cicliste filter buttons — brand override --- */
#filter-buttons .filter-btn {
   border: 2px solid transparent;
   border-radius: 24px;
   padding: 8px 20px;
   font-weight: 600;
   font-size: 0.9rem;
   letter-spacing: 0.02em;
   transition: all 0.25s ease;
   background: #fff;
   color: #1E3A8A;
   box-shadow: 0 2px 8px rgba(30,58,138,0.06);
}
#filter-buttons .filter-btn:hover {
   border-color: rgba(236,72,153,0.4);
   color: #EC4899;
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(236,72,153,0.12);
}
#filter-buttons .filter-btn.active,
#filter-buttons .filter-btn.btn-primary {
   background: linear-gradient(135deg, #1E3A8A, #EC4899);
   color: #fff;
   border-color: transparent;
   box-shadow: 0 4px 14px rgba(236,72,153,0.3);
}
#filter-buttons .filter-btn.active:hover {
   transform: translateY(-1px);
   box-shadow: 0 6px 18px rgba(236,72,153,0.35);
}

/* Spaziatura esordienti */
#athlete-grid.esordienti-only {
   row-gap: 74px !important;
   column-gap: 80px;
   justify-content: space-evenly !important;
   max-width: 1200px;
   margin-left: auto;
   margin-right: auto;
}

#athlete-grid.esordienti-only > [data-category] {
   flex: 0 1 300px;
}

/* Spaziatura adattiva quando rimangono poche card visibili */
#athlete-grid.few-2 {
   row-gap: 60px !important;
   column-gap: 120px;
   justify-content: center !important;
}

#athlete-grid.few-3 {
   row-gap: 60px !important;
   column-gap: 60px;
   justify-content: center !important;
}


/* (duplicate section-title and sponsor-section removed — kept at ~line 1403) */


/* (duplicate footer removed — canonical version at top of file) */

/* --- News hero carousel --- */
.news-hero {
   position: relative;
   height: 110vh;
   min-height: 560px;
   background: transparent;
   color: #fff;
   display: flex;
   align-items: stretch;
   overflow: hidden;
   margin-top: 64px;
}

.news-carousel-shell {
   position: relative;
   flex: 1;
   padding: 0;
   isolation: isolate;
}
@media (max-width: 754px) {
   .news-carousel-shell {
   position: relative;
   flex: 1;
   isolation: isolate;
}
}
.news-carousel {
   position: relative;
   width: 100%;
   height: 100%;
}

.news-slide {
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: flex-start;
   opacity: 0;
   transform: translateY(18px);
   transition: opacity 0.65s ease, transform 0.65s ease;
}

.news-slide.is-active {
   opacity: 1;
   transform: translateY(0);
   z-index: 2;
}

.news-slide__image {
   position: absolute;
   inset: 0;
   background-size: cover;
   background-position: center;
   filter: saturate(1.05);
}

.news-slide::after {
   content: "";
   position: absolute;
   inset: 0;
   background: transparent;
   z-index: 1;
}

.news-slide__body {
   position: relative;
   z-index: 2;
   padding: clamp(24px, 5vw, 52px);
   max-width: 840px;
   width: min(92%, 880px);
   text-align: left;
   background: transparent;
}

.news-kicker {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 0;
   background: transparent;
   border: none;
   border-radius: 0;
   font-size: 0.95rem;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   color: rgba(255, 255, 255, 0.85);
   font-weight: 600;
   margin-bottom: 16px;
   text-shadow:
      0 2px 10px rgba(0, 0, 0, 0.9),
      0 0 2px rgba(0, 0, 0, 0.9);
}

.news-date {
   margin: 0 0 16px;
   color: rgba(255, 255, 255, 0.8);
   font-size: 0.9rem;
   font-weight: 500;
   letter-spacing: 0.05em;
   text-shadow:
      0 2px 10px rgba(0, 0, 0, 0.9),
      0 0 2px rgba(0, 0, 0, 0.9);
}

.news-title {
   margin: 0 0 24px;
   font-size: clamp(3.5rem, 8vw, 6.5rem);
   line-height: 0.95;
   letter-spacing: -0.02em;
   color: #fff;
   text-shadow:
      0 6px 24px rgba(0, 0, 0, 0.95),
      0 2px 8px rgba(0, 0, 0, 0.9),
      0 0 4px rgba(0, 0, 0, 0.85);
   font-weight: 900;
   text-transform: uppercase;
   font-family: 'Montserrat', 'Poppins', sans-serif;
}

.news-text {
   display: none;
}

.news-actions {
   margin-top: 24px;
   margin-bottom: 60px;
   display: flex;
   gap: 12px;
   align-items: center;
   justify-content: flex-start;
   background: transparent;
}

.news-cta-button {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   padding: 16px 32px;
   border-radius: 0;
   background: linear-gradient(135deg, #EC4899, #F472B6);
   border: none;
   color: #fff;
   text-decoration: none;
   font-weight: 700;
   font-size: clamp(0.7rem, 1.2vw, 1.05rem);
   letter-spacing: 0.02em;
   box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
   transition: all 0.3s ease;
   white-space: nowrap;
}

.news-cta-button:hover {
   background: linear-gradient(135deg, #F472B6, #EC4899);
   transform: translateY(-3px);
   box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.news-overlay-bar {
   position: absolute;
   right: clamp(24px, 5vw, 52px);
   bottom: 32px;
   display: flex;
   align-items: center;
   justify-content: flex-end;
   gap: 6px;
   z-index: 3;
   background: transparent !important;
}

.news-cta {
   background: transparent !important;
   padding: 0;
   margin: 0;
}

.news-nav {
   display: flex;
   align-items: center;
   gap: 16px;
   padding: 0 !important;
   margin: 0;
   border-radius: 0;
   background: transparent !important;
   backdrop-filter: none !important;
   border: none !important;
   box-shadow: none !important;
}

.news-arrow {
   width: 60px;
   height: 60px;
   border-radius: 0;
   border: none;
   background: linear-gradient(135deg, #EC4899, #F472B6);
   color: #fff;
   font-size: 1.4rem;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: all 0.3s ease;
   box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.news-arrow:hover {
   background: linear-gradient(135deg, #F472B6, #EC4899);
   transform: scale(1.08);
   box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.news-dots {
   display: none !important;
   opacity: 0;
   visibility: hidden;
   width: 0;
   height: 0;
   overflow: hidden;
}

.news-dot {
   width: 14px;
   height: 14px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.5);
   border: 2px solid rgba(255, 255, 255, 0.7);
   position: relative;
   overflow: hidden;
   padding: 0;
   cursor: pointer;
   transition: all 0.3s ease;
}

.news-dot.is-active {
   border-color: #fff;
   background: #fff;
   transform: scale(1.4);
   box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.news-dot .dot-progress {
   position: absolute;
   top: 0;
   left: 0;
   bottom: 0;
   width: 0;
   background: #fff;
   opacity: 0.95;
   border-radius: 999px;
}

.news-empty {
   color: #fff;
   opacity: 0.85;
   font-size: 1.1rem;
   padding: 30px;
   text-align: center;
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
}

.section-shell {
   background: #f7f8ff;
}

@media (max-width: 1024px) {
   .news-hero {
      height: 90vh;
   }

   .news-slide__body {
      width: 100%;
      max-width: 880px;
      padding: clamp(16px, 5vw, 32px);
   }

   .news-overlay-bar {
      flex-direction: row;
      align-items: center;
      gap: 6px;
   }
}

@media (max-width: 768px) {
   .news-hero {
      min-height: 600px;
      height: 100vh;
      margin-top: 70px;
      padding: 0 12px;
   }

   .news-slide {
      align-items: center;
      border-radius: 8px;
      overflow: hidden;
   }

   .news-slide__body {
      max-width: 100%;
      width: 100%;
      text-align: left;
      padding: clamp(20px, 5vw, 40px);
   }

   .news-overlay-bar {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      right: auto;
      bottom: 24px;
      flex-direction: row;
      gap: 14px;
   }

   .news-nav {
      width: auto;
   }

   .news-cta-button {
      padding: 14px 24px;
      font-size: 0.9rem;
   }

   .news-title {
      font-size: clamp(2.5rem, 9vw, 4rem);
   }

   .news-arrow {
      width: 50px;
      height: 50px;
   }
}

@media (max-width: 560px) {
   .news-nav {
      gap: 10px;
   }

   .news-arrow {
      width: 45px;
      height: 45px;
      font-size: 1.1rem;
   }

   .news-title {
      font-size: clamp(2.2rem, 10vw, 3.5rem);
   }

   .news-kicker {
      font-size: 0.85rem;
   }

   .news-cta-button {
      padding: 12px 20px;
      font-size: 0.85rem;
   }
}

/* Styling specifico per la pagina Progetto */
.progetto-content.ocmen {
   padding: 28px 32px;
   background: linear-gradient(180deg, #ffffff, #fbfdff);
   border-left: 6px solid #EC4899;
   border-radius: 12px;
   box-shadow: 0 10px 30px rgba(13, 38, 93, 0.06);
   color: #243444;
   font-size: 1.05rem;
   line-height: 1.8;
}

.progetto-content.ocmen p {
   margin-bottom: 1.15rem;
}

.progetto-content.ocmen p:first-child {
   font-weight: 600;
   color: #0f172a;
}

.logo-link {
   display: inline-block;
}
.logo-link img {
   transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logo-link:hover img {
   transform: translateY(-2px) scale(1.02);
   box-shadow: 0 8px 26px rgba(13, 38, 93, 0.08);
}

/* Pulsante Progetti: nessun sfondo statico (niente bordo visibile), mantiene hover generico */
nav ul li a[href$="Progetto.html"] {
   background: transparent !important;
   border: none !important;
   box-shadow: none !important;
   border-radius: 8px;
}

/* Ensure the pink side bar and section underline are visible on small screens and in PHP pages */
@media (max-width: 1024px) {
   div h2,
   .section-title,
   h2.section-title {
      border-left: 6px solid var(--secondary-color) !important;
      padding-left: 12px !important;
      margin-left: 0 !important;
      text-align: center !important;
   }

   .section-title::after {
      display: block !important;
      width: 60px !important;
      height: 4px !important;
      margin: 8px auto 0 auto !important;
   }
}

/* section-title pink border only on matching elements */

/* ═══════════════════════════════════════════════
   NOTIZIA CARD - Stili globali per coerenza
   ═══════════════════════════════════════════════ */

.notizie-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 28px;
}

.notizia-card {
   background: #fff;
   border-radius: 14px;
   overflow: hidden;
   box-shadow: 0 4px 20px rgba(15,23,42,0.07);
   transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
   display: flex;
   flex-direction: column;
}

.notizia-card:hover {
   transform: translateY(-6px);
   box-shadow: 0 16px 40px rgba(15,23,42,0.13);
}

.notizia-card__img-wrap {
   position: relative;
   width: 100%;
   aspect-ratio: 16 / 10;
   overflow: hidden;
   background: #e2e8f0;
}

.notizia-card__img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.5s ease;
}

.notizia-card:hover .notizia-card__img {
   transform: scale(1.06);
}

.notizia-card__date-badge {
   position: absolute;
   top: 12px;
   left: 12px;
   background: linear-gradient(135deg, #1E3A8A, #3B82F6);
   color: #fff;
   padding: 6px 14px;
   border-radius: 20px;
   font-size: 0.78rem;
   font-weight: 700;
   letter-spacing: 0.02em;
   box-shadow: 0 2px 8px rgba(30,58,138,0.3);
}

.notizia-card__body {
   padding: 20px 22px 24px;
   display: flex;
   flex-direction: column;
   flex: 1;
}

.notizia-card__title {
   font-size: 1.1rem;
   font-weight: 700;
   color: #1b1b3a;
   margin: 0 0 10px;
   line-height: 1.35;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.notizia-card__excerpt {
   font-size: 0.92rem;
   color: #64748b;
   line-height: 1.6;
   flex: 1;
   display: -webkit-box;
   -webkit-line-clamp: 3;
   line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden;
   margin: 0 0 16px;
}

.notizia-card__link {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   font-size: 0.88rem;
   font-weight: 700;
   color: #EC4899;
   text-decoration: none;
   transition: gap 0.2s ease, color 0.2s ease;
   margin-top: auto;
}

.notizia-card__link:hover {
   color: #1E3A8A;
   gap: 10px;
}

.notizia-card__link i {
   font-size: 0.75rem;
   transition: transform 0.2s ease;
}

.notizia-card:hover .notizia-card__link i {
   transform: translateX(2px);
}

@media (max-width: 992px) {
   .notizie-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

@media (max-width: 768px) {
   .notizie-grid { 
      grid-template-columns: 1fr; 
      gap: 16px;
      padding: 24px 0 40px;
   }
   
   .notizia-card__body { 
      padding: 16px 18px 20px; 
   }
   
   .notizia-card__title {
      font-size: 1rem;
   }
   
   .notizia-card__excerpt {
      font-size: 0.88rem;
   }
   
   .notizia-card__date-badge {
      top: 10px;
      left: 10px;
      padding: 5px 12px;
      font-size: 0.75rem;
   }
}

@media (max-width: 576px) {
   .notizie-grid {
      gap: 12px;
      padding: 16px 0 32px;
   }
   
   .notizia-card {
      border-radius: 10px;
   }
   
   .notizia-card__img-wrap {
      aspect-ratio: 16 / 12;
   }
   
   .notizia-card__body {
      padding: 14px 14px 16px;
   }
   
   .notizia-card__title {
      font-size: 0.95rem;
      margin: 0 0 8px;
      -webkit-line-clamp: 2;
   }
   
   .notizia-card__excerpt {
      font-size: 0.85rem;
      line-height: 1.5;
      -webkit-line-clamp: 2;
      margin: 0 0 12px;
   }
   
   .notizia-card__date-badge {
      top: 8px;
      left: 8px;
      padding: 4px 10px;
      font-size: 0.7rem;
   }
   
   .notizia-card__link {
      font-size: 0.8rem;
      gap: 4px;
   }
   
   .notizia-card__link:hover {
      gap: 6px;
   }

   /* Athlete news page container optimization */
   #athlete-news {
      padding: 0 !important;
      margin-top: 1rem !important;
   }
   
   #athlete-news h2 {
      font-size: 1.3rem !important;
      margin-bottom: 1.5rem !important;
      padding: 0 16px;
   }
   
   #athlete-news .notizie-grid {
      padding: 0 16px;
   }
}

@media (max-width: 480px) {
   .notizie-grid {
      gap: 10px;
      padding: 12px 0 24px;
   }
   
   .notizia-card__body {
      padding: 12px 12px 14px;
   }
   
   .notizia-card__title {
      font-size: 0.9rem;
      margin: 0 0 6px;
   }
   
   .notizia-card__excerpt {
      font-size: 0.8rem;
      -webkit-line-clamp: 2;
      margin: 0 0 10px;
   }
   
   .notizia-card__date-badge {
      top: 6px;
      left: 6px;
      padding: 3px 8px;
      font-size: 0.65rem;
   }
   
   .notizia-card__link {
      font-size: 0.75rem;
   }

   #athlete-news h2 {
      font-size: 1.1rem !important;
      margin-bottom: 1.2rem !important;
      padding: 0 12px;
   }
   
   #athlete-news .notizie-grid {
      padding: 0 12px;
   }
}

@media (max-width: 480px) {
   .notizie-grid {
      gap: 10px;
      padding: 12px 0 24px;
   }
   
   .notizia-card__body {
      padding: 12px 12px 14px;
   }
   
   .notizia-card__title {
      font-size: 0.9rem;
      margin: 0 0 6px;
   }
   
   .notizia-card__excerpt {
      font-size: 0.8rem;
      -webkit-line-clamp: 2;
      margin: 0 0 10px;
   }
   
   .notizia-card__link {
      font-size: 0.75rem;
   }

   #athlete-news h2 {
      font-size: 1.1rem !important;
      margin-bottom: 1.2rem !important;
      padding: 0 12px;
   }
   
   #athlete-news .notizie-grid {
      padding: 0 12px;
   }
}


