/* =========================================================
   HOME PAGE - stili dedicati (caricati DOPO style.css)
   Tutte le classi iniziano con "h-" per non toccare il resto del sito.
   ATTENZIONE: non usare nomi di classe che contengono "col-":
   style.css ha [class*="col-"] { float:left } e li farebbe flottare.
   ========================================================= */

.home {
    --navy:   #0a0742;
    --navy2:  #355269;
    --giallo: #FFDA45;
    --oro:    #c99000;
    --testo:  #1d1d2b;
    --raggio: 18px;
    --ombra:  0 10px 30px rgba(10, 7, 66, .18);
    font-family: "Barlow", Arial, Helvetica, sans-serif;
    color: var(--testo);
}

/* Azzera i margini/allineamenti globali di style.css sui titoli.
   :where() ha specificità zero: le classi h-... qui sotto vincono sempre. */
:where(.home) h1, :where(.home) h2, :where(.home) h3 {
    margin: 0;
    text-align: inherit;
    font-family: "Barlow Condensed", Arial, sans-serif;
}
.home li { font-size: inherit; } /* style.css mette LI a 8pt */

.h-center { text-align: center; }

/* ---------- Intestazione ---------- */
.h-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.h-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--navy);
}
.h-brand img { width: 90px; height: auto; }
.h-brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.h-brand-sub {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.h-brand-name {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    font-size: clamp(34px, 6vw, 52px);
    line-height: .95;
}
.h-brand-motto {
    font-family: "Barlow Condensed", sans-serif;
    font-style: italic;
    font-weight: 600;
    font-size: 18px;
}

.h-pill {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.h-pill:hover { background: var(--navy2); }

/* ---------- Contenitore ---------- */
.h-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ---------- Bottoni ---------- */
.h-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--giallo);
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.h-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}
.h-btn-dark { background: var(--navy); color: #fff; }
.h-btn-dark:hover { background: var(--navy2); }

/* ---------- Parte alta a rotazione ---------- */
.h-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 32px;
    align-items: center;
    padding: clamp(20px, 4vw, 40px);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
    color: #fff;
    box-shadow: var(--ombra);
}
.h-hero::after {               /* alone giallo decorativo */
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 218, 69, .35), rgba(255, 218, 69, 0) 70%);
    pointer-events: none;
}
.h-hero > * { position: relative; z-index: 1; }

.h-hero-banner { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); }
.h-hero-splash { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }

.h-eyebrow {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--giallo);
}
.h-hero-title {
    margin: 6px 0 12px;
    font-size: clamp(30px, 4.5vw, 46px);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
}
.h-hero-txt p {
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.5;
    color: #d8e3f0;
}

.h-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
    transition: transform .3s ease;
}
.h-hero-media:hover img { transform: scale(1.02); }

.h-splash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.h-splash-card {
    position: relative;
    display: block;
    aspect-ratio: 19 / 30;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    transition: transform .25s ease;
}
.h-splash-card:hover { transform: translateY(-6px); }
.h-splash-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.h-splash-card:hover img { transform: scale(1.06); }
.h-splash-card::after {         /* sfumatura in basso per leggere l'etichetta */
    content: "";
    position: absolute;
    inset: 55% 0 0 0;
    background: linear-gradient(transparent, rgba(10, 7, 66, .75));
}
.h-splash-card span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--giallo);
    color: var(--navy);
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
}

/* ---------- Inviti all'azione ---------- */
.h-cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.h-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    border-radius: var(--raggio);
    background: #fff;
    box-shadow: var(--ombra);
}
.h-cta-card h2 {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--navy);
}
.h-cta-card p { margin-top: 2px; font-size: 15px; color: #555; }
.h-cta-thumb { width: 90px; border-radius: 10px; display: block; }

/* ---------- Blocchi generici ---------- */
.h-block {
    padding: clamp(20px, 3vw, 32px);
    border-radius: 24px;
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.h-h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--navy);
}
.h-h2::before {
    content: "";
    width: 6px;
    height: .9em;
    border-radius: 3px;
    background: var(--navy);
}

/* ---------- Sezioni ---------- */
.h-sezioni {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    justify-items: center;
}
.h-sezioni a {
    display: block;
    max-width: 200px;
    transition: transform .25s ease, filter .25s ease;
}
.h-sezioni a:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .25));
}
.h-sezioni img { display: block; width: 100%; height: auto; }

/* ---------- Calendari ---------- */
.h-cal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.h-cal-card {
    padding: 22px;
    border-radius: var(--raggio);
    border-top: 6px solid var(--navy2);
    background: #fff;
    box-shadow: var(--ombra);
}
.h-cal-calcio    { border-top-color: #0ba360; }
.h-cal-pallavolo { border-top-color: #e85a19; }
.h-cal-card h3 {
    margin-bottom: 14px;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--navy);
}
.h-cal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.h-chip {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.h-chip:hover { background: var(--navy2); color: #fff; }
.h-chip-evidenza { background: var(--navy); color: #fff; }
.h-chip-evidenza:hover { background: var(--navy2); }

/* ---------- Sponsor (contenuto di sponsor-calcio.inc) ---------- */
.h-sponsor { text-align: center; }

/* ---------- Canali ---------- */
.h-canali {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}
.h-canali a { transition: transform .2s ease; }
.h-canali a:hover { transform: translateY(-3px); }
.h-canali img { display: block; }

/* ---------- Affiliazioni ---------- */
.h-aff {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.h-aff-card {
    padding: 18px;
    border-radius: var(--raggio);
    background: #fff;
    text-align: center;
}
.h-aff-card h3 {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b6b7b;
}
.h-aff-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 95px;
}

/* ---------- Schermi piccoli ---------- */
@media (max-width: 760px) {
    .h-hero-banner,
    .h-hero-splash { grid-template-columns: 1fr; gap: 20px; }
    .h-splash-grid { gap: 8px; }
    .h-splash-card span { left: 6px; bottom: 6px; padding: 3px 8px; font-size: 12px; }
    .h-sezioni { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .h-cta-card { flex-wrap: wrap; }
    .h-brand img { width: 64px; }
    .h-brand-sub { font-size: 11px; }
    .h-brand-motto { font-size: 15px; }
}
@media (max-width: 480px) {
    .h-header { flex-direction: column; text-align: center; }
    .h-brand { flex-direction: column; gap: 8px; }
}
