* {
    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);
}

/*HEADER*/
header {
    grid-template-columns: 25% 1fr;
    grid-template-areas:
        "logo toggle"
        "social social"
        "menu menu";
}

/*
header #breadcrumb{
    padding: 0.5em 0.5em 0em 0.5em;
    margin: auto;
    font-size: 0.9em;
    background-color: var(--bgColor);
    text-align: center;
    line-height: 1.5em;
}
*/

/*HAMBURGER*/
#togglemenu {
    justify-self: end;
    display: block;
    cursor: pointer;
    background-color: var(--mainColor);
    border: 0;
    background-image: url("../media/icons/hamburger.svg");
    background-repeat: no-repeat;
    background-size: contain;
    height: 4em;
    width: 4em;
    text-indent: -999em;
    grid-area: toggle;
}

#menu.tmenuhidden,
#social-header.tmenuhidden {
    display: none;
}

#menu.tmenushow,
#social-header.tmenushow {
    display: block;
}

#menu {
    width: 100%;
    background-color: var(--mainColor);
    margin: 0.5em 0;
}

#menu ul {
    display: block;
    padding: 0;
    margin: 0;
}

#menu ul li {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 1em;
    line-height: 3em;
    margin: 0;
    border-top: 0.5px solid var(--mainColor);
}

#social-header ul {
    display: flex;
    justify-content: center;
    gap: 1em;
}


/*FOOTER*/

#footer-content {
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: 1fr;
    grid-template-areas:
        "logo"
        "info"
        "contacts"
        "social";
    gap: 0em;
}

#footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0em;
}

#footer-bottom ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0;
    margin: 0;
    list-style: none;
}

#footer-bottom ul li {
    width: 100%;
    text-align: center;
}

#madeby {
    margin-top: 0.5em;
    text-align: center;
}


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

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

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

#modulistica-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#modulistica-content .card {
    width: 90%;
}

#modulistica-content .card>a {
    display: block;
    width: 100%;
    text-decoration: none;
}

/* ---------------- */
/* ORGANIGRAMMA      */
/* ---------------- */

.organigramma .card {
    width: 85%;
}

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


#img-campo {
    width: 80%;
}

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

.societa {
    flex-direction: column;
    align-items: stretch;
}

.societa .card {
    width: 100%;
    max-width: 100%;
    flex-basis: auto;
}

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

.players {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding-bottom: 2rem;
}

.player-info {
    padding: 0.75rem;
}

.player-name {
    font-size: 1.05rem;
}

.player-role {
    font-size: 0.9rem;
}

.player-details div {
    flex-wrap: wrap;
}

.player-details dt {
    white-space: nowrap;
    flex-shrink: 0;
}

.player-details dd {
    flex: 1 1 auto;
    min-width: 150px;
}

/* -----------------------
   MINI CALENDARIO
-------------------------- */

.match {
    padding: 1.25rem 1rem 1.4rem;
    width: 95%;
}

.match-competition {
    line-height: 1.5;
}

.match-header .match-date {
    margin-top: 1rem;
    font-size: 0.95rem;
}


/* -----------------------
   SQUADRE
-------------------------- */

.match-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    text-align: center;
}

.match-main .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
}

.match-main .home-team,
.match-main .away-team {
    text-align: center;
}

.match-main .team-name {
    font-size: 1.25rem;
    line-height: 1.3;
}

.match-main .team-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    order: -1;
}


/* -----------------------
   VS / RISULTATO
-------------------------- */

.match-main .match-score {
    order: 2;
    min-width: 0;
    margin: 0.3rem 0;
    font-size: 1rem;
}

.match-main .home-team {
    order: 1;
}

.match-main .away-team {
    order: 3;
}

.match-played .match-score {
    font-size: 1.35rem;
}


/* -----------------------
   LUOGO
-------------------------- */

.match-footer {
    margin-top: 1.25rem;
    padding-top: 0.9rem;
    font-size: 0.9rem;
}