/*
 * homepage.css
 * Sezioni specifiche della homepage: match VS, countdown, team slider,
 * sponsor, calendario FullCalendar, blog preview, quick links.
 */

/* ── Match VS section ───────────────────────────────── */
.matchs-vs {
    float: left;
    width: 100%;
    background: #940403;
    color: #fff;
    min-height: auto !important;
    padding: 15px 0 !important;
    justify-content: center;
    display: flex;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.matchs-info {
    float: left;
    width: 100%;
    background: #ffcb05;
}
.about-us {
    float: left;
    width: 100%;
    background: url(../images/banner1.png);
    min-height: 220px;
    background-position: center center;
    background-size: cover;
}
.about-us:after {
    background: rgba(0,0,.25);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    content: "";
}

/* ── Team BTW match ─────────────────────────────────── */
.team-btw-match {
    float: left;
    width: 100%;
    display: block;
    justify-content: center;
    padding: 10px 0 0;
}
.team-btw-match ul {
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
    float: left;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-btw-match ul:nth-child(2n+2) {
    background: #f6f6f6;
}
.team-btw-match ul li {
    float: left;
    text-align: center;
    padding: 0 15px;
}
.team-btw-match ul li span {
    float: left;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-top: 8px;
}
.team-btw-match ul li img {
    max-height: 60px;
    width: auto;
}
.vs {
    display: flex;
    height: 100%;
    align-items: center;
    font-weight: 700;
    margin: 0 10px;
}
.team-btw-match li.vs span {
    background: #000;
    float: left;
    color: #fff;
    padding: 0 6px;
    border-radius: 100%;
    font-weight: 500;
    font-size: 16px;
}
.vs-team { padding: 10px 0 !important; }

/* ── Feature matchs ─────────────────────────────────── */
.feature-matchs {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.feature-matchs table {
    font-size: 13px;
    margin: 0;
    color: #333;
}
.feature-matchs td img { margin: 0 5px 0 0; }
.feature-matchs .team-btw-match ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid #eaeaea;
}
.feature-matchs .team-btw-match ul:last-child { border-bottom: none; }
.feature-matchs .team-btw-match ul li {
    flex: 1;
    text-align: center;
}
.feature-matchs .team-btw-match ul li img {
    max-height: 45px;
    width: auto;
    display: block;
    margin: 0 auto 8px;
}
.feature-matchs .team-btw-match ul li span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}
.feature-matchs .team-btw-match ul li.vs { flex: 0 0 50px; }
.feature-matchs .team-btw-match ul li.vs span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #043e7c;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    border-radius: 50%;
    margin: 0 auto;
}
.left-bar .feature-matchs { padding: 15px; background: #fff; }

/* ── Right match time / countdown ──────────────────────*/
.right-match-time {
    text-align: center;
    padding: 35px 0 30px;
    min-height: 160px;
    background: url(../images/img/sfondi/sfondo24.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    position: relative;
    color: #fff;
}
.right-match-time,
.right-match-time * { color: #ffffff !important; }
.right-match-time h2 {
    color: #fff;
    text-transform: capitalize;
    font-weight: 900;
    font-size: 36px;
    line-height: 55px;
    padding: 0;
    margin-bottom: 30px;
    text-align: center;
}
.right-match-time > span {
    display: block;
    font-size: 20px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,.5);
}
.right-match-time ul,
.right-match-time h2,
.right-match-time span { position: relative; z-index: 1; }

/* ── Countdown generico ─────────────────────────────── */
.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    list-style: none;
    background: #0b2c55;
    color: #fff;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: inset 0 0 8px rgba(255,255,255,.08);
}
.countdown li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    padding: 0;
    background: transparent;
    border: none;
}
.countdown li:not(:last-child)::after {
    content: ":";
    margin-left: 8px;
    opacity: .7;
}
.countdown.live-mode {
    background: #b30000;
    color: #fff;
    animation: pulseLive 1s infinite alternate;
}
@keyframes pulseLive {
    from { opacity: 1; }
    to   { opacity: .75; }
}
.right-match-time ul {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 10px 15px;
    border: none;
    background: transparent;
    position: relative;
    z-index: 1;
}
.right-match-time ul li {
    font-size: 24px !important;
    font-weight: 800;
    background: rgba(0,0,0,.65);
    color: #fff;
    padding: 5px 14px;
    border-radius: 8px;
    min-width: 55px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,.6);
}

/* ── Match card live ────────────────────────────────── */
.match-card-live {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    transition: transform 0.2s ease;
}
.match-card-live:hover { transform: translateY(-2px); }

/* ── Match card (sidebar / lista) ───────────────────── */
.matches-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.match-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #f7f9f8;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #111;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: all 0.2s ease;
}
.match-card:hover { background: #eef6f0; transform: translateY(-1px); }

/* ── Match center ───────────────────────────────────── */
.match-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 40px;
    gap: 10px;
    text-align: center;
}
.match-center .team {
    font-weight: 400;
    color: #111;
    line-height: 1.2;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    letter-spacing: normal;
    text-transform: none;
}
.match-center .vs {
    font-weight: 600;
    color: #111;
    font-size: 13px;
    letter-spacing: normal;
    text-transform: uppercase;
    margin: 0 4px;
}
.match-center .highlight { color: #0b9444; font-weight: 800; text-transform: uppercase; }
.highlight              { color: #0b9444; font-weight: 800; text-transform: uppercase; }

/* ── Team logo (globale) ────────────────────────────── */
.team-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    border-radius: 4px;
    flex-shrink: 0;
    vertical-align: middle;
    margin: 0 8px;
}
.match-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
}
.team-home, .team-away {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.match-date {
    margin-top: 6px;
    text-align: center;
    font-size: 14px;
    opacity: .85;
}

/* ── matchTable (grande) ────────────────────────────── */
#matchTable {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
}
#matchTable th,
#matchTable td {
    font-size: 26px;
    font-weight: 800;
    padding: 10px 15px;
    text-align: center;
    vertical-align: middle;
    color: #fff;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}
#matchTable td:nth-child(1),
#matchTable td:nth-child(3) { width: 45%; }
#matchTable td:nth-child(2) { width: 10%; }
#matchTable .vs {
    font-size: 24px;
    font-weight: 900;
    color: #0af;
}
#matchTable .match-date {
    font-size: 20px;
    color: #aaa;
    margin-bottom: 5px;
}
#matchTable .countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    background: transparent;
}
#matchTable .countdown li {
    font-size: 16px;
    font-weight: 700;
    background: #111;
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    min-width: 45px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.1);
}

/* ── Team slider ────────────────────────────────────── */
.team-holder {
    float: left;
    width: 100%;
    padding-top: 50px;
    padding-bottom: 75px;
}
.team-holder .row,
.footer .row {
    display: flex;
    flex-wrap: wrap;
}
#team-slider .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
#team-slider .col-md-3,
#team-slider .col-sm-6,
#team-slider .col-xs-12 {
    display: flex;
    margin-bottom: 30px;
}
.team-column {
    position: relative;
    float: left;
    overflow: hidden;
    transition: ease all 1s;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.team-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,.15);
}
.team-column img {
    width: 100%;
    height: auto;
    display: block;
    transition: ease all 1s;
}
.team-column:hover img,
.team-column:focus img { transform: scale(1.2); }

/* ── Player name overlay ────────────────────────────── */
.player-name {
    position: absolute;
    background: #000;
    text-align: left;
    bottom: 0;
    width: 100%;
    padding: 15px 20px;
}
.player-name h5 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    float: left;
}
.player-name .player-number {
    border-radius: 0;
    top: 0; right: 0; left: auto;
    height: 100%;
    line-height: 58px;
    background: #d8302f;
    color: #fff;
    width: 48px;
    border: 0;
    position: absolute;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}
.player-name .desination-2 {
    position: absolute;
    bottom: 100%; left: 0;
    background: #d8302f;
    z-index: 1;
    padding: 3px 20px 2px;
    text-transform: capitalize;
    color: #FFF;
    font-size: 14px;
    font-weight: 400;
}
.player-name .desination-2::before {
    content: "";
    position: absolute;
    left: 100%; top: 1px;
    width: 0; height: 0;
    border-bottom: 30px solid #d8302f;
    border-right: 20px solid transparent;
}
.overlay {
    position: absolute;
    height: 100%; width: 100%;
    left: 0; top: 0;
}
.team-column.style-2 .overlay {
    background: rgba(0,0,0,.8);
    z-index: 2;
    visibility: hidden;
    opacity: 0;
}
.team-column.style-2 .team-detail-hover { padding: 0 20px; }
.team-column.style-2 .overlay p { color: #fff; margin: 0 0 10px; }
.team-column.style-2 .overlay .social-icons { display: inline-block; margin: 0 0 10px; }
.team-column.style-2 .overlay .social-icons li a { color: #fff; border: 1px solid #fff; }

/* ── Sponsor section ────────────────────────────────── */
.sponsor-section {
    padding: 50px 0;
    background: #fff;
    text-align: center;
}
.sponsor-row { margin-top: 5px; }
.sponsor-row .col-md-2,
.sponsor-row .col-sm-4,
.sponsor-row .col-xs-6 { padding-left: 8px; padding-right: 8px; }
.sponsor-box {
    background: rgba(16,71,2,.16);
    border: 1px solid rgba(2,60,41,.29);
    padding: 5px;
    margin-bottom: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sponsor-box:hover { box-shadow: 0 10px 20px rgba(0,0,0,.15); transform: translateY(-5px); }
.sponsor-box img   { max-width: 100%; max-height: 100px; object-fit: contain; }

/* ── Calendario FullCalendar ────────────────────────── */
#calendar,
#calendarBox {
    max-width: 1100px;
    margin: 40px auto;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    color: #000;
    min-height: 700px;
}
.fc             { max-width: 100%; }
.fc-view-harness { min-height: 650px !important; }
.fc-toolbar-title { font-size: 22px; font-weight: 700; }
.fc-event-title {
    font-size: 11px;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2;
}
.fc-event { border-radius: 6px !important; padding: 2px 6px !important; font-size: 12px !important; }
.fc-daygrid-event { border-radius: 6px !important; padding: 2px 4px !important; font-size: 11px !important; }
.future-event { background: #2f80ed !important; border: none !important; color: #fff !important; }
.next-event {
    background: #ffcc00 !important;
    color: #000 !important;
    font-weight: bold !important;
    border: 2px solid #000 !important;
    box-shadow: 0 0 12px rgba(255,204,0,.6);
    transform: scale(1.03);
    z-index: 10;
}
.past-event { background: #444 !important; color: #bbb !important; opacity: .75; }

/* ── Dashboard table ────────────────────────────────── */
.dashboard-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #111522;
    border-radius: 10px;
    overflow: hidden;
}
.dashboard-table th {
    background: #1a2233;
    color: #fff;
    font-weight: 600;
    padding: 12px;
}
.dashboard-table td {
    padding: 12px;
    border-bottom: 1px solid #222b3d;
    vertical-align: middle;
    overflow: hidden;
}
.dashboard-table tr { transition: background 0.2s ease; }
.dashboard-table tr:hover { background: #1b2640; }
.dashboard-table tr.next-row {
    background: rgba(77,163,255,.12);
    box-shadow: inset 3px 0 0 #4da3ff;
}
.dashboard-table th:nth-child(4),
.dashboard-table td:nth-child(4) { width: 120px; text-align: center; white-space: nowrap; }
.status-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: transparent;
    color: #ccc;
}
.status-box.futura { background: #1e2635; color: #ccc; }
.status-box.passata { background: #2a2f3a; color: #777; }
.status-box.next   { background: #4da3ff; color: #fff; box-shadow: 0 0 10px rgba(77,163,255,.4); }

/* ── Blog preview ───────────────────────────────────── */
.blog-preview {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-preview img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
}
.blog-preview p {
    margin-top: 12px;
    font-size: 14px;
    color: #111;
    line-height: 1.5;
}
.blog-preview a      { color: #0b9444; font-weight: 700; text-decoration: none; }
.blog-preview a:hover { text-decoration: underline; }

/* ── A2 row flex ────────────────────────────────────── */
.a2-row {
    display: flex;
    flex-wrap: wrap;
}
.a2-row > div {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}
@media (min-width: 992px) {
    .a2-row { align-items: stretch; }
    .a2-row > div { display: flex; flex-direction: column; }
    .matches-box, .table, .blog-preview { flex-grow: 1; }
    .btn-fibs-calendar { margin-top: 20px; }
}

/* ── Responsive homepage ────────────────────────────── */
@media (max-width: 991px) {
    .matchs-vs           { padding: 10px 0 !important; }
    .team-btw-match ul li img { max-height: 50px; }
    .team-btw-match ul li span { font-size: 14px; }
    .feature-matchs .team-btw-match ul { padding: 10px 0; }
    .feature-matchs .team-btw-match ul li img { max-height: 35px; }
    .feature-matchs .team-btw-match ul li span { font-size: 13px; }
    .feature-matchs .team-btw-match ul li.vs span { font-size: 16px; }
    #team-slider .row { display: block; }
    #team-slider .col-md-3, #team-slider .col-sm-6, #team-slider .col-xs-12 { width: 100%; display: block; }
    .team-holder .col-md-3, .footer .col-md-4, .footer .col-md-3, .footer .col-md-2 { width: 100%; margin-bottom: 30px; }
    .a2-row > div { margin-bottom: 35px; }
    .match-card { min-height: auto; padding: 12px; }
    .match-center { flex-direction: column; gap: 4px; }
    .team-logo  { width: 32px; height: 32px; }
    .blog-preview img { height: auto; }
    .btn-fibs-calendar { margin-top: 15px; }
    .countdown  { font-size: 15px; gap: 5px; letter-spacing: 1px; padding: 8px 10px; }
}
@media (min-width: 1200px) {
    .countdown  { font-size: 18px; padding: 8px 12px; }
    .match-card-live { padding: 12px; transform: scale(.98); }
    .match-date { font-size: 12px; }
    .match-card-live .countdown li { padding: 4px 6px; min-width: 34px; font-size: 12px; }
    .btn-fibs-calendar { margin-top: 25px; }
}
@media (max-width: 768px) {
    .right-match-time ul { border: none; width: auto; display: flex; }
    .team-column { margin-bottom: 25px; }
    #team-slider div.container { padding: 0; }
    #team-slider div.container div.col-md-3 { padding: 0; }
    .team-holder { padding-top: 0; }
    .theme-padding.middle-bg {
        padding-top: 60px; padding-bottom: 60px;
        background-image: url(../images/sport-mate.png);
        background-repeat: no-repeat; background-position: top center;
        background-size: cover; background-attachment: fixed;
        box-shadow: 0 0 100px -80px rgba(0,0,0,.8);
        min-height: auto;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .a2-divider { margin: 20px 0; }
    .a2-divider span { font-size: 12px; letter-spacing: 1px; }
}



/* ── FIX per centrare Sezione "Prossima partita" ───────────────────────── */
.right-match-time {
    text-align: center;
}
.match-table {
    margin: 0 auto;
    width: auto;
}
.match-table td {
    text-align: center;
}
.match-teams {
    justify-content: center;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.match-date {
    text-align: center;
}
.countdown {
    justify-content: center;
}
/* ── Fine FIX per centrare Sezione "Prossima partita" ───────────────────────── */



/* data sotto ogni card della Tabella PROSSIME PARTITE */
.match-date-label {
    font-size: 12px;
    color: #063f94;
    text-align: center;
    margin-top: 4px;
    padding-top: 3px;
    border-top: 1px solid #eee;
    margin-bottom: 4px;
}

