@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bgColor: #FFFFFF;
    --mainColor: #0b2350;
    --secondaryColor: #991f27;
    --txtColor: #000000;
    /*
    --secondaryBgColor: #c5e0f9;
    */
    --secondaryBgColor: #FFFFFF;
    --secondaryTxtColor: #FFFFFF;
    --font-body-family: "Inter", sans-serif;
}

html {
    font-size: 100%;
    font-family: var(--font-body-family);
    line-height: 1.5em;
    margin: auto;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bgColor);
}

.logo {
    text-indent: -999em;
    background-repeat: no-repeat;
    background-size: contain;
    line-height: 1.5em;
    color: black;
    background-position: center;
}

.logo {
    color: var(--secondaryTxtColor);
}

.instagram {
    background-image: url("../media/icons/instagram.svg");
}

.tiktok {
    background-image: url("../media/icons/tiktok.svg");
}

.facebook {
    background-image: url("../media/icons/facebook.svg");
}

ul {
    list-style-position: inside;
}

main h1 {
    margin: 0.5em 0;
}

a:link {
    color: var(--mainColor);
}

a:visited {
    color: var(--secondaryColor);
}

a:hover {
    color: var(--secondaryColor);
}

/* --------------------- */
/*      HEADER           */
/* --------------------- */
header {
    background-color: var(--mainColor);
    color: var(--secondaryTxtColor);
    padding: 1em 1em 1em 1em;
    border-bottom: 1px solid var(--mainColor);
    display: grid;
    grid-template-columns: 30% 1fr;
    grid-template-areas:
        "logo social"
        "logo menu";
    column-gap: 5em;
    align-items: center;
}

#header-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

}

.navigationhelp {
    position: absolute;
    text-indent: -999em;
}

#togglemenu {
    display: none;
}

/*MENU*/
#home-logo {
    grid-area: logo;
    background-image: url("../media/img/logo.svg");
    font-size: 2.5em;
    min-height: 1em;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 100%;

}

#menu {
    grid-area: menu;
    width: 100%;
    justify-self: end;
    margin-left: auto;
}

#menu a:link {
    color: var(--secondaryTxtColor);
}

#menu a:visited {
    color: var(--secondaryBgColor);
}

#menu ul {
    display: flex;
    justify-content: space-between;
    width: 100%;

    list-style: none;
}

#menu ul li {
    text-align: center;
    display: inline-block;
    width: auto;
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
}

#menu ul li a {
    display: block;
    text-decoration: none;
}

#menu ul li a:hover,
#menu ul li a:focus-visible {
    color: var(--secondaryColor);
    text-decoration: underline;

}

#breadcrumb {
    margin: auto;
    text-align: left;
    padding: 0.5em;
    color: var(--textColor);
}

/*SOCIAL*/
#social-header {
    grid-area: social;
    display: flex;
    justify-content: flex-end;
    gap: 1.5em;
}

#social-header ul {
    display: flex;
    align-items: center;
    gap: 1em;
    list-style: none;
    margin: 0;
    padding: 0;
}

#social-header li {
    width: 1.5em;
    height: 1.5em;
}

#social-header li a {
    display: block;
    width: 100%;
    height: 100%;
    text-indent: -9999px;
    overflow: hidden;
}

/* --------------------- */
/*      MAIN             */
/* --------------------- */

main {
    background-color: var(--bgColor);
    color: var(--txtColor);
    margin: auto;
    width: 90%;
    max-width: 1200px;
    padding: 1em;
}

.quote {
    font-style: italic;
    text-align: center;
    margin: 1em 0;
    font-size: 1.1em;
}

.home h2,
.home h3 {
    margin: 0.2em 0em;
}

.home>ul>li {
    margin-left: 1em;
}

.img-l,
.img-r {
    width: 20em;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0.2em;
}

.img-l {
    float: left;
}

.img-r {
    float: right;
    margin: 0 0 1em 1em;
}

/* --------------------- */
/*      FOOTER           */
/* --------------------- */
footer {
    background-color: var(--mainColor);
    color: var(--secondaryTxtColor);
    text-align: center;
    margin-bottom: 0px;
    border-top: 1px solid var(--secondaryBgColor);
}

#footer-content a:link {
    color: var(--secondaryTxtColor);
}

#footer-content a:hover,
a:focus-visible {
    text-decoration: underline;
}

#footer-content a:visited {
    color: var(--secondaryBgColor);
}

#footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1;
    grid-template-areas:
        "logo info contacts social";
    gap: 2rem;
    align-items: stretch;
    justify-items: center;
    text-align: center;
    padding: 1em 5em;
}

#footer-content> {
    width: 100%;
}

#footer-logo {
    background-image: url("../media/img/logo.svg");
    font-size: 7em;
    width: 100%;
    min-height: 3rem;
    grid-area: logo;
}

.footer-block {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-block-title {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5em;
}

footer>#info {
    grid-area: info;
}

footer>#contacts {
    grid-area: contacts;
}

/*FOOTER-ADDRESS*/
.footer-address {
    font-style: normal;
}

.footer-address span {
    display: block;
}

/*CONTACTS*/

#contacts a {
    text-decoration: none;
}

#contacts a:hover,
#contacts a:focus-visible {
    text-decoration: underline;
}

/*SOCIAL*/
#social-footer {
    grid-area: social;

    gap: 1rem;
}

#social-footer ul {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#social-footer li {
    width: 2.5rem;
    height: 2.5rem;
}

#social-footer li a {
    display: block;
    width: 100%;
    height: 100%;
    text-indent: -9999px;
    overflow: hidden;
}

/*FOOTER-BOTTOM*/
#footer-bottom {
    background-color: var(--bgColor);
    color: var(--txtColor);
    padding: 1em;
    font-size: 0.8em;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
        "copy madeby";
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--mainColor);
}

#footer-bottom ul {
    list-style-type: none;
    padding: 1em;
    flex: 0 0 60%;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin: 0;
    grid-area: copy;
}

#footer-bottom ul li {
    text-align: center;
    display: inline-block;
    width: auto;
    margin: 0;
}

#footer-bottom ul li a {
    display: block;
}

#footer-bottom a:hover,
#footer-bottom a:focus-visible {
    color: var(--secondaryColor);
    text-decoration: underline;

}

#madeby {
    flex: 0 0 30%;
    margin: 0;
    text-align: right;
    grid-area: madeby;
}

/*TORNA SU */
#TornaSu {
    width: auto;
    padding-bottom: 0;
    position: fixed;
    bottom: 3rem;
    right: 1rem;
    pointer-events: none;
}

#scrollTopBtn {
    width: 6.5em;
    height: 2.5em;
    margin-left: auto;
    margin-right: 1em;
    display: block;
    border-radius: 10px;
    background-color: var(--secondaryBgColor);
    color: var(--mainColor);
    border: 2px solid black;
    cursor: pointer;
    pointer-events: auto;

}


/* ---------------- */
/*      CAMPO       */
/* ---------------- */


#img-campo {
    width:50%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

#campo-indirizzo {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 0.5em;
    margin: 1em 0 1em 0;
    width: fit-content;
    justify-content: start;
    align-items: center;
    vertical-align: middle;
}

#campo-indirizzo>img {
    height: auto;
}

#campo-indirizzo>address {
    font-size: 1.2em;
}

#indicazioni {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 1em;
    padding: 0.5em 1em;
    border: 1px solid var(--mainColor);
    border-radius: 999px;
    background-color: var(--secondaryBgColor);
    color: var(--mainColor);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

#indicazioni:visited {
    color: var(--mainColor);
}

#indicazioni:hover,
#indicazioni:focus-visible {
    color: var(--secondaryColor);
    border-color: var(--secondaryColor);
    text-decoration: underline;
}

/* ---------------- */
/*      SPONSOR     */
/* ---------------- */

.sponsor h2 {
    padding-top: 0.8em;
}

.sponsor-grid {
    display: grid;
    gap: 2rem;
    list-style: none;
    padding: 2em 1em;
    margin: 0;
    justify-content: center;
}

.main-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 250px));
}

.gold-grid {
    grid-template-columns: repeat(auto-fit, minmax(235px, 235px));
}

.silver-grid {
    grid-template-columns: repeat(auto-fit, minmax(215px, 215px));
}

.bronze-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
}

.sponsor-grid li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-grid li a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-grid li a img {
    display: block;
    max-width: 100%;
    height: auto;
}

.sponsor .black-bg {
    background-color: #000000;
    padding: 1em;
}

.sponsor-grid li:focus-visible,
.sponsor-grid li:hover {
    outline: 1px solid var(--secondaryColor);
    outline-offset: 1.5px;
}
/* ---------------- */
/* ORGANIGRAMMA     */
/* ---------------- */

.organigramma {
    align-items: center;
    justify-content: center;
    text-align: center;

}

.organigramma section>div {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.card {
    border: 1px solid var(--mainColor);
    background-color: var(--secondaryBgColor);
    padding: 1em;
    margin: 0.5em 0;
    width: 27%;
    border-radius: 10px;
    text-align: center;

}

.organigramma .card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card>.card-title {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2em;
}

.card>.card-name {
    font-size: 1.1em;
}

/* ---------------- */
/*  SOCIETA         */
/* ---------------- */

.societa{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

.societa .card {
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    width: auto;
}

.societa .card > a {
    display: block;
    width: 100%;
    text-decoration: none;

}
.societa .card > a:hover,
.societa .card > a:focus-visible {
    text-decoration: underline;
}

/* ---------------- */
/* SAFEGUARDING     */
/* ---------------- */
.safeguarding #modulistica-content > div {
   width: 30%;
}

/* ---------------- */
/* SEGRETERIA       */
/* ---------------- */

#segreteria {
    display: grid;
    grid-template-areas:
        "title title"
        "orari contatti";
}

#orari {
    grid-area: orari;
}

#contatti {
    grid-area: contatti;
}

#segreteria>h1 {
    grid-area: title;
}

#segreteria>section>* {
    margin: 1em;
}

#segreteria ul {
    list-style: none;
}

.grid-contatti {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .5rem 1rem;
}

#segreteria #campo-indirizzo>address {
    font-size: 1em;
}

#modulistica-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#modulistica-content a.documento {
    position: relative;
    display: block;
    padding-left: 2.5em;
}

#modulistica-content a.documento::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2em;
    height: 2em;
    background-image: url("../media/icons/doc.svg");
    background-repeat: no-repeat;
    background-size: contain;
}


/* ---------------- */
/* PAGINE SERVIZIO  */
/* ---------------- */
.service {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.service main h1,
.service main h2 {
    padding: 2em 0;
}

/* ---------------- */
/* SQUADRA          */
/* ---------------- */

.squadra{
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.squadra > h2:first-of-type  {
    padding-bottom: 2em;
}

.squadra img{
    display: block;
    max-width: 100%;
}

.squad-section {
    margin-bottom: 1.5rem;
    border-top: 2px solid #1a1a1a;
}

.squad-section:last-child {
    border-bottom: 2px solid #1a1a1a;
}

.squad-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    padding: 1rem 0;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    list-style: none;
}

.squad-section summary::-webkit-details-marker {
    display: none;
}

.squad-section summary::marker {
    display: none;
}

.squad-section summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border: 2px solid currentColor;
    font-size: 1.5rem;
    line-height: 1;
}

.squad-section[open] summary::after {
    content: "−";
}

.squad-section summary:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 6px;
}

.players {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 0.5rem 0 3rem;
}

.player {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    overflow: hidden;
}

.player-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #dddddd;
}

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

.player-info {
    padding: 1.25rem;
}

.player-name {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
    text-transform: uppercase;
}

.player-role {
    margin: 0.4rem 0 0;
    font-size: 1rem;
    line-height: 1.5;
}

.player-role span {
    display: inline;
}

.staff .player-photo {
    aspect-ratio: 1 / 1;
}

.player-details div {
    display: flex;
    gap: 0.35rem;
}

.player-details dd {
    font-weight: 700;
}

.player-details dt::after {
    content: ":";
}

.player-details dd {
    margin: 0;
}

.calendar-link{
    border: 1px solid black;
    border-radius: 10px;
    padding: 0.5em 1em;
    text-align: center;
    font-weight: bold;
    margin-bottom: 1.5em;
    font-size: 1.2em;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}


/* ---------------- */
/* SITOWEB          */
/* ---------------- */
.highlight {
    margin: 0.5rem 0;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-block: 1px solid currentColor;
}

.website-page > h2:first-of-type{
    padding-bottom: 1em;
}

.website-page section {
    position: relative;
    padding: 1rem 0;
}

.section-number {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.55;
    margin-bottom: 0.75rem;
}

.website-credit {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid currentColor;
    text-align: center;
}

.website-credit p {
    margin: 0.25rem 0;
}

.website-credit-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.65;
}

.website-credit-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.website-credit-role {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* =========================================================
   CALENDARIO
   ========================================================= */
.calendario{
    align-items: center;
    justify-content: center;
    text-align: center;
}

.match {
    margin-bottom: 1rem;
    padding: 1rem 1rem 1rem;
    border: 1px solid var(--mainColor);
    border-radius: 30px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.match-teams,
.match-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
}

.team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-team {
    text-align: right;
    justify-content: flex-end;
}

.away-team {
    text-align: left;
    justify-content: flex-start;
}

.team-name {
    display: block;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.5em;
    overflow-wrap: break-word;
}

.team-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

.match-score {
    min-width: 80px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.match-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 0.5px solid var(--secondaryColor);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.match-location {
    display: block;
    margin-top: 0.2rem;
    padding-top: 0;
    border-top: none;
    font-size: 1.1rem;
    font-weight: 600;
}




.match-header {
    position: relative;
    margin-bottom: 1rem;
}

.match-competition {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.match-competition span + span::before {
    content: "|";
    color: var(--mainColor);
    margin-right: 0.5rem;
}

.match-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin-top: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.match-main {
    margin-top: 1rem;
    gap: 1.5rem;
}

.match-main .team-name {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.match-main .match-score {
    font-size: 1.1rem;
}

.match-played .match-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    min-width: 80px;
    font-size: 1.4rem;
}

.team-logo{
    display: block;
    max-width: 3em;
    height: auto;
}

.coppa{
    color: var(--secondaryColor);
}

.campionato{
    color: var(--mainColor);
}

.next-match-container {
    text-align: center;
    margin: 20px 0 30px;
}

#nextMatchBtn {
    padding: 1em 2em;
    border: solid 2px var(--mainColor);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: var(--mainColor);
    background-color: var(--secondaryBgColor);
}

#nextMatchBtn:hover {
    opacity: 0.85;
}

.next-match-highlight {
    transform: scale(1.04);
    transition: transform 0.3s ease;
}