.home-structure{background:var(--bg);}
.home-structure .section{padding:42px 0;}
.home-structure-season-section{padding-top:44px;}
.home-structure-season-head,
.home-structure-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px;}
.home-structure-season-head>span,
.home-structure-section-head>span{color:var(--red);font-size:13px;font-weight:1000;letter-spacing:.12em;text-transform:uppercase;}
.home-structure-team-switch{display:inline-flex;gap:6px;padding:6px;border:1px solid var(--line);border-radius:999px;background:#fff;box-shadow:0 14px 38px rgba(9,9,11,.06);}
.home-structure-team-switch button{border-radius:999px;background:transparent;color:#52525b;padding:10px 15px;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.08em;}
.home-structure-team-switch button.active{background:var(--ink);color:#fff;}
.home-structure-card-grid{display:grid;grid-template-columns:1fr 1fr .98fr;gap:22px;}
.home-structure-card{min-height:276px;border-radius:26px;display:flex;flex-direction:column;gap:16px;}
.home-structure-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:2px;}
.home-structure-card-head span{font-size:17px;font-weight:1000;letter-spacing:-.04em;}
.home-structure-card-head button{border-radius:999px;background:#f4f4f5;color:#18181b;padding:8px 12px;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.08em;}
.home-structure-match{border:1px solid var(--line);border-radius:22px;background:#fff;padding:16px;}
.home-structure-card .home-structure-match{box-shadow:0 10px 28px rgba(9,9,11,.05);}
.home-structure-match-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#71717a;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.06em;}
.home-structure-teams{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;margin-top:12px;}
.home-structure-teams b{min-width:0;font-size:15px;line-height:1.08;font-weight:1000;overflow:hidden;text-overflow:ellipsis;}
.home-structure-teams b:last-child{text-align:right;}
.home-structure-teams span{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--ink);color:#fff;padding:7px 11px;font-size:12px;font-weight:1000;}
.home-structure-match p{margin:12px 0 0;color:#71717a;font-size:13px;line-height:1.35;font-weight:750;}
.home-structure-card-foot{margin-top:auto;border-top:1px solid var(--line);padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.home-structure-card-foot b{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#71717a;}
.home-structure-card-foot span{font-weight:1000;color:var(--ink);}
.home-structure-standing-list{display:grid;gap:8px;}
.home-structure-standing-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:10px 12px;}
.home-structure-standing-row>div{min-width:0;display:flex;align-items:center;gap:9px;}
.home-structure-standing-row span{width:22px;height:22px;border-radius:8px;background:#f4f4f5;color:#52525b;display:grid;place-items:center;font-size:11px;font-weight:1000;}
.home-structure-standing-row img{width:24px;height:24px;object-fit:contain;border-radius:6px;background:#fff;}
.home-structure-standing-row b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:1000;}
.home-structure-standing-row strong{font-size:14px;font-weight:1000;}
.home-structure-standing-row.is-cus{background:linear-gradient(105deg,#4c0d12,#991b1b);color:#fff;border-color:rgba(255,255,255,.2);}
.home-structure-standing-row.is-cus span{background:rgba(255,255,255,.16);color:#fff;}
.home-structure-card-cup{position:relative;overflow:hidden;background:radial-gradient(circle at 82% 18%,rgba(255,255,255,.22),transparent 31%),linear-gradient(135deg,#180506,#5f1115 58%,#b91c1c);color:#fff;border-color:rgba(255,255,255,.16);}
.home-structure-card-cup:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.06),transparent 38%);pointer-events:none;}
.home-structure-card-cup>*{position:relative;z-index:1;}
.home-structure-card-cup .home-structure-card-head button{background:#fff;color:#09090b;}
.home-structure-card-cup h3{margin:0;font-size:28px;line-height:.96;letter-spacing:-.055em;color:#fff;}
.home-structure-card-cup p{margin:0;color:rgba(255,255,255,.72);font-weight:850;}
.home-structure-card-cup .home-structure-match{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.16);box-shadow:none;}
.home-structure-card-cup .home-structure-match-top,
.home-structure-card-cup .home-structure-match p{color:rgba(255,255,255,.7);}
.home-structure-card-cup .home-structure-teams span{background:#fff;color:#09090b;}
.home-structure-news-section{padding-top:8px;}
.home-structure-news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.home-structure-news-card{border-radius:26px;}
.home-structure-news-image{height:210px;background:#e7e1d7;overflow:hidden;}
.home-structure-news-image img{width:100%;height:100%;object-fit:cover;}
.home-structure-news-card h3{font-size:22px;line-height:1.02;letter-spacing:-.045em;margin:14px 0 8px;font-weight:1000;}
.home-structure-news-card .muted{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 15px;}
.home-structure-empty{border:1px dashed var(--line);border-radius:18px;padding:18px;color:#71717a;font-weight:800;background:#fff;}
.home-structure-cta-section{padding-top:24px;padding-bottom:92px;}
.home-structure-cta-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.home-structure-cta-card{position:relative;min-height:260px;border-radius:22px;overflow:hidden;display:grid;place-items:center;padding:28px;color:#fff;text-align:center;background:#111;box-shadow:var(--shadow);}
.home-structure-cta-card:before{content:"";position:absolute;inset:0;background-size:cover;background-position:center;filter:saturate(.88);transform:scale(1.01);}
.home-structure-cta-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.28),rgba(0,0,0,.76));}
.home-structure-cta-play:before{background-image:url('/assets/foto-sito.webp?auto=format&fit=crop&w=1200&q=80');}
.home-structure-cta-partner:before{background-image:url('/assets/team.jpg');filter:grayscale(1) contrast(1.08);}
.home-structure-cta-events:before{background-image:url('/assets/foto-sito.webp?auto=format&fit=crop&w=1200&q=80');filter:hue-rotate(165deg) saturate(.8);}
.home-structure-cta-card>div{position:relative;z-index:1;max-width:330px;}
.home-structure-cta-card h3{margin:0 0 12px;color:#fff;font-size:28px;line-height:.95;font-weight:1000;letter-spacing:-.055em;text-transform:uppercase;}
.home-structure-cta-card p{margin:0 auto 22px;color:rgba(255,255,255,.82);font-size:14px;line-height:1.42;font-weight:750;}
.home-structure-cta-card button{background:#ffd018;color:#111;border-radius:999px;padding:12px 17px;font-size:11px;font-weight:1000;text-transform:uppercase;letter-spacing:.08em;}
.home-structure .social-home-section{padding-top:44px;}
@media (max-width:980px){
  .home-structure-card-grid,.home-structure-news-grid,.home-structure-cta-grid{grid-template-columns:1fr;}
  .home-structure-card{min-height:0;}
  .home-structure-cta-section{padding-bottom:70px;}
}
@media (max-width:640px){
  .home-structure .section{padding:32px 0;}
  .home-structure-season-section{padding-top:28px;}
  .home-structure-season-head,.home-structure-section-head{align-items:flex-start;flex-direction:column;}
  .home-structure-team-switch{width:100%;display:grid;grid-template-columns:1fr 1fr;}
  .home-structure-team-switch button{padding:11px 10px;font-size:11px;}
  .home-structure-card{border-radius:22px;}
  .home-structure-news-image{height:190px;}
  .home-structure-cta-card{min-height:238px;}
  .home-structure-cta-card h3{font-size:25px;}
}


/* v17: home News row = 3 news + standings card; Stagione section removed from home render */
.home-structure-news-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.home-structure-news-standing-card{
  min-height:100%;
  border-radius:26px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.home-structure-news-standing-card .home-structure-standing-list{
  gap:8px;
}
.home-structure-news-standing-card .home-structure-standing-row{
  padding:9px 10px;
}
.home-structure-news-standing-card .home-structure-standing-row b{
  font-size:12px;
}
.home-structure-news-standing-card .home-structure-card-foot{
  margin-top:auto;
}
@media (max-width:1180px){
  .home-structure-news-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:640px){
  .home-structure-news-grid{
    grid-template-columns:1fr;
  }
}


/* v36: news/classifica labels travel with their own cards */
.home-structure-news-cell{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:22px;
}
.home-structure-news-cell>.eyebrow{
  width:max-content;
  margin-bottom:0;
  cursor:pointer;
}
.home-structure-news-label-spacer{
  display:block;
  height:31px;
  flex:0 0 31px;
}
.home-structure-news-cell>.card{
  height:100%;
}
@media (max-width:640px) and (orientation:portrait){
  .home-structure-news-cell{
    gap:14px;
  }
  .home-structure-news-label-spacer{
    display:none;
  }
}


/* v43: equal height home cards, including news, standings, CTA and social cards */
.home-structure{
  --cus-home-card-height:430px;
}
.home-structure-news-grid,
.home-structure-cta-grid,
.home-structure .social-feed-grid{
  align-items:stretch;
}
.home-structure-news-cell{
  height:100%;
}
.home-structure-news-cell>.card,
.home-structure-cta-card,
.home-structure .social-feed-card{
  height:100%;
  min-height:var(--cus-home-card-height);
}
.home-structure-news-card{
  display:flex;
  flex-direction:column;
}
.home-structure-news-card .card-pad{
  display:flex;
  flex:1;
  flex-direction:column;
}
.home-structure-news-card .card-pad .badge{
  width:max-content;
}
.home-structure .social-feed-card{
  display:flex;
  flex-direction:column;
}
.home-structure .social-feed-card>a,
.home-structure .social-feed-static{
  display:flex;
  flex:1;
  flex-direction:column;
  min-height:100%;
}
.home-structure .social-feed-body{
  display:flex;
  flex:1;
  flex-direction:column;
}
.home-structure .social-feed-body small{
  margin-top:auto;
  padding-top:12px;
}
@media (max-width:1180px){
  .home-structure{
    --cus-home-card-height:410px;
  }
}
@media (max-width:640px){
  .home-structure{
    --cus-home-card-height:380px;
  }
}


/* v44: keep equal heights for home news/classifica/social, but restore original CTA dimensions */
.home-structure-cta-card{
  height:auto!important;
  min-height:260px!important;
}
@media (max-width:640px){
  .home-structure-cta-card{
    min-height:238px!important;
  }
}


/* v50: home CTA cards with solid black background */
.home-structure-cta-card{
  background:#010102!important;
}
.home-structure-cta-card:before{
  display:none!important;
  background-image:none!important;
}
.home-structure-cta-card:after{
  background:linear-gradient(180deg,rgba(1,1,2,.08),rgba(1,1,2,.58))!important;
}

/* v53: shorter hero buttons only on mobile portrait */
@media (max-width:640px) and (orientation:portrait){
  .hero .home-hero-actions{
    align-items:flex-start!important;
    gap:8px!important;
    max-width:max-content;
  }
  .hero .home-hero-actions .btn{
    width:auto!important;
    min-width:0!important;
    max-width:220px!important;
    align-self:flex-start!important;
    justify-content:flex-start!important;
    padding:10px 14px!important;
    font-size:12px!important;
    line-height:1!important;
  }
  .hero .home-hero-actions .btn span{
    white-space:nowrap;
  }
}
