body {
    font-family: 'Archivo', sans-serif;
    background-color: #fff;
    font-weight: 300;
    height: 0;
}

p {
    color: #676767;
    font-weight: 300;
    margin-bottom: 0px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

h2 {
    font-size: 25px;
    font-family: Archivo;
    font-weight: 800;
}

h3 {
    font-size: 21px;
    font-family: Archivo;
    font-weight: 700;
}

a {
    -webkit-transition: .3s all ease;
    -o-transition: .3s all ease;
    transition: .3s all ease;
}

a,
a:hover {
    text-decoration: none !important;
}

.content {
}

.btn-primary {
    cursor: pointer;
    background-color: #f28d17;
    border-radius: 5px;
    border-width: 0px;
    border-style: none;
    color: #fff;
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
}

.btn-primary:hover {
    background-color: #af5d00;
}

.custom-table {
    min-width: 900px;
}

.custom-table thead tr,
.custom-table thead th {
    border-top: none;
    border-bottom: none !important;
}

.custom-table tbody th,
.custom-table tbody td {
    color: #777;
    font-weight: 400;
    padding-bottom: 20px;
    padding-top: 20px;
    font-weight: 300;
}

.custom-table tbody th small,
.custom-table tbody td small {
    color: #b3b3b3;
    font-weight: 300;
}

.custom-table tbody .persons {
    padding: 0;
    margin: 0;
}

.custom-table tbody .persons li {
    padding: 0;
    margin: 0 0 0 -15px;
    list-style: none;
    display: inline-block;
}

.custom-table tbody .persons li a {
    display: inline-block;
    width: 36px;
}

.custom-table tbody .persons li a img {
    border-radius: 50%;
    max-width: 100%;
}

.custom-table tbody tr th,
.custom-table tbody tr td {
    position: relative;
    -webkit-transition: .3s all ease;
    -o-transition: .3s all ease;
    transition: .3s all ease;
}

.custom-table tbody tr th:before,
.custom-table tbody tr th:after,
.custom-table tbody tr td:before,
.custom-table tbody tr td:after {
    -webkit-transition: .3s all ease;
    -o-transition: .3s all ease;
    transition: .3s all ease;
    content: "";
    left: 0;
    right: 0;
    position: absolute;
    height: 1px;
    background: #bfbfbf;
    width: 100%;
    opacity: 0;
    visibility: hidden;
}

.custom-table tbody tr th:before,
.custom-table tbody tr td:before {
    top: -1px;
}

.custom-table tbody tr th:after,
.custom-table tbody tr td:after {
    bottom: -1px;
}

.custom-table tbody tr:hover th,
.custom-table tbody tr:hover td {
    background: rgba(0, 0, 0, 0.03);
}

.custom-table tbody tr:hover th:before,
.custom-table tbody tr:hover th:after,
.custom-table tbody tr:hover td:before,
.custom-table tbody tr:hover td:after {
    opacity: 1;
    visibility: visible;
}

.custom-table tbody tr.active th,
.custom-table tbody tr.active td {
    background: rgba(0, 0, 0, 0.03);
}

.custom-table tbody tr.active th:before,
.custom-table tbody tr.active th:after,
.custom-table tbody tr.active td:before,
.custom-table tbody tr.active td:after {
    opacity: 1;
    visibility: visible;
}

/* Custom Checkbox */
.control {
    display: block;
    position: relative;
    margin-bottom: 25px;
    cursor: pointer;
    font-size: 18px;
}

.control input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.control__indicator {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    border-radius: 4px;
    border: 2px solid #ccc;
    background: transparent;
}

.control--radio .control__indicator {
    border-radius: 50%;
}

.control:hover input ~ .control__indicator,
.control input:focus ~ .control__indicator {
    border: 2px solid #007bff;
}

.control input:checked ~ .control__indicator {
    border: 2px solid #007bff;
    background: #007bff;
}

.control input:disabled ~ .control__indicator {
    background: #e6e6e6;
    opacity: 0.6;
    pointer-events: none;
    border: 2px solid #ccc;
}

.control__indicator:after {
    font-family: 'icomoon';
    content: '\e5ca';
    position: absolute;
    display: none;
}

.control input:checked ~ .control__indicator:after {
    display: block;
    color: #fff;
}

.control--checkbox .control__indicator:after {
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -52%);
    -ms-transform: translate(-50%, -52%);
    transform: translate(-50%, -52%);
}

.control--checkbox input:disabled ~ .control__indicator:after {
    border-color: #7b7b7b;
}

.control--checkbox input:disabled:checked ~ .control__indicator {
    background-color: #007bff;
    opacity: .2;
    border: 2px solid #007bff;
}

.grey {
    background-color: #8b8b8b;
}

.bg-light {
    background-color: #ffffff;
}

.nav-item {
    font-weight: 500;
    font-size: 18px;
    margin-top: 10px;
}

.wrap-top-banner {
    margin-top: 65px;
    height: 200px;
}

.banner-flag {
    height: 100%;
    background-image: url('../images/race_flag.jpg');
    background-position: center center;
    background-size: cover;
}

.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -79px;
}

input[type=email],
input[type=password],
input[type=text],
input[type=search] {
    border-radius: 5px !important;
    border: 1px solid #ced4da;
}

label {
    font-weight: 600;
}

.login h1 a {
    background-image: none,url(/wp-content/themes/128racer/images/logo_128racer.png);
}

.wrapper {
    position: relative;
    height: 100%;
}

.footer {
    left: 0;
    bottom: 5px;
    width: 100%;
}

.language-switcher {
    appearance: none;
    background-color: inherit;
    border: none;
    padding: 0 1em 0 0;
    margin: 0;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    cursor: inherit;
    line-height: inherit;
    outline: none;
}

.form-control {
    border-radius: 5px;
}

.form-control:focus {
    color: #495057;
    background-color: white;
    border-color: #d88d0b;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 174, 0, 0.25);
}

input:focus {
    color: #495057;
    background-color: white;
    border-color: #d88d0b;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 174, 0, 0.25);
}

.list-group {
    border-radius: 5px;
}

.card {
    border-radius: 5px;
}

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.8);

    /* Sfondo scuro trasparente */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.gallery-modal.show {
    opacity: 1;
    visibility: visible;
}

.gallery-content {
    position: relative;
    text-align: center;
    z-index: 1060;
}

.gallery-content img {
    max-width: 90%;
    max-height: 80vh;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.gallery-content img.show {
    opacity: 1;
}

.gallery-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 32px;
    color: #fff;
    z-index: 1061;
    width: 60px;
    height: 60px;
}

.gallery-nav.prev {
    left: 10px;
    background-color: #00000020 !important;
    padding: 0;
}

.gallery-nav.next {
    right: 10px;
    background-color: #00000020 !important;
    padding: 0;
}

.gallery-close {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);

    /* Sfondo semi-trasparente */
    border: none;
    font-size: 32px;
    padding: 15px !important;
    padding-top: 0px !important;
    padding-bottom: 2px !important;
    cursor: pointer;
    color: #fff;
    z-index: 1061;
    background-color: #00000020 !important;
}

.modal {
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    position: relative;
    margin-right: auto;
    margin-left: auto;
    margin-top: 25vh;
}

.modal-header .close {
    margin: 0;
}

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

.login-modal-open {
    padding-right: 0px !important;
    display: flex !important;
}

.modal-backdrop {
    z-index: 1040;

    /* Anche lo sfondo del modal deve avere un z-index alto */
}

.navbar {
    z-index: 1000;

    /* Assicurati che la navbar abbia un z-index inferiore rispetto al modal */
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
}

input[type=email],
input[type=password],
input[type=text] {
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: white;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 5px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

label {
    font-weight: 600;
    color: #000;
}

button:not(:disabled),
[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled) {
    cursor: pointer;
    background-color: #f28d17;
    border-radius: 5px;
    border-width: 0px;
    border-style: none;
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
    color: #fff;
}

a {
    color: #000;
}

a:hover {
    color: #555;
}

a:focus {
    outline: none;
}

.dropdown-item.active,
.dropdown-item:active {
    color: white;
    text-decoration: none;
    background-color: #f28d17;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    color: white;
    background-color: #af5d00;
    border-color: #9b5301;
}

.btn:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.btn-primary:focus,
.btn-primary.focus {
    color: white;
    background-color: #f28d17;
    border-color: #9b5301;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 38, 0.5);
}

#login h1 a,
.login h1 a {
    background-image: url(https://draft.128racer.com/wp-content/themes/128racer-theme/images/logo_128racer.png);
    height: 15px;
    width: 320px;
    background-size: 320px 40px;
    background-repeat: no-repeat;
    padding-bottom: 30px;
}

@media (min-width:992px) {
    .logo-top {
        width: 250px;
    }
}

@media (max-width:991px) {
    .logo-top {
        width: 190px;
    }
}

@media (min-width:992px) {
    .titolo-header {
        color: #000000;
        z-index: 100;
        font-size: 38px;
        font-family: 'Archivo', sans-serif;
        font-weight: 700;
        background-color: #ffffff;
        padding: 5px 50px;
        border-radius: 5px;
        border: 2px solid #f28d17;
    }
}

@media (max-width:991px) {
    .titolo-header {
        color: #000000;
        z-index: 100;
        font-size: 25px;
        font-family: 'Archivo', sans-serif;
        font-weight: 700;
        background-color: #ffffff;
        padding: 5px 50px;
        border-radius: 5px;
        border: 2px solid #f28d17;
    }
}

@media (min-width:992px) {
    .logo-footer {
        width: 200px;
    }
}

@media (max-width:991px) {
    .logo-footer {
        width: 170px;
        padding-bottom: 25px;
    }
}

@media (max-width:991px) {
    .blocco-footer {
        justify-content: space-evenly;
        display: flex;
        order: 1;
    }
}

@media (min-width:992px) {
    .blocco-footer {
        justify-content: space-evenly;
        display: flex;
        align-items: center;
    }
}

.modify-button{
    color: #000 !important;
    background-color: transparent !important;
}
.navbar-light .navbar-nav .nav-link {
    padding-bottom: 0;
    padding-top: 0;
}


