/* ==========================================================================
   Mo Media — Foglio di stile principale
   Agenzia media sportiva — dirette, highlights e sport siciliano
   ========================================================================== */

/* ── Variabili CSS (Design Tokens) ─────────────────────────────────────────── */
:root {
    /* Palette brand */
    --primary-blue:       #007bff;
    --primary-blue-dark:  #0056b3;
    --primary-blue-light: #e6f2ff;

    --dark-bg:            #1a1a1a;
    --dark-bg-light:      #2a2a2a;

    --text-primary:       #333333;
    --text-secondary:     #666666;
    --text-muted:         #999999;
    --text-inverse:       #ffffff;

    --bg-page:            #ffffff;
    --bg-subtle:          #f8f9fa;
    --border-color:       #e0e0e0;

    /* Tipografia */
    --font-sans:          'Source Sans 3', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
                          'Helvetica Neue', Arial, sans-serif;
    --font-headline:      'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-size-base:     1rem;
    --line-height-base:   1.6;

    /* Editoriale */
    --ink:                #121212;
    --accent-red:         #c8102e;
    --rule-strong:        #1a1a1a;
    --rule-light:         #d9d9d9;

    /* Sponsor — fasce chiare */
    --sponsor-stripe-orange-1: #fff1e3;
    --sponsor-stripe-orange-2: #ffd4a8;
    --sponsor-stripe-red-1:    #ffe8e8;
    --sponsor-stripe-red-2:    #ffc4c4;

    /* Spaziature */
    --space-xs:   0.25rem;
    --space-sm:   0.5rem;
    --space-md:   1rem;
    --space-lg:   1.5rem;
    --space-xl:   2rem;
    --space-2xl:  3rem;
    --space-3xl:  4rem;

    /* Layout */
    --container-max:           1320px;
    --page-gutter:             clamp(1rem, 3vw, 2.5rem);
    --section-space:           clamp(2rem, 5vw, 4rem);
    --header-height:           92px;

    /* Logo: file 1024×1024 con molto spazio vuoto — si usa zoom + crop */
    --logo-header-frame-h:     72px;
    --logo-header-frame-w:     260px;
    --logo-header-zoom:        1.6;

    --logo-footer-frame-h:     64px;
    --logo-footer-frame-w:     230px;
    --logo-footer-zoom:        1.6;

    --team-logo-frame-width:   200px;
    --team-logo-inset:         clamp(12px, 14%, 22px);

    --border-radius:           6px;
    --border-radius-lg:   10px;

    /* Transizioni */
    --transition-fast:    0.15s ease;
    --transition-base:    0.25s ease;
    --transition-slow:    0.4s ease;

    /* Ombre */
    --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-lg:  0 8px 24px rgba(0, 0, 0, 0.12);
}


/* ── Reset moderno ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-page);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

img:not(.logo):not(.footer-logo),
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Classe utility per screen reader */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ── Layout container ──────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: calc(var(--container-max) + (var(--page-gutter) * 2));
    margin-inline: auto;
    padding-inline: var(--page-gutter);
}

.site-main {
    flex: 1;
    width: 100%;
}

.site-main > section,
.site-main > article {
    width: 100%;
}

/* Spaziatura verticale uniforme per tutte le sezioni di pagina */
.hero,
.news-section,
.article-page,
.video-page,
.team-page,
.related-section,
.teams-section,
.sponsor-section {
    padding-block: var(--section-space);
}


/* ── Pulsanti ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-base),
                color var(--transition-base),
                box-shadow var(--transition-base),
                transform var(--transition-fast);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--primary-blue);
    color: var(--text-inverse);
}

.btn--primary:hover {
    background-color: var(--primary-blue-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--login {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    background-color: transparent;
    border: 1px solid var(--ink);
    border-radius: 0;
}

.btn--login:hover {
    color: var(--text-inverse);
    background-color: var(--ink);
    box-shadow: none;
    transform: none;
}

.btn--ghost {
    color: var(--ink);
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.btn--ghost:hover {
    color: var(--text-inverse);
    background-color: var(--ink);
    box-shadow: none;
    transform: none;
}


/* ── Tag categoria ──────────────────────────────────────────────────────────── */
.category-tag {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--text-inverse);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
    transition: background-color var(--transition-base);
}

.category-tag--small {
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
}


/* ── Badge in evidenza ──────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 3px;
}

.badge--live {
    background-color: #dc3545;
    color: var(--text-inverse);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.75; }
}


/* ==========================================================================
   HEADER — Stile testata giornalistica
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-page);
    border-bottom: 1px solid var(--rule-light);
    box-shadow: none;
}

.header-accent,
.footer-accent {
    height: 3px;
    background-color: var(--accent-red);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: clamp(var(--space-md), 2vw, var(--space-lg));
    flex-shrink: 0;
    min-width: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: clamp(var(--space-md), 2vw, var(--space-xl));
    min-height: clamp(68px, 8vw, 84px);
    padding-block: clamp(0.65rem, 1.5vw, 0.9rem);
}

.header-tagline {
    max-width: 22ch;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
}

.page-home .header-tagline {
    display: none;
}

.page-site .header-tagline {
    display: none;
}

@media (max-width: 1100px) {
    .header-tagline {
        display: none;
    }
}

/* Logo — crop + zoom (i file .webp sono 1024×1024 con padding interno) */
.logo-link {
    flex-shrink: 0;
    display: block;
    line-height: 0;
    transition: opacity var(--transition-base);
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-frame {
    display: block;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 0;
}

.logo-frame--header {
    width: var(--logo-header-frame-w);
    height: var(--logo-header-frame-h);
}

.logo-frame--footer {
    width: var(--logo-footer-frame-w);
    height: var(--logo-footer-frame-h);
    margin-bottom: var(--space-sm);
}

img.logo,
img.footer-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center center;
}

img.logo {
    transform: scale(var(--logo-header-zoom));
    transform-origin: center center;
}

img.footer-logo {
    transform: scale(var(--logo-footer-zoom));
    transform-origin: center center;
    opacity: 0.95;
    transition: opacity var(--transition-base);
}

/* Navigazione */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(var(--space-md), 2vw, var(--space-xl));
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.55rem 0.25rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-base), border-color var(--transition-base);
}

.nav-link:hover {
    color: var(--accent-red);
    background-color: transparent;
}

.nav-link--active {
    color: var(--accent-red);
    font-weight: 800;
    border-bottom-color: var(--accent-red);
}

.nav-item--has-dropdown > .nav-link::after {
    content: "▾";
    margin-left: 0.35rem;
    font-size: 0.75em;
}

.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown,
.nav-item--has-dropdown.is-dropdown-open .nav-dropdown {
    display: block;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 190px;
    padding: 0.35rem 0;
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    z-index: 1100;
}

/* Ponte invisibile: il menu resta aperto finché il cursore è nel riquadro */
.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -12px;
    left: -4px;
    right: -4px;
    height: 12px;
}

.nav-dropdown-link {
    display: block;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.nav-dropdown-link:hover {
    background-color: var(--bg-subtle);
    color: var(--accent-red);
}

/* Azioni header */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* Ricerca */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle {
    display: none; /* Visibile solo su mobile — vedi media query */
    padding: 0.4rem;
    color: var(--text-primary);
    border-radius: var(--border-radius);
    transition: color var(--transition-base), background-color var(--transition-base);
}

.search-toggle:hover {
    color: var(--primary-blue);
    background-color: var(--primary-blue-light);
}

.search-form {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    border: 1px solid var(--rule-light);
    border-radius: 0;
    padding: 0.3rem 0.5rem 0.3rem 0.75rem;
    background-color: var(--bg-page);
    transition: border-color var(--transition-base);
}

.search-form:focus-within {
    border-color: var(--ink);
    box-shadow: none;
}

.search-input {
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--text-primary);
    width: 180px;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-submit {
    display: flex;
    align-items: center;
    padding: 0.25rem;
    color: var(--primary-blue);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-base);
}

.search-submit:hover {
    background-color: var(--primary-blue-light);
}

.icon {
    width: 20px;
    height: 20px;
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-base);
}

.menu-toggle:hover {
    background-color: var(--bg-subtle);
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-base),
                opacity var(--transition-base);
}

/* Stato aperto del menu hamburger */
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    background-color: var(--bg-subtle);
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.hero-section-title {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.hero-grid {
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: 1fr;
}

.hero-grid--count-2 {
    grid-template-columns: 1fr;
}

.hero-grid--count-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .hero-grid--count-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid--count-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-grid--count-2 .hero-link--portrait,
    .hero-grid--count-2 .hero-link--square,
    .hero-grid--count-3 .hero-link--portrait,
    .hero-grid--count-3 .hero-link--square {
        flex-direction: column;
    }

    .hero-grid--count-2 .hero-link--portrait .hero-figure,
    .hero-grid--count-2 .hero-link--square .hero-figure,
    .hero-grid--count-3 .hero-link--portrait .hero-figure,
    .hero-grid--count-3 .hero-link--square .hero-figure {
        width: 100%;
        max-width: none;
        flex: none;
    }
}

.hero-card-date {
    display: block;
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-article {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-page);
    transition: box-shadow var(--transition-base),
                transform var(--transition-base);
}

.hero-article:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.hero-link {
    display: block;
    color: inherit;
}

.hero-link--portrait,
.hero-link--square {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.hero-figure {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-subtle);
    flex-shrink: 0;
}

.hero-link--landscape .hero-figure,
.hero-link--auto .hero-figure {
    width: 100%;
}

.hero-figure:not([style*="aspect-ratio"]) {
    aspect-ratio: 21 / 9;
}

.hero-link--portrait .hero-figure,
.hero-link--square .hero-figure {
    flex: 0 0 clamp(220px, 38%, 420px);
    width: clamp(220px, 38%, 420px);
    max-width: 420px;
    aspect-ratio: unset;
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-link--portrait .hero-image,
.hero-link--square .hero-image {
    object-fit: contain;
}

.hero-article:hover .hero-image {
    transform: scale(1.03);
}

.hero-content {
    padding: var(--space-xl) var(--space-2xl);
}

.hero-link--portrait .hero-content,
.hero-link--square .hero-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin-block: var(--space-md) var(--space-sm);
    transition: color var(--transition-base);
}

.hero-article:hover .hero-title {
    color: var(--primary-blue);
}

.hero-summary {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.hero-read-more {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    transition: gap var(--transition-base);
}


/* ==========================================================================
   GRIGLIA CONTENUTI
   ========================================================================== */
.news-section {
    width: 100%;
}

.section-header {
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Griglia responsive — si adatta alla larghezza dello schermo */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(var(--space-md), 3vw, var(--space-xl));
}

/* Card articolo */
.news-card,
.team-card,
.team-stats-block,
.hero-article,
.sponsor-banner {
    min-width: 0;
}

.news-card {
    background-color: var(--bg-page);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base),
                transform var(--transition-base),
                border-color var(--transition-base);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.news-card-link--portrait,
.news-card-link--square {
    flex-direction: row;
    align-items: stretch;
}

.news-card-figure {
    overflow: hidden;
    background-color: var(--bg-subtle);
    flex-shrink: 0;
}

.news-card-link--landscape .news-card-figure,
.news-card-link--auto .news-card-figure {
    width: 100%;
}

.news-card-figure:not([style*="aspect-ratio"]) {
    aspect-ratio: 3 / 2;
}

.news-card-link--portrait .news-card-figure,
.news-card-link--square .news-card-figure {
    flex: 0 0 clamp(110px, 34%, 180px);
    width: clamp(110px, 34%, 180px);
    aspect-ratio: unset;
    align-self: stretch;
}

.news-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card-link--portrait .news-card-image,
.news-card-link--square .news-card-image {
    object-fit: contain;
}

.news-card-link--portrait .news-card-body,
.news-card-link--square .news-card-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card:hover .news-card-image {
    transform: scale(1.05);
}

.news-card-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    transition: color var(--transition-base);
}

.news-card:hover .news-card-title {
    color: var(--primary-blue);
}

.news-card-abstract {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}


/* ==========================================================================
   FOOTER — Stile testata giornalistica
   ========================================================================== */
.site-footer {
    background-color: var(--ink);
    color: var(--text-inverse);
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) 1fr minmax(180px, 0.8fr);
    gap: clamp(var(--space-xl), 4vw, var(--space-3xl));
    padding-block: clamp(var(--space-2xl), 5vw, var(--space-3xl));
}

.footer-col {
    min-width: 0;
}

.footer-heading {
    margin-bottom: var(--space-md);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.footer-brand {
    flex-shrink: 0;
}

.footer-brand a:hover .footer-logo {
    opacity: 1;
}

.footer-tagline {
    margin-top: var(--space-md);
    max-width: 34ch;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.footer-nav {
    display: block;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.86);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: #fff;
}

.footer-social-col {
    display: flex;
    flex-direction: column;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background-color: transparent;
    color: rgba(255, 255, 255, 0.88);
    transition: background-color var(--transition-base),
                color var(--transition-base),
                border-color var(--transition-base);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-inverse);
    transform: none;
}

.footer-social-note {
    margin-top: var(--space-md);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-block: var(--space-md);
}

.footer-bottom__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: left;
}

.footer-bottom__edition {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* ==========================================================================
   OVERLAY MOBILE (menu a comparsa)
   ========================================================================== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.nav-overlay.is-visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
}


/* ==========================================================================
   FEEDBACK RICERCA (messaggio simulato)
   ========================================================================== */
.search-feedback {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background-color: var(--dark-bg);
    color: var(--text-inverse);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--border-radius-lg);
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transition: transform var(--transition-base), opacity var(--transition-base);
    pointer-events: none;
    white-space: nowrap;
}

.search-feedback.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}


/* ==========================================================================
   PAGINA ARTICOLO
   ========================================================================== */
.article-page {
    width: 100%;
}

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.article-breadcrumb a {
    color: var(--primary-blue);
    transition: color var(--transition-base);
}

.article-breadcrumb a:hover {
    color: var(--primary-blue-dark);
}

.article-header {
    width: 100%;
    margin-bottom: var(--space-xl);
}

.article-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-block: var(--space-md);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-meta-separator {
    color: var(--text-muted);
}

.article-figure {
    margin-bottom: 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: var(--bg-subtle);
}

.article-content {
    width: 100%;
}

.article-side-layout {
    display: flex;
    gap: clamp(var(--space-lg), 3vw, var(--space-2xl));
    align-items: flex-start;
}

.article-content--landscape .article-side-layout,
.article-content--auto .article-side-layout {
    flex-direction: column;
}

.article-content--portrait .article-side-layout,
.article-content--square .article-side-layout {
    flex-direction: row;
}

.article-content--landscape .article-figure,
.article-content--auto .article-figure {
    width: 100%;
    margin-bottom: var(--space-xl);
}

.article-content--portrait .article-figure,
.article-content--square .article-figure {
    flex: 0 0 clamp(240px, 38%, 420px);
    width: clamp(240px, 38%, 420px);
    max-width: 420px;
}

.article-side-text {
    flex: 1 1 0;
    min-width: 0;
}

.article-content--landscape .article-side-text,
.article-content--auto .article-side-text {
    width: 100%;
}

.article-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.article-sponsor {
    margin-top: var(--space-xl);
}

.article-body {
    width: 100%;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: var(--space-lg);
}

.article-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.article-not-found {
    max-width: 520px;
    margin-inline: auto;
    text-align: center;
    padding-block: var(--space-3xl);
}

.article-not-found h1 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.article-not-found p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.related-section {
    width: 100%;
    background-color: var(--bg-subtle);
}

.news-grid--related {
    margin-top: var(--space-xl);
}

@media (max-width: 768px) {
    .hero-link--portrait,
    .hero-link--square,
    .news-card-link--portrait,
    .news-card-link--square,
    .article-content--portrait .article-side-layout,
    .article-content--square .article-side-layout {
        flex-direction: column;
    }

    .hero-link--portrait .hero-figure,
    .hero-link--square .hero-figure,
    .news-card-link--portrait .news-card-figure,
    .news-card-link--square .news-card-figure,
    .article-content--portrait .article-figure,
    .article-content--square .article-figure {
        width: 100%;
        max-width: none;
        flex: none;
    }
}


/* ==========================================================================
   BANNER SPONSOR — Fasce a tutta larghezza
   ========================================================================== */
.sponsor-section {
    width: 100%;
    padding-block: 0;
}

.sponsor-stripe {
    background: linear-gradient(90deg, var(--sponsor-stripe-orange-1) 0%, var(--sponsor-stripe-orange-2) 100%);
    color: var(--ink);
}

.sponsor-stripe--warm-red {
    background: linear-gradient(90deg, var(--sponsor-stripe-red-1) 0%, var(--sponsor-stripe-red-2) 100%);
}

.sponsor-stripe--partners {
    background: linear-gradient(90deg, var(--sponsor-stripe-red-1) 0%, var(--sponsor-stripe-orange-2) 100%);
    color: var(--ink);
}

.sponsor-stripe--has-image {
    position: relative;
    padding: 0;
    background: var(--bg-subtle);
}

.sponsor-ad-bar {
    background-color: var(--ink);
    color: var(--text-inverse);
    border-bottom: 3px solid var(--accent-red);
}

.sponsor-ad-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 0.45rem;
}

.sponsor-ad-bar__label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sponsor-banner--image {
    display: block;
    width: 100%;
    line-height: 0;
}

.sponsor-banner.sponsor-banner--image {
    display: block;
    width: 100%;
    overflow: hidden;
}

.sponsor-banner__picture {
    display: block;
    width: 100%;
    line-height: 0;
}

.sponsor-banner__visual {
    display: block;
    width: 100%;
    height: clamp(108px, 18vw, 180px);
    object-fit: cover;
    object-position: center center;
}

.sponsor-stripe--mobile-only {
    display: none;
}

.sponsor-stripe__inner {
    position: relative;
    padding-block: clamp(0.9rem, 2.5vw, 1.35rem);
}

.sponsor-section--leaderboard {
    border: none;
}

.site-header + .sponsor-section--leaderboard {
    margin-top: 0;
}

.sponsor-section--leaderboard .sponsor-stripe__inner,
.sponsor-section--stripe .sponsor-stripe__inner {
    padding-block: clamp(1rem, 2.8vw, 1.5rem);
}

.sponsor-section--partners .sponsor-stripe__inner {
    padding-block: clamp(1rem, 2.5vw, 1.35rem);
}

.sponsor-section--partners {
    border-top: 3px solid var(--accent-red);
}

.sponsor-section--partners .sponsor-partners__label {
    color: var(--text-secondary);
}

.sponsor-unit {
    position: relative;
    width: 100%;
}

.sponsor-banner:not(.sponsor-banner--image) {
    display: flex;
    align-items: center;
    gap: clamp(var(--space-md), 2.5vw, var(--space-xl));
    width: 100%;
    color: inherit;
    text-decoration: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: opacity var(--transition-base);
    overflow: visible;
    position: relative;
}

.sponsor-banner::before {
    display: none;
}

.sponsor-banner:hover {
    opacity: 0.92;
    transform: none;
    box-shadow: none;
}

.sponsor-banner--leaderboard,
.sponsor-banner--card,
.sponsor-banner--rectangle {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.sponsor-banner--card {
    flex-direction: row;
    align-items: center;
}

.sponsor-banner--rectangle {
    flex-direction: row;
    align-items: center;
    margin-block: 0;
}

.sponsor-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(200, 16, 46, 0.18);
    color: var(--accent-red);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.sponsor-banner__icon--large {
    width: 52px;
    height: 52px;
    font-size: 0.9rem;
}

.sponsor-banner__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.sponsor-banner__name {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.sponsor-banner__tagline {
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
    line-height: 1.45;
    color: var(--text-secondary);
}

.sponsor-banner__cta {
    flex-shrink: 0;
    padding: 0.5rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-inverse);
    background-color: var(--accent-red);
    border-radius: 0;
    transition: opacity var(--transition-base), background-color var(--transition-base);
}

.sponsor-banner:hover .sponsor-banner__cta {
    background-color: #a50d25;
}

.sponsor-banner__cta--block {
    margin-top: 0;
}

.sponsor-banner__cta--inline {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0;
    color: var(--accent-red);
    background: transparent;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.sponsor-partners__label {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.sponsor-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(var(--space-md), 3vw, var(--space-xl));
    list-style: none;
    margin: 0;
    padding: 0;
}

.sponsor-partner {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.sponsor-partner:hover {
    opacity: 0.85;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.sponsor-partner--squadra {
    flex-direction: row;
    gap: 0;
    min-width: 0;
    text-align: center;
}

.sponsor-partner__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(2.75rem, 6vw, 3.5rem);
    height: clamp(2.75rem, 6vw, 3.5rem);
}

.sponsor-partner__logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sponsor-partner__logo-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.sponsor-partner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(200, 16, 46, 0.18);
    color: var(--accent-red);
    font-size: 0.62rem;
    font-weight: 800;
}

.sponsor-partner__name {
    font-size: 0.88rem;
    font-weight: 600;
}

.sponsor-partner--squadra .sponsor-partner__name {
    max-width: 6.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-secondary);
}

.article-sponsor {
    margin-top: var(--space-xl);
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

.article-sponsor .sponsor-unit--rectangle {
    width: 100%;
}

.news-grid__sponsor {
    display: flex;
    min-height: 100%;
    grid-column: 1 / -1;
}

.news-grid__sponsor .sponsor-unit {
    width: 100%;
}


/* ==========================================================================
   PAGINE SQUADRE
   ========================================================================== */
.teams-section {
    width: 100%;
}

.teams-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(var(--space-md), 3vw, var(--space-lg));
    width: 100%;
}

.team-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    width: 150px;
    height: 150px;
    padding: var(--space-md);
    color: inherit;
    text-align: center;
    text-decoration: none;
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.team-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.team-tile__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.team-tile__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-tile__logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--text-inverse);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.team-tile__name {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.team-tile:hover .team-tile__name {
    color: var(--primary-blue);
}

.teams-category {
    margin-bottom: var(--space-3xl);
}

.teams-category:last-child {
    margin-bottom: 0;
}

.teams-category__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary-blue-light);
}

.team-page {
    width: 100%;
}

.team-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.team-breadcrumb a {
    color: var(--primary-blue);
}

.team-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: stretch;
    margin-bottom: var(--space-2xl);
}

.team-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: var(--team-logo-frame-width);
    max-width: 100%;
    min-height: 100%;
    padding: var(--team-logo-inset);
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--primary-blue-light);
    background-image: linear-gradient(180deg, #d9ecff 0%, var(--primary-blue-light) 100%);
    border: 1px solid rgba(0, 123, 255, 0.18);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.team-header__logo-img {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.team-header__logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--text-inverse);
    font-size: clamp(2rem, 10vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.team-header__content {
    min-width: 0;
}

.team-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-block: var(--space-md);
}

.team-summary {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.team-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: var(--space-md);
    width: 100%;
}

.team-meta__item {
    padding: var(--space-md);
    background-color: var(--bg-subtle);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.team-meta__item dt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.team-meta__item dd {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.team-figure {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.team-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(56vh, 520px);
    min-height: 220px;
    object-fit: cover;
}

.team-image--mobile {
    display: none;
}

.team-roster {
    width: 100%;
    margin-bottom: var(--section-space);
}

.team-roster__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-lg);
}

.team-player-card {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.team-player-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.team-player-card__photo {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-subtle);
    overflow: hidden;
}

.team-player-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-player-card__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-blue);
    background: linear-gradient(135deg, var(--bg-subtle), var(--bg-page));
}

.team-player-card__number {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    min-width: 2rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-align: center;
}

.team-player-card__body {
    padding: var(--space-md);
    text-align: center;
}

.team-player-card__body h3 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.team-player-card__body p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.team-body {
    width: 100%;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.team-body p {
    margin-bottom: var(--space-lg);
}

.team-section {
    width: 100%;
    margin-bottom: var(--section-space);
}

.team-section:last-of-type {
    margin-bottom: 0;
}

.team-stats-block {
    width: 100%;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: clamp(var(--space-md), 3vw, var(--space-xl));
}

.team-stats-block--risultati {
    border-top: 4px solid var(--primary-blue);
}

.team-stats-block--classifica,
.team-stats-block--iframe {
    border-top: 4px solid var(--accent-red, #c8102e);
}

.team-stats-block__header {
    margin-bottom: var(--space-lg);
}

.team-stats-block__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.team-stats-block__subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.team-stats-block__updated {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.team-stats-block__source {
    margin-top: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.team-stats-block__source a {
    color: var(--primary-blue);
    font-weight: 600;
}

.standings-iframe-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-page);
}

.standings-iframe {
    display: block;
    width: 100%;
    min-height: clamp(720px, 92vh, 1100px);
    height: clamp(720px, 92vh, 1100px);
    border: 0;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.result-card {
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    border-left: 4px solid var(--border-color);
}

.result-card--win {
    border-left-color: #198754;
}

.result-card--draw {
    border-left-color: #ffc107;
}

.result-card--loss {
    border-left-color: #dc3545;
}

.result-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.result-card__competition {
    font-weight: 600;
    color: var(--text-secondary);
}

.result-card__match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.result-card__team {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.result-card__team:first-child {
    text-align: right;
}

.result-card__team--current {
    font-weight: 800;
    color: var(--primary-blue);
}

.result-card__score {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}

.result-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 999px;
    background-color: var(--bg-subtle);
    color: var(--text-secondary);
}

.result-card--win .result-card__badge {
    background-color: #d1e7dd;
    color: #0f5132;
}

.result-card--draw .result-card__badge {
    background-color: #fff3cd;
    color: #664d03;
}

.result-card--loss .result-card__badge {
    background-color: #f8d7da;
    color: #842029;
}

.standings-table-wrap {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.standings-table th,
.standings-table td {
    padding: 0.65rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
    text-align: left;
}

.standings-table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background-color: var(--bg-page);
}

.standings-table tbody tr.is-current {
    background-color: var(--primary-blue-light);
}

.standings-table tbody tr.is-current th {
    color: var(--primary-blue);
}

.team-not-found {
    max-width: 520px;
    margin-inline: auto;
    text-align: center;
    padding-block: var(--space-3xl);
}

.team-not-found h1 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.team-not-found p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(var(--space-md), 3vw, var(--space-xl));
}

.team-card {
    background-color: var(--bg-page);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.team-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.team-card-figure {
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.team-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-card:hover .team-card-image {
    transform: scale(1.05);
}

.team-card-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.team-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    transition: color var(--transition-base);
}

.team-card:hover .team-card-title {
    color: var(--primary-blue);
}

.team-card-summary {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.team-card-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
}


/* ==========================================================================
   MEDIA QUERIES — Tablet (≤ 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content {
        padding: var(--space-lg) var(--space-xl);
    }

    .team-header {
        grid-template-columns: 1fr;
        justify-items: center;
        align-items: center;
        text-align: center;
    }

    .team-header__content {
        width: 100%;
    }

    .team-header__logo {
        align-self: center;
        width: min(var(--team-logo-frame-width), 72vw);
        min-height: 0;
        aspect-ratio: 1;
        padding: var(--team-logo-inset);
    }

    .team-header__logo-img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center center;
    }

    .team-header__logo-fallback {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }

    .team-meta {
        text-align: left;
    }

    .teams-row {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--space-sm);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .team-tile {
        flex-shrink: 0;
    }
}


/* ==========================================================================
   MEDIA QUERIES — Mobile (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-height:           82px;
        --logo-header-frame-h:     64px;
        --logo-header-frame-w:     150px;
        --logo-header-zoom:        1.6;
        --logo-footer-frame-h:     58px;
        --logo-footer-frame-w:     210px;
        --logo-footer-zoom:        1.6;
        --team-logo-inset:         clamp(14px, 5vw, 20px);
    }

    .team-header__logo {
        width: min(var(--team-logo-frame-width), 68vw);
    }

    .sponsor-banner.sponsor-banner--image:has(.sponsor-banner__picture) .sponsor-banner__visual,
    .sponsor-banner.sponsor-banner--image .sponsor-banner__visual--mobile-only {
        height: auto;
        max-height: none;
        aspect-ratio: 1920 / 500;
    }

    .sponsor-stripe--mobile-only,
    .sponsor-banner--mobile-only {
        display: block;
    }

    .team-figure {
        aspect-ratio: 1920 / 500;
        max-height: none;
    }

    .team-image {
        width: 100%;
        height: 100%;
        max-height: none;
        min-height: 0;
        object-fit: cover;
        object-position: center center;
    }

    .team-image--desktop:not(.team-image--desktop-fallback) {
        display: none;
    }

    .team-image--mobile {
        display: block;
    }

    /* Header mobile */
    .header-brand {
        flex: 1;
        min-width: 0;
    }

    .header-tagline {
        display: none;
    }

    .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: var(--space-sm);
        min-height: 64px;
        padding-block: var(--space-sm);
    }

    .menu-toggle {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        position: relative;
        z-index: 1002;
    }

    .header-actions {
        grid-column: 3;
        grid-row: 1;
        margin-left: 0;
        position: relative;
        z-index: 1002;
    }

    img.logo {
        object-position: left center;
        transform-origin: left center;
    }

    /* Nascondi il form di ricerca di default su mobile */
    .search-toggle {
        display: flex;
    }

    .search-form {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: 260px;
        z-index: 100;
        box-shadow: var(--shadow-lg);
        background-color: var(--bg-page);
    }

    .search-form.is-open {
        display: flex;
    }

    .search-input {
        width: 100%;
    }

    /* Nascondi il pulsante Accedi su schermi molto piccoli */
    .btn--login {
        display: none;
    }

    /* Menu a comparsa */
    .main-nav {
        position: fixed;
        top: var(--site-header-offset, var(--header-height));
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        flex: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-xl) var(--space-lg);
        background-color: var(--bg-page);
        transform: translateX(-100%);
        transition: transform var(--transition-base), visibility var(--transition-base);
        z-index: 1001;
        overflow-y: auto;
        visibility: hidden;
        pointer-events: none;
    }

    .main-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-xs);
        width: 100%;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: var(--space-md) var(--space-lg);
        border-radius: var(--border-radius);
    }

    .nav-dropdown {
        position: static;
        display: block;
        min-width: 0;
        margin-top: 0.1rem;
        padding: 0 0 var(--space-sm) var(--space-lg);
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .nav-dropdown-link {
        padding: 0.45rem 0;
        font-size: 0.95rem;
        color: var(--text-secondary);
    }

    .nav-dropdown-link:hover {
        background: transparent;
        color: var(--primary-blue);
    }

    /* Hero */
    .hero-figure {
        aspect-ratio: 16 / 9;
    }

    .hero-content {
        padding: var(--space-lg);
    }

    /* Footer impilato */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-tagline {
        margin-inline: auto;
    }

    .footer-links {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
    }

    .sponsor-banner--leaderboard,
    .sponsor-banner--card,
    .sponsor-banner--rectangle {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .sponsor-banner__cta {
        align-self: flex-start;
    }

    .news-grid__sponsor {
        grid-column: 1 / -1;
    }

    .sponsor-partners {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .sponsor-partner {
        justify-content: center;
    }
}


/* ==========================================================================
   MEDIA QUERIES — Mobile piccolo (≤ 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .hero-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .section-header {
        text-align: left;
    }
}


/* ==========================================================================
   HOMEPAGE — Layout testata giornalistica
   ========================================================================== */
.site-page .hero,
.home-page .hero,
.site-page .news-section,
.home-page .news-section {
    padding-block: 0;
}

.home-edition {
    background-color: var(--ink);
    color: var(--text-inverse);
    border-bottom: 3px solid var(--accent-red);
}

.home-edition__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm) var(--space-lg);
    padding-block: 0.65rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-edition__brand {
    font-weight: 700;
}

.home-edition__date {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.home-featured,
.home-latest {
    padding-block: var(--section-space);
}

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: clamp(var(--space-lg), 3vw, var(--space-2xl));
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--rule-strong);
}

.home-section-head__title {
    font-family: var(--font-headline);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.home-section-head__subtitle {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.home-section-head__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--ink);
    transition: color var(--transition-base);
}

.home-section-head__more:hover {
    color: var(--accent-red);
}

.home-featured__layout {
    display: grid;
    gap: clamp(var(--space-lg), 2.5vw, var(--space-2xl));
}

.home-featured__layout--count-1 {
    grid-template-columns: 1fr;
}

.home-featured__layout--count-2 {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: stretch;
}

.home-featured__layout--count-3 {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.95fr);
    align-items: stretch;
}

.home-featured__aside {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid var(--rule-light);
}

.home-story {
    min-width: 0;
}

.home-story__link {
    display: block;
    color: inherit;
    height: 100%;
    transition: opacity var(--transition-base);
}

.home-story__link:hover {
    opacity: 0.92;
}

.home-story__link--portrait,
.home-story__link--square {
    display: flex;
    gap: clamp(var(--space-md), 2vw, var(--space-xl));
    align-items: flex-start;
}

.home-story--lead .home-story__link--landscape,
.home-story--lead .home-story__link--auto {
    display: grid;
    grid-template-columns: 1fr;
}

.home-story__figure {
    overflow: hidden;
    background-color: var(--bg-subtle);
    margin: 0;
}

.home-story--lead .home-story__figure--landscape,
.home-story--lead .home-story__figure--auto {
    aspect-ratio: 16 / 9;
}

.home-story__link--portrait .home-story__figure,
.home-story__link--square .home-story__figure {
    flex: 0 0 clamp(150px, 34%, 280px);
    width: clamp(150px, 34%, 280px);
}

.home-story--compact .home-story__link--portrait,
.home-story--compact .home-story__link--square {
    flex-direction: row;
}

.home-story--compact .home-story__link--portrait .home-story__figure,
.home-story--compact .home-story__link--square .home-story__figure {
    flex-basis: 120px;
    width: 120px;
}

.home-story__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-story__link--portrait .home-story__image,
.home-story__link--square .home-story__image {
    object-fit: contain;
}

.home-story__body {
    padding-block: clamp(0.75rem, 1.5vw, 1.25rem);
}

.home-story--lead .home-story__body {
    padding: clamp(var(--space-md), 2vw, var(--space-xl)) 0 0;
}

.home-story--compact {
    border-top: 1px solid var(--rule-light);
}

.home-story--compact:first-child {
    border-top: 0;
}

.home-story--compact .home-story__body {
    padding: var(--space-lg);
}

.home-story__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.home-kicker {
    color: var(--accent-red);
}

.home-story__title {
    font-family: var(--font-headline);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.015em;
    transition: color var(--transition-base);
}

.home-story--lead .home-story__title {
    font-size: clamp(1.75rem, 3.6vw, 2.85rem);
    margin-bottom: 0.75rem;
}

.home-story--compact .home-story__title {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.home-story--standard .home-story__title {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    margin-bottom: 0.55rem;
}

.home-story__link:hover .home-story__title {
    color: var(--primary-blue-dark);
}

.home-story__summary {
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    line-height: 1.65;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.home-story--lead .home-story__summary {
    -webkit-line-clamp: 4;
    line-clamp: 4;
    max-width: 62ch;
}

.home-story--compact .home-story__summary {
    display: none;
}

.home-story__byline {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-latest {
    background-color: var(--bg-subtle);
    border-top: 1px solid var(--rule-light);
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 2px solid var(--rule-strong);
}

.home-story--standard {
    border-right: 1px solid var(--rule-light);
    border-bottom: 1px solid var(--rule-light);
    background-color: var(--bg-page);
}

.home-story--standard:nth-child(3n) {
    border-right: 0;
}

.home-story--standard .home-story__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-story--standard .home-story__figure {
    aspect-ratio: 16 / 10;
}

.home-story--standard .home-story__link--portrait,
.home-story--standard .home-story__link--square {
    flex-direction: column;
}

.home-story--standard .home-story__link--portrait .home-story__figure,
.home-story--standard .home-story__link--square .home-story__figure {
    width: 100%;
    flex: none;
    aspect-ratio: 4 / 5;
}

.home-story--standard .home-story__body {
    padding: var(--space-lg);
    flex: 1;
}

.home-empty {
    padding: var(--space-2xl);
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-page);
    border: 1px solid var(--rule-light);
}

/* ── Sezione video homepage ─────────────────────────────────────────────────── */
.home-videos-band {
    padding-block: var(--section-space);
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(0, 123, 255, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, #141414 0%, var(--dark-bg) 100%);
    color: var(--text-inverse);
    border-top: 3px solid var(--accent-red);
}

.home-videos-band__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: clamp(var(--space-lg), 3vw, var(--space-2xl));
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-videos-band__eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-red);
}

.home-videos-band__title {
    font-family: var(--font-headline);
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
}

.home-videos-band__subtitle {
    margin-top: 0.4rem;
    max-width: 48ch;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}

.home-videos-band__more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-base), border-color var(--transition-base), transform var(--transition-fast);
}

.home-videos-band__more:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.home-videos-band__count {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
}

.home-videos-band__more-icon {
    transition: transform var(--transition-base);
}

.home-videos-band__more:hover .home-videos-band__more-icon {
    transform: translateX(3px);
}

.home-videos-showcase {
    display: grid;
    gap: clamp(var(--space-md), 2vw, var(--space-xl));
}

.home-videos-showcase--split {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
    align-items: stretch;
}

.home-videos-showcase--split .video-rail {
    min-height: 0;
}

@media (min-width: 1025px) {
    .home-videos-showcase--split .video-rail {
        height: 100%;
    }

    .home-videos-showcase--split .video-rail__item {
        flex: 1 1 0;
        min-height: 0;
    }
}

.home-videos-showcase--solo {
    grid-template-columns: minmax(0, 1fr);
    max-width: 920px;
}

.video-spotlight,
.video-rail__item,
.video-card,
.video-archive-card {
    min-width: 0;
}

.video-spotlight__link,
.video-rail__link,
.video-card__link,
.video-archive-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.video-spotlight__link {
    display: grid;
    gap: clamp(var(--space-md), 2vw, var(--space-lg));
    height: 100%;
}

.video-spotlight__layout {
    display: grid;
    gap: clamp(var(--space-md), 2vw, var(--space-lg));
    height: 100%;
}

.video-spotlight--inline .video-spotlight__layout {
    grid-template-columns: minmax(220px, min(38vw, 400px)) minmax(0, 1fr);
    align-items: center;
    gap: clamp(var(--space-lg), 3vw, var(--space-2xl));
}

.video-spotlight--portrait .video-spotlight__layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, min(38vw, 400px));
    align-items: start;
}

.video-spotlight--portrait .video-inline-player--spotlight {
    justify-self: end;
    width: min(100%, 400px);
}

.video-spotlight--portrait .video-spotlight__body {
    padding-inline: 0;
    padding-right: clamp(var(--space-md), 2vw, var(--space-xl));
}

.video-spotlight--portrait .video-spotlight__summary {
    display: block;
    max-width: none;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.video-inline-player {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    background-color: #000;
}

.video-inline-player--spotlight.video-inline-player--portrait,
.video-inline-player--spotlight.video-inline-player--landscape {
    aspect-ratio: 9 / 16;
    width: min(100%, 400px, calc(78vh * 9 / 16));
    max-height: none;
}

.video-inline-player--spotlight:not(.video-inline-player--portrait):not(.video-inline-player--landscape) {
    aspect-ratio: 16 / 9;
}

.video-inline-player--rail.video-inline-player--portrait,
.video-inline-player--rail.video-inline-player--landscape {
    aspect-ratio: 9 / 16;
}

.video-inline-player--rail {
    flex: 0 0 clamp(108px, 22vw, 148px);
    width: clamp(108px, 22vw, 148px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: flex-basis var(--transition-base), width var(--transition-base), aspect-ratio var(--transition-base), max-height var(--transition-base);
}

.video-inline-player--rail:not(.video-inline-player--portrait):not(.video-inline-player--landscape) {
    aspect-ratio: 16 / 10;
}

.video-inline-player__preview,
.video-inline-player__embed {
    position: absolute;
    inset: 0;
}

.video-inline-player__preview {
    z-index: 1;
}

.video-inline-player__preview .video-thumb {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    box-shadow: none;
}

.video-inline-player--portrait .video-thumb--spotlight,
.video-inline-player--portrait .video-thumb--rail {
    aspect-ratio: auto;
    height: 100%;
}

.video-inline-player__play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.video-inline-player__play svg {
    width: clamp(1.75rem, 3vw, 2.35rem);
    height: clamp(1.75rem, 3vw, 2.35rem);
    padding: clamp(0.75rem, 1.6vw, 1rem);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.62);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.45);
    transition: transform var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base);
}

.video-inline-player--rail .video-inline-player__play svg {
    width: clamp(1.35rem, 2.4vw, 1.75rem);
    height: clamp(1.35rem, 2.4vw, 1.75rem);
    padding: clamp(0.55rem, 1.2vw, 0.75rem);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.video-inline-player__play:hover svg,
.video-inline-player__play:focus-visible svg {
    transform: scale(1.08);
    background: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.35);
}

.video-inline-player__embed {
    z-index: 3;
    overflow: hidden;
}

.video-inline-player--youtube .video-inline-player__embed > iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Clip Instagram: riempie il player e ritaglia chrome IG (nav + footer) */
.video-inline-player__embed .ig-embed-clip {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: inherit;
}

.video-inline-player__embed .ig-embed-clip__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 120px);
    transform: scale(var(--ig-crop-scale));
    transform-origin: center var(--ig-crop-origin-y);
}

.video-inline-player.is-playing .video-inline-player__preview {
    visibility: hidden;
    pointer-events: none;
}

.video-inline-player--autoload .video-inline-player__embed {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.video-rail__layout {
    display: flex;
    align-items: center;
    gap: clamp(var(--space-sm), 2vw, var(--space-md));
    padding: clamp(0.75rem, 1.8vw, 1rem);
}

.video-rail__item--inline {
    transition: background-color var(--transition-base);
}

.video-rail__item--inline.is-playing {
    background: rgba(255, 255, 255, 0.05);
}

.video-rail__item--inline.is-playing .video-rail__layout {
    flex-direction: column;
    align-items: stretch;
}

.video-rail__item--inline.is-playing .video-inline-player--rail {
    flex: none;
    width: min(100%, 360px, calc(72vh * 9 / 16));
    margin-inline: auto;
    max-height: none;
    aspect-ratio: 9 / 16;
}

@media (max-width: 768px) {
    .video-spotlight--inline .video-spotlight__layout,
    .video-spotlight--portrait .video-spotlight__layout {
        grid-template-columns: 1fr;
    }

    /* Titolo e descrizione sempre sopra il video in responsive */
    .video-spotlight--inline .video-spotlight__body,
    .video-spotlight--portrait .video-spotlight__body {
        order: -1;
        padding-right: 0;
    }

    .video-spotlight--inline .video-spotlight__summary,
    .video-spotlight--portrait .video-spotlight__summary {
        display: block;
        max-width: none;
        overflow: visible;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }

    .video-spotlight--portrait .video-inline-player--spotlight {
        justify-self: center;
    }

    .video-inline-player--spotlight.video-inline-player--portrait,
    .video-inline-player--spotlight.video-inline-player--landscape {
        width: min(100%, 340px, calc(72vh * 9 / 16));
        margin-inline: auto;
    }

    .video-rail__title,
    .video-rail__summary {
        -webkit-line-clamp: unset;
        line-clamp: unset;
        overflow: visible;
        display: block;
    }
}

.video-spotlight__cta--hint {
    color: rgba(255, 255, 255, 0.55);
}

.video-spotlight__title-link,
.video-rail__title-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

.video-spotlight__title-link:hover,
.video-rail__title-link:hover {
    color: var(--primary-blue-light);
}

.video-thumb {
    position: relative;
    margin: 0;
    overflow: hidden;
    background-color: var(--dark-bg-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.video-thumb--spotlight {
    aspect-ratio: 16 / 9;
}

.video-thumb--rail,
.video-thumb--archive {
    flex: 0 0 clamp(108px, 22vw, 148px);
    width: clamp(108px, 22vw, 148px);
    aspect-ratio: 16 / 10;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.video-thumb--card {
    aspect-ratio: 16 / 10;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    box-shadow: none;
}

.video-thumb__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-thumb__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.video-thumb__fallback--instagram {
    background: #000;
}

.video-thumb--instagram {
    background: #000;
}

.video-thumb__squadra-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(62%, 4.5rem);
    max-height: min(62%, 4.5rem);
    object-fit: contain;
}

.video-thumb--spotlight .video-thumb__squadra-logo {
    max-width: min(48%, 7rem);
    max-height: min(48%, 7rem);
}

.video-thumb__squadra-initials {
    display: grid;
    place-items: center;
    width: clamp(2.5rem, 40%, 3.5rem);
    height: clamp(2.5rem, 40%, 3.5rem);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: clamp(0.85rem, 2.2vw, 1.1rem);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.video-thumb__fallback--youtube {
    background: linear-gradient(135deg, #ff4d4d 0%, #c8102e 100%);
}

.video-thumb__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.video-thumb--rail .video-thumb__shade,
.video-thumb--archive .video-thumb__shade {
    background: rgba(0, 0, 0, 0.28);
}

.video-thumb__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    pointer-events: none;
}

.video-thumb__play svg {
    width: clamp(1.35rem, 2.4vw, 1.75rem);
    height: clamp(1.35rem, 2.4vw, 1.75rem);
    padding: clamp(0.55rem, 1.2vw, 0.75rem);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.62);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
    transition: transform var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base);
}

.video-thumb--spotlight .video-thumb__play svg {
    width: clamp(1.75rem, 3vw, 2.35rem);
    height: clamp(1.75rem, 3vw, 2.35rem);
    padding: clamp(0.75rem, 1.6vw, 1rem);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.45);
}

.video-spotlight__link:hover .video-thumb__image,
.video-rail__link:hover .video-thumb__image,
.video-card__link:hover .video-thumb__image,
.video-archive-card__link:hover .video-thumb__image {
    transform: scale(1.04);
}

.video-spotlight__link:hover .video-thumb__play svg,
.video-rail__link:hover .video-thumb__play svg,
.video-card__link:hover .video-thumb__play svg,
.video-archive-card__link:hover .video-thumb__play svg {
    transform: scale(1.08);
    background: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.35);
}

.video-spotlight__body {
    padding-inline: 0.15rem;
}

.video-spotlight__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.85rem;
    margin-bottom: 0.7rem;
}

.video-spotlight__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.video-spotlight__title {
    font-family: var(--font-headline);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
    scroll-margin-top: calc(var(--header-height) + 12px);
    transition: color var(--transition-base);
}

.video-spotlight__summary {
    margin-top: 0.65rem;
    max-width: 58ch;
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.74);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.video-spotlight__cta {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-blue-light);
    transition: color var(--transition-base);
}

.video-spotlight__link:hover .video-spotlight__title {
    color: var(--primary-blue-light);
}

.video-spotlight__link:hover .video-spotlight__cta {
    color: #fff;
}

.video-rail {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.video-rail__item {
    display: flex;
    flex: 0 0 auto;
    min-height: 4.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-rail__item:first-child {
    border-top: 0;
}

.video-rail__link {
    display: flex;
    align-items: center;
    gap: clamp(var(--space-sm), 2vw, var(--space-md));
    padding: clamp(0.75rem, 1.8vw, 1rem);
    transition: background-color var(--transition-base);
}

.video-rail__select {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.video-rail__item--selector.is-active .video-rail__select {
    background: rgba(0, 123, 255, 0.16);
}

.video-rail__link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.video-rail__body {
    flex: 1;
    min-width: 0;
}

.video-rail__title {
    margin-top: 0.45rem;
    font-family: var(--font-headline);
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    transition: color var(--transition-base);
}

.video-rail__summary {
    margin-top: 0.35rem;
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.video-rail__link:hover .video-rail__title {
    color: var(--primary-blue-light);
}

.video-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
}

.video-badge--youtube {
    background: rgba(200, 16, 46, 0.22);
    color: #ffb3be;
}

.video-badge--instagram {
    background: rgba(214, 36, 159, 0.2);
    color: #ffc4ea;
}

.video-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(var(--space-md), 2vw, var(--space-lg));
}

.video-card {
    background: var(--bg-page);
    border: 1px solid var(--rule-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-fast);
}

.video-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.video-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card__body {
    padding: var(--space-lg);
    flex: 1;
}

.video-card__title {
    margin-top: 0.55rem;
    font-family: var(--font-headline);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
    transition: color var(--transition-base);
}

.video-card__summary {
    margin-top: 0.45rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.video-card__link:hover .video-card__title {
    color: var(--primary-blue-dark);
}

.video-archive-card {
    border-bottom: 1px solid var(--rule-light);
    background-color: var(--bg-page);
}

.video-archive-card__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(var(--space-md), 2.5vw, var(--space-xl));
    padding: clamp(0.85rem, 2vw, 1.15rem) clamp(var(--space-md), 2.5vw, var(--space-lg));
}

.video-archive-card__body {
    order: 1;
    flex: 1;
    min-width: 0;
}

.video-archive-card .video-thumb {
    order: 2;
}

.video-archive-card__title {
    margin-top: 0.45rem;
    font-family: var(--font-headline);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
    transition: color var(--transition-base);
}

.video-archive-card__summary {
    margin-top: 0.4rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.video-archive-card__link:hover .video-archive-card__title {
    color: var(--primary-blue-dark);
}

.video-page__content {
    width: 100%;
}

.video-header__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 0.35rem;
}

.video-header__tags .category-tag {
    margin-bottom: 0;
}

.category-tag--squadra {
    color: var(--primary-blue-dark);
}

/* Video verticale: titolo → descrizione → video centrato; testi a piena larghezza pagina */
.video-page--portrait .video-header {
    text-align: left;
    width: 100%;
    max-width: none;
}

.video-page--portrait .video-header__tags {
    justify-content: flex-start;
}

.video-page--portrait .article-title {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.video-page__content--portrait {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(var(--space-md), 2.5vw, var(--space-xl));
    width: 100%;
    max-width: none;
}

.video-page__copy {
    min-width: 0;
    width: 100%;
}

.video-page__content--portrait .video-page__copy {
    width: 100%;
    max-width: none;
    text-align: left;
}

.video-page__content--portrait .video-page__lead,
.video-page--portrait .video-page__lead {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    margin-inline: 0;
}

.video-page__content--portrait .video-page__figure--portrait {
    align-self: center;
    width: min(100%, 400px, calc(78vh * 9 / 16));
}

.video-page__lead {
    max-width: 62ch;
    margin-bottom: var(--space-xl);
}

.video-page--portrait .video-page__lead {
    max-width: none;
}

.video-page__figure {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    background-color: var(--bg-subtle);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.video-page__figure--instagram {
    aspect-ratio: auto;
    height: auto;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    display: flex;
    justify-content: center;
}

.video-page__figure--instagram.video-page__figure--portrait {
    width: min(100%, 400px, calc(78vh * 9 / 16));
    max-width: 100%;
}

/*
 * Instagram embed — maschera fluida 9/16 (niente altezze fisse sul wrapper).
 * L'iframe è più alto (calc +120px) e scalato: nav/footer IG escono dall'overflow.
 * Scale/origin in % così resta responsive su desktop e mobile.
 */
.ig-embed-clip {
    --ig-crop-scale: 1.7;
    --ig-crop-origin-y: 36%;
    position: relative;
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.ig-embed-clip__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 120px);
    margin: 0;
    padding: 0;
    border: 0;
    transform: scale(var(--ig-crop-scale));
    transform-origin: center var(--ig-crop-origin-y);
}

.ig-embed-clip--detail {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
}

.video-page__figure--portrait .ig-embed-clip--detail {
    max-width: 100%;
}

.ig-embed-clip--inline {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: inherit;
}

.video-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-embed--instagram {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    inset: auto;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.video-page__figure .video-embed {
    position: absolute;
    inset: 0;
}

.video-page__figure .video-embed--instagram {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.video-page__figure--portrait .video-embed--instagram {
    width: 100%;
}

.video-embed--youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

@media (max-width: 768px) {
    .video-page__content--portrait .video-page__figure--portrait,
    .video-page__figure--instagram.video-page__figure--portrait {
        width: min(100%, 340px, calc(72vh * 9 / 16));
        margin-inline: auto;
    }
}

@media (max-width: 1024px) {
    .home-videos-showcase--split {
        grid-template-columns: 1fr;
    }

    .home-videos-showcase--split .video-rail {
        height: auto;
    }

    .home-videos-showcase--split .video-rail__item {
        flex: 0 0 auto;
        min-height: 4.75rem;
    }

    /* Titolo sopra anteprima anche per YouTube (link, non inline) */
    .video-spotlight__link .video-spotlight__body {
        order: -1;
    }

    .video-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-videos-band__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-archive-card__link {
        align-items: flex-start;
    }

    .video-thumb--rail,
    .video-thumb--archive {
        flex-basis: 96px;
        width: 96px;
    }

    .video-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .home-featured__layout--count-2,
    .home-featured__layout--count-3 {
        grid-template-columns: 1fr;
        gap: clamp(var(--space-md), 2.5vw, var(--space-xl));
    }

    .home-featured__aside {
        border-left: 0;
        border-top: 2px solid var(--rule-strong);
    }

    .home-featured .home-story--lead .home-story__title {
        font-size: clamp(1.55rem, 4vw, 2.25rem);
    }

    .home-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-story--standard:nth-child(3n) {
        border-right: 1px solid var(--rule-light);
    }

    .home-story--standard:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 768px) {
    /* Fuori da "In primo piano": stack verticale */
    .home-latest .home-story__link--portrait,
    .home-latest .home-story__link--square,
    .home-news-grid .home-story__link--portrait,
    .home-news-grid .home-story__link--square {
        flex-direction: column;
    }

    .home-latest .home-story__link--portrait .home-story__figure,
    .home-latest .home-story__link--square .home-story__figure,
    .home-news-grid .home-story__link--portrait .home-story__figure,
    .home-news-grid .home-story__link--square .home-story__figure {
        width: 100%;
        flex: none;
    }

    /* In primo piano: stessa struttura del desktop, dimensioni adattate */
    .home-featured {
        padding-block: clamp(1.25rem, 4vw, 2rem);
    }

    .home-featured .home-section-head {
        margin-bottom: var(--space-md);
        padding-bottom: 0.65rem;
    }

    .home-featured .home-story--lead .home-story__link--portrait,
    .home-featured .home-story--lead .home-story__link--square {
        flex-direction: column;
    }

    .home-featured .home-story--lead .home-story__link--portrait .home-story__figure,
    .home-featured .home-story--lead .home-story__link--square .home-story__figure {
        width: 100%;
        flex: none;
        max-width: none;
    }

    .home-featured .home-story--lead .home-story__figure--landscape,
    .home-featured .home-story--lead .home-story__figure--auto {
        aspect-ratio: 16 / 9;
    }

    .home-featured .home-story--lead .home-story__body {
        padding-top: var(--space-md);
    }

    .home-featured .home-story--lead .home-story__title {
        font-size: clamp(1.4rem, 5.5vw, 1.85rem);
        margin-bottom: 0.55rem;
    }

    .home-featured .home-story--lead .home-story__summary {
        font-size: 0.95rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
    }

    .home-featured .home-story--compact .home-story__link--portrait,
    .home-featured .home-story--compact .home-story__link--square,
    .home-featured .home-story--compact .home-story__link--landscape,
    .home-featured .home-story--compact .home-story__link--auto {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .home-featured .home-story--compact .home-story__link--portrait .home-story__figure,
    .home-featured .home-story--compact .home-story__link--square .home-story__figure,
    .home-featured .home-story--compact .home-story__link--landscape .home-story__figure,
    .home-featured .home-story--compact .home-story__link--auto .home-story__figure {
        flex: 0 0 96px;
        width: 96px;
        aspect-ratio: 1;
    }

    .home-featured .home-story--compact .home-story__body {
        padding: var(--space-md) var(--space-md) var(--space-md) 0;
        min-width: 0;
    }

    .home-featured .home-story--compact .home-story__title {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    }

    .home-featured .home-story--compact .home-story__meta {
        margin-bottom: 0.4rem;
        font-size: 0.7rem;
    }

    .home-news-grid {
        grid-template-columns: 1fr;
    }

    .home-story--standard {
        border-right: 0;
    }
}

@media (max-width: 480px) {
    .home-featured .home-story--compact .home-story__link--portrait .home-story__figure,
    .home-featured .home-story--compact .home-story__link--square .home-story__figure,
    .home-featured .home-story--compact .home-story__link--landscape .home-story__figure,
    .home-featured .home-story--compact .home-story__link--auto .home-story__figure {
        flex-basis: 84px;
        width: 84px;
    }

    .home-featured .home-story--lead .home-story__byline {
        font-size: 0.82rem;
    }
}


/* ==========================================================================
   PAGINE SITO — Stile editoriale uniforme
   ========================================================================== */
.site-page .article-page,
.site-page .video-page,
.site-page .team-page,
.site-page .teams-section,
.site-page .related-section,
.site-page .home-featured,
.site-page .home-latest {
    padding-block: var(--section-space);
}

.site-page .related-section {
    background-color: var(--bg-page);
    border-top: 1px solid var(--rule-light);
}

.site-page .article-breadcrumb,
.site-page .team-breadcrumb {
    margin-bottom: var(--space-lg);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.site-page .article-breadcrumb a,
.site-page .team-breadcrumb a {
    color: var(--ink);
    transition: color var(--transition-base);
}

.site-page .article-breadcrumb a:hover,
.site-page .team-breadcrumb a:hover {
    color: var(--accent-red);
}

.site-page .category-tag {
    background-color: transparent;
    color: var(--accent-red);
    padding: 0;
    border-radius: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.site-page .article-title,
.site-page .team-title {
    font-family: var(--font-headline);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.site-page .article-meta {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.site-page .article-figure,
.site-page .team-figure {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--rule-light);
}

.site-page .team-figure {
    margin-top: var(--space-xl);
}

.site-page .article-lead {
    font-family: var(--font-headline);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.55;
}

.site-page .article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink);
}

.site-page .team-summary {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    line-height: 1.65;
    color: var(--text-secondary);
}

.site-page .team-meta__item {
    border-radius: 0;
    border-color: var(--rule-light);
    background-color: var(--bg-page);
}

.site-page .team-meta__item dt {
    color: var(--accent-red);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.site-page .team-header__logo,
.site-page .team-player-card,
.site-page .team-stats-block {
    border-radius: 0;
    box-shadow: none;
    border-color: rgba(0, 123, 255, 0.14);
}

.site-page .team-header__logo {
    background-color: var(--primary-blue-light);
    background-image: linear-gradient(180deg, #d9ecff 0%, var(--primary-blue-light) 100%);
    overflow: hidden;
}

.site-page .team-header__logo-fallback,
.site-page .team-tile__logo-fallback,
.site-page .team-player-card__fallback {
    border-radius: 0;
    background-color: var(--ink);
}

.site-page .team-stats-block__title {
    font-family: var(--font-headline);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.015em;
}

.site-page .teams-row {
    justify-content: flex-start;
}

.site-page .team-tile {
    width: clamp(140px, 16vw, 170px);
    height: auto;
    min-height: 150px;
    border-radius: 0;
    border-color: var(--rule-light);
    box-shadow: none;
    transition: border-color var(--transition-base), background-color var(--transition-base);
}

.site-page .team-tile:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--accent-red);
    background-color: var(--bg-subtle);
}

.site-page .team-tile:hover .team-tile__name {
    color: var(--accent-red);
}

.site-page .team-tile__name {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.site-page .article-not-found h1,
.site-page .team-not-found h1 {
    font-family: var(--font-headline);
    color: var(--ink);
}

.site-page .btn--primary {
    background-color: var(--ink);
    border-radius: 0;
}

.site-page .btn--primary:hover {
    background-color: var(--accent-red);
}

/* ==========================================================================
   ARCHIVIO ARTICOLI
   ========================================================================== */
.articles-archive {
    padding-block: var(--section-space);
}

.articles-toolbar {
    margin-bottom: clamp(var(--space-lg), 3vw, var(--space-2xl));
    padding: clamp(var(--space-md), 2.5vw, var(--space-lg));
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
}

.articles-toolbar__row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr) auto;
    gap: var(--space-md);
    align-items: end;
}

.articles-toolbar__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.articles-toolbar__field input,
.articles-toolbar__field select {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--bg-page);
    color: var(--text-primary);
    font: inherit;
}

.articles-toolbar__field input:focus,
.articles-toolbar__field select:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 1px;
}

.articles-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.articles-toolbar__submit,
.articles-toolbar__reset {
    min-height: 44px;
    white-space: nowrap;
}

.articles-toolbar__meta {
    margin: var(--space-md) 0 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.articles-grid {
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--rule-strong);
    background-color: var(--bg-page);
}

.home-story--archive {
    border-bottom: 1px solid var(--rule-light);
    background-color: var(--bg-page);
}

.home-story--archive .home-story__link--archive {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(var(--space-md), 2.5vw, var(--space-xl));
    padding: clamp(0.85rem, 2vw, 1.15rem) clamp(var(--space-md), 2.5vw, var(--space-lg));
}

.home-story--archive .home-story__body {
    order: 1;
    flex: 1;
    min-width: 0;
    padding: 0;
}

.home-story--archive .home-story__figure {
    order: 2;
    flex: 0 0 clamp(108px, 18vw, 140px);
    width: clamp(108px, 18vw, 140px);
    height: clamp(78px, 13vw, 102px);
    margin: 0;
    aspect-ratio: auto;
}

.home-story--archive .home-story__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-story--archive .home-story__title {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.home-story--archive .home-story__summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.home-story--archive .home-story__byline {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .home-story--archive .home-story__link--archive {
        align-items: flex-start;
    }

    .home-story--archive .home-story__figure {
        flex-basis: 96px;
        width: 96px;
        height: 72px;
    }

    .home-story--archive .home-story__summary {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

/* ==========================================================================
   PAGINA LAVORA CON NOI
   ========================================================================== */
.work-with-us {
    padding-block: var(--section-space);
}

.work-with-us__intro {
    max-width: 52rem;
    margin-bottom: clamp(var(--space-xl), 4vw, var(--space-3xl));
    padding-bottom: clamp(var(--space-lg), 3vw, var(--space-2xl));
    border-bottom: 2px solid var(--rule-strong);
}

.work-with-us__eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-red);
}

.work-with-us__title {
    margin: 0 0 1rem;
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.work-with-us__lead {
    margin: 0;
    max-width: 46rem;
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    line-height: 1.7;
    color: var(--text-secondary);
}

.work-with-us__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(var(--space-md), 2vw, var(--space-lg));
    margin-bottom: clamp(var(--space-xl), 4vw, var(--space-3xl));
}

.work-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-lg);
    min-height: 100%;
    padding: clamp(var(--space-lg), 2.5vw, var(--space-xl));
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-red);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.work-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--rule-strong);
}

.work-card__title {
    margin: 0 0 0.65rem;
    font-family: var(--font-headline);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
}

.work-card__description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.work-card__cta {
    align-self: flex-start;
    padding: 0.5rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--ink);
    transition: background-color var(--transition-base), color var(--transition-base);
}

.work-card__cta:hover {
    color: var(--text-inverse);
    background-color: var(--ink);
}

.work-with-us__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg) var(--space-xl);
    padding: clamp(var(--space-lg), 3vw, var(--space-2xl));
    background: var(--ink);
    color: var(--text-inverse);
    border-top: 3px solid var(--accent-red);
}

.work-with-us__contact-title {
    margin: 0 0 0.65rem;
    font-family: var(--font-headline);
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    font-weight: 800;
    line-height: 1.15;
}

.work-with-us__contact-copy {
    flex: 1 1 320px;
    max-width: 42rem;
}

.work-with-us__contact-copy p {
    margin: 0;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.work-with-us__contact-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.work-with-us__contact-btn {
    background-color: var(--text-inverse);
    color: var(--ink);
    border-radius: 0;
}

.work-with-us__contact-btn:hover {
    background-color: var(--accent-red);
    color: var(--text-inverse);
    transform: none;
    box-shadow: none;
}

.work-with-us__contact-mail {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.work-with-us__contact-mail:hover {
    color: var(--text-inverse);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .work-with-us__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .work-with-us__grid {
        grid-template-columns: 1fr;
    }

    .work-with-us__contact-actions {
        width: 100%;
    }

    .work-with-us__contact-btn {
        width: 100%;
    }
}

.work-form-section {
    padding-block: var(--section-space);
}

.work-form-section__inner {
    max-width: 760px;
}

.work-form-section__back {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.work-form-section__back:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.work-form-section__title {
    margin: 0 0 0.65rem;
    font-family: var(--font-headline);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
}

.work-form-section__subtitle {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.work-form-alert {
    padding: clamp(var(--space-lg), 3vw, var(--space-xl));
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border-color);
}

.work-form-alert--success {
    background: #f3fbf6;
    border-color: #b7e4c7;
}

.work-form-alert--error {
    background: #fff5f5;
    border-color: #fecaca;
}

.work-form-alert h2 {
    margin: 0 0 0.5rem;
    font-family: var(--font-headline);
    font-size: 1.35rem;
    color: var(--ink);
}

.work-form-alert p {
    margin: 0 0 var(--space-md);
    color: var(--text-secondary);
}

.work-form {
    padding: clamp(var(--space-lg), 3vw, var(--space-xl));
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.work-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md) var(--space-lg);
}

.work-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.work-form__field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.work-form__field input,
.work-form__field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--bg-page);
    color: var(--text-primary);
    font: inherit;
}

.work-form__field textarea {
    min-height: 150px;
    resize: vertical;
}

.work-form__field input:focus,
.work-form__field textarea:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 1px;
}

.work-form__field:has(textarea),
.work-form__field:has([name="messaggio"]) {
    grid-column: 1 / -1;
}

.work-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: var(--space-lg);
}

.work-form__submit {
    background-color: var(--ink);
    border-radius: 0;
}

.work-form__submit:hover {
    background-color: var(--accent-red);
}

@media (max-width: 768px) {
    .work-form__grid {
        grid-template-columns: 1fr;
    }
}

.articles-grid__item[hidden] {
    display: none;
}

.articles-empty {
    padding: clamp(var(--space-xl), 4vw, var(--space-3xl));
    text-align: center;
    background: var(--bg-subtle);
    border: 1px dashed var(--border-color);
}

.articles-empty h2 {
    margin: 0 0 0.65rem;
    font-family: var(--font-headline);
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    color: var(--ink);
}

.articles-empty p {
    margin: 0 0 var(--space-lg);
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .articles-toolbar__row {
        grid-template-columns: 1fr;
    }

    .articles-toolbar__actions {
        width: 100%;
    }

    .articles-toolbar__submit,
    .articles-toolbar__reset {
        flex: 1 1 auto;
        justify-content: center;
    }
}
