/*
Theme Name: Sport Theme
Theme URI: 
Author: Antigravity
Author URI: 
Description: Tema custom per società sportiva.
Version: 1.0.3
Text Domain: sport-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;500;700;800;900&display=swap');

:root {
    --c-primary: #F2E302;       /* YELLOW */
    --c-light-yellow: #F9EA86;  /* LIGHT YELLOW */
    --c-black: #000000;         /* BLACK */
    --c-gray: #3C4146;          /* GRAY */
    --c-white: #FFFFFF;         /* WHITE */
    --font-main: 'Josefin Sans', sans-serif;
}

/* Usa la stessa vista/crop dell'hero Comitato sulle altre pagine Società. */
@media (min-width: 769px) {
    .page-la-societa .news-hero-wrapper img.hero-image,
    .page-club100 .news-hero-wrapper img.hero-image,
    .page-allenatori .news-hero-wrapper img.hero-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 600px !important;
        object-fit: cover !important;
        object-position: 50% 22% !important;
    }
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--c-black);
    color: var(--c-white);
    -webkit-font-smoothing: antialiased;
    font-size: 12px;
}

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

h1, h2, h3, h4, p {
    margin: 0;
}

/* Tipografia Base (Moodboard) */
h1 { font-size: 60px; font-weight: 700; }
h2 { font-size: 42px; font-weight: 700; }
h3 { font-size: 34px; font-weight: 700; } /* Card Team */
h4 { font-size: 22px; font-weight: 700; }
p { font-size: 12px; font-weight: 400; line-height: 1.6; }

.p2 { font-size: 17px; font-weight: 700; } /* Tabelle + BT */
.p3 { font-size: 12px; font-weight: 700; } /* Footer */

.text-primary { color: var(--c-primary) !important; }
.text-light-yellow { color: var(--c-light-yellow) !important; }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 8px 50px;
    font-weight: 700;
    font-size: 17px; /* .p2 */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--c-primary);
    color: var(--c-black);
    border: none;
}
.btn-primary:hover {
    background-color: var(--c-light-yellow);
    transform: translateY(-2px);
}

/* --- HEADER --- */
.site-header {
    background-color: var(--c-black);
    padding: 20px 0 20px 0;
    text-align: center;
}

.site-logo img {
    max-height: 120px; /* Logo principale */
    width: auto;
}

/* Override WordPress custom_logo size */
.custom-logo-link img,
.custom-logo {
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
}


/* Menu Pagine Interne */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.main-navigation ul li {
    position: relative;
}
.main-navigation ul li.menu-item-has-children > a::after {
    content: '\f0d7';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 5px;
}
.main-navigation ul ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: var(--c-black);
    padding: 10px 0;
    margin: 0;
    z-index: 99;
    border: 1px solid var(--c-gray);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    flex-direction: column;
    gap: 0;
}
.main-navigation ul li:hover > ul.sub-menu,
.main-navigation ul li:focus-within > ul.sub-menu {
    display: flex;
}
.main-navigation ul ul.sub-menu li {
    width: 100%;
}
.main-navigation ul ul.sub-menu li a {
    display: block;
    padding: 10px 20px;
    text-align: left;
}
.main-navigation ul ul.sub-menu li a:hover {
    background-color: var(--c-gray);
}
.main-navigation ul li a {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--c-white);
    letter-spacing: 1.5px;
    transition: color 0.3s;
}
.main-navigation ul li a:hover {
    color: var(--c-primary);
}

/* Aggiungiamo un bordo inferiore trasparente alle voci del menu principale per evitare spostamenti di layout */
.main-navigation ul > li > a {
    border-bottom: 2px solid transparent;
    padding-bottom: 6px;
    transition: color 0.3s, border-bottom-color 0.3s;
}

/* "Shop" giallo nel menu Prima Squadra, come nella home. */
.main-navigation ul > li.menu-item-shop > a,
.main-navigation ul > li > a[href*="actaverneshop.com"],
.main-navigation ul > li > a[href$="/shop/"],
.main-navigation ul > li > a[href$="/shop"] {
    color: var(--c-primary) !important;
}

/* "AC Taverne" resta bianco nel menu Prima Squadra. */
.main-navigation ul > li.menu-item-ac-taverne > a,
.main-navigation ul > li > a[href$="/ac-taverne/"],
.main-navigation ul > li > a[href$="/ac-taverne"] {
    color: var(--c-white) !important;
}

/* Stile generico per la voce attiva del menu e i suoi genitori/antenati */
.main-navigation ul > li.current-menu-item > a,
.main-navigation ul > li.current-menu-ancestor > a,
.main-navigation ul > li.current-menu-parent > a,
.main-navigation ul > li.current_page_item > a,
.main-navigation ul > li.current_page_ancestor > a,
.main-navigation ul > li.current_page_parent > a,
.main-navigation ul > li > a.current-menu-item {
    text-decoration: none !important;
    border-bottom-color: var(--c-white) !important;
}

.page-template-template-organigramma .main-navigation ul > li > a[href$="/organigramma/"],
.page-template-template-storia .main-navigation ul > li > a[href$="/organigramma/"],
.page-template-template-club-page .main-navigation ul > li > a[href$="/organigramma/"] {
    text-decoration: none !important;
    border-bottom-color: var(--c-white) !important;
}

/* Sottolineatura mobile per menu attivo */
.mob-active {
    text-decoration: underline !important;
    text-decoration-color: var(--c-white) !important;
    text-underline-offset: 6px;
}

.mobile-menu-logo-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 58px !important;
    height: 84px !important;
    overflow: visible !important;
    transform: translateY(18px) !important;
}

.mobile-menu-logo-link img.mobile-menu-logo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
}

/* --- FRONT PAGE INTRO --- */
.front-intro {
    text-align: center;
    padding: 10px 20px 40px;
}

.front-intro h1 {
    font-size: 36px;
    letter-spacing: 2px;
    margin-bottom: 10px; /* Testo ravvicinato come da design */
    text-transform: uppercase;
}
@media (min-width: 768px) {
    .front-intro h1 { font-size: 42px; } /* Visivamente "BENVENUTO" è un H2/H1 ma non enorme */
}

.front-intro p {
    font-size: 17px; /* .p2 come sottotitolo */
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--c-white);
}

/* --- SPLIT CARDS (HOME) --- */
.split-sections {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Bordi bianchi continui come da design */
    border-top: 1px solid var(--c-white);
    border-bottom: 1px solid var(--c-white);
}

@media (min-width: 900px) {
    .split-sections {
        flex-direction: row;
        height: 60vh;
        min-height: 500px;
    }
}

.page-comitato .club-hero-fade,
.page-club100 .club-hero-fade,
.page-allenatori .club-hero-fade,
.page-sezioni .club-hero-fade,
.page-scuola-calcio .club-hero-fade,
.page-infrastruttura .club-hero-fade {
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.12) 22%,
        rgba(0, 0, 0, 0.72) 58%,
        #000 82%,
        #000 100%
    );
}

.page-comitato .news-hero,
.page-club100 .news-hero,
.page-allenatori .news-hero,
.page-sezioni .news-hero,
.page-scuola-calcio .news-hero,
.page-infrastruttura .news-hero {
    border-bottom: 0 !important;
    background: #000 !important;
}

.page-comitato .news-hero-wrapper,
.page-club100 .news-hero-wrapper,
.page-allenatori .news-hero-wrapper,
.page-sezioni .news-hero-wrapper,
.page-scuola-calcio .news-hero-wrapper {
    width: calc(100% + 120px) !important;
    max-width: calc(100% + 120px) !important;
    margin-left: -60px !important;
    margin-right: auto !important;
    border: 0 !important;
    box-shadow: none !important;
}

.page-comitato .news-hero-wrapper .news-hero-content,
.page-club100 .news-hero-wrapper .news-hero-content,
.page-allenatori .news-hero-wrapper .news-hero-content,
.page-sezioni .news-hero-wrapper .news-hero-content,
.page-scuola-calcio .news-hero-wrapper .news-hero-content {
    top: calc(100% - 200px) !important;
    bottom: auto !important;
    left: 24px !important;
    width: calc(100% - 48px) !important;
    max-width: none !important;
}

.page-comitato .news-hero-wrapper .news-hero-content h1,
.page-club100 .news-hero-wrapper .news-hero-content h1,
.page-allenatori .news-hero-wrapper .news-hero-content h1,
.page-sezioni .news-hero-wrapper .news-hero-content h1,
.page-scuola-calcio .news-hero-wrapper .news-hero-content h1 {
    line-height: 1.1 !important;
}

.page-comitato .news-hero-wrapper .news-hero-content hr,
.page-club100 .news-hero-wrapper .news-hero-content hr,
.page-allenatori .news-hero-wrapper .news-hero-content hr,
.page-sezioni .news-hero-wrapper .news-hero-content hr,
.page-scuola-calcio .news-hero-wrapper .news-hero-content hr {
    margin: 6px 0 10px !important;
}

.page-sezioni .news-hero-wrapper .club-hero-title {
    color: #fff !important;
    font-size: 55px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    letter-spacing: 2px !important;
}

.page-sezioni .news-hero-wrapper .news-hero-content {
    top: calc(100% - 200px) !important;
    z-index: 80 !important;
}

.page-sezioni .news-hero,
.page-sezioni .news-hero-wrapper {
    overflow: visible !important;
}

.page-sezioni .news-hero-wrapper .sezioni-tabs-l2-container,
.page-sezioni .news-hero-wrapper .sezioni-tabs-l2-wrapper,
.page-sezioni .news-hero-wrapper .sezioni-tabs-l3-container,
.page-sezioni .news-hero-wrapper .sezioni-tabs-l3,
.page-sezioni .news-hero-wrapper .sez-tab-btn-team {
    position: relative;
    z-index: 90 !important;
}

@media (min-width: 769px) {
    .page-sezioni .news-hero-wrapper .sezioni-tabs-l2 {
        margin-bottom: 14px !important;
    }

    .page-sezioni .news-hero-wrapper .l2-divider {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }
}

.page-comitato .news-hero-wrapper .page-submenu,
.page-club100 .news-hero-wrapper .page-submenu,
.page-allenatori .news-hero-wrapper .page-submenu,
.page-sezioni .news-hero-wrapper .sezioni-tabs-l1 {
    gap: 20px !important;
    margin-top: 18px !important;
    margin-bottom: 14px !important;
}

.page-comitato .news-hero-wrapper .page-submenu a,
.page-club100 .news-hero-wrapper .page-submenu a,
.page-allenatori .news-hero-wrapper .page-submenu a,
.page-sezioni .news-hero-wrapper .sez-tab-btn-l1 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 40px !important;
    font-size: 22px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: nowrap;
    width: auto !important;
    min-width: 0 !important;
}

@media (min-width: 769px) {
    .page-comitato .news-hero-wrapper,
    .page-club100 .news-hero-wrapper,
    .page-allenatori .news-hero-wrapper,
    .page-sezioni .news-hero-wrapper,
    .page-scuola-calcio .news-hero-wrapper {
        height: 732px !important;
    }

    .page-comitato .news-hero-wrapper img,
    .page-club100 .news-hero-wrapper img,
    .page-allenatori .news-hero-wrapper img,
    .page-sezioni .news-hero-wrapper img,
    .page-scuola-calcio .news-hero-wrapper img {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

@media (min-width: 769px) and (max-width: 1399px) {
    .page-comitato .news-hero-wrapper .news-hero-content,
    .page-club100 .news-hero-wrapper .news-hero-content,
    .page-allenatori .news-hero-wrapper .news-hero-content,
    .page-sezioni .news-hero-wrapper .news-hero-content,
    .page-scuola-calcio .news-hero-wrapper .news-hero-content {
        left: 80px !important;
        width: calc(100% - 160px) !important;
    }
}

@media (max-width: 900px) {
    .page-comitato .news-hero-wrapper,
    .page-club100 .news-hero-wrapper,
    .page-allenatori .news-hero-wrapper,
    .page-sezioni .news-hero-wrapper,
    .page-scuola-calcio .news-hero-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-comitato .news-hero-wrapper .news-hero-content,
    .page-club100 .news-hero-wrapper .news-hero-content,
    .page-allenatori .news-hero-wrapper .news-hero-content,
    .page-sezioni .news-hero-wrapper .news-hero-content,
    .page-scuola-calcio .news-hero-wrapper .news-hero-content {
        left: 20px !important;
        width: calc(100% - 40px) !important;
    }

    .page-scuola-calcio .news-hero-wrapper .news-hero-content {
        top: auto !important;
        bottom: 28px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-scuola-calcio .news-hero-wrapper .news-hero-content h1,
    .page-scuola-calcio .news-hero-wrapper .news-hero-content hr,
    .page-scuola-calcio .news-hero-wrapper .news-hero-content .hero-subtitle {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-scuola-calcio .news-hero-wrapper {
        height: 560px !important;
        min-height: 560px !important;
    }

    .page-scuola-calcio .news-hero-wrapper img {
        height: 560px !important;
        min-height: 560px !important;
    }

    .page-scuola-calcio .news-hero-wrapper .news-hero-content h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;
    }

    .page-scuola-calcio .news-hero-wrapper .news-hero-content .hero-subtitle {
        font-size: 18px !important;
        line-height: 1.25 !important;
    }
}

@media (max-width: 768px) {
    .page-sezioni .news-hero {
        overflow: visible !important;
    }

    .page-sezioni .news-hero-wrapper {
        height: 430px !important;
        min-height: 430px !important;
        overflow: visible !important;
    }

    .page-sezioni .news-hero-wrapper img {
        height: 430px !important;
        min-height: 430px !important;
    }

    .page-sezioni .news-hero-wrapper .news-hero-content {
        top: auto !important;
        bottom: 28px !important;
        left: 20px !important;
        width: calc(100% - 40px) !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .page-sezioni .news-hero-wrapper .club-hero-title {
        font-size: 42px !important;
        line-height: 1.05 !important;
    }

    .page-sezioni .news-hero-wrapper .sezioni-tabs-l1 {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 14px !important;
        margin-bottom: 0 !important;
    }

    .page-sezioni .news-hero-wrapper .sez-tab-btn-l1 {
        width: 100% !important;
        min-width: 0 !important;
        padding: 9px 8px !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
    }

    .page-sezioni .news-hero-wrapper > .news-hero-content > hr:nth-of-type(2) {
        display: none !important;
    }

    .page-sezioni .news-hero-wrapper .sezioni-tabs-l2-container {
        position: absolute !important;
        top: calc(100% + 18px) !important;
        left: -20px !important;
        width: calc(100% + 40px) !important;
        padding: 0 20px 18px !important;
        background: #000 !important;
        box-sizing: border-box !important;
    }

    .page-sezioni .news-hero-wrapper .sezioni-tabs-l2,
    .page-sezioni .news-hero-wrapper .sezioni-tabs-l3 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .page-sezioni .news-hero-wrapper .sezioni-tabs-l3[style*="display: none"],
    .page-sezioni .news-hero-wrapper .sezioni-tabs-l2-wrapper[style*="display: none"] {
        display: none !important;
    }

    .page-sezioni .news-hero-wrapper .l2-divider {
        margin: 10px 0 12px !important;
    }

    .page-sezioni .news-hero-wrapper .sez-tab-btn-subcat,
    .page-sezioni .news-hero-wrapper .sez-tab-btn-team {
        width: 100% !important;
        min-width: 0 !important;
        padding: 9px 8px !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    .page-sezioni .sezioni-panels-wrap {
        padding-top: 190px !important;
    }
}

@media (max-width: 480px) {
    .page-sezioni .sezioni-panels-wrap {
        padding-top: 230px !important;
    }
}

/* Contatti società: hero e tipografia allineati alla pagina Società. */
.page-contatti .news-hero {
    border-bottom: 0 !important;
    background: #000 !important;
}

.page-contatti .club-hero-fade {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    pointer-events: none !important;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.12) 22%,
        rgba(0, 0, 0, 0.72) 58%,
        #000 82%,
        #000 100%
    ) !important;
}

.page-contatti > .container {
    width: calc(100% - 40px) !important;
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

main.page-contatti.site-main > section.container {
    width: calc(100% - 40px) !important;
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.page-contatti .news-hero-wrapper {
    position: relative !important;
    width: calc(100% + 120px) !important;
    max-width: calc(100% + 120px) !important;
    height: 732px !important;
    margin-left: -60px !important;
    margin-right: auto !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.page-contatti .news-hero-wrapper img,
.page-contatti .news-hero-wrapper .hero-image {
    width: 100% !important;
    height: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    object-fit: cover !important;
    display: block !important;
}

.page-contatti .news-hero-wrapper .news-hero-content {
    position: absolute !important;
    top: calc(100% - 200px) !important;
    bottom: auto !important;
    left: 24px !important;
    right: auto !important;
    width: calc(100% - 48px) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.page-contatti .news-hero-wrapper .news-hero-content h1 {
    color: #fff !important;
    font-size: 55px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    letter-spacing: 2px !important;
}

.page-contatti .news-hero-wrapper .news-hero-content hr {
    width: 100% !important;
    max-width: 1360px !important;
    border: 0 !important;
    border-top: 2px solid #fff !important;
    opacity: 1 !important;
    margin: 6px 0 10px !important;
}

.page-contatti .news-hero-wrapper .news-hero-content .hero-subtitle {
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 20px 0 0 !important;
    width: 100% !important;
    max-width: 1360px !important;
}

.page-contatti h2 {
    font-size: 34px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.page-contatti h4 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.page-contatti .resp-card div,
.page-contatti .domande-left div,
.page-contatti .domande-left a,
.page-contatti .hs-contact-form label,
.page-contatti .hs-contact-form input,
.page-contatti .hs-contact-form textarea {
    font-size: 19px !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
}

.page-contatti .hs-contact-form label {
    font-size: 18px !important;
    line-height: 1.4 !important;
}

@media (min-width: 769px) and (max-width: 1399px) {
    .page-contatti .news-hero-wrapper .news-hero-content {
        left: 80px !important;
        width: calc(100% - 160px) !important;
    }
}

@media (min-width: 1400px) {
    .page-contatti .news-hero-wrapper {
        width: 1520px !important;
        max-width: 1520px !important;
        margin-left: calc((100% - 1400px) / 2 - 60px) !important;
    }

    .page-contatti .news-hero-wrapper .news-hero-content {
        left: 80px !important;
        width: 1360px !important;
        max-width: 1360px !important;
    }
}

@media (max-width: 900px) {
    .page-contatti .news-hero-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: 560px !important;
        min-height: 560px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-contatti .news-hero-wrapper .news-hero-content {
        top: auto !important;
        bottom: 28px !important;
        left: 20px !important;
        width: calc(100% - 40px) !important;
    }

    .page-contatti .news-hero-wrapper .news-hero-content h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;
    }

    .page-contatti .news-hero-wrapper .news-hero-content .hero-subtitle {
        font-size: 18px !important;
        line-height: 1.25 !important;
        margin-top: 14px !important;
    }
}

/* Override finale: News Società usa la stessa altezza hero delle pagine Società. */
@media (min-width: 769px) {
    .page-news-societa .news-hero-wrapper {
        height: 732px !important;
    }
}

@media (min-width: 769px) {
    .page-news-societa .news-hero-wrapper {
        height: 732px !important;
    }
}

/* News società: hero e sezioni allineati al sistema Società. */
.page-news-societa .news-hero {
    border-bottom: 0 !important;
    background: #000 !important;
}

.page-news-societa .club-hero-fade {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    pointer-events: none !important;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.12) 22%,
        rgba(0, 0, 0, 0.72) 58%,
        #000 82%,
        #000 100%
    ) !important;
}

.page-news-societa > .container,
.page-news-societa .news-societa-section {
    width: calc(100% - 40px) !important;
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-news-societa .news-hero-wrapper {
    position: relative !important;
    width: calc(100% + 120px) !important;
    max-width: calc(100% + 120px) !important;
    margin-left: -60px !important;
    margin-right: auto !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.page-news-societa .news-hero-wrapper img,
.page-news-societa .news-hero-wrapper .hero-image {
    width: 100% !important;
    height: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.page-news-societa .news-hero-wrapper .news-hero-content {
    position: absolute !important;
    top: calc(100% - 200px) !important;
    bottom: auto !important;
    left: 24px !important;
    right: auto !important;
    width: calc(100% - 48px) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.page-news-societa .news-hero-wrapper .news-hero-content h1 {
    color: #fff !important;
    font-size: 55px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    letter-spacing: 2px !important;
}

.page-news-societa .news-hero-wrapper .news-hero-content hr {
    width: 100% !important;
    max-width: 1360px !important;
    border: 0 !important;
    border-top: 2px solid #fff !important;
    opacity: 1 !important;
    margin: 6px 0 10px !important;
}

.page-news-societa .news-hero-wrapper .news-hero-content .hero-subtitle {
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 20px 0 0 !important;
    width: 100% !important;
    max-width: 1360px !important;
}

.page-news-societa .news-societa-section-title {
    color: var(--c-white);
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 22px;
}

.page-news-societa .news-societa-filters {
    margin-bottom: 40px;
}

.page-news-societa .news-filter-form {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
}

.page-news-societa .news-filter-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 218px;
    width: 218px;
    min-height: 40px;
    height: 40px;
    padding: 5px 0 0;
    box-sizing: border-box;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    font-family: inherit;
}

.page-news-societa .news-filter-dropdown {
    position: relative;
    z-index: 40;
}

.page-news-societa .news-filter-control span {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.page-news-societa .news-filter-order {
    border: 2px solid var(--c-white);
    color: var(--c-white);
    background: transparent;
    cursor: pointer;
}

.page-news-societa .news-filter-search {
    border: 2px solid var(--c-primary);
    color: var(--c-primary);
    background: transparent;
}

.page-news-societa .news-filter-control input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--c-primary);
    font: inherit;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    cursor: text;
}

.page-news-societa .news-filter-search:focus-within span,
.page-news-societa .news-filter-search:has(input:not(:placeholder-shown)) span {
    opacity: 0;
}

.page-news-societa .news-filter-search input:focus,
.page-news-societa .news-filter-search input:not(:placeholder-shown) {
    opacity: 1;
}

.page-news-societa .news-filter-menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    left: 0;
    width: 218px;
    border: 2px solid var(--c-white);
    background: #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.page-news-societa .news-filter-dropdown.is-open .news-filter-menu,
.page-news-societa .news-filter-menu.is-floating {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-news-societa .news-filter-menu button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 5px 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--c-white);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

.page-news-societa .news-filter-menu button:last-child {
    border-bottom: 0;
}

.page-news-societa .news-filter-menu button:hover,
.page-news-societa .news-filter-menu button.is-active {
    color: var(--c-primary);
}

@media (min-width: 769px) {
    .page-news-societa .news-hero-wrapper {
        height: 732px !important;
    }
}

@media (min-width: 769px) and (max-width: 1399px) {
    .page-news-societa .news-hero-wrapper .news-hero-content {
        left: 80px !important;
        width: calc(100% - 160px) !important;
    }
}

@media (min-width: 1400px) {
    .page-news-societa .news-hero-wrapper {
        width: 1520px !important;
        max-width: 1520px !important;
        margin-left: calc((100% - 1400px) / 2 - 60px) !important;
    }

    .page-news-societa .news-hero-wrapper .news-hero-content {
        left: 80px !important;
        width: 1360px !important;
        max-width: 1360px !important;
    }
}

@media (max-width: 900px) {
    .page-news-societa .news-hero-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        height: 560px !important;
        min-height: 560px !important;
    }

    .page-news-societa .news-hero-wrapper .news-hero-content {
        top: auto !important;
        bottom: 28px !important;
        left: 20px !important;
        width: calc(100% - 40px) !important;
    }

    .page-news-societa .news-hero-wrapper .news-hero-content h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;
    }

    .page-news-societa .news-hero-wrapper .news-hero-content .hero-subtitle {
        font-size: 18px !important;
        line-height: 1.25 !important;
        margin-top: 14px !important;
    }

    .page-news-societa .news-societa-section-title {
        font-size: 30px;
        margin-bottom: 18px;
    }

    .page-news-societa .news-filter-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-news-societa .news-filter-dropdown,
    .page-news-societa .news-filter-control {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        font-size: 18px;
    }

    .page-news-societa .news-societa-filters {
        margin-bottom: 24px;
    }

    .page-news-societa .news-societa-card-grid {
        margin-bottom: 0 !important;
    }

    .page-news-societa .news-societa-card-grid > p {
        margin: 0;
        font-size: 18px;
        line-height: 1.45;
    }
}

/* Hero Sponsor società allineato alle pagine Società/Scuola/Infrastruttura. */
.page-sponsor-societa .news-hero {
    border-bottom: 0 !important;
    background: #000 !important;
}

.page-sponsor-societa .club-hero-fade {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    pointer-events: none !important;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.12) 22%,
        rgba(0, 0, 0, 0.72) 58%,
        #000 82%,
        #000 100%
    ) !important;
}

.page-sponsor-societa > .container,
.page-sponsor-societa .societa-sponsor-intro,
.page-sponsor-societa .societa-sponsor-section {
    width: calc(100% - 40px) !important;
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-sponsor-societa .news-hero-wrapper {
    position: relative !important;
    width: calc(100% + 120px) !important;
    max-width: calc(100% + 120px) !important;
    margin-left: -60px !important;
    margin-right: auto !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.page-sponsor-societa .news-hero-wrapper img,
.page-sponsor-societa .news-hero-wrapper .hero-image {
    width: 100% !important;
    height: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.page-sponsor-societa .news-hero-wrapper .news-hero-content {
    position: absolute !important;
    top: calc(100% - 140px) !important;
    bottom: auto !important;
    left: 24px !important;
    right: auto !important;
    width: calc(100% - 48px) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.page-sponsor-societa .news-hero-wrapper .news-hero-content h1 {
    color: #fff !important;
    font-size: 55px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    letter-spacing: 2px !important;
}

.page-sponsor-societa .news-hero-wrapper .news-hero-content hr {
    width: 100% !important;
    max-width: 1360px !important;
    border: 0 !important;
    border-top: 2px solid #fff !important;
    opacity: 1 !important;
    margin: 6px 0 10px !important;
}

.page-sponsor-societa .news-hero-wrapper .news-hero-content .hero-subtitle {
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 20px 0 0 !important;
    width: 100% !important;
    max-width: 1360px !important;
}

@media (min-width: 769px) {
    .page-sponsor-societa .news-hero-wrapper {
        height: 732px !important;
    }
}

@media (min-width: 769px) and (max-width: 1399px) {
    .page-sponsor-societa .news-hero-wrapper .news-hero-content {
        left: 80px !important;
        width: calc(100% - 160px) !important;
    }
}

@media (min-width: 1400px) {
    .page-sponsor-societa .news-hero-wrapper {
        width: 1520px !important;
        max-width: 1520px !important;
        margin-left: calc((100% - 1400px) / 2 - 60px) !important;
    }

    .page-sponsor-societa .news-hero-wrapper .news-hero-content {
        left: 80px !important;
        width: 1360px !important;
        max-width: 1360px !important;
    }
}

@media (max-width: 900px) {
    .page-sponsor-societa .news-hero-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        height: 560px !important;
        min-height: 560px !important;
    }

    .page-sponsor-societa .news-hero-wrapper .news-hero-content {
        top: auto !important;
        bottom: 28px !important;
        left: 20px !important;
        width: calc(100% - 40px) !important;
    }

    .page-sponsor-societa .news-hero-wrapper .news-hero-content h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;
    }

    .page-sponsor-societa .news-hero-wrapper .news-hero-content .hero-subtitle {
        font-size: 18px !important;
        line-height: 1.25 !important;
        margin-top: 14px !important;
    }
}

.page-sezioni .classifica-iframe-wrapper {
    width: 100%;
    max-height: 900px;
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-sizing: border-box;
    scrollbar-gutter: stable;
}

.page-sezioni .sezione-panel-container,
.page-sezioni .sezioni-content-panel > .container,
.page-sezioni .sezioni-content-panel > div.container {
    width: calc(100% - 40px) !important;
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-sezioni .sezione-panel-card,
.page-sezioni .classifica-iframe-wrapper {
    width: 100% !important;
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (min-width: 769px) {
    .page-sezioni .sezioni-panels-wrap.no-l3-visible {
        margin-top: 12px;
        position: relative;
        z-index: 2;
    }

    .page-sezioni .sezioni-panels-wrap.no-l3-visible .sezione-panel-container {
        padding-top: 24px !important;
    }

    .page-sezioni .sezioni-panels-wrap.has-l3-visible {
        margin-top: 64px;
    }

    .page-sezioni .sezioni-panels-wrap.has-l3-visible .sezione-panel-container {
        padding-top: 32px !important;
    }
}

.page-sezioni .sezione-panel-card {
    border-radius: 0;
    overflow: hidden;
}

.page-sezioni .sezione-panel-copy {
    box-sizing: border-box;
}

.page-sezioni .sezione-panel-title {
    font-size: 36px !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    margin: 0 0 24px !important;
}

.page-sezioni .sezione-panel-description {
    max-width: 680px;
    margin-bottom: 38px !important;
}

.page-sezioni .sezione-panel-description,
.page-sezioni .sezione-panel-description p,
.page-sezioni .sezione-panel-text {
    color: #fff !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
}

.page-sezioni .sezione-panel-description p {
    margin: 0 0 16px !important;
}

.page-sezioni .sezione-panel-description p:last-child {
    margin-bottom: 0 !important;
}

.page-sezioni .sezione-panel-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
    max-width: 680px;
}

.page-sezioni .sezione-panel-meta {
    margin: 0 !important;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.page-sezioni .sezione-panel-meta:last-child {
    margin-bottom: 0 !important;
}

.page-sezioni .sezione-panel-subtitle {
    color: var(--c-primary) !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 0 8px !important;
}

.page-sezioni .sezione-panel-media {
    min-height: 560px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.page-sezioni .sezione-panel-media img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center 45% !important;
    transform: scale(1.08);
}

@media (min-width: 900px) {
    .page-sezioni .sezione-panel-card {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        min-height: 560px;
    }

    .page-sezioni .sezione-panel-copy {
        padding: 42px !important;
        justify-content: flex-start !important;
    }

    .page-sezioni .sezione-panel-media {
        height: auto;
        min-height: 100%;
        overflow: hidden;
    }

    .page-sezioni .sezione-panel-media img {
        height: 100% !important;
        min-height: 0 !important;
    }
}

.page-sezioni .classifica-iframe-wrapper iframe {
    display: block;
    width: 100% !important;
    min-width: 100% !important;
    height: 1600px !important;
    min-height: 1600px !important;
    border: 0;
}

@media (max-width: 768px) {
    .page-sezioni .classifica-iframe-wrapper {
        max-height: 720px;
        padding: 10px;
        margin-left: -20px;
        width: calc(100% + 40px);
        border-radius: 0;
    }

    .page-sezioni .classifica-iframe-wrapper iframe {
        height: 1500px !important;
        min-height: 1500px !important;
    }

    .page-sezioni .sezione-panel-container {
        padding-top: 34px !important;
    }

    .page-sezioni .sezione-panel-card {
        display: block !important;
    }

    .page-sezioni .sezione-panel-copy {
        padding: 32px 22px !important;
    }

    .page-sezioni .sezione-panel-title {
        font-size: 30px !important;
        line-height: 1.1 !important;
        margin-bottom: 20px !important;
    }

    .page-sezioni .sezione-panel-description {
        margin-bottom: 30px !important;
    }

    .page-sezioni .sezione-panel-meta-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .page-sezioni .sezione-panel-meta {
        padding-top: 16px;
    }

    .page-sezioni .sezione-panel-description,
    .page-sezioni .sezione-panel-description p,
    .page-sezioni .sezione-panel-text {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    .page-sezioni .sezione-panel-subtitle {
        font-size: 13px !important;
    }

    .page-sezioni .sezione-panel-media,
    .page-sezioni .sezione-panel-media img {
        min-height: 220px;
    }

    .page-sezioni .sezione-panel-media {
        overflow: hidden !important;
    }

    .page-sezioni .sezione-panel-media img {
        inset: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
    }
}

@media (min-width: 1400px) {
    .page-comitato .news-hero-wrapper,
    .page-club100 .news-hero-wrapper,
    .page-allenatori .news-hero-wrapper,
    .page-sezioni .news-hero-wrapper,
    .page-scuola-calcio .news-hero-wrapper {
        width: 1520px !important;
        max-width: 1520px !important;
        margin-left: calc((100% - 1400px) / 2 - 60px) !important;
        margin-right: auto !important;
    }

    .page-comitato .news-hero-wrapper .news-hero-content,
    .page-club100 .news-hero-wrapper .news-hero-content,
    .page-allenatori .news-hero-wrapper .news-hero-content,
    .page-sezioni .news-hero-wrapper .news-hero-content,
    .page-scuola-calcio .news-hero-wrapper .news-hero-content {
        left: 80px !important;
        width: 1360px !important;
        max-width: 1360px !important;
    }
}

/* Allinea la larghezza del contenuto testuale della pagina "La Società" al contenuto dell'hero. */
.page-la-societa > .container {
    width: calc(100% - 40px);
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
}

.page-scuola-calcio > .container,
.page-scuola-calcio .scuola-calcio-content {
    width: calc(100% - 40px) !important;
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-scuola-calcio .news-hero-wrapper .news-hero-content h1 {
    font-size: 55px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    letter-spacing: 2px !important;
}

@media (max-width: 900px) {
    .page-scuola-calcio .news-hero-wrapper .news-hero-content h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;
    }

    .page-scuola-calcio .news-hero-wrapper .news-hero-content .hero-subtitle {
        font-size: 18px !important;
        line-height: 1.25 !important;
    }
}

.page-scuola-calcio .news-hero-wrapper .news-hero-content hr,
.page-scuola-calcio .scuola-calcio-content > .sc-divider {
    width: 100% !important;
    max-width: 1360px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-top-width: 2px !important;
}

.page-scuola-calcio .sc-section {
    max-width: 1360px;
}

.page-scuola-calcio .sc-section > h2,
.page-scuola-calcio .sc-section > h3 {
    font-size: 34px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.page-scuola-calcio .sc-section p,
.page-scuola-calcio .formatore-names {
    font-size: 19px !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
}

.page-scuola-calcio .formatore-title,
.page-scuola-calcio .sc-section p.text-primary {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.page-infrastruttura > .container,
.page-infrastruttura .infrastruttura-content {
    width: calc(100% - 40px) !important;
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-infrastruttura .news-hero {
    border-bottom: 0 !important;
    background: #000 !important;
}

.page-infrastruttura .news-hero-wrapper {
    width: calc(100% + 120px) !important;
    max-width: calc(100% + 120px) !important;
    margin-left: -60px !important;
    margin-right: auto !important;
    border: 0 !important;
    box-shadow: none !important;
}

.page-infrastruttura .news-hero-wrapper .news-hero-content {
    top: calc(100% - 200px) !important;
    bottom: auto !important;
    left: 24px !important;
    width: calc(100% - 48px) !important;
    max-width: none !important;
    padding-bottom: 0 !important;
}

.page-infrastruttura .news-hero-wrapper .news-hero-content h1 {
    font-size: 55px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    letter-spacing: 2px !important;
}

.page-infrastruttura .news-hero-wrapper .news-hero-content hr,
.page-infrastruttura .infrastruttura-content .sc-divider {
    width: 100% !important;
    max-width: 1360px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-top-width: 2px !important;
}

.page-infrastruttura .news-hero-wrapper .news-hero-content hr {
    margin-top: 6px !important;
    margin-bottom: 10px !important;
}

.page-infrastruttura .news-hero-wrapper .news-hero-content .hero-subtitle {
    font-size: 24px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 20px 0 0 !important;
}

.page-infrastruttura .infra-tabs {
    gap: 20px !important;
    margin-top: 18px !important;
    margin-bottom: 14px !important;
}

.page-infrastruttura .infra-tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 40px !important;
    font-size: 22px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: nowrap;
}

.page-infrastruttura .infra-tab-content > h2,
.page-infrastruttura #prenotazioni-wrapper > h2 {
    font-size: 34px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.page-infrastruttura .infra-tab-content > h3,
.page-infrastruttura .prenotazioni-section h4,
.page-infrastruttura .prenotazioni-right h4 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.page-infrastruttura .infra-tab-content p,
.page-infrastruttura .infra-tab-content div,
.page-infrastruttura .prenotazioni-section a,
.page-infrastruttura .prenotazioni-left div,
.page-infrastruttura .prenotazioni-section label {
    font-size: 19px !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
}

.page-infrastruttura .infra-pdf-btn,
.page-infrastruttura .hs-prenotazioni-form button {
    font-size: 18px !important;
    line-height: 1.1 !important;
}

@media (min-width: 769px) {
    .page-infrastruttura .news-hero-wrapper {
        height: 732px !important;
    }

    .page-infrastruttura .news-hero-wrapper img {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

@media (min-width: 769px) and (max-width: 1399px) {
    .page-infrastruttura .news-hero-wrapper .news-hero-content {
        left: 80px !important;
        width: calc(100% - 160px) !important;
    }
}

@media (min-width: 1400px) {
    .page-infrastruttura .news-hero-wrapper {
        width: 1520px !important;
        max-width: 1520px !important;
        margin-left: calc((100% - 1400px) / 2 - 60px) !important;
        margin-right: auto !important;
    }

    .page-infrastruttura .news-hero-wrapper .news-hero-content {
        left: 80px !important;
        width: 1360px !important;
        max-width: 1360px !important;
    }
}

@media (max-width: 900px) {
    .page-infrastruttura .news-hero-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        height: 560px !important;
        min-height: 560px !important;
    }

    .page-infrastruttura .news-hero-wrapper img {
        height: 560px !important;
        min-height: 560px !important;
        object-position: center 35% !important;
    }

    .page-infrastruttura .news-hero-wrapper .news-hero-content {
        top: auto !important;
        bottom: 28px !important;
        left: 20px !important;
        right: auto !important;
        width: calc(100% - 40px) !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-infrastruttura .news-hero-wrapper .news-hero-content h1 {
        font-size: 36px !important;
        line-height: 1.05 !important;
        letter-spacing: 1px !important;
    }

    .page-infrastruttura .news-hero-wrapper .news-hero-content .hero-subtitle {
        font-size: 18px !important;
        line-height: 1.25 !important;
        margin-top: 14px !important;
    }

    .page-infrastruttura .infra-tabs {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 14px !important;
        margin-bottom: 0 !important;
    }

    .page-infrastruttura .infra-tab-btn {
        width: 100% !important;
        padding: 9px 12px !important;
        font-size: 14px !important;
        line-height: 1.1 !important;
        white-space: normal !important;
    }

    .page-infrastruttura .infra-tab-content > h2,
    .page-infrastruttura #prenotazioni-wrapper > h2 {
        font-size: 30px !important;
        line-height: 1.08 !important;
    }

    .page-infrastruttura .infra-gallery {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-bottom: 48px !important;
    }

    .page-infrastruttura .infra-gallery > div {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        height: auto !important;
    }

    .page-infrastruttura .infra-gallery > div > div {
        width: 100% !important;
        min-height: 0 !important;
        aspect-ratio: 4 / 3 !important;
        flex: none !important;
        background-size: cover !important;
        background-position: center !important;
    }
}

@media (max-width: 900px) {
    .page-la-societa .news-hero-wrapper .news-hero-content {
        top: calc(100% - 300px) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-la-societa .news-hero-wrapper .news-hero-content h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;
    }

    .page-la-societa .news-hero-wrapper .page-submenu {
        gap: 8px !important;
        margin-top: 14px !important;
        margin-bottom: 8px !important;
    }

    .page-la-societa .news-hero-wrapper .page-submenu a {
        padding: 7px 12px !important;
        font-size: 14px !important;
        line-height: 1.1 !important;
    }

    .page-la-societa .news-hero-wrapper .news-hero-content p {
        font-size: 18px !important;
        line-height: 1.25 !important;
        margin-top: 14px !important;
    }
}

/* Area Segreteria */
.page-area-segreteria > .container {
    width: calc(100% - 40px);
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
}

.page-area-segreteria .club-hero-fade {
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.12) 22%,
        rgba(0, 0, 0, 0.72) 58%,
        #000 82%,
        #000 100%
    );
}

.page-area-segreteria .news-hero {
    border-bottom: 0 !important;
    background: #000 !important;
}

.page-area-segreteria .news-hero-wrapper {
    width: calc(100% + 120px) !important;
    max-width: calc(100% + 120px) !important;
    margin-left: -60px !important;
    margin-right: auto !important;
    border: 0 !important;
    box-shadow: none !important;
}

.page-area-segreteria .news-hero-wrapper .news-hero-content {
    top: calc(100% - 200px) !important;
    bottom: auto !important;
    left: 24px !important;
    width: calc(100% - 48px) !important;
    max-width: none !important;
}

.page-area-segreteria .news-hero-wrapper .news-hero-content h1 {
    line-height: 1.1 !important;
}

.page-area-segreteria .news-hero-wrapper .news-hero-content hr {
    margin: 6px 0 10px !important;
}

.page-area-segreteria .news-hero-wrapper .news-hero-content p {
    font-size: 19px !important;
    line-height: 1.18 !important;
    margin-top: 8px !important;
}

.page-area-segreteria .news-hero-wrapper .page-submenu {
    gap: 20px !important;
}

.page-area-segreteria .news-hero-wrapper .page-submenu a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 40px !important;
    font-size: 22px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: nowrap;
}

.page-area-segreteria .area-segreteria-content {
    padding-top: 32px !important;
}

.segreteria-dashboard {
    display: grid;
    gap: 26px;
    scroll-margin-top: 24px;
}

.segreteria-edit {
    scroll-margin-top: 24px;
}

.segreteria-dashboard-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 2px solid rgba(255,255,255,0.18);
}

.segreteria-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px 3px;
    background: var(--c-primary);
    color: #000;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.segreteria-dashboard-head h2 {
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.segreteria-dashboard-head p {
    color: rgba(255,255,255,0.72);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
}

.segreteria-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 7px 14px 4px;
    border: 2px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.segreteria-export-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px 3px;
    background: var(--c-primary);
    border: 2px solid var(--c-primary);
    color: #000;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
}

.segreteria-export-link:hover {
    background: transparent;
    color: var(--c-primary);
}

.segreteria-sync-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(255,230,0,0.14);
}

.segreteria-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.segreteria-stat-card,
.segreteria-insight,
.segreteria-filters,
.segreteria-table-card,
.segreteria-empty-state {
    background: #080808;
    border: 2px solid rgba(255,255,255,0.18);
}

.segreteria-stat-card {
    min-height: 138px;
    padding: 22px;
}

.segreteria-stat-card.stat-primary {
    border-color: var(--c-primary);
}

.segreteria-stat-card span,
.segreteria-insight span {
    display: block;
    color: rgba(255,255,255,0.64);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.segreteria-stat-card strong {
    display: block;
    color: var(--c-primary);
    font-size: 48px;
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 12px;
}

.segreteria-stat-card small {
    display: block;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.segreteria-insights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.segreteria-insight {
    padding: 17px 18px 14px;
}

.segreteria-insight strong {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.segreteria-filters {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(6, minmax(135px, 0.7fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
}

.segreteria-filter-field {
    display: grid;
    gap: 8px;
}

.segreteria-filter-field label {
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.segreteria-filter-field input,
.segreteria-filter-field select {
    width: 100%;
    height: 42px;
    padding: 9px 12px 7px;
    background: #0f0f0f;
    border: 2px solid rgba(255,255,255,0.24);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    outline: none;
}

.segreteria-filter-field input:focus,
.segreteria-filter-field select:focus {
    border-color: var(--c-primary);
}

.segreteria-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.segreteria-filter-actions button,
.segreteria-filter-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 7px 16px 4px;
    border: 2px solid var(--c-primary);
    color: #000;
    background: var(--c-primary);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.segreteria-filter-actions a {
    color: var(--c-primary);
    background: transparent;
}

.segreteria-discount-rule {
    grid-template-columns: minmax(260px, 1fr) auto;
}

.segreteria-filter-label {
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.segreteria-discount-rule small {
    color: rgba(255,255,255,0.62);
    font-size: 13px;
    line-height: 1.4;
}

.segreteria-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    cursor: pointer;
}

.segreteria-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.segreteria-toggle-track {
    position: relative;
    width: 48px;
    height: 26px;
    flex: 0 0 48px;
    background: #242424;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.segreteria-toggle-track span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.segreteria-toggle input:checked + .segreteria-toggle-track {
    background: var(--c-primary);
    border-color: var(--c-primary);
}

.segreteria-toggle input:checked + .segreteria-toggle-track span {
    background: #000;
    transform: translateX(22px);
}

.segreteria-toggle input:focus-visible + .segreteria-toggle-track {
    outline: 3px solid rgba(255,255,255,0.9);
    outline-offset: 3px;
}

.segreteria-toggle strong {
    color: #fff;
    font-size: 15px;
}

.segreteria-table-card {
    overflow: hidden;
}

.segreteria-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    border-bottom: 2px solid rgba(255,255,255,0.14);
}

.segreteria-table-head h3,
.segreteria-empty-state h3,
.segreteria-empty-row h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.segreteria-table-head p,
.segreteria-empty-state p,
.segreteria-empty-row p {
    color: rgba(255,255,255,0.66);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.segreteria-table-head > span {
    color: var(--c-primary);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.segreteria-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 26px;
    border-top: 2px solid rgba(255,255,255,0.14);
}

.segreteria-pagination > span {
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.segreteria-pagination div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.segreteria-pagination a,
.segreteria-pagination .disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px 5px;
    border: 2px solid rgba(255,255,255,0.28);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
}

.segreteria-pagination a:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.segreteria-pagination .disabled {
    opacity: 0.42;
}

.segreteria-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    color: #fff;
    font-size: 16px;
}

.segreteria-table th {
    padding: 17px 20px;
    background: #050505;
    border-bottom: 2px solid rgba(255,255,255,0.16);
    color: var(--c-primary);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
}

.segreteria-table td {
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    vertical-align: middle;
}

.segreteria-table tbody tr:hover {
    background: rgba(255,255,255,0.035);
}

.segreteria-record-title {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
}

.segreteria-record-meta {
    display: block;
    color: rgba(255,255,255,0.58);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 6px;
}

.segreteria-discount-active-label {
    color: var(--c-primary);
    font-weight: 900;
}

.segreteria-family-alert {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 7px 10px 5px;
    border: 2px solid rgba(255,230,0,0.62);
    color: var(--c-primary);
    background: rgba(255,230,0,0.08);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.segreteria-family-alert-muted {
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.68);
}

.segreteria-type-badge,
.segreteria-status,
.segreteria-payment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px 5px;
    border: 2px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.segreteria-type-badge {
    border-color: rgba(255,230,0,0.42);
    color: var(--c-primary);
}

.segreteria-status.status-nuova {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.segreteria-status.status-in_verifica {
    border-color: #8ca7ff;
    color: #aebfff;
}

.segreteria-status.status-documenti_mancanti {
    border-color: #ff9a5c;
    color: #ffb98a;
}

.segreteria-status.status-approvata,
.segreteria-status.status-confermata {
    border-color: #5ee07a;
    color: #8cf0a0;
}

.segreteria-status.status-archiviata {
    color: rgba(255,255,255,0.58);
}

.segreteria-payment.payment-stripe {
    border-color: #8ca7ff;
    color: #aebfff;
}

.segreteria-payment.payment-fattura {
    border-color: #ffffff;
    color: #ffffff;
}

.segreteria-documents-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-width: 340px;
}

.segreteria-documents-list a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 8px 3px;
    border: 2px solid rgba(255,255,255,0.2);
    color: var(--c-primary);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.segreteria-documents-list a:hover {
    border-color: var(--c-primary);
    background: var(--c-primary);
    color: #000;
}

.segreteria-document-row {
    display: grid;
    grid-template-columns: minmax(190px, 0.45fr) minmax(280px, 1fr);
    gap: 14px;
    align-items: center;
    width: 100%;
}

.segreteria-file-replace {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.62);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.segreteria-file-replace span {
    flex: 0 0 auto;
    color: rgba(255,255,255,0.78);
}

.segreteria-file-replace input {
    flex: 1 1 auto;
    min-width: 180px;
    color: rgba(255,255,255,0.76);
    font-size: 13px;
    line-height: 1.2;
}

.segreteria-edit-documents .segreteria-documents-list,
.segreteria-edit-card > .segreteria-documents-list {
    display: grid;
    gap: 12px;
    max-width: none;
}

.segreteria-edit-documents .segreteria-documents-list a,
.segreteria-edit-card > .segreteria-documents-list a {
    min-height: 34px;
    padding: 7px 12px 5px;
    font-size: 12px;
}

.segreteria-status-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.segreteria-status-form select {
    min-width: 148px;
    height: 34px;
    padding: 7px 8px 5px;
    background: #0f0f0f;
    border: 2px solid rgba(255,255,255,0.22);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.segreteria-status-form button {
    min-height: 34px;
    padding: 6px 10px 3px;
    background: transparent;
    border: 2px solid var(--c-primary);
    color: var(--c-primary);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.segreteria-status-form button:hover {
    background: var(--c-primary);
    color: #000;
}

.segreteria-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
    max-width: 260px;
}

.segreteria-quick-actions form {
    margin: 0;
}

.segreteria-quick-actions button {
    min-height: 28px;
    padding: 5px 8px 3px;
    background: #111;
    border: 2px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.84);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.segreteria-quick-actions button:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.segreteria-detail-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 20px;
    align-items: center;
    padding: 22px;
    background: #080808;
    border: 2px solid rgba(255,255,255,0.18);
    border-left-color: var(--c-primary);
}

.segreteria-detail-actions h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 6px 0 8px;
}

.segreteria-detail-actions p {
    max-width: 680px;
    color: rgba(255,255,255,0.66);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.segreteria-quick-actions-detail {
    justify-content: flex-end;
    margin: 0;
    max-width: none;
}

.segreteria-quick-actions-detail button {
    min-height: 38px;
    padding: 8px 12px 5px;
    border-color: rgba(255,255,255,0.28);
    font-size: 11px;
}

.segreteria-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.segreteria-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-bottom: 0;
    padding: 5px 10px 4px;
    border: 2px solid rgba(255,255,255,0.28);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
}

.segreteria-edit-link:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.segreteria-delete-form {
    flex: 0 0 100%;
    margin: 0;
}

.segreteria-invoice-form {
    margin: 0;
}

.segreteria-invoice-form button {
    min-height: 30px;
    padding: 5px 10px 4px;
    background: var(--c-primary);
    border: 2px solid var(--c-primary);
    color: #000;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.segreteria-invoice-form button:hover {
    background: #fff;
    border-color: #fff;
}

.segreteria-invoice-form-head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px 3px;
    background: var(--c-primary);
    border: 2px solid var(--c-primary);
    color: #000;
    font-size: 12px;
    text-decoration: none;
}

.segreteria-invoice-form-head button:hover {
    background: transparent;
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.segreteria-stripe-form {
    margin: 0;
}

.segreteria-stripe-form button {
    min-height: 30px;
    padding: 5px 10px 4px;
    background: #635bff;
    border: 2px solid #635bff;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.segreteria-stripe-form button:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.segreteria-stripe-form-head button {
    min-height: 36px;
    padding: 8px 14px 6px;
}

.segreteria-inline-action-form {
    margin: 0;
}

.segreteria-inline-action-form button {
    min-height: 30px;
    padding: 5px 10px 4px;
    background: #111;
    border: 2px solid rgba(255,255,255,0.28);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.segreteria-head-actions .segreteria-inline-action-form button {
    min-height: 30px;
    padding: 6px 12px 3px;
    font-size: 12px;
}

.segreteria-inline-action-form button:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.segreteria-discount-form {
    margin: 0;
}

.segreteria-discount-form button {
    min-height: 30px;
    padding: 5px 10px 4px;
    background: var(--c-primary);
    border: 2px solid var(--c-primary);
    color: #000;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.segreteria-discount-form button:hover {
    background: #fff;
    border-color: #fff;
}

.segreteria-discount-form-remove button {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #000;
}

.segreteria-discount-form-remove button:hover {
    background: #fff;
    border-color: #fff;
}

.segreteria-delete-form button {
    min-height: 30px;
    padding: 5px 10px 4px;
    background: transparent;
    border: 2px solid #ff5c5c;
    color: #ff8a8a;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.segreteria-delete-form button:hover {
    background: #ff5c5c;
    color: #000;
}

.segreteria-empty-state,
.segreteria-empty-row {
    padding: 26px;
}

.segreteria-edit {
    display: grid;
    gap: 24px;
}

.segreteria-operational-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.segreteria-summary-item {
    padding: 16px;
    background: #080808;
    border: 2px solid rgba(255,255,255,0.18);
}

.segreteria-summary-item span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.62);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.segreteria-summary-item strong {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
}

.segreteria-summary-item.is-warning {
    border-color: rgba(255,230,0,0.7);
}

.segreteria-summary-item.is-warning strong {
    color: var(--c-primary);
}

.segreteria-summary-item.is-ok {
    border-color: rgba(94,224,122,0.42);
}

.segreteria-edit-notice {
    padding: 16px 18px 13px;
    border: 2px solid var(--c-primary);
    background: #080808;
    color: var(--c-primary);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.segreteria-edit-notice-error {
    border-color: #ff5c5c;
    color: #ff8a8a;
}

.segreteria-edit-notice-warning {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-color: var(--c-primary);
    background: rgba(255,230,0,0.08);
    color: var(--c-primary);
}

.segreteria-edit-notice-warning a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.segreteria-edit-form {
    display: grid;
    gap: 22px;
}

.segreteria-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.segreteria-edit-card {
    padding: 22px;
    background: #080808;
    border: 2px solid rgba(255,255,255,0.18);
}

.segreteria-edit-card h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 18px;
}

.segreteria-edit-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.segreteria-edit-fields label {
    display: grid;
    gap: 8px;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.segreteria-edit-fields label.wide {
    grid-column: 1 / -1;
}

.segreteria-fee-breakdown {
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    padding: 14px;
    background: rgba(255,230,0,0.08);
    border: 2px solid rgba(255,230,0,0.28);
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.segreteria-fee-breakdown strong {
    color: var(--c-primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.segreteria-edit-fields input,
.segreteria-edit-fields select,
.segreteria-edit-fields textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px 7px;
    background: #0f0f0f;
    border: 2px solid rgba(255,255,255,0.24);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    outline: none;
    box-sizing: border-box;
}

.segreteria-edit-fields textarea {
    min-height: 110px;
    resize: vertical;
}

.segreteria-edit-fields input:focus,
.segreteria-edit-fields select:focus,
.segreteria-edit-fields textarea:focus {
    border-color: var(--c-primary);
}

.segreteria-edit-child {
    border-top-color: var(--c-primary);
}

.segreteria-edit-documents {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.14);
}

.segreteria-edit-documents > strong {
    display: block;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.segreteria-log-list {
    display: grid;
    gap: 10px;
}

.segreteria-log-entry {
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: #0f0f0f;
}

.segreteria-log-entry strong,
.segreteria-log-entry span,
.segreteria-log-entry p {
    display: block;
}

.segreteria-log-entry strong {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.segreteria-log-entry span {
    margin-top: 5px;
    color: rgba(255,255,255,0.56);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.segreteria-log-entry p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.segreteria-edit-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0 0;
}

.segreteria-edit-actions button,
.segreteria-edit-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 7px 18px 4px;
    border: 2px solid var(--c-primary);
    background: var(--c-primary);
    color: #000;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.segreteria-edit-actions a {
    background: transparent;
    color: var(--c-primary);
}

@media (min-width: 769px) {
    .page-area-segreteria .news-hero-wrapper {
        height: 732px !important;
    }

    .page-area-segreteria .news-hero-wrapper img {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

@media (min-width: 769px) and (max-width: 1399px) {
    .page-area-segreteria .news-hero-wrapper .news-hero-content {
        left: 80px !important;
        width: calc(100% - 160px) !important;
    }
}

@media (min-width: 1400px) {
    .page-area-segreteria .news-hero-wrapper {
        width: 1520px !important;
        max-width: 1520px !important;
        margin-left: calc((100% - 1400px) / 2 - 60px) !important;
        margin-right: auto !important;
    }

    .page-area-segreteria .news-hero-wrapper .news-hero-content {
        left: 80px !important;
        width: 1360px !important;
        max-width: 1360px !important;
    }
}

@media (max-width: 900px) {
    .page-area-segreteria .news-hero-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-area-segreteria .news-hero-wrapper .news-hero-content {
        top: calc(100% - 300px) !important;
        left: 20px !important;
        width: calc(100% - 40px) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-area-segreteria .news-hero-wrapper .news-hero-content h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;
    }

    .page-area-segreteria .news-hero-wrapper .news-hero-content p {
        font-size: 18px !important;
        line-height: 1.25 !important;
        margin-top: 14px !important;
    }

    .page-area-segreteria .news-hero-wrapper .page-submenu {
        gap: 8px !important;
        margin-top: 14px !important;
        margin-bottom: 8px !important;
    }

    .page-area-segreteria .news-hero-wrapper .page-submenu a {
        padding: 7px 12px !important;
        font-size: 14px !important;
        line-height: 1.1 !important;
    }

    .page-area-segreteria .segreteria-stats,
    .page-area-segreteria .segreteria-insights,
    .page-area-segreteria .segreteria-filters {
        grid-template-columns: 1fr !important;
    }

    .segreteria-dashboard-head,
    .segreteria-table-head,
    .segreteria-pagination,
    .segreteria-filter-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .segreteria-dashboard-head h2 {
        font-size: 34px;
    }

    .segreteria-edit-grid,
    .segreteria-edit-fields {
        grid-template-columns: 1fr;
    }

    .segreteria-detail-actions {
        grid-template-columns: 1fr;
    }

    .segreteria-operational-summary {
        grid-template-columns: 1fr;
    }

    .segreteria-quick-actions-detail {
        justify-content: flex-start;
    }

    .segreteria-edit-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .segreteria-document-row {
        grid-template-columns: 1fr;
    }

    .segreteria-file-replace {
        align-items: flex-start;
        flex-direction: column;
    }

    .segreteria-quick-actions {
        max-width: none;
    }

}

.page-la-societa .news-hero-wrapper .page-submenu,
.page-comitato .news-hero-wrapper .page-submenu,
.page-allenatori .news-hero-wrapper .page-submenu,
.page-area-segreteria .news-hero-wrapper .page-submenu {
    margin-top: 18px !important;
    margin-bottom: 14px !important;
}

.page-la-societa .news-hero-wrapper .news-hero-content p,
.page-comitato .news-hero-wrapper .news-hero-content p {
    font-size: 19px !important;
    line-height: 1.18 !important;
    margin-top: 8px !important;
}

@media (max-width: 900px) {
    .page-comitato .news-hero-wrapper .news-hero-content {
        top: calc(100% - 300px) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-comitato .news-hero-wrapper .news-hero-content h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;
    }

    .page-comitato .news-hero-wrapper .page-submenu {
        gap: 8px !important;
        margin-top: 14px !important;
        margin-bottom: 8px !important;
    }

    .page-comitato .news-hero-wrapper .page-submenu a {
        padding: 7px 12px !important;
        font-size: 14px !important;
        line-height: 1.1 !important;
    }

    .page-comitato .news-hero-wrapper .news-hero-content p {
        font-size: 18px !important;
        line-height: 1.25 !important;
        margin-top: 14px !important;
    }
}

/* Allinea la pagina "Club dei 100" al contenuto dell'hero e lascia spazio al sottotitolo. */
.page-club100 > .container {
    width: calc(100% - 40px);
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
}

.page-club100 .news-hero-wrapper .news-hero-content {
    top: calc(100% - 200px) !important;
}

.page-club100 .news-hero-wrapper .page-submenu {
    margin-top: 18px !important;
    margin-bottom: 14px !important;
}

.page-club100 .news-hero-wrapper .page-submenu a {
    padding: 8px 40px !important;
    font-size: 22px !important;
    line-height: 1.1 !important;
}

.page-club100 .news-hero-wrapper .news-hero-content p {
    font-size: 19px !important;
    line-height: 1.18 !important;
    margin-top: 8px !important;
}

.page-club100 .club100-content {
    font-size: 19px !important;
    line-height: 1.7 !important;
}

.page-club100 .club100-content h3 {
    font-size: 34px !important;
    line-height: 1.2 !important;
    margin-bottom: 25px !important;
    text-transform: uppercase;
}

.page-club100 .club100-content p,
.page-club100 .club100-content li {
    font-size: 19px !important;
    line-height: 1.7 !important;
}

.page-club100 .club100-content p {
    font-weight: 400 !important;
}

/* Mantiene il titolo Area Allenatori allineato alle altre pagine e fa rientrare il sottotitolo nell'hero. */
.page-allenatori > .container {
    width: calc(100% - 40px);
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
}

.page-allenatori .news-hero-wrapper .news-hero-content {
    top: calc(100% - 200px) !important;
}

.page-allenatori .news-hero-wrapper .news-hero-content p {
    font-size: 19px !important;
    line-height: 1.18 !important;
    margin-top: 8px !important;
}

@media (max-width: 900px) {
    .page-allenatori .news-hero-wrapper .news-hero-content {
        top: calc(100% - 300px) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-allenatori .news-hero-wrapper .news-hero-content h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;
    }

    .page-allenatori .news-hero-wrapper .page-submenu {
        gap: 8px !important;
        margin-top: 14px !important;
        margin-bottom: 8px !important;
    }

    .page-allenatori .news-hero-wrapper .page-submenu a {
        padding: 7px 12px !important;
        font-size: 14px !important;
        line-height: 1.1 !important;
    }

    .page-allenatori .news-hero-wrapper .news-hero-content p {
        font-size: 18px !important;
        line-height: 1.25 !important;
        margin-top: 14px !important;
    }
}

@media (max-width: 900px) {
    .page-club100 .news-hero-wrapper .news-hero-content {
        top: calc(100% - 300px) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-club100 .news-hero-wrapper .news-hero-content h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;
    }

    .page-club100 .news-hero-wrapper .page-submenu {
        gap: 8px !important;
        margin-top: 14px !important;
        margin-bottom: 8px !important;
    }

    .page-club100 .news-hero-wrapper .page-submenu a {
        padding: 7px 12px !important;
        font-size: 14px !important;
        line-height: 1.1 !important;
    }

    .page-club100 .news-hero-wrapper .news-hero-content p {
        font-size: 18px !important;
        line-height: 1.25 !important;
        margin-top: 14px !important;
    }
}

.split-card {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 40px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

@media (min-width: 900px) {
    .card-left {
        /* Bordo bianco separatore verticale al centro */
        border-right: 1px solid var(--c-white);
    }
}
@media (max-width: 899px) {
    .card-left {
        /* Bordo bianco separatore in mobile */
        border-bottom: 1px solid var(--c-white);
    }
}

.split-card::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Overlay scuro per rendere leggibile il testo bianco */
    background: rgba(0,0,0,0.55);
    z-index: 1;
    transition: background 0.4s ease;
}

.split-card:hover::before {
    background: rgba(0,0,0,0.4);
}

.split-card-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    width: 100%;
}

.split-card h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    /* Font size h3 da moodboard: 34px */
    font-size: 34px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.split-card p {
    font-size: 12px; /* Moodboard 'p' element = 12px */
    line-height: 1.6;
    margin-bottom: 40px; /* Molto spazio prima del bottone */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Fallback backgrounds if images are not set in backend yet */
.card-left {
    background-image: url('https://images.unsplash.com/photo-1579952363873-27f3bade9f55?q=80&w=1000&auto=format&fit=crop'); 
}
.card-right {
    background-image: url('https://images.unsplash.com/photo-1543326727-cf6c39e8f84c?q=80&w=1000&auto=format&fit=crop');
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--c-black);
    text-align: center;
}

.footer-social {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: var(--c-light-yellow); /* Nel design le icone sembrano giallo pallido o giallo scuro */
    color: var(--c-black);
    border-radius: 50%;
    font-size: 18px;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
    background-color: var(--c-primary);
}

.footer-bottom {
    background-color: var(--c-light-yellow);
    color: var(--c-black);
    padding: 20px 15px;
    font-size: 12px;
    font-weight: 700;
}

/* --- PRIMA SQUADRA TEMPLATE --- */
.container { max-width: 1400px; margin: 0 auto; }
.page-prima-squadra { padding-bottom: 60px; }

.page-template-template-prima-squadra .site-header {
    display: none;
}

.page-template-template-prima-squadra .news-hero {
    margin-top: 0;
}

.prima-hero-nav {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 0 194px;
    line-height: 1;
}

.prima-hero-nav::after {
    content: '';
    position: absolute;
    top: calc(28px + clamp(54px, 5.3vw, 82px) + 14px);
    left: 194px;
    right: 194px;
    height: 1px;
    background: rgba(255,255,255,0.72);
    transform: scaleY(0.6);
    transform-origin: center;
    pointer-events: none;
}

.prima-hero-links {
    display: flex;
    align-items: center;
    gap: clamp(3px, 0.35vw, 6px);
    min-width: 0;
    width: 100%;
    transform: translateY(28px);
}

.prima-hero-links-left {
    justify-content: space-between;
}

.prima-hero-links-right {
    justify-content: space-between;
}

.prima-hero-links a {
    color: #fff;
    font-size: clamp(12px, 1.05vw, 17px);
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

.prima-hero-links a:hover,
.prima-hero-links .prima-hero-link-shop,
.prima-hero-social a:hover {
    color: var(--c-primary);
}

.prima-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(54px, 5.3vw, 82px);
    height: clamp(54px, 5.3vw, 82px);
    transform: translateY(28px);
}

.prima-hero-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}

.prima-hero-social {
    position: absolute;
    right: 78px;
    bottom: -214px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.prima-hero-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--c-light-yellow);
    border-radius: 50%;
    background-color: var(--c-light-yellow);
    color: #000;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s;
}

.prima-hero-social a:hover {
    background-color: transparent;
    border-color: var(--c-light-yellow);
    color: var(--c-light-yellow);
    transform: scale(1.1);
}

.prima-mobile-menu-open {
    display: none;
}

@media (max-width: 980px) {
    .prima-hero-nav {
        top: 14px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
        padding: 0 16px;
    }

    .prima-hero-nav::after {
        top: calc(16px + 62px + 12px);
        left: 16px;
        right: 16px;
    }

    .prima-hero-logo {
        order: 1;
        width: 62px;
        height: 62px;
        transform: translateY(16px);
    }

    .prima-hero-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 16px;
        width: 100%;
        transform: translateY(16px);
    }

    .prima-hero-links-left {
        order: 2;
    }

    .prima-hero-links-right {
        order: 3;
    }

    .prima-hero-links a {
        font-size: 11px;
    }

    .prima-hero-social {
        right: 58px;
        bottom: -170px;
        gap: 8px;
    }

    .prima-hero-social a {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-prima-squadra .prima-hero-nav {
        top: 14px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        padding: 0;
        pointer-events: none;
    }

    .page-prima-squadra .prima-hero-nav::after {
        top: 96px;
        left: 18px;
        right: 18px;
    }

    .page-prima-squadra .prima-hero-links {
        display: none !important;
    }

    .page-prima-squadra .prima-hero-logo {
        width: 58px;
        height: 82px;
        transform: none;
        pointer-events: auto;
    }

    .page-prima-squadra .prima-hero-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .prima-mobile-menu-open {
        position: absolute;
        top: 22px;
        left: 18px;
        z-index: 6;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .page-prima-squadra .prima-hero-social {
        display: none !important;
    }
}

@media (max-width: 560px) {
    .page-prima-squadra .prima-hero-nav {
        top: 14px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        padding: 0;
        pointer-events: none;
    }

    .page-prima-squadra .prima-hero-nav::after {
        top: 92px;
        left: 18px;
        right: 18px;
    }

    .page-prima-squadra .prima-hero-links {
        display: none !important;
    }

    .page-prima-squadra .prima-hero-logo {
        width: 58px;
        height: 82px;
        transform: none;
        pointer-events: auto;
    }

    .page-prima-squadra .prima-hero-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .prima-mobile-menu-open {
        position: absolute;
        top: 22px;
        left: 18px;
        z-index: 6;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .page-prima-squadra .prima-hero-social {
        display: none !important;
    }

    .prima-hero-nav {
        left: 60px;
        right: 60px;
    }

    .page-prima-squadra .prima-hero-logo {
        width: 54px;
        height: 78px;
        transform: none;
    }

    .prima-hero-links {
        gap: 8px 11px;
        transform: translateY(10px);
    }

    .prima-hero-links a {
        font-size: 9px;
    }

    .prima-hero-social {
        right: 36px;
        bottom: -132px;
        gap: 6px;
    }

    .prima-hero-social a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

.team-hero { 
    width: 100%; 
    border: none; 
    position: relative; 
}
/* Sfocatura verso il nero in fondo! */
.team-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 180px; /* Altezza della sola sfumatura */
    background: linear-gradient(to bottom, transparent 0%, var(--c-black) 100%);
    pointer-events: none;
}
.hero-image { 
    width: 100%; 
    height: auto; 
    aspect-ratio: 21 / 9; /* Proporzione fissa "a striscione largo" che cresce insieme al monitor */
    max-height: 600px; 
    object-fit: cover; 
    object-position: center; /* Pone il centro esatto della foto al centro dello schermo */
    display: block; 
}
.ps-section { padding: 60px 20px 20px; }

.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; border: none; padding-bottom: 0;
}
@media (max-width: 600px) {
    .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
}

/* Stagione mockup layout */
.page-stagione .ps-section {
    padding-top: 58px;
}

.page-stagione .news-hero + .ps-section {
    margin-top: 0;
    padding-top: 0 !important;
}

.page-stagione .news-hero + .ps-section .section-title {
    margin-bottom: 24px !important;
}

.page-stagione .section-title {
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 24px !important;
}

.page-stagione .match-list {
    gap: 26px !important;
}

.page-stagione .match-card.match-row {
    display: grid;
    grid-template-columns: 280px 1fr 240px;
    align-items: center;
    min-height: 126px;
    padding: 22px 42px;
    border: 0;
    background: #3a3f43;
    box-sizing: border-box;
}

.page-stagione .match-row .match-info {
    flex: none;
    width: auto;
    text-align: left;
}

.page-stagione .match-row .match-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    line-height: 1;
}

.page-stagione .match-row .match-date-day,
.page-stagione .match-row .match-date-time {
    display: block;
    color: var(--c-white);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.page-stagione .match-row .text-light-yellow,
.page-stagione .match-row .match-stadium-name {
    display: block;
    color: var(--c-light-yellow) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1;
    margin-top: 0 !important;
    text-transform: none;
}

.page-stagione .match-row .match-teams {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) 72px auto 72px minmax(110px, 1fr);
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.page-stagione .match-row .team {
    display: contents;
}

.page-stagione .match-row .team:first-child .d-none-mobile {
    grid-column: 1;
    justify-self: end;
}

.page-stagione .match-row .team:first-child .match-row-logo {
    grid-column: 2;
    justify-self: center;
}

.page-stagione .match-row .vs,
.page-stagione .match-row .score {
    grid-column: 3;
    justify-self: center;
    color: var(--c-white) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.page-stagione .match-row .team:last-child .match-row-logo {
    grid-column: 4;
    justify-self: center;
}

.page-stagione .match-row .team:last-child .d-none-mobile {
    grid-column: 5;
    justify-self: start;
}

.page-stagione .match-row .d-none-mobile {
    color: var(--c-white);
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.page-stagione .match-row-logo {
    max-height: 72px;
    max-width: 72px;
    width: auto;
    object-fit: contain;
}

.page-stagione .match-row .match-action {
    flex: none;
    width: auto;
    justify-content: flex-end;
}

.page-stagione .match-row .vertical-divider {
    display: none;
}

.page-stagione .match-row .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 40px;
    padding: 5px 0 0;
    border: 2px solid var(--c-primary);
    color: var(--c-primary);
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
}

.page-stagione .custom-classifica-wrapper {
    overflow-x: auto !important;
    margin-top: 32px !important;
}

.page-stagione .custom-classifica-wrapper table {
    width: 100% !important;
    min-width: 760px;
    border-collapse: collapse !important;
    background: #3a3f43 !important;
    color: var(--c-white);
    font-size: 17px !important;
    font-family: var(--font-main);
    font-weight: 700 !important;
    text-align: center !important;
}

.page-stagione .custom-classifica-wrapper table thead tr {
    background: #f9ea86 !important;
    color: var(--c-black) !important;
}

.page-stagione .custom-classifica-wrapper table thead th {
    background: #f9ea86 !important;
    color: var(--c-black) !important;
}

.page-stagione .custom-classifica-wrapper table th,
.page-stagione .custom-classifica-wrapper table td {
    height: 72px;
    padding: 0 18px !important;
    border: 2px solid #111 !important;
    font-size: 17px !important;
    font-family: var(--font-main);
    font-weight: 700 !important;
    vertical-align: middle;
}

.page-stagione .custom-classifica-wrapper table th:first-child,
.page-stagione .custom-classifica-wrapper table td:first-child {
    width: 86px;
    text-align: center !important;
    padding-left: 18px !important;
}

.page-stagione .custom-classifica-wrapper table th:nth-child(2),
.page-stagione .custom-classifica-wrapper table td:nth-child(2) {
    width: 290px;
    border-right: 2px solid #111 !important;
}

.page-stagione .custom-classifica-wrapper table th:nth-child(2) {
    text-align: center !important;
    padding-left: 0 !important;
}

.page-stagione .custom-classifica-wrapper table td:nth-child(2) {
    text-align: left !important;
    padding-left: 22px !important;
}

.page-stagione .custom-classifica-wrapper table th:nth-child(n+3),
.page-stagione .custom-classifica-wrapper table td:nth-child(n+3) {
    border-left: 0 !important;
    border-right: 0 !important;
}

.page-stagione .custom-classifica-wrapper table img {
    max-height: 42px;
    width: auto;
    margin-right: 14px;
    vertical-align: middle;
}

.page-stagione .custom-classifica-wrapper .standings-team-cell {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-width: 0;
}

.page-stagione .custom-classifica-wrapper .standings-team-cell img {
    flex: 0 0 auto;
    width: 34px;
    max-width: 34px;
    max-height: 42px;
    margin-right: 0;
    object-fit: contain;
}

.page-stagione .custom-classifica-wrapper .standings-team-name {
    display: inline-block;
    min-width: 0;
    color: var(--c-white);
    font-weight: 700;
    line-height: 1.1;
}

@media (max-width: 900px) {
    .page-stagione .match-card.match-row {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 20px;
        text-align: center;
    }

    .page-stagione .match-row .match-date {
        align-items: center;
    }

    .page-stagione .match-row .match-teams {
        grid-template-columns: 1fr auto 1fr;
        gap: 12px;
    }

    .page-stagione .match-row .team:first-child .d-none-mobile,
    .page-stagione .match-row .team:last-child .d-none-mobile {
        display: none;
    }

    .page-stagione .match-row .team:first-child .match-row-logo {
        grid-column: 1;
    }

    .page-stagione .match-row .vs,
    .page-stagione .match-row .score {
        grid-column: 2;
    }

    .page-stagione .match-row .team:last-child .match-row-logo {
        grid-column: 3;
    }

    .page-stagione .match-row-logo {
        max-height: 64px;
        max-width: 64px;
    }

    .page-stagione .match-row .match-action {
        justify-content: center;
        border-top: 0;
        padding-top: 0;
    }
}

.section-title { font-size: 42px; text-transform: uppercase; font-weight: 700; }
.text-white { color: var(--c-white) !important; }
.btn-sm { padding: 8px 24px; font-size: 22px; font-weight: 700; letter-spacing: 1px; }

/* Bottoni Identici al Design */
.btn-primary { background-color: var(--c-primary); color: var(--c-black); border: 2px solid var(--c-primary); }
.btn-primary:hover { background-color: transparent; color: var(--c-primary); }

.page-prima-squadra .section-header .btn-sm {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 218px;
    width: 218px;
    min-height: 40px;
    height: 40px;
    padding: 5px 0 0;
    box-sizing: border-box;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
}

.page-template-template-prima-squadra .page-prima-squadra .ps-section .section-header .btn-sm {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 218px !important;
    min-width: 218px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 5px 0 0 !important;
    box-sizing: border-box !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.page-home-societa .section-header .btn-sm {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 218px;
    width: 218px;
    min-height: 40px;
    height: 40px;
    padding: 5px 0 0;
    box-sizing: border-box;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
}

.page-home-societa .section-header .btn-outline {
    min-width: 218px;
    min-height: 40px;
    border-width: 2px;
    color: var(--c-primary) !important;
}

.page-home-societa .hs-empty-news {
    width: 100%;
    padding: 24px 0;
    font-size: 18px;
    font-weight: 700;
}

.page-prima-squadra .section-header .btn-primary {
    min-width: 218px;
    min-height: 40px;
    border-width: 2px;
    color: var(--c-black) !important;
}

.page-prima-squadra .section-header .btn-outline {
    min-width: 218px;
    min-height: 40px;
    border-width: 2px;
    color: var(--c-primary) !important;
}

/* Paginazione News */
.pagination-numbers .page-numbers {
    display: inline-flex; justify-content: center; align-items: center; width: 30px; height: 30px;
    border-radius: 50%; border: 1px solid var(--c-primary); color: var(--c-primary);
    font-size: 12px; font-weight: 700; text-decoration: none; transition: all 0.3s;
}
.pagination-numbers .page-numbers.current, .pagination-numbers .page-numbers:hover {
    background-color: var(--c-primary); color: var(--c-black);
}
.nav-arrow a { color: var(--c-primary); text-decoration: none; }

.page-news .news-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 64px 0 36px;
}

.page-news .news-pagination .nav-arrow {
    display: flex;
    align-items: center;
    color: var(--c-primary);
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1;
    -webkit-text-stroke: 3px var(--c-primary) !important;
}

.page-news .news-pagination .nav-arrow:first-child {
    justify-content: flex-start;
}

.page-news .news-pagination .nav-arrow:last-child {
    justify-content: flex-end;
}

.page-news .news-pagination .nav-arrow a,
.page-news .news-pagination .nav-arrow i {
    color: var(--c-primary);
    text-decoration: none;
    -webkit-text-stroke: 3px var(--c-primary) !important;
}

.page-news .news-pagination .pagination-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.page-news .news-pagination .pagination-numbers .page-numbers {
    width: 32px;
    height: 32px;
    border: 2px solid var(--c-primary);
    color: var(--c-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.page-news .news-pagination .pagination-numbers .page-numbers.current,
.page-news .news-pagination .pagination-numbers .page-numbers:hover {
    background: var(--c-primary);
    color: var(--c-black);
}

/* --- STAGIONE TEMPLATE --- */
.match-row {
    padding: 25px 40px;
}
.match-row .match-info { flex: 1; text-align: left; }
.match-row .match-teams { flex: 2; justify-content: center; gap: 30px; }
.match-row .team { display: flex; align-items: center; gap: 15px; }
.match-row-logo { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }
.match-row .match-action { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.vertical-divider { width: 2px; height: 30px; background-color: var(--c-primary); margin-right: 30px; opacity: 0.5; }

/* Classifica NATIVA (Tabelle WordPress Modificabili dall'utente) */
.ranking-table-custom-content { overflow-x: auto; margin-top: 20px; }
.ranking-table-custom-content table {
    width: 100%; border-collapse: collapse; min-width: 600px;
}
.ranking-table-custom-content table thead {
    background-color: var(--c-light-yellow); color: var(--c-black);
}
.ranking-table-custom-content table th {
    padding: 15px 15px; font-size: 17px; font-weight: 700; text-transform: uppercase; text-align: center; border: none;
}
.ranking-table-custom-content table tbody tr {
    background-color: var(--c-gray); border-bottom: 2px solid #222; color: var(--c-white); font-size: 17px; font-weight: 700; transition: background 0.3s;
}
.ranking-table-custom-content table tbody tr:hover { background-color: #3f4449; }
.ranking-table-custom-content table tbody td {
    padding: 15px 15px; text-align: center; border: none;
}
.ranking-table-custom-content table th:first-child, .ranking-table-custom-content table td:first-child { text-align: left; width: 10%; padding-left: 30px; }
.ranking-table-custom-content table th:nth-child(2), .ranking-table-custom-content table td:nth-child(2) { text-align: left; width: 40%; }

/* Per supportare facilmente i loghi dentro le celle */
.ranking-table-custom-content table img { display: inline-block; vertical-align: middle; max-height: 25px; margin-right: 15px; width: auto; }

@media (max-width: 900px) {
    .match-row { flex-direction: column; gap: 20px; text-align: center; padding: 25px 20px; }
    .match-row .match-info { text-align: center; }
    .match-row .match-action { justify-content: center; width: 100%; border-top: 1px solid #444; padding-top: 20px; }
    .vertical-divider { display: none; }
    .d-none-mobile { display: none; }
}

/* Griglie */
.ps-grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- DESKTOP: Gallery → 4 foto, News → 3 articoli visibili ---- */
#gallery-carousel,
#storia-gallery-carousel,
#progetto-gallery-carousel,
#club100-gallery-carousel {
    padding: 28px 16px !important;
    margin: -18px 0 !important;
}

.gallery-slide {
    flex: 0 0 calc(25% - 15px);
    min-width: 0;
    display: block;
    position: relative;
    transition: none;
}
.gallery-slide.active {
    flex: 0 0 calc(25% - 15px);
    z-index: 2;
}
.news-slide {
    flex: 0 0 calc(33.333% - 11px); /* 3 news alla volta */
    min-width: 0;
}
#news-carousel .news-slide {
    flex: 0 0 calc(33.333% - 11px);
}

/* ---- Mobile: Gallery, News e Team diventano 1 elemento alla volta ---- */
@media (max-width: 768px) {
    /* Fotogallery: 1 foto alla volta */
    #gallery-carousel .gallery-slide,
    #storia-gallery-carousel .gallery-slide,
    #progetto-gallery-carousel .gallery-slide,
    #club100-gallery-carousel .gallery-slide {
        flex: 0 0 100% !important;
        box-sizing: border-box;
        padding: 0 8px;
        display: flex;
        justify-content: center;
        scroll-snap-align: start;
    }
    #gallery-carousel,
    #storia-gallery-carousel,
    #progetto-gallery-carousel,
    #club100-gallery-carousel {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overflow-x: auto !important;
    }
    #gallery-carousel::-webkit-scrollbar,
    #storia-gallery-carousel::-webkit-scrollbar,
    #progetto-gallery-carousel::-webkit-scrollbar,
    #club100-gallery-carousel::-webkit-scrollbar { display: none; }

    #gallery-carousel .gallery-slide.active .gallery-item,
    #storia-gallery-carousel .gallery-slide.active .gallery-item,
    #progetto-gallery-carousel .gallery-slide.active .gallery-item,
    #club100-gallery-carousel .gallery-slide.active .gallery-item {
        width: calc(100% - 18px);
        transform: translateX(18px) scale(1.02);
    }

    /* Team: 1 card alla volta */
    #team-carousel {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        scrollbar-width: none;
    }
    #team-carousel::-webkit-scrollbar { display: none; }
    #team-carousel .team-slide {
        flex: 0 0 85% !important;
        scroll-snap-align: start;
    }

    /* News: 1 articolo alla volta */
    #news-carousel .news-slide,
    #hs-news-carousel .news-slide,
    #hs-eventi-carousel .news-slide {
        flex: 0 0 100% !important;
        scroll-snap-align: start;
    }
    #news-carousel,
    #hs-news-carousel,
    #hs-eventi-carousel {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overflow-x: auto !important;
    }
    #news-carousel::-webkit-scrollbar,
    #hs-news-carousel::-webkit-scrollbar,
    #hs-eventi-carousel::-webkit-scrollbar { display: none; }

    /* Vecchie classi ps-grid per retrocompatibilità */
    .ps-grid.grid-4.ps-gallery {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    .ps-grid.grid-4.ps-gallery::-webkit-scrollbar { display: none; }
    .ps-grid.grid-3 {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    .ps-grid.grid-3::-webkit-scrollbar { display: none; }
}

.cover-bg { background-size: cover; background-position: center; background-repeat: no-repeat; border: 1px solid var(--c-gray); }

.gallery-item {
    aspect-ratio: 3/4;
    width: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #ffffff;
    opacity: 0.35;
    box-sizing: border-box;
    transform: scale(0.94);
    transform-origin: center center;
}
.gallery-slide.active .gallery-item {
    border: 2px solid #ffffff;
    opacity: 1;
    transform: scale(1.08);
}
.gallery-item:hover {
    opacity: 1;
}

.match-card { 
    background-color: var(--c-gray); 
    padding: 38px 33px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    min-height: 290px; 
    box-sizing: border-box;
}
.match-info p { margin-bottom: 5px; }
.match-date { font-weight: 700; font-size: 16px; text-transform: uppercase; }
.match-date-day { display: block; }
.match-date-time { display: block; margin-top: 2px; }
.match-venue { font-weight: 700; font-size: 13px; color: var(--c-light-yellow) !important; margin-top: 8px; }
.match-teams { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 25px; }
.team-name { font-weight: 700; font-size: 15px; text-transform: uppercase; }
.team-1-name { text-align: left; }
.team-2-name { text-align: right; }
.teams-logos-center { display: flex; align-items: center; gap: 15px; }
.teams-logos-center img { max-height: 50px; width: auto; object-fit: contain; }
.vs { font-weight: 700; color: var(--c-white); font-size: 18px; }

/* Spaced out logo layout for Next Matches cards */
.match-card:not(.match-row) {
    position: relative;
    min-height: 245px;
    padding: 58px 30px 28px;
}
.match-card:not(.match-row) .match-type-badge {
    position: absolute;
    top: 22px;
    left: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    height: 28px;
    padding: 2px 14px 0;
    background: var(--c-primary);
    color: var(--c-black);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    box-sizing: border-box;
}
.match-card:not(.match-row) .match-info p {
    margin-bottom: 0;
}
.match-card:not(.match-row) .match-date {
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: 0;
}
.match-card:not(.match-row) .match-date-day,
.match-card:not(.match-row) .match-date-time {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
.match-card:not(.match-row) .match-date-time {
    margin-top: 0;
}
.match-card:not(.match-row) .match-date-value,
.match-card:not(.match-row) .match-time-value {
    font-size: 23px;
}
.match-card:not(.match-row) .match-venue {
    font-size: 17px;
    margin-top: 0px;
}
.match-card:not(.match-row) .match-teams {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.5fr 0.8fr 1.5fr;
    align-items: center;
    width: 100%;
    margin-top: 25px;
    gap: 10px;
}
.match-card:not(.match-row) .team-name {
    font-weight: 800;
    font-size: 20px;
    text-transform: none;
}
.match-card:not(.match-row) .team-1-name {
    text-align: left;
}
.match-card:not(.match-row) .team-2-name {
    text-align: right;
}
.match-card:not(.match-row) .team-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.match-card:not(.match-row) .team-logo {
    max-height: 80px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.match-card:not(.match-row) .team-logo:hover {
    transform: scale(1.08);
}
.team-logo[src*="mendrisio-logo.png"] {
    padding: 8px;
    box-sizing: border-box;
}
.match-row-logo[src*="mendrisio-logo.png"] {
    padding: 6px;
    box-sizing: border-box;
}
.match-card:not(.match-row) .vs {
    font-weight: 700;
    color: var(--c-white);
    font-size: 18px;
    text-align: center;
}

@media (max-width: 600px) {
    .match-card { flex-direction: column; text-align: center; gap: 16px; }
    .match-teams { gap: 10px; }
    .team-1-name, .team-2-name { text-align: center; }

    .match-card:not(.match-row) {
        min-height: 0;
        padding: 58px 18px 28px;
    }

    .match-card:not(.match-row) .match-teams {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 14px;
    }

    .match-card:not(.match-row) .team-1-name,
    .match-card:not(.match-row) .team-2-name {
        display: block;
        min-width: 0;
        font-size: 19px;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .match-card:not(.match-row) .team-1-name {
        text-align: center;
    }

    .match-card:not(.match-row) .team-2-name {
        text-align: center;
    }

    .match-card:not(.match-row) .team-logo-container {
        display: none;
    }

    .match-card:not(.match-row) .vs {
        font-size: 15px;
    }

    .match-row-logo {
        max-height: 48px;
    }
}

/* News Card */
.news-card { height: auto !important; aspect-ratio: 1 / 1 !important; position: relative; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; border: 2px solid #ffffff; box-sizing: border-box; }
.news-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 70%); }
.news-date { position: relative; z-index: 2; font-weight: 700; font-size: 32px; }
.news-content { position: relative; z-index: 2; }
.news-title { font-weight: 700; font-size: 32px; line-height: 1.3; margin-bottom: 20px; text-transform: uppercase; }
.news-card .news-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    text-overflow: ellipsis;
}
.news-card .news-title-clamp {
    display: -webkit-box !important;
    max-height: 2.6em;
    overflow: hidden !important;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}
.news-card .btn-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    height: 38px;
    padding: 5px 24px 0;
    box-sizing: border-box;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
}

#hs-eventi-carousel .news-card .btn-primary {
    background-color: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}
#hs-eventi-carousel .news-card .btn-primary:hover {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}

/* Player Card */
.player-photo { height: 350px; }
.player-card {
    isolation: isolate;
}
.player-photo-fill {
    background-image: var(--player-card-photo) !important;
    background-size: var(--player-card-size, cover) !important;
    background-position: var(--player-card-position, center top) !important;
    background-repeat: no-repeat !important;
    filter: none;
    transform: scale(1.08);
    opacity: 1;
    z-index: 0;
}

.player-card .player-photo {
    position: relative;
    z-index: 1;
    background-color: transparent !important;
}

.page-prima-squadra #team-carousel .team-slide:hover .player-photo {
    transform: scale(1.04);
}

.player-card .player-overlay {
    z-index: 2 !important;
    height: 72% !important;
    background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.78) 28%, rgba(0,0,0,0.34) 58%, rgba(0,0,0,0) 100%) !important;
}
.player-info { padding: 15px 0; display: flex; gap: 15px; align-items: flex-start; }
.player-number { font-size: 34px; font-weight: 700; line-height: 0.9; }
.player-name { font-size: 34px; font-weight: 700; text-transform: none; }

/* Sponsors */
.ps-sponsors { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 40px 50px; 
    padding: 45px 0; 
    border-bottom: 3px solid var(--c-gray); 
}
.ps-sponsors img { 
    max-height: 105px; 
    max-width: 240px; 
    width: auto; 
    height: auto; 
    object-fit: contain; 
    opacity: 1; 
    filter: none;
    transition: transform 0.3s, opacity 0.3s; 
}
.ps-sponsors img:hover { 
    transform: scale(1.08); 
    opacity: 1; 
}

.ps-sponsors.is-marquee {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    overflow: hidden;
    position: relative;
    padding: 45px 0;
}

.ps-sponsors.is-marquee .ps-sponsors-track {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 48px;
    min-width: max-content;
    animation: psSponsorMarquee 28s linear infinite;
    will-change: transform;
}

.ps-sponsors.is-marquee:hover .ps-sponsors-track {
    animation-play-state: paused;
}

.ps-sponsors.is-marquee .ps-sponsors-track > a,
.ps-sponsors.is-marquee .ps-sponsors-track > img {
    flex: 0 0 auto;
}

@keyframes psSponsorMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 24px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ps-sponsors.is-marquee {
        overflow-x: auto;
    }

    .ps-sponsors.is-marquee .ps-sponsors-track {
        animation: none;
    }
}

.page-prima-squadra .ps-sponsors img {
    max-height: 115px;
    max-width: 260px;
}

.page-prima-squadra .ps-sponsors img:nth-of-type(1),
.page-prima-squadra .ps-sponsors img:nth-of-type(2) {
    transform: scale(0.84);
}

.page-prima-squadra .ps-sponsors img:nth-of-type(3) {
    transform: scale(1.2);
}

.page-prima-squadra .ps-sponsors img:last-of-type {
    transform: scale(1.09);
}

.page-prima-squadra .ps-sponsors img:nth-of-type(4) {
    transform: scale(0.88);
}

.page-prima-squadra .ps-sponsors img:nth-of-type(1):hover,
.page-prima-squadra .ps-sponsors img:nth-of-type(2):hover {
    transform: scale(0.91);
}

.page-prima-squadra .ps-sponsors img:nth-of-type(3):hover {
    transform: scale(1.28);
}

.page-prima-squadra .ps-sponsors img:last-of-type:hover {
    transform: scale(1.16);
}

.page-prima-squadra .ps-sponsors img:nth-of-type(4):hover {
    transform: scale(0.96);
}

/* Specific overrides for logos that have high transparent margins or are visually small */
.ps-sponsors img[src*="Farm-Carvina"] {
    transform: scale(1.28);
}
.ps-sponsors img[src*="Farm-Carvina"]:hover {
    transform: scale(1.38);
}

/* Carousel Nav */
.carousel-nav { display: flex; justify-content: space-between; align-items: center; padding: 25px 0; }
.nav-arrow {
    font-size: 28px !important;
    font-weight: 900 !important;
    -webkit-text-stroke: 3px var(--c-primary) !important;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.nav-arrow:hover { opacity: 0.7; }
.nav-dots { display: flex; gap: 8px; color: var(--c-primary); font-size: 10px; }
.nav-dots .active { color: var(--c-primary); }

.gallery-nav {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gallery-nav .nav-arrow {
    position: absolute;
}
.gallery-nav #gallery-prev,
.gallery-nav #storia-gallery-prev,
.gallery-nav #progetto-gallery-prev,
.gallery-nav #club100-gallery-prev {
    left: 0;
}
.gallery-nav #gallery-next,
.gallery-nav #storia-gallery-next,
.gallery-nav #progetto-gallery-next,
.gallery-nav #club100-gallery-next {
    right: 0;
}
.gallery-nav .nav-dots {
    gap: 12px;
    font-size: 12px;
}
.storia-gallery-nav #storia-gallery-dots {
    display: none !important;
}
.storia-gallery-nav .gallery-counter,
.page-club .gallery-nav .gallery-counter {
    color: var(--c-primary);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    min-width: 64px;
    text-align: center;
}
.page-club .gallery-nav #progetto-gallery-dots {
    display: none !important;
}
.club100-gallery-nav #club100-gallery-dots {
    display: none !important;
}
.club100-gallery-nav .gallery-counter {
    color: var(--c-primary);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    min-width: 64px;
    text-align: center;
}
.club100-gallery-nav {
    margin-top: 24px !important;
}

/* Header e Icone a destra */
.site-header {
    background-color: var(--c-black);
    padding: 20px 0 15px;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.header-empty-left, .header-right-icons { flex: 1; }
.header-right-icons {
    display: flex; justify-content: flex-end; gap: 15px;
}
.header-right-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--c-light-yellow);
    background-color: var(--c-light-yellow);
    color: #000 !important;
    font-size: 16px;
    transition: all 0.3s;
}
.header-right-icons a:hover {
    background-color: transparent;
    color: var(--c-light-yellow) !important;
    border-color: var(--c-light-yellow);
    transform: scale(1.1);
}
.site-logo { flex: 1; text-align: center; }

/* Nuovo bottone outline dorato fine */
.btn-outline {
    border: 2px solid var(--c-primary);
    color: var(--c-primary);
    background: transparent;
    padding: 8px 60px;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.btn-outline:hover {
    background-color: var(--c-primary);
    color: var(--c-black) !important;
    border-color: var(--c-primary);
    transform: translateY(-2px);
}

/* Instagram Widget */
.instagram-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: #111; margin-bottom: 20px; border-radius: 8px; flex-wrap: wrap; gap: 20px; }
.ig-profile { display: flex; align-items: center; gap: 15px; }
.ig-profile img { border-radius: 50%; border: 2px solid var(--c-primary); }
.ig-stats { display: flex; gap: 20px; }
.stat strong { color: var(--c-white); }
.stat { color: #aaa; font-size: 14px; }
.btn-ig-follow { background: #0095f6; color: white; padding: 8px 20px; border-radius: 4px; font-weight: bold; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.ig-grid { gap: 10px; }

/* Footer Semplificato */
.footer-simple { padding: 40px 20px; text-align: center; }
.footer-address { margin-top: 20px; }
.footer-address p { font-size: 12px; font-weight: 700; color: var(--c-white); margin-bottom: 5px; }
.social-icon-outline {
    display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px;
    border: 2px solid var(--c-primary); border-radius: 50%; color: var(--c-primary); font-size: 18px; transition: all 0.3s;
}
.social-icon-outline:hover { background: var(--c-primary); color: var(--c-black); }

/* In-page Submenu Buttons Hover */
.page-submenu a { transition: all 0.3s ease; }
.page-submenu a.btn-outline-hover:hover { background-color: var(--c-primary) !important; color: var(--c-black) !important; border-color: var(--c-primary) !important; }

/* --- Modal Giocatore Responsive --- */
.player-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.78); z-index: 9999; padding: 70px 55px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.player-modal-content {
    position: relative; width: min(1775px, 100%); margin: 0 auto;
    min-height: min(1005px, calc(100vh - 140px)); background: #000000; border-radius: 0px;
    border: 2px solid #ffffff; display: flex; flex-wrap: nowrap; justify-content: flex-end; overflow: hidden;
    box-shadow: 0 0 0 70px rgba(98,96,48,0.86), 0 20px 50px rgba(0,0,0,0.9);
}
.player-modal-close {
    position: absolute; top: 38px; right: 34px; background: transparent;
    border: 2px solid #ffffff; border-radius: 0px; width: 52px; height: 52px; display: flex; align-items: center;
    justify-content: center; color: white; font-size: 28px; cursor: pointer; z-index: 10; font-family: sans-serif; font-weight: 800;
}
.player-modal-close:hover { background: #ffffff; color: #000; }
.player-modal-img-col {
    position: absolute; top: 0; left: 0; width: 74%; height: 100%; overflow: hidden; z-index: 1; background: #000;
}
.player-modal-img-col::before {
    content: ''; position: absolute; top: 0; left: 45%; width: 55%; height: 100%;
    background-image: var(--modal-edge-strip), linear-gradient(to right, #9f9f9a 0%, #5c5d5a 36%, #171717 72%, #000 100%);
    background-repeat: var(--modal-edge-strip-repeat, repeat-x), no-repeat;
    background-size: var(--modal-edge-strip-size, auto 100%), 100% 100%;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}
.player-modal-img-col::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.03) 24%, rgba(0,0,0,0.14) 38%, rgba(0,0,0,0.38) 52%, rgba(0,0,0,0.68) 68%, rgba(0,0,0,0.92) 84%, #000 100%);
    pointer-events: none; z-index: 3;
}
.player-modal-img-col img {
    position: relative; width: var(--modal-player-width, 54%); height: 100%; object-fit: cover; object-position: var(--modal-player-position, 50% 0%); display: block; z-index: 1; transform: scale(var(--modal-player-scale, 1)); transform-origin: var(--modal-player-position, 50% 0%);
}
.player-modal-data-col {
    width: 50%; flex: 0 0 50%; padding: 115px 95px 95px 42px; min-height: inherit; box-sizing: border-box;
    display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; transform: translateY(-55px);
}
.player-modal-numero { font-family: var(--font-main); font-size: 92px; font-weight: 700; color: var(--c-primary); line-height: 1; margin-bottom: 55px; letter-spacing: 0; }
.player-modal-name { color: white; font-size: 88px; font-weight: 700; line-height: 0.94; margin: 0 0 62px 0; text-transform: none; }
.player-modal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px 95px; font-size: 18px; text-transform: uppercase; }
.player-modal-label { color: var(--c-primary); margin-bottom: 16px; font-weight: 800; font-size: 30px; letter-spacing: 0; line-height: 1.05; }
.player-modal-value { color: var(--c-white); font-weight: 600; font-size: 18px; line-height: 1.35; text-transform: none; }
.player-modal-shop-btn { display: block; width: 100%; max-width: 268px; padding: 13px 20px; font-weight: 800; background-color: var(--c-primary); color: #000 !important; text-align: center; text-decoration: none; margin-top: 74px; border-radius: 0px; font-size: 26px; line-height: 1; letter-spacing: 0; transition: all 0.3s ease; border: 2px solid var(--c-primary); }
.player-modal-shop-btn:hover { background: transparent; color: #F9EA86 !important; }
 
@media (max-width: 1400px) {
    .player-modal-overlay { padding: 45px 35px; }
    .player-modal-content { min-height: min(760px, calc(100vh - 90px)); }
    .player-modal-data-col { padding: 90px 70px 70px 30px; transform: translateY(-35px); }
    .player-modal-numero { font-size: 70px; margin-bottom: 42px; }
    .player-modal-name { font-size: 66px; margin-bottom: 50px; }
    .player-modal-grid { gap: 34px 70px; }
    .player-modal-label { font-size: 24px; margin-bottom: 12px; }
    .player-modal-shop-btn { margin-top: 55px; font-size: 22px; }
}

@media (max-width: 768px) {
    .player-modal-content { flex-direction: column; width: 92%; max-width: 100%; margin: 40px auto 20px; height: auto; min-height: 0; aspect-ratio: auto; }
    .player-modal-img-col { position: relative; width: 100%; height: auto; min-width: 100%; }
    .player-modal-img-col::after { background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,1) 100%); }
    .player-modal-img-col img { min-height: 300px; height: 300px; width: 100%; object-position: var(--modal-player-position, 50% 0%); }
    .player-modal-data-col { min-width: 100%; width: 100%; flex: none; padding: 30px 20px; }
    .player-modal-data-col { transform: none; }
    .player-modal-overlay { padding: 15px 10px; }
    .player-modal-close { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 20px; }
    .player-modal-name { font-size: 38px !important; margin-bottom: 30px !important; }
    .player-modal-numero { font-size: 55px !important; margin-bottom: 10px !important; }
    .player-modal-grid { gap: 20px; }
    .player-modal-shop-btn { max-width: 100%; }
}

/* --- PAGINA SPONSOR & PARTNER --- */
.partner-hero { border-bottom: 1px solid rgba(255,255,255,0.15); }

.page-partner .site-main > section.container,
.page-template-template-partner .site-main > section.container,
.page-partner .site-main > .container-hr,
.page-template-template-partner .site-main > .container-hr {
    width: calc(100% - 40px) !important;
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.sponsor-cta { background-color: var(--c-primary); padding: 40px 20px; text-align: center; }
.sponsor-hr { border: 0; border-top: 1px solid rgba(255,255,255,0.25); margin: 0; }
.container-hr { padding: 40px 0; }
.cta-container { max-width: 800px; margin: 0 auto; }
.cta-container h2 { color: #000; font-size: 32px; font-weight: 900; margin-bottom: 20px; text-transform: uppercase; line-height: 1.2; letter-spacing: 1px; }
.cta-container p { color: #000; font-size: 18px; font-weight: 600; margin-bottom: 30px; line-height: 1.4; }
.cta-btn { display: inline-block; background-color: #000; color: #fff !important; padding: 15px 60px; font-size: 16px; font-weight: 800; letter-spacing: 2px; text-decoration: none; transition: background 0.3s, color 0.3s; }
.cta-btn:hover { background-color: #222; color: var(--c-primary) !important; }
button.cta-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
}

.network-form-status {
    margin: 18px auto 0 !important;
    max-width: 520px;
    padding: 10px 14px;
    color: #000 !important;
    border: 2px solid #000;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
}

.network-form-status-success {
    background: rgba(255,255,255,0.28);
}

.network-form-status-error {
    background: rgba(255,255,255,0.55);
}

.sponsor-section-title { color: white; font-size: 42px; font-weight: 700; margin-bottom: 50px; text-transform: uppercase; letter-spacing: 0; }

.sponsor-grid { display: grid; gap: 40px; align-items: stretch; justify-items: stretch; }
.main-sponsor-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 60px; }
.partner-grid { grid-template-columns: repeat(3, 1fr); gap: 60px; }

.sponsor-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 6px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.sponsor-marquee-track {
    display: flex;
    width: max-content;
    animation: sponsor-marquee-scroll 28s linear infinite;
    will-change: transform;
}

.sponsor-marquee-network .sponsor-marquee-track {
    animation-duration: 34s;
    animation-direction: reverse;
}

.sponsor-marquee:hover .sponsor-marquee-track {
    animation-play-state: paused;
}

.sponsor-marquee-group {
    display: flex;
    align-items: center;
    gap: 54px;
    padding-right: 54px;
}

.sponsor-marquee-main .sponsor-marquee-group {
    gap: 70px;
    padding-right: 70px;
}

.sponsor-item { width: 100%; display: flex; justify-content: center; align-items: center; min-height: 180px; transition: transform 0.3s; }
.sponsor-item a { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sponsor-item:hover { transform: scale(1.05); }
.sponsor-item img { width: 100%; height: 120px; max-width: 260px; object-fit: contain; filter: none; opacity: 1; transition: transform 0.3s; }
.main-sponsor-grid .sponsor-item img { height: 145px; max-width: 320px; }
.sponsor-marquee .sponsor-item {
    flex: 0 0 260px;
    min-height: 150px;
}

.sponsor-marquee-main .sponsor-item {
    flex-basis: 320px;
    min-height: 170px;
}

.sponsor-marquee-main .sponsor-item img {
    height: 145px;
    max-width: 320px;
}

.sponsor-placeholder { background: #222; color: #888; padding: 20px; text-align: center; border-radius: 4px; width: 100%; }
.sponsor-empty-message {
    color: #666;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.network-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.network-modal.is-open {
    display: flex;
}

.network-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(5px);
}

.network-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    max-height: min(90vh, 780px);
    overflow-y: auto;
    padding: 32px;
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.network-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.72);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.network-modal-close:hover {
    color: #fff;
}

.network-modal-head {
    padding-right: 42px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.network-modal-head h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.08;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.network-modal-head p {
    color: rgba(255,255,255,0.62);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
}

.network-form {
    display: grid;
    gap: 16px;
}

.network-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.network-form label {
    display: grid;
    gap: 7px;
}

.network-form span {
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.network-form input,
.network-form select,
.network-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.34);
    color: #fff;
    font: inherit;
    font-size: 15px;
}

.network-form textarea {
    min-height: 118px;
    resize: vertical;
}

.network-form input:focus,
.network-form select:focus,
.network-form textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.72);
}

.network-form-submit {
    justify-self: end;
    min-height: 49px;
    padding: 15px 60px;
    border: 1px solid var(--c-primary);
    background: var(--c-primary);
    color: #000;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.network-form-submit:hover {
    background: #fff;
    border-color: #fff;
}

.network-hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.network-modal-open {
    overflow: hidden;
}

@keyframes sponsor-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .main-sponsor-grid { grid-template-columns: 1fr; gap: 50px; }
    .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .sponsor-marquee-group {
        gap: 32px;
        padding-right: 32px;
    }
    .sponsor-marquee .sponsor-item {
        flex-basis: 190px;
        min-height: 120px;
    }
    .sponsor-marquee-main .sponsor-item {
        flex-basis: 230px;
        min-height: 140px;
    }
    .sponsor-marquee .sponsor-item img,
    .sponsor-marquee-main .sponsor-item img {
        height: 95px;
        max-width: 220px;
    }
    .network-modal {
        padding: 14px;
    }
    .network-modal-dialog {
        padding: 26px 18px 20px;
    }
    .network-modal-head {
        padding-right: 34px;
    }
    .network-modal-head h2 {
        font-size: 23px;
    }
    .network-form-grid {
        grid-template-columns: 1fr;
    }
    .network-form-submit {
        width: 100%;
        justify-self: stretch;
    }
    .cta-container h2 { font-size: 24px; }
    .cta-container p { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .sponsor-marquee-track {
        animation: none;
    }
}

/* --- FOOTER GLOBALE (MEGA) --- */
.site-footer { background-color: #000; border-top: none; margin-top: 0 !important; clear: both !important; display: block !important; width: 100% !important; }
.footer-mega { display: flex !important; justify-content: space-between !important; align-items: flex-start !important; padding: 35px 20px 25px 20px !important; max-width: 1400px !important; margin: 0 auto !important; }
.site-main > section:last-of-type { padding-bottom: 0 !important; margin-bottom: 0 !important; }
#sb_instagram { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.fm-col { text-align: left; }
.fm-col p { color: #ffffff; font-size: 17px; font-weight: 700; line-height: 1.4; margin: 0; display: block; }
.fm-col a { color: #ffffff; font-size: 17px; font-weight: 700; line-height: 1.4; text-decoration: none; margin-bottom: 18px; display: block; transition: color 0.3s; }
.fm-col a.footer-link-shop { color: var(--c-primary); }
.fm-col a:hover { color: var(--c-primary); }
.fm-col h4 { color: white; font-size: 17px; font-weight: 700; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }

.fm-col-1 { text-align: left; }
.fm-col-1 h4 { margin-bottom: 5px; font-size: 12px; }
.fm-col-1 p { margin-bottom: 12px; line-height: 1.5; font-size: 12px; font-weight: 700; }
.fm-col-1 a { color: var(--c-primary); font-size: 12px; font-weight: 700; text-decoration: none; transition: color 0.3s; margin-bottom: 0; display: block; }
.fm-col-1 a:hover { color: #ffffff; }

.fm-social { display: flex; gap: 10px; justify-content: flex-start; }
.fm-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--c-light-yellow); background-color: var(--c-light-yellow); color: #000; font-size: 18px; transition: all 0.3s; margin-bottom: 0; }
.fm-social a:hover { background-color: transparent; color: var(--c-light-yellow); border-color: var(--c-light-yellow); transform: scale(1.1); }

.fm-col-links a { margin-bottom: 18px; font-size: 17px; font-weight: 700; }

.footer-bottom-bar { background-color: var(--c-light-yellow); text-align: center; padding: 15px 20px; max-width: 1400px; margin: 0 auto; }
.footer-bottom-bar p { margin: 0; color: #000; font-size: 12px; font-weight: 700; }
.footer-bottom-bar a { color: #000; text-decoration: none; }
.footer-bottom-bar a:hover { text-decoration: underline; }

@media (max-width: 992px) {
    .footer-mega { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 30px !important; }
}
@media (max-width: 768px) {
    .footer-mega { display: grid !important; grid-template-columns: 1fr !important; gap: 40px !important; text-align: center !important; }
    .fm-col, .fm-col-1 { text-align: center !important; }
    .fm-social { justify-content: center !important; }
    .footer-mega > .fm-col:not(.fm-col-1) { display: none !important; }
}

/* --- PLAYER CARD BORDER --- */
.open-player-modal {
    border: 2px solid #ffffff !important;
}
@media (min-width: 769px) {
    .open-player-modal {
        width: 100%;
    }
}
.open-player-modal:hover {
    border-color: #ffffff !important;
}
.ps-grid.ps-team {
    margin-left: 0 !important;
    padding-left: 0 !important;
    gap: 20px;
}
@media (min-width: 769px) {
    .page-giocatori .team-section,
    .page-staff .team-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 16px !important;
        box-sizing: border-box;
    }
}

/* --- CLUB PAGE TYPOGRAPHY (Storia, Progetto) --- */
.club-content {
    color: white;
}

.page-storia .club-content,
.page-club .club-content {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
}

.club-content h2, .club-content h1 {
    color: var(--c-primary);
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 60px;
    margin-bottom: 18px;
    line-height: 1.1;
}
.club-content h2:first-child, .club-content h1:first-child {
    margin-top: 0;
}
.club-content h3 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px;
    line-height: 1.35;
}
.club-content p, .club-content ul {
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 24px;
}
.club-content ul {
    padding-left: 20px;
}
.club-content li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .club-content h2, .club-content h1 {
        font-size: 30px;
        line-height: 1.15;
        margin-top: 44px;
    }

    .club-content h3 {
        font-size: 19px;
        line-height: 1.35;
    }

    .club-content p, .club-content ul {
        font-size: 16px;
        line-height: 1.65;
    }
}

/* --- WORDPRESS GALLERY IN CLUB PAGE --- */
.club-content .wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 15px !important;
    margin-top: 30px !important;
}
.club-content .wp-block-gallery .wp-block-image {
    width: 100% !important;
    margin: 0 !important;
}
.club-content .wp-block-gallery .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1; /* Forza le foto in quadrati per la base */
}

/* Magica griglia masonry che si ripete ogni 6 foto */
.club-content .wp-block-gallery .wp-block-image:nth-child(6n + 1) { grid-column: span 3; }
.club-content .wp-block-gallery .wp-block-image:nth-child(6n + 2) { grid-column: span 6; }
.club-content .wp-block-gallery .wp-block-image:nth-child(6n + 3) { grid-column: span 3; }

.club-content .wp-block-gallery .wp-block-image:nth-child(6n + 4) { grid-column: span 4; }
.club-content .wp-block-gallery .wp-block-image:nth-child(6n + 5) { grid-column: span 4; }
.club-content .wp-block-gallery .wp-block-image:nth-child(6n + 6) { grid-column: span 4; }

@media (max-width: 768px) {
    .club-content .wp-block-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .club-content .wp-block-gallery .wp-block-image {
        grid-column: span 1 !important;
    }
}


/* --- HERO UNIFICATO PAGINE CLUB (Organigramma / Storia / Progetto) --- */
.club-hero-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 55vh;       /* Altezza uniforme su tutte e tre le pagine */
    overflow: hidden;
    background: #000;
}

.club-hero-fade {
    position: absolute;
    inset: auto 0 0;
    height: 82%;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.08) 38%,
        rgba(0, 0, 0, 0.62) 76%,
        #000 100%
    );
}

.page-organigramma .club-hero-fade,
.page-storia .club-hero-fade,
.page-club .club-hero-fade,
.page-organigramma .club-hero-fade,
.page-storia .club-hero-fade,
.page-club .club-hero-fade,
.page-organigramma .club-hero-fade,
.page-storia .club-hero-fade,
.page-club .club-hero-fade,
.page-organigramma .club-hero-fade,
.page-storia .club-hero-fade,
.page-club .club-hero-fade,
.page-id-18 .club-hero-fade,
.page-giocatori .club-hero-fade,
.page-staff .club-hero-fade,
.page-la-societa .club-hero-fade,
.page-news .club-hero-fade,
.page-stagione .club-hero-fade,
.page-partner .club-hero-fade,
.page-template-template-partner .club-hero-fade,
.page-contatti .club-hero-fade {
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.12) 22%,
        rgba(0, 0, 0, 0.72) 58%,
        #000 82%,
        #000 100%
    );
}


.page-organigramma .news-hero,
.page-storia .news-hero,
.page-club .news-hero,
.page-id-18 .news-hero,
.page-giocatori .news-hero,
.page-staff .news-hero,
.page-la-societa .news-hero,
.page-news .news-hero,
.page-stagione .news-hero,
.page-partner .news-hero,
.page-template-template-partner .news-hero,
.page-contatti .news-hero {
    border-bottom: 0 !important;
    background: #000 !important;
}

.page-organigramma .club-hero-wrapper,
.page-storia .club-hero-wrapper,
.page-club .club-hero-wrapper,
.page-sezioni .club-hero-wrapper,
.page-id-18 .news-hero-wrapper,
.page-giocatori .news-hero-wrapper,
.page-staff .news-hero-wrapper,
.page-la-societa .news-hero-wrapper,
.page-news .news-hero-wrapper,
.page-stagione .news-hero-wrapper,
.page-partner .news-hero-wrapper,
.page-template-template-partner .news-hero-wrapper,
.page-contatti .news-hero-wrapper,
.page-contatti .contatti-hero > div {
    border: 0 !important;
    box-shadow: none !important;
}

.news-hero-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.club-hero-title {
    font-size: 55px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 2px;
    color: white;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .club-hero-wrapper { height: 50vh; }
    .club-hero-title   { font-size: 32px; letter-spacing: 1px; }
    .news-hero-content.container { bottom: 20px !important; }
}
@media (max-width: 480px) {
    .club-hero-wrapper { height: 45vh; }
    .club-hero-title   { font-size: 24px; }
}

/* --- ORGANIGRAMMA DIRIGENTI --- */
.page-organigramma .news-hero, .page-club .news-hero {
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.dirigenti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px 30px;
}

.page-comitato .dirigenti-grid {
    grid-template-columns: 1fr;
    gap: 40px;
}

.page-comitato .dirigente-card {
    width: 100%;
}

.organigramma-area-title {
    color: var(--c-white);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    border-bottom: 2px solid white;
    padding-bottom: 10px;
}
.dirigente-card {
    display: flex;
    align-items: flex-start;
}
.dirigente-photo {
    width: 240px;
    flex-shrink: 0;
    position: relative;
    background-color: #111;
    background-size: cover;
    background-position: center center;
    margin-right: 30px;
    border: 2px solid #ffffff;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.dirigente-card:hover .dirigente-photo {
    transform: scale(1.05);
    border-color: var(--c-primary);
}
.dirigente-photo::before {
    content: "";
    display: block;
    padding-top: 125%; /* Rapporto 4:5, rende l'immagine alta e maestosa */
}
.dirigente-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 10px;
    padding-left: 20px;
    border-left: 3px solid var(--c-primary);
    min-height: 300px;
}
.dirigente-role {
    color: var(--c-primary);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.dirigente-name {
    color: white;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 20px !important;
}
.dirigente-name span {
    color: #F9EA86 !important;
    display: block;
    margin-top: -3px;
}
.dirigente-desc p {
    font-size: 16px !important;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .organigramma-area-title {
        font-size: 30px;
        line-height: 1.15;
    }
    .dirigenti-grid { grid-template-columns: 1fr; gap: 40px; }
    .dirigente-photo { width: 150px; margin-right: 20px; }
    .dirigente-name { font-size: 24px; }
    .dirigente-info { min-height: 188px; }
}

/* ============================
   PAGINA CONTATTI
   ============================ */

.contatti-main {
    padding: 0;
}

.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

/* Info di contatto (colonna sinistra) */
.contatti-info-block {
    margin-bottom: 30px;
}

.contatti-label {
    color: var(--c-primary);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--c-primary);
    display: inline-block;
    padding-bottom: 4px;
}

.contatti-info-block p,
.contatti-info-block a {
    color: var(--c-white);
    font-size: 17px;
    line-height: 1.7;
    margin-top: 6px;
}

.contatti-info-block a:hover {
    color: var(--c-primary);
    transition: color 0.3s;
}

.contatti-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.contatti-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--c-white);
    border-radius: 50%;
    color: var(--c-white);
    font-size: 18px;
    transition: all 0.3s;
}

.contatti-social a:hover {
    background-color: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-black);
}

/* Form di contatto (colonna destra) */
.contatti-form-title {
    color: var(--c-primary);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.contatti-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contatti-form .form-group {
    display: flex;
    flex-direction: column;
}

.contatti-form .form-group-full {
    margin-bottom: 25px;
}

.contatti-form label {
    color: var(--c-white);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.contatti-form input,
.contatti-form textarea {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--c-white);
    font-family: var(--font-main);
    font-size: 17px;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.3s;
}

.contatti-form input:focus,
.contatti-form textarea:focus {
    border-color: var(--c-primary);
}

.contatti-form input::placeholder,
.contatti-form textarea::placeholder {
    color: rgba(255,255,255,0.4);
    font-family: var(--font-main);
}

.contatti-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contatti-submit {
    display: block;
    margin-left: auto;
    background-color: var(--c-primary);
    color: var(--c-black);
    border: 2px solid var(--c-primary);
    padding: 8px 50px;
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.contatti-submit:hover {
    background-color: transparent;
    color: var(--c-primary);
}

.contatti-success {
    margin-top: 20px;
    padding: 15px 20px;
    background-color: rgba(242, 227, 2, 0.15);
    border: 1px solid var(--c-primary);
}

.contatti-success p {
    color: var(--c-primary);
    font-size: 14px;
    font-weight: 700;
}

/* Instagram Feed */
.contatti-instagram {
    padding: 60px 0 80px;
}

.instagram-header {
    margin-bottom: 30px;
}

.instagram-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--c-white);
    border-radius: 10px;
    padding: 15px 25px;
    flex-wrap: wrap;
}

.instagram-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--c-primary);
}

.instagram-info {
    flex: 0 0 auto;
}

.instagram-name {
    color: var(--c-black);
    font-size: 16px;
    font-weight: 900;
    margin: 0;
}

.instagram-handle {
    color: #666;
    font-size: 12px;
    margin: 2px 0 0;
}

.instagram-stats {
    display: flex;
    gap: 25px;
    margin-left: auto;
}

.instagram-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    color: var(--c-black);
    font-size: 16px;
    font-weight: 900;
}

.stat-label {
    color: #666;
    font-size: 11px;
}

.instagram-follow-btn {
    background-color: #0095f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 24px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-left: 15px;
}

.instagram-follow-btn:hover {
    background-color: #007acc;
    color: white;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.instagram-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* Responsive Contatti */
@media (max-width: 900px) {
    .contatti-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .instagram-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .instagram-stats {
        margin-left: 0;
    }
    
    .instagram-follow-btn {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .contatti-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================================================
   HOME SOCIETÀ — Pixel Perfect Rewrite
   ================================================================ */

/* ---------- CONTAINER SOCIETÀ ---------- */
.hs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- HEADER SOCIETÀ ---------- */
.hs-header {
    background-color: var(--c-black);
    padding: 20px 0 0;
    position: relative;
    z-index: 1000;
}

.hs-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 15px;
}

.hs-header-left {
    flex: 1;
}

.hs-header-logo {
    text-align: center;
}

.hs-header-logo img {
    max-height: 150px;
    width: auto;
}

.hs-header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.hs-header-right a {
    color: var(--c-white);
    font-size: 16px;
    transition: color 0.3s;
}

.hs-header-right a:hover {
    color: var(--c-primary);
}

/* Menu Società */
.hs-nav {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 14px 0;
}

.hs-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.hs-menu li a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--c-white);
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: color 0.3s;
    padding: 4px 0;
    display: inline-block;
}

.hs-menu li a:hover {
    color: var(--c-primary);
}

.hs-menu li a.hs-active {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}
.hs-menu li {
    position: relative;
}

.hs-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--c-gray);
    min-width: 200px;
    z-index: 99;
    padding: 10px 0;
    list-style: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.hs-menu li:hover > .sub-menu,
.hs-menu li:focus-within > .sub-menu {
    display: block;
}

.hs-menu .sub-menu li {
    display: block;
    width: 100%;
}

.hs-menu .sub-menu li a {
    display: block;
    padding: 8px 20px;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--c-white);
    transition: background-color 0.3s, color 0.3s;
}

.hs-menu .sub-menu li a:hover {
    background-color: var(--c-primary);
    color: var(--c-black);
    text-decoration: none;
}
/* "PRIMA SQUADRA" bianco a destra */
.hs-menu-switch a {
    color: var(--c-white) !important;
}

/* Hamburger (nascosto su desktop) */
.hs-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: 0 auto;
    flex-direction: column;
    gap: 5px;
}

.hs-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--c-white);
    transition: all 0.3s;
}

/* ---------- HERO ---------- */
.hs-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.hs-hero-bg {
    position: absolute;
    inset: 0;
}

.hs-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.5) 60%,
        rgba(0,0,0,0.85) 100%
    );
}

.hs-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.hs-hero-content h1 {
    font-size: 55px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
    color: var(--c-white);
    margin-bottom: 30px;
}

.hs-hero-btn {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid var(--c-primary);
    color: var(--c-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s;
    background: transparent;
}

.hs-hero-btn:hover {
    background-color: var(--c-primary);
    color: var(--c-black);
}

/* ---------- CATEGORIE ---------- */
.hs-categorie {
    background-color: var(--c-black);
    padding: 50px 0 0;
}

.hs-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hs-cat-item {
    text-decoration: none;
    text-align: center;
    display: block;
    transition: transform 0.3s;
}

.hs-cat-item:hover {
    transform: translateY(-4px);
}

.hs-cat-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 15px;
}

.hs-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.hs-cat-item:hover .hs-cat-img img {
    transform: scale(1.05);
}

.hs-cat-label {
    color: var(--c-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--c-primary);
    display: inline-block;
}

.hs-cat-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255,255,255,0.1);
    margin-top: 45px;
}

/* ---------- SEZIONI GENERICHE ---------- */
.hs-section {
    background-color: var(--c-black);
    padding: 60px 0 20px;
}

.hs-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.hs-section-header h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--c-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hs-scopri {
    color: var(--c-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.hs-scopri:hover {
    color: var(--c-white);
}

/* ---------- CARDS NEWS / EVENTI ---------- */
.hs-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hs-card {
    background-color: var(--c-gray);
    overflow: hidden;
    position: relative;
}

.hs-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.hs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.hs-card:hover .hs-card-img img {
    transform: scale(1.05);
}

.hs-card-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(0,0,0,0.7);
    color: var(--c-white);
    font-size: 14px;
    font-weight: 700;
    padding: 5px 12px;
    z-index: 2;
}

.hs-card-body {
    padding: 18px 15px 20px;
}

.hs-card-text {
    color: var(--c-white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* Bottone giallo pieno "LEGGI ARTICOLO" */
.hs-btn-yellow {
    display: inline-block;
    background-color: var(--c-primary);
    color: var(--c-black);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.hs-btn-yellow:hover {
    background-color: var(--c-white);
}

/* Card Evento — tinta gialla sull'immagine */
.hs-card-evento .hs-card-img {
    aspect-ratio: 4/3;
}

.hs-evento-tint {
    position: absolute;
    inset: 0;
    background: rgba(242, 227, 2, 0.2);
    pointer-events: none;
}

.hs-date-evento {
    border-left: 3px solid var(--c-primary);
}

/* Link "SCOPRI" negli eventi */
.hs-link-scopri {
    color: var(--c-white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.hs-link-scopri:hover {
    color: var(--c-primary);
}

/* ---------- DOTS NAVIGAZIONE ---------- */
.hs-dots-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    padding-bottom: 10px;
}

.hs-arrow {
    background: none;
    border: none;
    color: var(--c-primary);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
    line-height: 1;
}

.hs-arrow:hover {
    color: var(--c-white);
}

.hs-dots {
    display: flex;
    gap: 8px;
}

.hs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--c-primary);
    background: transparent;
    display: inline-block;
    cursor: pointer;
    transition: background 0.3s;
}

.hs-dot.active {
    background-color: var(--c-primary);
}

/* ---------- SPONSOR ---------- */
.hs-sponsor-section {
    padding-bottom: 50px;
}

.hs-sponsor-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--c-white);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hs-sponsor-line {
    width: 100%;
    height: 1px;
    background-color: rgba(255,255,255,0.1);
    margin-bottom: 35px;
}

.hs-sponsor-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}

.hs-sponsor-logo {
    display: flex;
    align-items: center;
}

.hs-sponsor-logo img {
    max-height: 45px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.hs-sponsor-logo:hover img {
    opacity: 1;
}

.hs-sponsor-placeholder {
    color: var(--c-white);
    font-size: 18px;
    font-weight: 700;
    opacity: 0.7;
}
/* Row degli sponsor della Società */
.hs-sponsor-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
    justify-items: center;
}
.hs-sponsor-row a {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 150px;
    box-sizing: border-box;
}
.hs-sponsor-row a:hover {
    opacity: 1;
    transform: translateY(-4px);
}
.hs-sponsor-row img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}
@media (max-width: 768px) {
    .hs-sponsor-row { grid-template-columns: repeat(2, 1fr); gap: 25px; }
}

/* ---------- INSTAGRAM ---------- */
.hs-instagram {
    background-color: var(--c-black);
}

.hs-instagram-strip {
    background: #000;
    margin-top: 40px;
    padding: 22px 0 0;
}

.hs-instagram-strip .container {
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    padding-top: 28px;
    padding-bottom: 28px;
}

.hs-insta-bar {
    background-color: #1a1a1a;
    padding: 20px 0;
}

.hs-insta-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hs-insta-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hs-insta-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--c-primary);
}

.hs-insta-name {
    color: var(--c-white);
    font-size: 14px;
    font-weight: 700;
}

.hs-insta-handle {
    color: #999;
    font-size: 11px;
    margin-top: 2px;
}

.hs-insta-stats {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.hs-insta-stat {
    text-align: center;
}

.hs-insta-stat strong {
    display: block;
    color: var(--c-white);
    font-size: 14px;
}

.hs-insta-stat span {
    color: #999;
    font-size: 10px;
    text-transform: lowercase;
}

.hs-insta-actions {
    margin-left: 20px;
}

.hs-insta-socials {
    display: flex;
    gap: 12px;
}

.hs-insta-socials a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-white);
    font-size: 13px;
    transition: all 0.3s;
}

.hs-insta-socials a:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

/* Griglia Instagram 4x2 */
.hs-insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.hs-insta-item {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.hs-insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
}

.hs-insta-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* ---------- FOOTER SOCIETÀ ---------- */
.societa-site .site-header {
    background-color: var(--c-black);
    border-bottom: none;
}

.site-branding .custom-logo,
.site-branding .site-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.site-branding a:hover img {
    transform: scale(1.05);
}

.hs-footer {
    background-color: var(--c-black);
}

.hs-footer-main {
    border-top: 0;
    padding: 32px 0 48px;
}

.hs-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
}

.hs-footer-logo img {
    max-height: 60px;
    width: auto;
}

.hs-footer-info {
    text-align: center;
}

.hs-footer-info p {
    color: var(--c-white);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.hs-footer-info a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.hs-footer-info a:hover {
    color: var(--c-primary);
}

.hs-footer-social {
    display: flex;
    gap: 20px;
}

.hs-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-light-yellow);
    color: var(--c-black);
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

.hs-footer-social a:hover {
    background: var(--c-primary);
    color: var(--c-black);
    transform: translateY(-2px);
}

/* Fascia gialla copyright */
.hs-footer-bar {
    background-color: var(--c-light-yellow);
    text-align: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.hs-footer-bar p {
    color: var(--c-black);
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.hs-footer-bar a {
    color: var(--c-black);
    text-decoration: underline;
}

/* ===========================================
   RESPONSIVE — TABLET
   =========================================== */
@media (max-width: 900px) {
    .hs-hero-content h1 {
        font-size: 28px;
    }

    .hs-cat-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hs-cards-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hs-insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hs-insta-bar-inner {
        flex-direction: column;
        text-align: center;
    }

    .hs-insta-stats {
        margin-left: 0;
    }

    .hs-insta-actions {
        margin-left: 0;
    }

    .hs-sponsor-row {
        justify-content: center;
        gap: 30px;
    }

    .hs-footer-inner {
        flex-direction: column;
        gap: 25px;
    }
}

/* ===========================================
   RESPONSIVE — MOBILE
   =========================================== */
@media (max-width: 600px) {
    .hs-hero {
        height: 65vh;
        min-height: 400px;
    }

    .hs-hero-content h1 {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .hs-hero-btn {
        padding: 12px 28px;
        font-size: 11px;
    }

    .hs-header-logo img {
        max-height: 70px;
    }

    /* Hamburger visibile su mobile */
    .hs-hamburger {
        display: flex;
    }

    .hs-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background-color: var(--c-black);
        padding: 0;
    }

    .hs-menu.is-open {
        display: flex;
    }

    .hs-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .hs-menu li a {
        display: block;
        padding: 12px 20px;
        font-size: 12px;
    }

    .hs-hamburger.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hs-hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hs-hamburger.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hs-section-header h2 {
        font-size: 22px;
    }

    .hs-insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Menu "Prima Squadra" giallo a destra (legacy compatibility) */
.menu-societa-switch a {
    color: var(--c-primary) !important;
    font-weight: 700 !important;
}

/* ============================
   PAGINA SCUOLA CALCIO
   ============================ */

.page-scuola-calcio .news-hero-content {
    /* Il titolo deve allinearsi col container */
}

.sc-divider {
    opacity: 0.5;
}

.sc-section {
    position: relative;
}

.formatori-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.formatori-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.formatore-group {
    margin-bottom: 0;
}

.formatore-title {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.formatore-names {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: white;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .formatori-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================
   SINGLE POST PAGE REDESIGN
   ============================ */
.page-single {
    background-color: var(--c-black);
    padding: 52px 0 100px;
}

.single-article-header {
    margin-bottom: 54px;
}

.single-article-header .header-split {
    display: block;
}

.article-kicker-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    border-top: 2px solid var(--c-white);
    padding-top: 18px;
}

.article-meta-info,
.single-article-header .article-meta-info {
    display: contents;
}

.article-kicker-row .category-badge,
.article-meta-info .category-badge {
    background-color: var(--c-primary);
    color: var(--c-black);
    font-size: 15px;
    font-weight: 800;
    padding: 8px 16px 6px;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 0;
    display: inline-block;
}

.article-kicker-row .article-date,
.article-meta-info .article-date {
    font-size: 17px;
    color: var(--c-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 0;
}

.single-article-header .article-title,
.article-meta-info .article-title {
    max-width: 1180px;
    font-size: clamp(44px, 5.2vw, 82px);
    font-weight: 900;
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 0 0 22px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    margin-bottom: 34px;
    padding-top: 0;
    border-top: 0;
    font-size: 16px;
    line-height: 1;
}

.article-author .author-label {
    color: var(--c-white);
    text-transform: uppercase;
    font-weight: 800;
}

.article-author .author-name {
    color: var(--c-primary);
    font-weight: 700;
    text-transform: uppercase;
}

.article-author .author-separator {
    width: 38px;
    height: 2px;
    background: var(--c-primary);
    display: inline-block;
}

.article-featured-image-wrapper {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.featured-image-card {
    border: 2px solid #ffffff;
    box-shadow: none;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background-color: #111;
    display: flex;
}

.featured-image-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.08) 42%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.featured-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

/* Article Body */
.article-body-wrapper {
    max-width: 980px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.24);
    padding-top: 46px;
}

.article-body-wrapper .entry-content {
    max-width: 980px;
    margin: 0 auto;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.72;
    color: rgba(255,255,255,0.88);
}

.article-body-wrapper .entry-content p {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.72;
    margin-bottom: 26px;
}

.article-body-wrapper .entry-content p:first-of-type::first-letter {
    font-size: inherit;
    font-weight: inherit;
    float: none;
    line-height: inherit;
    margin: 0;
    color: inherit;
    text-transform: none;
}

.article-body-wrapper .entry-content p:first-of-type {
    color: rgba(255,255,255,0.88);
    font-size: 21px;
    line-height: 1.72;
    font-weight: 400;
    margin-bottom: 26px;
}

.article-body-wrapper .entry-content h2,
.article-body-wrapper .entry-content h3 {
    color: var(--c-white) !important;
    text-transform: uppercase;
    font-weight: 800;
    margin: 54px 0 18px;
    border-left: 0;
    padding-left: 0;
    line-height: 1.14;
    letter-spacing: 0;
}

.article-body-wrapper .entry-content h2 {
    font-size: 34px;
    border-bottom: 3px solid var(--c-primary);
    padding-bottom: 10px;
}
.article-body-wrapper .entry-content h3 { font-size: 25px; color: var(--c-primary) !important; }

.article-body-wrapper .entry-content blockquote {
    background-color: var(--c-gray);
    border-left: 4px solid var(--c-primary);
    padding: 25px 30px;
    margin: 40px 0;
    font-style: italic;
    font-size: 19px;
    color: #fff;
    line-height: 1.6;
}

.article-body-wrapper .entry-content blockquote p {
    margin-bottom: 0;
}

.article-body-wrapper .entry-content ul,
.article-body-wrapper .entry-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
    font-size: 22px;
}

.article-body-wrapper .entry-content li {
    margin-bottom: 10px;
    font-size: 22px;
}

/* Social Share Box */
.social-share-box {
    max-width: 760px;
    margin: 56px auto 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255,255,255,0.28);
    border-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.social-share-box .share-title {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
    color: rgba(255,255,255,0.72) !important;
}

.social-share-box .share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-share-box .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--c-white);
    font-size: 0;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0;
    transition: all 0.3s ease;
}

.social-share-box .share-btn i {
    font-size: 17px;
}

.social-share-box .share-btn:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-black);
    transform: translateY(-2px);
}

.social-share-box .facebook-btn:hover {
    background-color: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-black);
}

.social-share-box .whatsapp-btn:hover {
    background-color: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-black);
}

.social-share-box .x-btn:hover {
    background-color: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-black);
}

.social-share-box .instagram-btn:hover {
    background: var(--c-primary) !important;
    border-color: var(--c-primary);
    color: var(--c-black) !important;
}

/* Related News */
.related-news-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.related-news-section .section-title {
    margin-bottom: 40px;
    text-align: left;
}

/* Media Query Responsive */
@media (max-width: 991px) {
    .single-article-header .header-split {
        display: block;
    }
    
    .single-article-header .article-title,
    .article-meta-info .article-title {
        font-size: clamp(40px, 10vw, 64px);
        line-height: 1.02;
    }
    
    .featured-image-card {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 600px) {
    .page-single {
        padding-top: 34px;
    }

    .article-kicker-row {
        gap: 10px;
        margin-bottom: 14px;
        padding-top: 14px;
    }

    .article-kicker-row .category-badge,
    .article-meta-info .category-badge,
    .article-kicker-row .article-date,
    .article-meta-info .article-date {
        font-size: 12px;
    }

    .single-article-header .article-title,
    .article-meta-info .article-title {
        font-size: 40px;
        line-height: 1;
    }
    
    .article-author {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .featured-image-card {
        aspect-ratio: 4 / 3;
    }

    .article-body-wrapper {
        padding-top: 30px;
    }

    .article-body-wrapper .entry-content,
    .article-body-wrapper .entry-content p {
        font-size: 18px;
        line-height: 1.62;
    }

    .article-body-wrapper .entry-content p:first-of-type {
        font-size: 21px;
        line-height: 1.48;
    }

    .article-body-wrapper .entry-content h2 {
        font-size: 28px;
    }

    .article-body-wrapper .entry-content h3 {
        font-size: 23px;
    }

    .social-share-box {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}

/* Allineamento larghezza e sporgenza immagine hero per Rosa, Staff, Prima Squadra e Pagine Società */
@media (min-width: 769px) {
    .page-giocatori .news-hero-wrapper,
    .page-staff .news-hero-wrapper,
    .page-la-societa .news-hero-wrapper,
    .page-comitato .news-hero-wrapper,
    .page-club100 .news-hero-wrapper,
    .page-allenatori .news-hero-wrapper,
    .page-area-segreteria .news-hero-wrapper,
    .page-sezioni .news-hero-wrapper,
    .page-scuola-calcio .news-hero-wrapper,
    .page-infrastruttura .news-hero-wrapper,
    .page-news-societa .news-hero-wrapper,
    .page-iscritti .news-hero-wrapper,
    .page-contatti .news-hero-wrapper,
    .page-contatti .contatti-hero > div,
    .page-stagione .news-hero-wrapper,
    .page-partner .news-hero-wrapper,
    .page-template-template-partner .news-hero-wrapper,
    .page-organigramma .club-hero-wrapper,
    .page-storia .club-hero-wrapper,
    .page-club .club-hero-wrapper,
    .page-id-18 .news-hero-wrapper,
    .page-prima-squadra .news-hero .container {
        position: relative !important;
        margin-left: -60px !important;
        margin-right: auto !important;
        width: calc(100% + 120px) !important;
        max-width: calc(100% + 120px) !important;
        box-sizing: border-box !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        left: 0 !important;
    }
    
    .page-giocatori .news-hero-wrapper,
    .page-staff .news-hero-wrapper,
    .page-la-societa .news-hero-wrapper,
    .page-comitato .news-hero-wrapper,
    .page-club100 .news-hero-wrapper,
    .page-allenatori .news-hero-wrapper,
    .page-area-segreteria .news-hero-wrapper,
    .page-sezioni .news-hero-wrapper,
    .page-scuola-calcio .news-hero-wrapper,
    .page-infrastruttura .news-hero-wrapper,
    .page-news-societa .news-hero-wrapper,
    .page-iscritti .news-hero-wrapper {
        height: 55vh !important;
    }
    
    .page-giocatori .news-hero-content,
    .page-staff .news-hero-content,
    .page-la-societa .news-hero-content,
    .page-comitato .news-hero-content,
    .page-club100 .news-hero-content,
    .page-allenatori .news-hero-content,
    .page-area-segreteria .news-hero-content,
    .page-sezioni .news-hero-content,
    .page-scuola-calcio .news-hero-content,
    .page-infrastruttura .news-hero-content,
    .page-news-societa .news-hero-content,
    .page-iscritti .news-hero-content,
    .page-contatti .news-hero-content,
    .page-contatti .contatti-hero > div .container,
    .page-stagione .news-hero-content,
    .page-partner .news-hero-content,
    .page-template-template-partner .news-hero-content,
    .page-organigramma .news-hero-content,
    .page-storia .news-hero-content,
    .page-club .news-hero-content,
    .page-id-18 .news-hero-content,
    .page-news .news-hero-content {
        position: absolute !important;
        bottom: 40px !important;
        left: 60px !important;
        right: auto !important;
        width: calc(100% - 120px) !important;
        max-width: 1320px !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
@media (min-width: 1400px) {
    .page-giocatori .news-hero-wrapper,
    .page-staff .news-hero-wrapper,
    .page-la-societa .news-hero-wrapper,
    .page-comitato .news-hero-wrapper,
    .page-club100 .news-hero-wrapper,
    .page-allenatori .news-hero-wrapper,
    .page-area-segreteria .news-hero-wrapper,
    .page-sezioni .news-hero-wrapper,
    .page-scuola-calcio .news-hero-wrapper,
    .page-infrastruttura .news-hero-wrapper,
    .page-news-societa .news-hero-wrapper,
    .page-iscritti .news-hero-wrapper,
    .page-contatti .news-hero-wrapper,
    .page-contatti .contatti-hero > div,
    .page-stagione .news-hero-wrapper,
    .page-partner .news-hero-wrapper,
    .page-template-template-partner .news-hero-wrapper,
    .page-organigramma .club-hero-wrapper,
    .page-storia .club-hero-wrapper,
    .page-club .club-hero-wrapper,
    .page-id-18 .news-hero-wrapper,
    .page-news .news-hero-wrapper,
    .page-prima-squadra .news-hero .container,
    .page-home-societa .hs-hero-wrapper,
    .page-home-societa .hs-sezioni-band {
        margin-left: calc((100% - 1400px) / 2 - 60px) !important;
        width: 1520px !important;
        max-width: 1520px !important;
    }
}

/* Iscrizione AC Taverne */
.page-iscritti {
    background: var(--c-black);
    color: var(--c-white);
    padding: 56px 0 96px;
}

.page-iscritti [hidden] {
    display: none !important;
}

.iscrizione-intro {
    max-width: 1180px;
}

.iscrizione-panel {
    border-top: 2px solid var(--c-white);
    padding-top: 34px;
}

.iscrizione-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 7px 16px 4px;
    background: var(--c-primary);
    color: var(--c-black);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.iscrizione-panel h1 {
    color: var(--c-white);
    font-size: clamp(46px, 6vw, 82px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 0 0 54px;
}

.iscrizione-grid {
    max-width: 920px;
}

.iscrizione-copy h2,
.iscrizione-form-panel h2 {
    color: var(--c-white);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 22px;
}

.iscrizione-copy > p,
.iscrizione-item p {
    color: var(--c-white);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.62;
    margin: 0;
}

.iscrizione-checklist {
    display: grid;
    gap: 26px;
    margin: 38px 0 42px;
}

.iscrizione-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 22px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.22);
}

.iscrizione-number {
    color: var(--c-primary);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.iscrizione-item h3 {
    color: var(--c-primary);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 9px;
}

.iscrizione-item strong {
    color: var(--c-white);
    font-weight: 800;
}

.iscrizione-rule-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 16px;
    padding: 5px 18px 2px;
    background: transparent;
    border: 2px solid var(--c-primary);
    color: var(--c-primary);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.iscrizione-rule-link:hover {
    background: var(--c-primary);
    color: var(--c-black);
}

.iscrizione-classificazione-item {
    border-top-color: rgba(255,230,0,0.38);
}

.iscrizione-classificazione-link {
    margin-right: 12px;
}

.iscrizione-classificazione-preview {
    display: block;
    max-width: 540px;
    margin-top: 18px;
    padding: 0;
    border: 2px solid rgba(255,255,255,0.22);
    background: #fff;
    overflow: hidden;
    cursor: pointer;
}

.iscrizione-classificazione-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.iscrizione-classificazione-dialog {
    width: min(980px, 100%);
    max-height: min(880px, calc(100vh - 48px));
}

.iscrizione-classificazione-modal-body {
    background: #fff;
    border: 2px solid rgba(255,255,255,0.22);
}

.iscrizione-classificazione-modal-body img,
.iscrizione-classificazione-modal-body iframe {
    display: block;
    width: 100%;
    border: 0;
}

.iscrizione-classificazione-modal-body img {
    height: auto;
}

.iscrizione-classificazione-modal-body iframe {
    height: min(720px, 72vh);
}

.iscrizione-acceptance {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    color: var(--c-white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

.iscrizione-acceptance input {
    width: 22px;
    height: 22px;
    accent-color: var(--c-primary);
    flex: 0 0 auto;
}

.iscrizione-cta-group {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.iscrizione-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 5px 24px 0;
    background: var(--c-primary);
    border: 2px solid var(--c-primary);
    color: var(--c-black);
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.iscrizione-cta-secondary {
    background: transparent;
    color: var(--c-primary);
}

.iscrizione-cta.is-disabled {
    opacity: 0.46;
    cursor: not-allowed;
}

.iscrizione-cta:hover {
    background: transparent;
    color: var(--c-primary);
}

.iscrizione-cta.iscrizione-cta-secondary:hover {
    background: var(--c-primary);
    color: var(--c-black);
}

.iscrizione-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.iscrizione-modal.is-open {
    display: flex;
}

.iscrizione-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.78);
}

.iscrizione-modal-dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 56px));
    overflow: auto;
    background: var(--c-black);
    border: 2px solid var(--c-white);
    color: var(--c-white);
    padding: 42px 44px 38px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

.iscrizione-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 2px solid var(--c-white);
    color: var(--c-white);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.iscrizione-modal-header span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 6px 14px 3px;
    background: var(--c-primary);
    color: var(--c-black);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.iscrizione-modal-header h2 {
    color: var(--c-white);
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 56px 28px 0;
}

.iscrizione-modal-body p,
.iscrizione-modal-body li {
    color: rgba(255,255,255,0.84);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.58;
}

.iscrizione-modal-body .regolamento-lead {
    color: var(--c-white);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
}

.iscrizione-modal-body h3 {
    color: var(--c-primary);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    margin: 34px 0 12px;
}

.iscrizione-modal-body strong {
    color: var(--c-white);
    font-weight: 800;
}

.iscrizione-modal-body p {
    margin: 0 0 22px;
}

.iscrizione-modal-body ul {
    margin: 0 0 24px;
    padding-left: 22px;
}

.iscrizione-modal-body li {
    margin-bottom: 10px;
}

.iscrizione-modal-actions {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,0.22);
}

.iscrizione-modal-confirm {
    min-height: 44px;
    padding: 5px 24px 0;
    background: var(--c-primary);
    border: 2px solid var(--c-primary);
    color: var(--c-black);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.iscrizione-modal-confirm:hover {
    background: transparent;
    color: var(--c-primary);
}

.iscrizione-child-notice-modal .iscrizione-modal-dialog {
    width: min(560px, 100%);
}

.iscrizione-child-notice-modal .iscrizione-modal-header h2 {
    font-size: 36px;
}

.iscrizione-child-notice-modal .iscrizione-modal-body p {
    margin-bottom: 0;
}

.iscrizione-form-section {
    max-width: 1180px;
    margin-top: 86px;
}

.iscrizione-form-panel {
    border-top: 2px solid var(--c-white);
    padding-top: 34px;
    max-width: 760px;
}

.iscrizione-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-bottom: 28px;
    padding: 5px 18px 0;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    color: var(--c-white);
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.iscrizione-back-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.iscrizione-form-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 5px 18px 0;
    background: var(--c-primary);
    color: var(--c-black);
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.iscrizione-player-form,
.iscrizione-health-form,
.iscrizione-documents-form,
.iscrizione-guardian-form,
.iscrizione-payment-form {
    display: grid;
    gap: 28px;
    margin-top: 34px;
}

.iscrizione-errors {
    padding: 22px 24px 20px;
    border: 2px solid var(--c-primary);
    background: rgba(255,230,0,0.08);
}

.iscrizione-errors h3 {
    color: var(--c-primary);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.iscrizione-errors ul {
    margin: 0;
    padding-left: 20px;
}

.iscrizione-errors li {
    color: var(--c-white);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
}

.iscrizione-field {
    display: grid;
    gap: 10px;
}

.iscrizione-field.is-invalid label {
    color: var(--c-primary);
}

.iscrizione-field.is-invalid .iscrizione-input-wrap input {
    border-color: var(--c-primary);
}

.iscrizione-choice-field {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    border: 0;
}

.iscrizione-choice-field legend {
    color: var(--c-white);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.18;
    padding: 0;
}

.iscrizione-choice-field.is-invalid legend {
    color: var(--c-primary);
}

.iscrizione-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.iscrizione-choice-group-wide label {
    min-width: 190px;
}

.iscrizione-choice-group label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 104px;
    min-height: 42px;
    padding: 5px 18px 2px;
    border: 2px solid rgba(255,255,255,0.36);
    background: #0f0f0f;
    color: var(--c-white);
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.iscrizione-choice-group label:has(input:checked) {
    border-color: var(--c-primary);
    background: var(--c-primary);
    color: var(--c-black);
}

.iscrizione-choice-group input {
    width: 16px;
    height: 16px;
    accent-color: var(--c-primary);
}

.iscrizione-conditional {
    display: grid;
    gap: 18px;
    margin-top: 4px;
    padding: 24px 26px;
    border: 2px solid rgba(255,255,255,0.24);
    background: #080808;
}

.iscrizione-conditional[hidden] {
    display: none !important;
}

.iscrizione-payment-box {
    width: min(100%, 720px);
    padding: 24px 26px;
    border: 2px solid rgba(255,255,255,0.24);
    background: #080808;
}

.iscrizione-payment-box[hidden] {
    display: none !important;
}

.iscrizione-payment-summary {
    width: min(100%, 720px);
    padding: 24px 26px;
    border: 2px solid var(--c-primary);
    background: #080808;
}

.iscrizione-payment-summary h3 {
    color: var(--c-primary);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.iscrizione-payment-summary-lines {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.iscrizione-payment-summary-lines span {
    color: rgba(255,255,255,0.82);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.iscrizione-payment-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.22);
}

.iscrizione-payment-summary-total span,
.iscrizione-payment-summary-total strong {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.iscrizione-payment-summary-total strong {
    color: var(--c-primary);
}

.iscrizione-payment-box h3 {
    color: var(--c-primary);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.iscrizione-payment-box p {
    color: rgba(255,255,255,0.82);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
}

.iscrizione-submit-status {
    width: min(100%, 720px);
    padding: 18px 20px 15px;
    border: 2px solid rgba(255,255,255,0.26);
    background: #080808;
    color: var(--c-white);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.iscrizione-submit-status.is-success {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.iscrizione-submit-status.is-error {
    border-color: #ff4d4d;
    color: #ff7777;
}

.iscrizione-submit-status.is-loading {
    color: rgba(255,255,255,0.82);
}

.iscrizione-conditional > label {
    color: var(--c-white);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.iscrizione-conditional textarea {
    width: min(100%, 560px);
    min-height: 128px;
    padding: 14px 15px;
    background: #0f0f0f;
    border: 2px solid rgba(255,255,255,0.36);
    color: var(--c-white);
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.iscrizione-choice-field.is-invalid .iscrizione-conditional textarea,
.iscrizione-choice-field.is-invalid .iscrizione-conditional input {
    border-color: var(--c-primary);
}

.iscrizione-document-upload-group {
    display: grid;
    gap: 24px;
    padding: 26px;
    border: 2px solid rgba(255,255,255,0.24);
    background: #080808;
}

.iscrizione-document-upload-group[hidden] {
    display: none !important;
}

.iscrizione-guardian-upload {
    margin-bottom: 18px;
}

.iscrizione-file-field {
    gap: 12px;
}

.iscrizione-file-box {
    position: relative;
    display: grid;
    place-items: center;
    gap: 12px;
    width: min(100%, 720px);
    min-height: 106px;
    padding: 24px;
    border: 2px dashed rgba(255,255,255,0.48);
    background: #0f0f0f;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.iscrizione-file-box:hover {
    border-color: var(--c-primary);
    background: #070707;
}

.iscrizione-file-box.is-dragging {
    border-color: var(--c-primary);
    background: rgba(255,230,0,0.08);
}

.iscrizione-file-box input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.iscrizione-file-box .file-title {
    position: relative;
    z-index: 1;
    color: var(--c-primary);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.iscrizione-file-box .file-action {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.iscrizione-file-box .file-instruction {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.iscrizione-file-box .file-name {
    position: relative;
    z-index: 1;
    color: var(--c-primary);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    word-break: break-word;
}

.iscrizione-field.is-invalid .iscrizione-file-box {
    border-color: var(--c-primary);
}

.iscrizione-field label {
    color: var(--c-white);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.18;
}

.iscrizione-field label span {
    display: none;
}

.iscrizione-field label.iscrizione-file-box span {
    display: block;
}

.iscrizione-input-wrap {
    position: relative;
    width: min(100%, 430px);
}

.iscrizione-input-wrap input {
    width: 100%;
    height: 46px;
    padding: 10px 42px 8px 15px;
    background: #0f0f0f;
    border: 2px solid rgba(255,255,255,0.36);
    color: var(--c-white);
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.iscrizione-input-wrap::after {
    content: none;
}

.iscrizione-input-wrap.has-icon::after {
    content: none;
}

.iscrizione-input-wrap i {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.62);
    font-size: 16px;
    pointer-events: none;
}

.iscrizione-input-wrap input::placeholder {
    color: rgba(255,255,255,0.45);
}

.iscrizione-input-wrap input[type="date"] {
    color-scheme: dark;
}

.iscrizione-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

.iscrizione-input-wrap input:focus {
    border-color: var(--c-primary);
    background: #050505;
}

.iscrizione-nationality-wrap {
    z-index: 20;
}

.iscrizione-nationality-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: #050505;
    border: 2px solid var(--c-primary);
    z-index: 50;
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}

.iscrizione-nationality-menu button {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 6px 14px 3px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: var(--c-white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
    cursor: pointer;
}

.iscrizione-nationality-menu button:hover {
    background: var(--c-primary);
    color: var(--c-black);
}

.iscrizione-help {
    color: rgba(255,255,255,0.74);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
}

.iscrizione-add-children {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 8px;
    padding: 24px 26px;
    border: 2px solid rgba(255,255,255,0.28);
    background: #080808;
}

.iscrizione-add-children p {
    color: var(--c-white);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.iscrizione-add-child-btn,
.iscrizione-remove-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 38px;
    padding: 5px 18px 2px;
    background: transparent;
    border: 2px solid var(--c-primary);
    color: var(--c-primary);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.iscrizione-add-child-btn:hover,
.iscrizione-remove-child:hover {
    background: var(--c-primary);
    color: var(--c-black);
}

.iscrizione-extra-children {
    display: grid;
    gap: 42px;
}

.iscrizione-step-children {
    display: grid;
    gap: 44px;
}

.iscrizione-child-section {
    padding-top: 34px;
    border-top: 2px solid rgba(255,255,255,0.38);
}

.iscrizione-step-child-card:first-child {
    padding-top: 0;
    border-top: 0;
}

.iscrizione-child-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 30px;
}

.iscrizione-child-header h3 {
    color: var(--c-white);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}

.iscrizione-child-fields {
    display: grid;
    gap: 28px;
}

.iscrizione-form-actions {
    margin-top: 12px;
}

.iscrizione-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 5px 26px 0;
    background: var(--c-primary);
    border: 2px solid var(--c-primary);
    color: var(--c-black);
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.iscrizione-next-btn:hover {
    background: transparent;
    color: var(--c-primary);
}

.iscrizione-placeholder {
    margin-top: 34px;
    padding: 28px 30px;
    border: 2px solid rgba(255,255,255,0.28);
    background: #080808;
}

.iscrizione-placeholder p {
    color: rgba(255,255,255,0.82);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.55;
    margin: 0;
}

/* Sponsor società */
.page-sponsor-societa {
    background: var(--c-black);
    color: var(--c-white);
    padding-bottom: 90px;
}

.page-sponsor-societa .news-hero-wrapper {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.page-sponsor-societa .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-sponsor-societa .news-hero-content {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: left;
}

.page-sponsor-societa .news-hero-content h1 {
    font-size: 55px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0;
}

.page-sponsor-societa .news-hero-content hr {
    border: 0;
    border-top: 2px solid var(--c-white);
    margin: 20px 0 0;
}

.page-sponsor-societa .news-hero-content .hero-subtitle {
    color: var(--c-white);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    margin: 20px 0 0;
}

.societa-sponsor-intro {
    padding-top: 46px;
    padding-bottom: 26px;
}

.societa-sponsor-intro p {
    max-width: 920px;
    color: var(--c-white);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
}

.societa-sponsor-section {
    padding-top: 22px;
    padding-bottom: 24px;
}

.societa-sponsor-section h2 {
    color: var(--c-white);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 28px;
    padding-top: 24px;
    border-top: 2px solid rgba(255,255,255,0.32);
}

.societa-sponsor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.societa-sponsor-card {
    min-height: 150px;
    padding: 30px;
    border: 2px solid rgba(255,255,255,0.25);
    background: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.societa-sponsor-card:hover {
    border-color: var(--c-primary);
    transform: translateY(-2px);
}

.societa-sponsor-card img {
    max-width: 100%;
    max-height: 92px;
    object-fit: contain;
}

.societa-sponsor-card span,
.societa-sponsor-empty {
    color: var(--c-black);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}

.societa-sponsor-empty {
    text-align: left;
    margin: 0;
}

@media (max-width: 900px) {
    .page-iscritti {
        padding-top: 36px;
    }

    .page-iscritti .iscrizione-intro,
    .page-iscritti .iscrizione-form-section {
        width: calc(100% - 40px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .iscrizione-panel h1 {
        margin-bottom: 38px;
    }

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

@media (max-width: 600px) {
    .page-iscritti {
        padding-top: 32px;
        padding-bottom: 72px;
        overflow-x: hidden;
    }

    .page-iscritti .iscrizione-intro,
    .page-iscritti .iscrizione-form-section {
        width: calc(100% - 40px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .iscrizione-panel {
        padding-top: 24px;
    }

    .iscrizione-panel h1 {
        font-size: 38px;
        line-height: 1.05;
        margin-bottom: 34px;
        overflow-wrap: anywhere;
    }

    .iscrizione-grid,
    .iscrizione-copy,
    .iscrizione-checklist,
    .iscrizione-item,
    .iscrizione-item > div,
    .iscrizione-classificazione-preview,
    .iscrizione-acceptance,
    .iscrizione-cta-group {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .iscrizione-copy h2,
    .iscrizione-form-panel h2 {
        font-size: 28px;
    }

    .iscrizione-copy > p,
    .iscrizione-item p {
        font-size: 18px;
    }

    .iscrizione-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .iscrizione-rule-link,
    .iscrizione-cta,
    .iscrizione-back-btn,
    .iscrizione-next-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .iscrizione-back-btn,
    .iscrizione-next-btn {
        justify-content: center;
        padding-left: 14px;
        padding-right: 14px;
        font-size: 14px;
        line-height: 1.12;
        text-align: center;
    }

    .iscrizione-acceptance {
        align-items: flex-start;
    }

    .iscrizione-cta-group {
        justify-items: stretch;
    }

    .iscrizione-add-children,
    .iscrizione-child-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .iscrizione-child-header h3 {
        font-size: 25px;
        line-height: 1.12;
    }

    .iscrizione-modal {
        padding: 16px;
    }

    .iscrizione-modal-dialog {
        padding: 32px 24px 28px;
    }

    .iscrizione-modal-header h2 {
        margin-right: 48px;
    }

    .page-sponsor-societa .news-hero-content h1 {
        font-size: 42px;
    }

    .societa-sponsor-intro p {
        font-size: 20px;
    }

    .societa-sponsor-section h2 {
        font-size: 32px;
    }

    .societa-sponsor-grid {
        grid-template-columns: 1fr;
    }
}

.page-giocatori .news-hero-overlay,
.page-staff .news-hero-overlay,
.page-allenatori .news-hero-overlay,
.page-stagione .news-hero-overlay {
    height: 55% !important;
}

/* Impostazioni hero Prima Squadra (Home, Rosa, Staff, Allenatori, Stagione) */
@media (min-width: 769px) {
    .page-giocatori .news-hero-wrapper,
    .page-staff .news-hero-wrapper,
    .page-la-societa .news-hero-wrapper,
    .page-comitato .news-hero-wrapper,
    .page-club100 .news-hero-wrapper,
    .page-allenatori .news-hero-wrapper,
    .page-area-segreteria .news-hero-wrapper,
    .page-sezioni .news-hero-wrapper,
    .page-scuola-calcio .news-hero-wrapper,
    .page-infrastruttura .news-hero-wrapper,
    .page-stagione .news-hero-wrapper,
    .page-partner .news-hero-wrapper,
    .page-template-template-partner .news-hero-wrapper,
    .page-organigramma .club-hero-wrapper,
    .page-storia .club-hero-wrapper,
    .page-club .club-hero-wrapper,
    .page-id-18 .news-hero-wrapper,
    .page-news .news-hero-wrapper,
    .page-contatti .news-hero-wrapper,
    .page-contatti .contatti-hero > div,
    .page-prima-squadra .news-hero .container {
        height: 732px !important;
    }

    .page-giocatori .news-hero-wrapper img,
    .page-staff .news-hero-wrapper img,
    .page-la-societa .news-hero-wrapper img,
    .page-comitato .news-hero-wrapper img,
    .page-club100 .news-hero-wrapper img,
    .page-allenatori .news-hero-wrapper img,
    .page-area-segreteria .news-hero-wrapper img,
    .page-sezioni .news-hero-wrapper img,
    .page-scuola-calcio .news-hero-wrapper img,
    .page-infrastruttura .news-hero-wrapper img,
    .page-stagione .news-hero-wrapper img,
    .page-partner .news-hero-wrapper img,
    .page-template-template-partner .news-hero-wrapper img,
    .page-organigramma .club-hero-wrapper img,
    .page-storia .club-hero-wrapper img,
    .page-club .club-hero-wrapper img,
    .page-id-18 .news-hero-wrapper img,
    .page-news .news-hero-wrapper img,
    .page-contatti .news-hero-wrapper img,
    .page-contatti .contatti-hero > div img,
    .page-prima-squadra .news-hero .container img {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .page-prima-squadra .news-hero .container img {
        margin-top: -40px !important;
        height: calc(100% + 40px) !important;
    }
}
@media (max-width: 768px) {
    .page-prima-squadra .news-hero .container img {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .page-prima-squadra .news-hero .container {
        height: 50vh !important;
    }
}

@media (min-width: 769px) {
    .page-template-template-prima-squadra .page-prima-squadra .news-hero .container {
        height: 900px !important;
    }
}

@media (max-width: 768px) {
    .page-template-template-prima-squadra .page-prima-squadra .news-hero .container {
        height: 66vh !important;
    }
}

.page-prima-squadra .news-hero .container > div {
    height: 55% !important;
}

/* Avvicinamento fotogallery alla hero */
.page-prima-squadra .news-hero + .ps-section {
    padding-top: 25px !important;
    position: relative;
    z-index: 5;
}

.page-template-template-prima-squadra .page-prima-squadra .news-hero + .ps-section > .section-header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    transform: translateY(-132px);
    margin-bottom: -92px;
}

.page-organigramma .club-hero-wrapper .news-hero-content,
.page-storia .club-hero-wrapper .news-hero-content,
.page-club .club-hero-wrapper .news-hero-content,
.page-id-18 .news-hero-wrapper .news-hero-content,
.page-giocatori .news-hero-wrapper .news-hero-content,
.page-staff .news-hero-wrapper .news-hero-content,
.page-la-societa .news-hero-wrapper .news-hero-content,
.page-news .news-hero-wrapper .news-hero-content,
.page-stagione .news-hero-wrapper .news-hero-content,
.page-partner .news-hero-wrapper .news-hero-content,
.page-template-template-partner .news-hero-wrapper .news-hero-content,
.page-contatti .news-hero-wrapper .news-hero-content,
.page-contatti .contatti-hero > div .news-hero-content {
    top: calc(100% - 200px) !important;
    bottom: auto !important;
    left: 24px !important;
    width: calc(100% - 48px) !important;
}

.page-id-18 .news-hero-wrapper .news-hero-content h1,
.page-giocatori .news-hero-wrapper .news-hero-content h1,
.page-staff .news-hero-wrapper .news-hero-content h1,
.page-la-societa .news-hero-wrapper .news-hero-content h1,
.page-news .news-hero-wrapper .news-hero-content h1,
.page-stagione .news-hero-wrapper .news-hero-content h1,
.page-partner .news-hero-wrapper .news-hero-content h1,
.page-template-template-partner .news-hero-wrapper .news-hero-content h1,
.page-contatti .news-hero-wrapper .news-hero-content h1,
.page-contatti .contatti-hero > div .news-hero-content h1 {
    line-height: 1.1 !important;
}

.page-storia .club-hero-wrapper .hero-subtitle,
.page-club .club-hero-wrapper .hero-subtitle {
    display: none !important;
}

.page-organigramma .club-hero-wrapper .org-submenu,
.page-storia .club-hero-wrapper .page-submenu,
.page-club .club-hero-wrapper .page-submenu {
    gap: 20px !important;
}

.page-organigramma .club-hero-wrapper .news-hero-content hr,
.page-storia .club-hero-wrapper .news-hero-content hr,
.page-club .club-hero-wrapper .news-hero-content hr,
.page-id-18 .news-hero-wrapper .news-hero-content hr,
.page-giocatori .news-hero-wrapper .news-hero-content hr,
.page-staff .news-hero-wrapper .news-hero-content hr,
.page-la-societa .news-hero-wrapper .news-hero-content hr,
.page-news .news-hero-wrapper .news-hero-content hr,
.page-stagione .news-hero-wrapper .news-hero-content hr,
.page-partner .news-hero-wrapper .news-hero-content hr,
.page-template-template-partner .news-hero-wrapper .news-hero-content hr,
.page-contatti .news-hero-wrapper .news-hero-content hr,
.page-contatti .contatti-hero > div .news-hero-content hr {
    margin: 6px 0 10px !important;
}

.page-news .news-hero-wrapper .news-filters {
    margin-top: 36px !important;
}

.page-news .news-hero-wrapper {
    overflow: visible !important;
}

.page-news .news-hero {
    position: relative;
    z-index: 1;
}

.page-news .news-hero-wrapper .news-hero-content {
    top: calc(100% - 200px) !important;
}

.page-news .news-filter-form {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
}

.page-news .news-filter-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 218px;
    width: 218px;
    min-height: 40px;
    height: 40px;
    padding: 5px 0 0;
    box-sizing: border-box;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    font-family: inherit;
}

.page-news .news-filter-dropdown {
    position: relative;
    z-index: 40;
}

.page-news .news-filter-control span {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.page-news .news-filter-order {
    border: 2px solid var(--c-white);
    color: var(--c-white);
    background: transparent;
    cursor: pointer;
}

.page-news .news-filter-search {
    border: 2px solid var(--c-primary);
    color: var(--c-primary);
    background: transparent;
}

.page-news .news-filter-control select,
.page-news .news-filter-control input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-news .news-filter-menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    left: 0;
    width: 218px;
    border: 2px solid var(--c-white);
    background: #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.page-news .news-filter-dropdown.is-open .news-filter-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-news .news-filter-menu.is-floating {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-news .news-filter-menu button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 5px 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--c-white);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

.page-news .news-filter-menu button:last-child {
    border-bottom: 0;
}

.page-news .news-filter-menu button:hover,
.page-news .news-filter-menu button.is-active {
    color: var(--c-primary);
}

.page-news .news-list-section {
    padding-top: 50px !important;
    margin-top: -70px !important;
    position: relative;
    z-index: 20;
}

.page-news .news-filter-menu.is-floating {
    position: fixed;
    z-index: 9999;
}

.news-filter-menu.is-floating {
    position: fixed;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    width: 218px;
    border: 2px solid var(--c-white);
    background: #000;
    box-sizing: border-box;
}

.news-filter-menu.is-floating button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 5px 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    background: #000;
    color: var(--c-white);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

.news-filter-menu.is-floating button:last-child {
    border-bottom: 0;
}

.news-filter-menu.is-floating button:hover,
.news-filter-menu.is-floating button.is-active {
    color: var(--c-primary);
}

.page-news .news-filter-control select {
    opacity: 0;
}

.page-news .news-filter-control input {
    z-index: 3;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--c-primary);
    font: inherit;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    cursor: text;
}

.page-news .news-filter-search:focus-within span,
.page-news .news-filter-search:has(input:not(:placeholder-shown)) span {
    opacity: 0;
}

.page-news .news-filter-search input:focus,
.page-news .news-filter-search input:not(:placeholder-shown) {
    opacity: 1;
}

.page-news-societa .news-societa-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.page-news-societa .news-societa-card-grid .news-card {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0;
}

.page-news-societa .news-societa-card-grid .news-card > img {
    height: 100% !important;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100% !important;
}

.page-news-societa .news-societa-card-grid .news-card h3 {
    font-size: 32px;
    line-height: 1.3;
}

.page-news-societa .news-societa-card-grid .news-card.is-carousel-hidden {
    display: none !important;
}

.page-news-societa .news-societa-carousel-nav {
    min-height: 28px;
}

.page-news-societa .news-societa-carousel-nav .nav-arrow.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.page-news-societa .news-societa-carousel-nav.has-single-page .nav-arrow {
    opacity: 0.3;
}

.page-news-societa .news-societa-carousel-nav .nav-dots i {
    cursor: pointer;
}

@media (max-width: 900px) {
    .page-news-societa .news-societa-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .page-news-societa .news-societa-card-grid {
        grid-template-columns: 1fr !important;
    }
}

.page-organigramma .club-hero-wrapper .org-submenu a,
.page-storia .club-hero-wrapper .page-submenu a,
.page-club .club-hero-wrapper .page-submenu a,
.page-id-18 .news-hero-wrapper .page-submenu a,
.page-giocatori .news-hero-wrapper .page-submenu a,
.page-staff .news-hero-wrapper .page-submenu a,
.page-la-societa .news-hero-wrapper .page-submenu a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 40px !important;
    font-size: 22px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .page-organigramma .club-hero-wrapper .org-submenu,
    .page-storia .club-hero-wrapper .page-submenu,
    .page-club .club-hero-wrapper .page-submenu {
        gap: 10px !important;
    }

    .page-organigramma .club-hero-wrapper .org-submenu a,
    .page-storia .club-hero-wrapper .page-submenu a,
    .page-club .club-hero-wrapper .page-submenu a {
        padding: 6px 16px !important;
        font-size: 12px !important;
    }
}

.page-organigramma .club-hero-wrapper,
.page-storia .club-hero-wrapper,
.page-club .club-hero-wrapper,
.page-id-18 .news-hero-wrapper,
.page-giocatori .news-hero-wrapper,
.page-staff .news-hero-wrapper,
.page-la-societa .news-hero-wrapper,
.page-news .news-hero-wrapper,
.page-stagione .news-hero-wrapper,
.page-partner .news-hero-wrapper,
.page-template-template-partner .news-hero-wrapper,
.page-contatti .news-hero-wrapper,
.page-contatti .contatti-hero > div {
    width: calc(100% + 120px) !important;
    max-width: calc(100% + 120px) !important;
    margin-left: -60px !important;
    margin-right: auto !important;
}

.page-organigramma .club-hero-wrapper .news-hero-content,
.page-storia .club-hero-wrapper .news-hero-content,
.page-club .club-hero-wrapper .news-hero-content,
.page-id-18 .news-hero-wrapper .news-hero-content,
.page-giocatori .news-hero-wrapper .news-hero-content,
.page-staff .news-hero-wrapper .news-hero-content,
.page-la-societa .news-hero-wrapper .news-hero-content,
.page-news .news-hero-wrapper .news-hero-content,
.page-stagione .news-hero-wrapper .news-hero-content,
.page-partner .news-hero-wrapper .news-hero-content,
.page-template-template-partner .news-hero-wrapper .news-hero-content,
.page-contatti .news-hero-wrapper .news-hero-content,
.page-contatti .contatti-hero > div .news-hero-content {
    left: 24px !important;
    width: calc(100% - 48px) !important;
    max-width: none !important;
}

@media (min-width: 769px) and (max-width: 1399px) {
    .page-storia .club-hero-wrapper .news-hero-content,
    .page-club .club-hero-wrapper .news-hero-content,
    .page-id-18 .news-hero-wrapper .news-hero-content,
    .page-giocatori .news-hero-wrapper .news-hero-content,
    .page-staff .news-hero-wrapper .news-hero-content,
    .page-la-societa .news-hero-wrapper .news-hero-content,
    .page-news .news-hero-wrapper .news-hero-content,
    .page-stagione .news-hero-wrapper .news-hero-content,
    .page-partner .news-hero-wrapper .news-hero-content,
    .page-template-template-partner .news-hero-wrapper .news-hero-content,
    .page-contatti .news-hero-wrapper .news-hero-content,
    .page-contatti .contatti-hero > div .news-hero-content {
        left: 80px !important;
        width: calc(100% - 160px) !important;
    }

    .page-organigramma .club-hero-wrapper .news-hero-content {
        left: 80px !important;
        width: calc(100% - 160px) !important;
    }
}

@media (max-width: 900px) {
    .page-organigramma .club-hero-wrapper,
    .page-storia .club-hero-wrapper,
    .page-club .club-hero-wrapper,
    .page-id-18 .news-hero-wrapper,
    .page-giocatori .news-hero-wrapper,
    .page-staff .news-hero-wrapper,
    .page-la-societa .news-hero-wrapper,
    .page-news .news-hero-wrapper,
    .page-stagione .news-hero-wrapper,
    .page-partner .news-hero-wrapper,
    .page-template-template-partner .news-hero-wrapper,
    .page-contatti .news-hero-wrapper,
    .page-contatti .contatti-hero > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-organigramma .club-hero-wrapper .news-hero-content,
    .page-storia .club-hero-wrapper .news-hero-content,
    .page-club .club-hero-wrapper .news-hero-content,
    .page-id-18 .news-hero-wrapper .news-hero-content,
    .page-giocatori .news-hero-wrapper .news-hero-content,
    .page-staff .news-hero-wrapper .news-hero-content,
    .page-la-societa .news-hero-wrapper .news-hero-content,
    .page-news .news-hero-wrapper .news-hero-content,
    .page-stagione .news-hero-wrapper .news-hero-content,
    .page-partner .news-hero-wrapper .news-hero-content,
    .page-template-template-partner .news-hero-wrapper .news-hero-content,
    .page-contatti .news-hero-wrapper .news-hero-content,
    .page-contatti .contatti-hero > div .news-hero-content {
        left: 20px !important;
        width: calc(100% - 40px) !important;
    }
}

@media (min-width: 1400px) {
    .page-organigramma .club-hero-wrapper,
    .page-storia .club-hero-wrapper,
    .page-club .club-hero-wrapper,
    .page-id-18 .news-hero-wrapper,
    .page-giocatori .news-hero-wrapper,
    .page-staff .news-hero-wrapper,
    .page-la-societa .news-hero-wrapper,
    .page-news .news-hero-wrapper,
    .page-stagione .news-hero-wrapper,
    .page-partner .news-hero-wrapper,
    .page-template-template-partner .news-hero-wrapper,
    .page-contatti .news-hero-wrapper,
    .page-contatti .contatti-hero > div {
        width: 1520px !important;
        max-width: 1520px !important;
        margin-left: calc((100% - 1400px) / 2 - 60px) !important;
        margin-right: auto !important;
    }

    .page-organigramma .club-hero-wrapper .news-hero-content,
    .page-storia .club-hero-wrapper .news-hero-content,
    .page-club .club-hero-wrapper .news-hero-content,
    .page-id-18 .news-hero-wrapper .news-hero-content,
    .page-giocatori .news-hero-wrapper .news-hero-content,
    .page-staff .news-hero-wrapper .news-hero-content,
    .page-la-societa .news-hero-wrapper .news-hero-content,
    .page-news .news-hero-wrapper .news-hero-content,
    .page-stagione .news-hero-wrapper .news-hero-content,
    .page-partner .news-hero-wrapper .news-hero-content,
    .page-template-template-partner .news-hero-wrapper .news-hero-content,
    .page-contatti .news-hero-wrapper .news-hero-content,
    .page-contatti .contatti-hero > div .news-hero-content {
        left: 80px !important;
        width: 1360px !important;
        max-width: 1360px !important;
    }
}

/* Override finale mobile per il sottotitolo della pagina La Società. */
@media (max-width: 900px) {
    .page-la-societa .news-hero-wrapper .news-hero-content {
        top: calc(100% - 300px) !important;
        left: 20px !important;
        width: calc(100% - 40px) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-la-societa .news-hero-wrapper .news-hero-content h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;
    }

    .page-la-societa .news-hero-wrapper .page-submenu {
        gap: 8px !important;
        margin-top: 14px !important;
        margin-bottom: 8px !important;
    }

    .page-la-societa .news-hero-wrapper .page-submenu a {
        padding: 7px 12px !important;
        font-size: 14px !important;
        line-height: 1.1 !important;
    }

    .page-la-societa .news-hero-wrapper .news-hero-content p {
        font-size: 18px !important;
        line-height: 1.25 !important;
        margin-top: 14px !important;
    }
}

@media (max-width: 600px) {
    .page-la-societa .news-hero-wrapper,
    .page-comitato .news-hero-wrapper,
    .page-club100 .news-hero-wrapper,
    .page-allenatori .news-hero-wrapper,
    .page-area-segreteria .news-hero-wrapper {
        height: 560px !important;
        min-height: 560px !important;
    }

    .page-la-societa .news-hero-wrapper .news-hero-content,
    .page-comitato .news-hero-wrapper .news-hero-content,
    .page-club100 .news-hero-wrapper .news-hero-content,
    .page-allenatori .news-hero-wrapper .news-hero-content,
    .page-area-segreteria .news-hero-wrapper .news-hero-content {
        top: auto !important;
        bottom: 30px !important;
    }

    .page-la-societa .news-hero-wrapper .page-submenu,
    .page-comitato .news-hero-wrapper .page-submenu,
    .page-club100 .news-hero-wrapper .page-submenu,
    .page-allenatori .news-hero-wrapper .page-submenu,
    .page-area-segreteria .news-hero-wrapper .page-submenu {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .page-la-societa .news-hero-wrapper .page-submenu a,
    .page-comitato .news-hero-wrapper .page-submenu a,
    .page-club100 .news-hero-wrapper .page-submenu a,
    .page-allenatori .news-hero-wrapper .page-submenu a,
    .page-area-segreteria .news-hero-wrapper .page-submenu a {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .page-comitato .dirigenti-grid {
        gap: 34px !important;
    }

    .page-comitato .dirigente-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .page-comitato .dirigente-photo {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 18px !important;
    }

    .page-comitato .dirigente-photo::before {
        padding-top: 82% !important;
    }

    .page-comitato .dirigente-info {
        width: 100% !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
        padding-top: 0 !important;
        padding-left: 16px !important;
    }

    .page-comitato .dirigente-name {
        font-size: 28px !important;
        line-height: 1.12 !important;
        margin-top: 8px !important;
    }

    .page-comitato .dirigente-desc p {
        font-size: 16px !important;
        line-height: 1.55 !important;
    }

    .page-club100 .club100-gallery-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-club100 #club100-gallery-carousel {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 100% !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
    }

    .page-club100 #club100-gallery-carousel .gallery-slide {
        display: block !important;
        width: 100% !important;
        inline-size: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        scroll-snap-align: start !important;
    }

    .page-club100 #club100-gallery-carousel .gallery-item,
    .page-club100 #club100-gallery-carousel .gallery-slide.active .gallery-item {
        width: 100% !important;
        transform: none !important;
    }

    .page-area-segreteria .segreteria-table-wrap {
        overflow-x: visible !important;
    }

    .page-area-segreteria .segreteria-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }

    .page-area-segreteria .segreteria-table thead {
        display: none !important;
    }

    .page-area-segreteria .segreteria-table tbody,
    .page-area-segreteria .segreteria-table tr,
    .page-area-segreteria .segreteria-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-area-segreteria .segreteria-table tr {
        margin-bottom: 18px !important;
        border: 1px solid rgba(255,255,255,0.16) !important;
        background: #050505 !important;
    }

    .page-area-segreteria .segreteria-table td {
        padding: 14px 16px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    .page-area-segreteria .segreteria-table td:last-child {
        border-bottom: 0 !important;
    }

    .page-area-segreteria .segreteria-table td::before {
        content: attr(data-label);
        display: block;
        color: var(--c-primary);
        font-size: 11px;
        font-weight: 900;
        line-height: 1;
        margin-bottom: 8px;
        text-transform: uppercase;
    }

    .page-area-segreteria .segreteria-row-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .page-area-segreteria .segreteria-row-actions a,
    .page-area-segreteria .segreteria-row-actions button,
    .page-area-segreteria .segreteria-row-actions form {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-area-segreteria #segreteria-edit,
    .page-area-segreteria .segreteria-dashboard-head,
    .page-area-segreteria .segreteria-head-actions,
    .page-area-segreteria .segreteria-detail-actions,
    .page-area-segreteria .segreteria-operational-summary,
    .page-area-segreteria .segreteria-edit-form,
    .page-area-segreteria .segreteria-edit-grid,
    .page-area-segreteria .segreteria-edit-card,
    .page-area-segreteria .segreteria-edit-fields,
    .page-area-segreteria .segreteria-edit-documents,
    .page-area-segreteria .segreteria-edit-actions {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .page-area-segreteria #segreteria-edit,
    .page-area-segreteria .segreteria-edit-form,
    .page-area-segreteria .segreteria-edit-grid,
    .page-area-segreteria .segreteria-edit-fields,
    .page-area-segreteria .segreteria-operational-summary,
    .page-area-segreteria .segreteria-detail-actions {
        grid-template-columns: 1fr !important;
    }

    .page-area-segreteria .segreteria-dashboard-head,
    .page-area-segreteria .segreteria-head-actions,
    .page-area-segreteria .segreteria-quick-actions-detail,
    .page-area-segreteria .segreteria-edit-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    .page-area-segreteria .segreteria-head-actions,
    .page-area-segreteria .segreteria-detail-actions,
    .page-area-segreteria .segreteria-edit-card {
        padding: 16px !important;
    }

    .page-area-segreteria .segreteria-head-actions a,
    .page-area-segreteria .segreteria-head-actions button,
    .page-area-segreteria .segreteria-head-actions form,
    .page-area-segreteria .segreteria-quick-actions-detail button,
    .page-area-segreteria .segreteria-quick-actions-detail form,
    .page-area-segreteria .segreteria-edit-actions a,
    .page-area-segreteria .segreteria-edit-actions button {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-area-segreteria .segreteria-edit-fields label,
    .page-area-segreteria .segreteria-edit-fields label.wide,
    .page-area-segreteria .segreteria-fee-breakdown,
    .page-area-segreteria .segreteria-document-row,
    .page-area-segreteria .segreteria-file-replace,
    .page-area-segreteria .segreteria-documents-list,
    .page-area-segreteria .segreteria-log-list {
        grid-column: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .page-area-segreteria .segreteria-edit-fields input,
    .page-area-segreteria .segreteria-edit-fields select,
    .page-area-segreteria .segreteria-edit-fields textarea,
    .page-area-segreteria .segreteria-file-replace input {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Override finale mobile: Sezioni usa menu gerarchici sotto l'hero. */
@media (max-width: 768px) {
    .page-sezioni .news-hero {
        overflow: visible !important;
    }

    .page-sezioni .news-hero-wrapper {
        height: 430px !important;
        min-height: 430px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: visible !important;
    }

    .page-sezioni .news-hero-wrapper img {
        height: 430px !important;
        min-height: 430px !important;
    }

    .page-sezioni .news-hero-wrapper .news-hero-content {
        top: auto !important;
        bottom: 28px !important;
        left: 20px !important;
        right: auto !important;
        width: calc(100% - 40px) !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-sezioni .news-hero-wrapper .club-hero-title {
        font-size: 42px !important;
        line-height: 1.05 !important;
    }

    .page-sezioni .news-hero-wrapper .sezioni-tabs-l1 {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 14px !important;
        margin-bottom: 0 !important;
    }

    .page-sezioni .news-hero-wrapper .sez-tab-btn-l1 {
        width: 100% !important;
        min-width: 0 !important;
        padding: 9px 8px !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
    }

    .page-sezioni .news-hero-wrapper > .news-hero-content > hr:nth-of-type(2) {
        display: none !important;
    }

    .page-sezioni .news-hero-wrapper .sezioni-tabs-l2-container {
        position: absolute !important;
        top: calc(100% + 18px) !important;
        left: -20px !important;
        width: calc(100% + 40px) !important;
        padding: 0 20px 18px !important;
        background: #000 !important;
        box-sizing: border-box !important;
    }

    .page-sezioni .news-hero-wrapper .sezioni-tabs-l2,
    .page-sezioni .news-hero-wrapper .sezioni-tabs-l3 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .page-sezioni .news-hero-wrapper .sezioni-tabs-l3[style*="display: none"],
    .page-sezioni .news-hero-wrapper .sezioni-tabs-l2-wrapper[style*="display: none"] {
        display: none !important;
    }

    .page-sezioni .news-hero-wrapper .l2-divider {
        margin: 10px 0 12px !important;
    }

    .page-sezioni .news-hero-wrapper .sez-tab-btn-subcat,
    .page-sezioni .news-hero-wrapper .sez-tab-btn-team {
        width: 100% !important;
        min-width: 0 !important;
        padding: 9px 8px !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    .page-sezioni .sezioni-panels-wrap {
        padding-top: 190px !important;
    }
}

@media (max-width: 480px) {
    .page-sezioni .sezioni-panels-wrap {
        padding-top: 230px !important;
    }
}

/* Mobile QA: evita overflow orizzontale su News e marquee sponsor. */
.ps-sponsors.is-marquee {
    max-width: 100%;
    overflow-x: clip;
}

@media (max-width: 900px) {
    .page-news .news-hero-wrapper .news-hero-content,
    .page-giocatori .news-hero-wrapper .news-hero-content,
    .page-staff .news-hero-wrapper .news-hero-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-news .news-list-section .ps-grid.grid-3 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        overflow: visible !important;
        gap: 18px !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 600px) {
    .page-news .news-hero-wrapper .news-hero-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-news .news-hero-wrapper .news-filter-form,
    .page-news .news-filter-form {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .page-news .news-filter-control,
    .page-news .news-filter-menu,
    .page-news .news-filter-menu.is-floating {
        width: 100% !important;
        min-width: 0 !important;
    }

    .page-news .news-list-section .ps-grid.grid-3 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        overflow: visible !important;
        gap: 18px !important;
        padding-bottom: 0 !important;
    }

    .page-news .news-list-section {
        margin-top: 0 !important;
        padding-top: 24px !important;
    }

    .page-news .news-card .btn-primary {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Mobile QA: pagine Giocatori e Staff. */
@media (max-width: 600px) {
    .page-giocatori,
    .page-staff {
        overflow-x: hidden !important;
    }

    .page-giocatori .news-hero-wrapper .news-hero-content,
    .page-staff .news-hero-wrapper .news-hero-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-giocatori .news-hero-wrapper .page-submenu,
    .page-staff .news-hero-wrapper .page-submenu {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .page-giocatori .news-hero-wrapper .page-submenu h4,
    .page-staff .news-hero-wrapper .page-submenu h4 {
        min-width: 0 !important;
    }

    .page-giocatori .news-hero-wrapper .page-submenu a,
    .page-staff .news-hero-wrapper .page-submenu a {
        width: 100% !important;
        min-width: 0 !important;
        padding: 9px 8px !important;
        box-sizing: border-box !important;
        font-size: 18px !important;
        white-space: nowrap !important;
    }

    .page-giocatori .ps-grid.ps-team,
    .page-staff .ps-grid.ps-team {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    .page-giocatori .player-card .player-info,
    .page-giocatori .player-card .player-info-container,
    .page-staff .player-card .player-info {
        left: 18px !important;
        right: 18px !important;
        gap: 10px !important;
        min-width: 0 !important;
    }

    .page-staff .player-card .player-info {
        width: auto !important;
    }

    .page-giocatori .player-card .player-info > .player-name,
    .page-staff .player-card .player-info > .player-name {
        max-width: calc(100% - 76px) !important;
        min-width: 0 !important;
    }

    .page-giocatori .player-card .player-name,
    .page-giocatori .player-card .player-name span,
    .page-staff .player-card .player-name,
    .page-staff .player-card .player-name span {
        font-size: clamp(28px, 8vw, 34px) !important;
        line-height: 1.08 !important;
        overflow-wrap: anywhere !important;
    }

    .page-staff .player-card .staff-role {
        margin-bottom: 18px !important;
        font-size: clamp(14px, 4vw, 17px) !important;
        line-height: 1.1 !important;
        overflow-wrap: anywhere !important;
    }

    .page-giocatori .player-card .player-number {
        margin-left: auto !important;
        font-size: clamp(48px, 14vw, 60px) !important;
        line-height: 0.95 !important;
    }

    .page-giocatori .ps-sponsors.is-marquee,
    .page-staff .ps-sponsors.is-marquee {
        contain: layout paint !important;
        overflow: hidden !important;
    }
}

/* Mobile QA: pagina Stagione. */
@media (max-width: 900px) {
    .page-stagione .news-hero-wrapper .news-hero-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 600px) {
    .page-stagione {
        overflow-x: hidden !important;
    }

    .page-stagione .custom-classifica-wrapper {
        overflow-x: hidden !important;
    }

    .page-stagione .custom-classifica-wrapper table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        font-size: 12px !important;
    }

    .page-stagione .custom-classifica-wrapper table th,
    .page-stagione .custom-classifica-wrapper table td {
        height: 54px !important;
        padding: 0 6px !important;
        font-size: 12px !important;
        line-height: 1.05 !important;
    }

    .page-stagione .custom-classifica-wrapper table th:nth-child(4),
    .page-stagione .custom-classifica-wrapper table td:nth-child(4),
    .page-stagione .custom-classifica-wrapper table th:nth-child(5),
    .page-stagione .custom-classifica-wrapper table td:nth-child(5),
    .page-stagione .custom-classifica-wrapper table th:nth-child(6),
    .page-stagione .custom-classifica-wrapper table td:nth-child(6) {
        display: none !important;
    }

    .page-stagione .custom-classifica-wrapper table th:first-child,
    .page-stagione .custom-classifica-wrapper table td:first-child {
        width: 42px !important;
        padding-left: 6px !important;
    }

    .page-stagione .custom-classifica-wrapper table th:nth-child(2),
    .page-stagione .custom-classifica-wrapper table td:nth-child(2) {
        width: auto !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .page-stagione .custom-classifica-wrapper table th:nth-child(3),
    .page-stagione .custom-classifica-wrapper table td:nth-child(3),
    .page-stagione .custom-classifica-wrapper table th:nth-child(7),
    .page-stagione .custom-classifica-wrapper table td:nth-child(7),
    .page-stagione .custom-classifica-wrapper table th:nth-child(8),
    .page-stagione .custom-classifica-wrapper table td:nth-child(8) {
        width: 38px !important;
    }

    .page-stagione .custom-classifica-wrapper .standings-team-cell {
        gap: 6px !important;
        width: 100% !important;
    }

    .page-stagione .custom-classifica-wrapper .standings-team-cell img {
        width: 22px !important;
        max-width: 22px !important;
        max-height: 28px !important;
    }

    .page-stagione .custom-classifica-wrapper .standings-team-name {
        font-size: 12px !important;
        overflow-wrap: anywhere !important;
    }

    .page-stagione .ps-sponsors.is-marquee {
        contain: layout paint !important;
        overflow: hidden !important;
    }
}

/* Mobile QA: pagina Organigramma. */
@media (max-width: 900px) {
    .page-organigramma .club-hero-wrapper .news-hero-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 600px) {
    .page-organigramma {
        overflow-x: hidden !important;
    }

    .page-organigramma .club-hero-wrapper .org-submenu {
        width: 100% !important;
    }

    .page-organigramma .club-hero-wrapper .org-submenu a {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .page-organigramma .dirigenti-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        overflow: visible !important;
    }

    .page-organigramma .dirigente-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-organigramma .dirigente-photo {
        width: 142px !important;
        margin-right: 16px !important;
        box-sizing: border-box !important;
    }

    .page-organigramma .dirigente-info {
        min-width: 0 !important;
        min-height: 180px !important;
        padding-left: 16px !important;
        box-sizing: border-box !important;
    }

    .page-organigramma .dirigente-role {
        font-size: 13px !important;
        line-height: 1.15 !important;
        overflow-wrap: anywhere !important;
    }

    .page-organigramma .dirigente-name {
        font-size: clamp(23px, 7vw, 28px) !important;
        line-height: 1.08 !important;
        overflow-wrap: anywhere !important;
    }

    .page-organigramma .ps-sponsors.is-marquee {
        contain: layout paint !important;
        overflow: hidden !important;
    }
}

/* Mobile QA: pagina Storia. */
@media (max-width: 900px) {
    .page-storia .club-hero-wrapper .news-hero-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-storia {
        overflow-x: hidden !important;
    }

    .page-storia .storia-gallery-section,
    .page-storia .storia-gallery-carousel,
    .page-storia #storia-gallery-carousel {
        max-width: 100% !important;
        contain: layout paint !important;
    }

    .page-storia #storia-gallery-carousel {
        overflow-x: auto !important;
    }
}

@media (max-width: 600px) {
    .page-storia {
        overflow-x: hidden !important;
    }

    .page-storia .club-hero-wrapper .page-submenu {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .page-storia .club-hero-wrapper .page-submenu a {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 8px 10px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .page-storia .storia-gallery-section,
    .page-storia .storia-gallery-carousel {
        max-width: 100% !important;
        overflow-x: hidden !important;
        contain: layout paint !important;
    }

    .page-storia #storia-gallery-carousel {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 100% !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
    }

    .page-storia #storia-gallery-carousel .gallery-slide {
        display: block !important;
        width: 100% !important;
        inline-size: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        scroll-snap-align: start !important;
    }

    .page-storia #storia-gallery-carousel .gallery-item,
    .page-storia #storia-gallery-carousel .gallery-slide.active .gallery-item {
        width: 100% !important;
        transform: none !important;
    }

    .page-storia .ps-sponsors.is-marquee {
        contain: layout paint !important;
        overflow: hidden !important;
    }
}

/* Mobile QA: pagina Presente e Futuro. */
@media (max-width: 900px) {
    .page-club {
        overflow-x: hidden !important;
    }

    .page-club #progetto-gallery-carousel {
        max-width: 100% !important;
        contain: layout paint !important;
        overflow-x: auto !important;
    }
}

@media (max-width: 600px) {
    .page-club .club-hero-wrapper .news-hero-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-club .club-hero-wrapper .page-submenu {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .page-club .club-hero-wrapper .page-submenu a {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 8px 10px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .page-club #progetto-gallery-carousel {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 100% !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
    }

    .page-club #progetto-gallery-carousel .gallery-slide {
        display: block !important;
        width: 100% !important;
        inline-size: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        scroll-snap-align: start !important;
    }

    .page-club #progetto-gallery-carousel .gallery-item,
    .page-club #progetto-gallery-carousel .gallery-slide.active .gallery-item {
        width: 100% !important;
        transform: none !important;
    }
}

/* QA: hero pagina Partner. */
.page-template-template-partner .news-hero-wrapper .news-hero-content {
    text-align: left !important;
}

.page-template-template-partner .news-hero-wrapper .news-hero-content hr {
    width: 100% !important;
    margin: 20px 0 0 !important;
}

@media (max-width: 900px) {
    .page-template-template-partner .news-hero-wrapper .news-hero-content.container {
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Mobile QA finale: dettaglio Area Segreteria. */
@media (max-width: 600px) {
    .page-area-segreteria #segreteria-edit,
    .page-area-segreteria #segreteria-edit .segreteria-dashboard-head,
    .page-area-segreteria #segreteria-edit .segreteria-head-actions,
    .page-area-segreteria #segreteria-edit .segreteria-detail-actions,
    .page-area-segreteria #segreteria-edit .segreteria-operational-summary,
    .page-area-segreteria #segreteria-edit .segreteria-summary-item,
    .page-area-segreteria #segreteria-edit .segreteria-edit-form,
    .page-area-segreteria #segreteria-edit .segreteria-edit-grid,
    .page-area-segreteria #segreteria-edit .segreteria-edit-card,
    .page-area-segreteria #segreteria-edit .segreteria-edit-fields,
    .page-area-segreteria #segreteria-edit .segreteria-edit-documents,
    .page-area-segreteria #segreteria-edit .segreteria-edit-actions,
    .page-area-segreteria #segreteria-edit .segreteria-fee-breakdown {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .page-area-segreteria #segreteria-edit,
    .page-area-segreteria #segreteria-edit .segreteria-dashboard-head,
    .page-area-segreteria #segreteria-edit .segreteria-head-actions,
    .page-area-segreteria #segreteria-edit .segreteria-detail-actions,
    .page-area-segreteria #segreteria-edit .segreteria-operational-summary,
    .page-area-segreteria #segreteria-edit .segreteria-edit-form,
    .page-area-segreteria #segreteria-edit .segreteria-edit-grid,
    .page-area-segreteria #segreteria-edit .segreteria-edit-fields,
    .page-area-segreteria #segreteria-edit .segreteria-edit-actions,
    .page-area-segreteria #segreteria-edit .segreteria-quick-actions-detail {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .page-area-segreteria #segreteria-edit .segreteria-dashboard-head,
    .page-area-segreteria #segreteria-edit .segreteria-head-actions,
    .page-area-segreteria #segreteria-edit .segreteria-detail-actions,
    .page-area-segreteria #segreteria-edit .segreteria-edit-card {
        padding: 16px !important;
    }

    .page-area-segreteria #segreteria-edit .segreteria-detail-actions > *,
    .page-area-segreteria #segreteria-edit .segreteria-edit-fields > *,
    .page-area-segreteria #segreteria-edit .segreteria-edit-fields label,
    .page-area-segreteria #segreteria-edit .segreteria-edit-fields label.wide,
    .page-area-segreteria #segreteria-edit .segreteria-document-row,
    .page-area-segreteria #segreteria-edit .segreteria-file-replace,
    .page-area-segreteria #segreteria-edit .segreteria-documents-list,
    .page-area-segreteria #segreteria-edit .segreteria-log-list {
        grid-column: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .page-area-segreteria #segreteria-edit .segreteria-head-actions a,
    .page-area-segreteria #segreteria-edit .segreteria-head-actions button,
    .page-area-segreteria #segreteria-edit .segreteria-head-actions form,
    .page-area-segreteria #segreteria-edit .segreteria-quick-actions-detail button,
    .page-area-segreteria #segreteria-edit .segreteria-quick-actions-detail form,
    .page-area-segreteria #segreteria-edit .segreteria-edit-actions a,
    .page-area-segreteria #segreteria-edit .segreteria-edit-actions button,
    .page-area-segreteria #segreteria-edit input,
    .page-area-segreteria #segreteria-edit select,
    .page-area-segreteria #segreteria-edit textarea {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .page-area-segreteria #segreteria-edit .segreteria-head-actions,
    .page-area-segreteria #segreteria-edit .segreteria-quick-actions-detail,
    .page-area-segreteria #segreteria-edit .segreteria-edit-actions {
        align-items: stretch !important;
        justify-content: stretch !important;
        white-space: normal !important;
    }
}
