/*
Theme Name: Divi Child Theme 3
Theme URI: https://www.pikta.it
Description: Child Theme For Divi
Author: Nikok
Author URI: https://www.pikta.it
Version: 1.0.0
Template: Divi
*/

/* /////////////////////////////////////////////////////////////////////////// */
/* INDEX ///////////////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////////////////////////////////////// */

.hide {
  display: none !important;
}

.target {
  background-image: url(https://nikok.pikta.it/wp-content/uploads/2025/09/shutterstock_2190840355-min.jpg);
  background-position: left top;
  background-size: auto;
  background-repeat: repeat;
  background-attachment: fixed;
}

.et_pb_section {
  padding: 0 !important;
}

#et_mobile_nav_menu {
  display: none !important;
}

.body-page-11 .info_box .flag {
  height: 20px;
}

#logo {
  max-height: 130% !important;
  margin: 25px 0 0 -25px;
}

.et_fixed_nav.et_show_nav #page-container {
  padding-top: 63px !important;
}

#mega-menu-wrap-primary-menu
  .mega-menu-toggle
  .mega-toggle-block-0
  .mega-toggle-animated {
  align-self: flex-start !important;
  transform: scale(1) !important;
  margin: -6px -20px 0px 0 !important;
}

#mega-menu-wrap-primary-menu
  .mega-menu-toggle
  .mega-toggle-block-0
  .mega-toggle-animated-inner,
#mega-menu-wrap-primary-menu
  .mega-menu-toggle
  .mega-toggle-block-0
  .mega-toggle-animated-inner::before,
#mega-menu-wrap-primary-menu
  .mega-menu-toggle
  .mega-toggle-block-0
  .mega-toggle-animated-inner::after {
  background-color: #ffff00 !important;
}

#mega-menu-wrap-primary-menu
  .mega-menu-toggle.mega-menu-open
  ~ button.mega-close {
  display: none !important;
}

.index-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: masonry;
  gap: 10px 10px;
  background: white;
  width: 100%;
  padding: 20px;
}

.index-container > div {
  border: 3px solid #ccc;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: fit-content;
}

.fa-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #007bff;
  /* Set your spinner color */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  /* Add a spinning animation */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.et_pb_menu__wrap {
  position: absolute;
  top: 0;
  right: 0;
}

.index-box-container {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #cdcdcd;
  margin: 10px auto;
  border-radius: 10px;
}

.squadra_random > div,
.torneo_random > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loading-indicator {
  display: inline-flex;
  margin: 10px auto;
  position: relative;
  z-index: 5;
  top: 150px;
  left: 0;
  background: #c6c6c622;
  border: none;
  margin: 0;
  justify-content: center;
  align-items: center;
}

.index-box-container {
  position: relative;
}

.sfondo-loading {
  position: absolute;
  z-index: 20;
  box-sizing: border-box;
  background: #ffffffaa;
  margin: -10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  width: 100%;
  height: 100%;
}

.sfondo-loading.active {
  opacity: 1;
  pointer-events: auto;
  display: inline-block;
}

.squadra_random a,
.squadra_random a:hover,
.torneo_random a,
.torneo_random a:hover {
  text-decoration: none;
  color: #000000;
}

.nome_squadra {
  font-size: 1.5rem;
  padding: 10px 30px;
  align-self: center;
  font-weight: 600;
  line-height: 1.5rem;
}

.nome_torneo {
  font-size: 1.5rem;
  line-height: 1.5rem;
  padding: 0px 10px;
  align-self: center;
  font-weight: 600;
}

.squadra_random .flag_squadra {
  width: 120px;
  margin: 10px 0 30px;
}

.torneo_random .flag_torneo {
  width: 60%;
  margin: 10px auto 30px;
}

.torneo_random .flag {
  width: 100%;
  padding: 10px 0 0 !important;
  margin: 0 auto;
}

.risultati {
  font-size: 0.8rem;
}

.host_torneo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
}

.link_squadra,
.link_torneo {
  background: rgba(255, 255, 255, 0.4);
  padding: 5px;
  cursor: pointer;
  vertical-align: baseline;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.index-box .title_squadra,
.index-box .title_torneo {
  font-size: 25px;
  font-weight: 500;
  color: #000000;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 44%,
    rgb(118 166 255) 45%,
    rgb(118 166 255) 100%
  );
  margin-bottom: 20px;
  justify-content: center;
  flex: 0 0 100%;
}

.torneo_random .full_width_torneo,
.torneo_random .podio-torneo {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.torneo_random .host {
  display: flex;
  flex-direction: column;
  flex: 3;
  justify-content: space-between;
  align-items: flex-start;
}

.torneo_random .torneo_flag {
  display: flex;
  flex: 1;
}

.head,
.totali {
  display: flex;
  flex-direction: row;
  font-weight: 600;
}

.head > div,
.totali > div {
  flex: 0 0 50px;
  padding: 3px;
  border: 1px solid #ccc;
  text-align: center;
}

.risultati .mondiali {
  background-color: #000000;
  color: #ffffff;
}

.risultati .vittorie {
  background-color: #00ff00;
  color: #000000;
}

.risultati .pareggi {
  background-color: #cccc00;
  color: #000000;
}

.risultati .sconfitte {
  background-color: #ff0000;
  color: #000000;
}

.risultati .pgiocate {
  background-color: #ffffff;
  color: #000000;
}

.risultati .gf {
  background-color: #000000;
  color: #ffffff;
}

.risultati .gs {
  background-color: #000000;
  color: #ffffff;
}

.break {
  flex-basis: 100%;
  /* occuperà tutta la larghezza, andrà a capo */
}

.best-result {
  flex-direction: column !important;
}

.best-result-title {
  font-size: 1rem;
  padding: 4px;
  font-weight: 500;
}

.best-result-result span,
.best-result-result a,
.best-result-result a:hover {
  font-size: 1rem;
  padding: 4px;
  font-style: italic;
  color: #000000;
  text-decoration: none;
}

.refresh-squadra,
.refresh-torneo {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px;
  background: linear-gradient(
    142deg,
    rgba(4, 94, 3, 1) 0%,
    rgba(87, 199, 133, 1) 58%,
    rgba(4, 94, 3, 1) 100%
  );
  color: #ffff00;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.puntini {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .index-box {
    display: flex;
    flex-direction: column;
    margin-top: 80px;
  }

  .index-box > div {
    width: 100%;
    padding: 10px;
    font-size: small;
    margin: 20px 0;
  }

  .head > div,
  .totali > div {
    flex: 0 0 33px;
    padding: 3px;
    border: 1px solid #ccc;
    text-align: center;
  }
}

/* /////////////////////////////////////////////////////////////////////////// */
/* PODIO /////////////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////////////////////////////////////// */

.podio {
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.podio_torneo {
  position: relative;
  z-index: 5;
}

.second_place,
.first_place,
.third_place {
  display: flex;
  flex-direction: column;
}

.second_place .bar,
.first_place .bar,
.third_place .bar {
  display: flex;
  padding: 10px;
  align-items: flex-start;
  justify-content: center;
  font-size: x-large;
  color: #00000099;
  font-weight: 700;
  -webkit-text-stroke: 1px #ffffff22;
  text-shadow: 3px 3px 0 #ffffff22, -1px -1px 0 #ffffff22, 1px -1px 0 #ffffff22,
    -1px 1px 0 #ffffff22, 1px 1px 0 #ffffff22;
}

.first_place .team {
  flex: 6;
}

.second_place .team {
  flex: 8;
}

.third_place .team {
  flex: 10;
}

.first_place .bar {
  background: #ffd700;
  flex: 9;
}

.second_place .bar {
  background: #c0c0c0;
  flex: 5;
}

.third_place .bar {
  background: #b08d57;
  flex: 3;
}

.second_place .team,
.first_place .team,
.third_place .team {
  display: flex;
  padding: 10px;
  align-items: flex-end;
  justify-content: center;
}

.podio .team .container-flag-podium {
  width: 60px;
  padding: 0 30px 20px;
}

.container-flag-podium {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 37px;
  padding: 0 !important;
  z-index: 1;
}

.container-flag-podium .flag {
  width: 60px;
  height: 37px;
  padding: 0 !important;
}

/* /////////////////////////////////////////////////////////////////////////// */
/* SQUADRA /////////////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////////////////////////////////////// */

.submenu_squadre {
  direction: rtl;
}

.menu_squadre {
  width: 600px;
  height: 600px;
  overflow-y: hidden;
  overflow-x: hidden;
  scrollbar-width: thin;
  position: relative;
  background: #fff;
  margin-right: -500px;
}

.menu_squadre-1,
.menu_squadre-2,
.menu_squadre-3 {
  position: absolute;
  display: block;
}

.menu_squadre-1 {
  top: 5px;
  left: 0px;
}

.menu_squadre-2 {
  top: 5px;
  left: 200px;
}

.menu_squadre-3 {
  top: 5px;
  left: 400px;
}

.menu_squadre nav {
  padding-right: 9px;
}

.menu_squadre nav > * {
  direction: ltr;
}

.menu_squadre .ul-menu-sq {
  width: 260px;
  list-style-type: none;
  padding: 0;
}

.menu_squadre .li-menu-sq {
  background-size: 100px 100% !important;
  background-repeat: no-repeat !important;
  background-position-x: right !important;
  position: relative;
  line-height: normal;
  border: 1px solid #ececec;
  padding: 4px 0px 0px 9px;
  border-radius: 0;
  margin: 0;
  height: 25px;
  width: 258px;
  transition: width 0.5s;
  font-size: 12px;
  font-family: inherit;
  color: #333333;
}

.menu_squadre-1 .li-menu-sq,
.menu_squadre-2 .li-menu-sq,
.menu_squadre-3 .li-menu-sq {
  background-size: auto 100% !important;
  background-repeat: no-repeat !important;
  background-position-x: right !important;
  position: relative;
  line-height: 1em;
  border: 1px solid lightgrey;
  border-radius: 0;
  padding: 0.3em 0em 0em 1em;
  margin: 1px 0;
  height: 2em;
  width: 190px;
  transition: width 0.5s;
}

.menu_squadre .li-menu-sq a {
  color: #000;
  font-weight: 700;
  display: block;
  width: 100%;
  height: 100%;
}

.menu_squadre .et_pb_menu .et_pb_menu__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.menu_squadre .et_pb_menu .et_pb_menu__menu li {
  margin-right: 0 !important;
  margin-bottom: 10px;
}

.menu_squadre .et_pb_menu .et_pb_menu__menu a {
  display: block;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  width: 100%;
  text-align: left;
}

.menu_squadre .et_pb_menu .et_pb_menu__menu a:hover {
  background-color: #f0f0f0;
}

.et_pb_code_1 {
  flex-basis: 48%;
  flex-grow: 2;
}

.et_pb_code_2 {
  flex-basis: 48%;
  flex-grow: 1;
}

.et_pb_code_3 {
  flex-grow: 100%;
}

[class^="title-page-"] {
  display: inline-block;
  position: absolute;
  z-index: 51;
  top: 80px;
  right: 5rem;
  font-size: 3rem;
  font-weight: 700;
  color: #ffff00;
  text-shadow: 2px 2px #045e03;
}

[class^="body-page-"] {
  display: inline-block;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 5;
  margin-bottom: 40px;
}

[class^="box_"] {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
}

[class^="elenco_"] th {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
}

[class^="elenco_"] .paginazione {
  width: 100%;
}

[class^="elenco_"] td {
  height: 35px;
  vertical-align: middle !important;
}

.flag {
  width: 30px;
  padding: 0 !important;
}

[class^="elenco_"] .trophy {
  width: 20px !important;
}

[class^="elenco_"] .white_row {
  height: 50px !important;
  border: 0;
  text-align: center;
  vertical-align: middle;
  font-size: 25px;
  font-weight: 500;
  width: 100%;
}

[class^="title_"] {
  height: 50px !important;
  background: #ffffff;
  border: 0;
  text-align: center;
  vertical-align: baseline;
  font-size: 25px;
  font-weight: 500;
  position: relative;
  top: 0;
  left: 0;
  display: inline-block;
  width: 100%;
  padding-top: 10px;
}

[class^="cage_"] {
  height: fit-content;
  scrollbar-width: thin;
  scrollbar-color: #eeeeee #bbbbbb;
  padding: 0 2% 0 1%;
  max-width: 1200px;
  color: #000000;
  justify-self: center;
}

[class^="cage_"] a,
[class^="cage_"] a:hover {
  text-decoration: none;
  color: #000000;
}

[class^="barra_"] {
  height: 30px;
  top: 30px;
  display: table-row;
  width: 100%;
}

.cage_info_stato .name_state {
  width: 100%;
}

.cage_info_stato .name_box {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding-bottom: 15px;
  border-bottom: 1px solid black;
  margin-bottom: 15px;
}

.cage_info_stato .single_name {
  margin: 10px 25px;
  text-align: center;
  display: flex;
  box-sizing: border-box;
  flex-direction: row;
  justify-content: center;
  vertical-align: middle;
  min-width: 15%;
}

.mini-box {
  max-width: 100%;
}

.cage_info_stato .name_box span {
  font-size: 16px;
  padding: 0 5px;
  display: flex;
  white-space: nowrap;
  flex: 2;
}

.cage_info_stato .single_name .flag_text {
  position: relative;
  left: 0;
  top: 3px;
  width: 20px;
  height: 12px;
  display: flex;
}

.cage_info_stato .single_name .wiki {
  display: flex;
  width: 20px;
  height: 20px;
}

.cage_info_stato .single_name .wiki img {
  width: 20px;
  height: 20px;
}

.cage_info_stato .original span {
  font-size: 25px;
}

.cage_info_stato .original {
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  padding: 15px 0 15px 0;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  margin-bottom: 15px;
}

[class^="trans_"] {
  display: inline-block;
  position: relative;
  padding-left: 20px;
}

[class^="trans_"]:before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 4px;
  top: 11px;
  transform: translateY(-50%);
}

.trans_ita:before {
  background-image: url("https://nikok.pikta.it/wp-content/themes/Divi-child/img/flags/ITA.png");
  left: 0;
  top: 8px;
}

.trans_eng:before {
  background-image: url("https://nikok.pikta.it/wp-content/themes/Divi-child/img/flags/ENG.png");
}

.trans_esp:before {
  background-image: url("https://nikok.pikta.it/wp-content/themes/Divi-child/img/flags/ESP.png");
}

.trans_ger:before {
  background-image: url("https://nikok.pikta.it/wp-content/themes/Divi-child/img/flags/GER.png");
}

.trans_fra:before {
  background-image: url("https://nikok.pikta.it/wp-content/themes/Divi-child/img/flags/FRA.png");
}

.trans_por:before {
  background-image: url("https://nikok.pikta.it/wp-content/themes/Divi-child/img/flags/POR.png");
}

.trans_hol:before {
  background-image: url("https://nikok.pikta.it/wp-content/themes/Divi-child/img/flags/NLD.png");
}

.trans_rus:before {
  background-image: url("https://nikok.pikta.it/wp-content/themes/Divi-child/img/flags/RUS.png");
}

.trans_ara:before {
  background-image: url("https://nikok.pikta.it/wp-content/themes/Divi-child/img/flags/SAU.png");
}

.trans_cin:before {
  background-image: url("https://nikok.pikta.it/wp-content/themes/Divi-child/img/flags/CHN.png");
}

.trans_jap:before {
  background-image: url("https://nikok.pikta.it/wp-content/themes/Divi-child/img/flags/JPN.png");
}

.single_info_box .big,
.single_info_box .right {
  font-size: 1rem;
}

.lil {
  font-size: 14px;
  font-style: italic;
  line-height: normal;
}

.single_info_box .left,
.single_info_box .right {
  display: flex;
  padding: 5px 10px;
}

.single_info_box .left {
  width: 66.7%;
  flex-direction: column;
  text-align: left;
}

.single_info_box .right {
  width: 33.3%;
  flex-direction: row;
  justify-content: end;
  text-align: right;
}

.single_info_box .right span {
  display: flex;
  line-height: normal;
}

.info_box {
  display: flex;
  flex-direction: column;
  width: 100% !important;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
}

.map_and_info {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap-reverse;
}

/* Wrapper mappa: margini, e gestione quadrato */
.gjm-map-wrap {
  width: calc(100% - 80px);
  margin: 0 10px;
  position: relative;
  display: inline-block;
  aspect-ratio: 1 / 1;
}

.gjm-map-wrap > #gjm-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.single_info_box {
  display: flex;
  box-sizing: border-box;
  flex-direction: row;
  justify-content: center;
  vertical-align: middle;
  margin: 0 5px;
  padding: 3px;
  width: 100%;
  border-bottom: 1px dotted #cccccc;
}

.single_info_box:nth-child(even) {
  background-color: #dfdfdf;
}

.popup_translate {
  display: none;
  z-index: 50;
  width: 500px;
  text-align: left;
  background: #ffffff;
  box-shadow: 3px 3px 6px #666666;
  padding: 5px;
}

.box_foto_video_squadra {
  display: flex;
  box-sizing: border-box;
  flex-direction: row;
  justify-content: center;
  padding: 20px;
  flex: 1;
}

.box_foto_video_squadra .foto_squadra,
.box_foto_video_squadra .video_squadra {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.box_foto_video_squadra .foto_squadra .fotos,
.box_foto_video_squadra .video_squadra .videos {
  display: flex;
  flex: 1;
  flex-direction: row;
  justify-content: last baseline;
  flex-wrap: wrap;
}

.box_foto_video_squadra .foto_squadra .fotos,
.box_foto_video_squadra .video_squadra .videos .single_video_squadra {
  display: flex;
  flex: 1;
  flex-direction: row;
  justify-content: last baseline;
  flex-wrap: wrap;
}

.container_info_box {
  display: flex;
  flex-direction: column;
}

.single_video_squadra {
  margin: 20px;
  display: flex;
  flex: 1;
}

.mappa {
  display: flex;
  flex: 0 0 600px;
}

#mega-menu-item-33 > ul.mega-sub-menu {
  position: absolute !important;
  left: unset !important;
  width: 640px !important;
  height: 640px !important;
  overflow-y: scroll !important;
}

.et_mobile_nav_menu,
.cell {
  display: none;
}

.no-cell {
  display: block;
}

.cell {
  display: none;
}

.df_at_content_active {
  display: block !important;
}

.df_at_content_inactive {
  display: none !important;
}

#post-11 .background-dinamico .et_pb_column_3_5 {
  width: calc(100% - 420px) !important;
}

#post-11 .background-dinamico .et_pb_column_2_5 {
  width: 420px !important;
}

.wcs span {
  display: flex;
}

.pari {
  background: #aaaaaa;
}

.dispari {
  background: #ffffff;
}

.df_at_all_tabs_wrap {
  background: rgba(255, 255, 255, 0.6);
}

.buttons-box,
.footer-buttons-box {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 7px;
  padding: 10px 0 30px;
  position: relative;
  z-index: 10;
}

.buttons-box .button,
.footer-buttons-box .footer-button {
  display: flex;
  border-radius: 5px;
  max-width: 40px;
  height: 40px;
  background: #045e03;
  background: linear-gradient(
    142deg,
    rgba(4, 94, 3, 1) 0%,
    rgba(87, 199, 133, 1) 58%,
    rgba(4, 94, 3, 1) 100%
  );
  flex: 1;
  position: relative;
  z-index: 20;
  color: #ffff00;
  padding: 5px;
}

/* /////////////////////////////////////////////////////////////////////////// */
/* UI GAME /////////////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////////////////////////////////////// */

.ui_game {
  margin: 50px auto 20px;
  display: flex;
  flex-direction: column;
  width: 400px;
  max-width: 100%;
  padding-bottom: 3px;
  border-bottom: 1px dotted #000000;
}

.elenco_partite_ai_mondiali .ui_game {
  margin: 20px auto;
}

.single_torneo:nth-child(even) .ui_game {
  border-bottom: 1px dotted #ffffff;
}

.ui_game .data,
.ui_game .torneo {
  margin: 4px auto;
}

.ui_game .home {
  display: grid;
  grid-template-columns: 1fr 4fr;
  grid-template-rows: 1fr;
  margin: 0 0 0 -10px;
}

.ui_game .away {
  display: grid;
  grid-template-columns: 4fr 1fr;
  grid-template-rows: 1fr;
  margin: 0px -10px -3px -0px;
}

.ui_game .flag {
  width: 50px;
}

.ui_game .home .flag,
.ui_game .away .flag {
  width: 50px;
  min-width: 50px;
}

.ui_game .home,
.ui_game .away {
  align-items: baseline;
  /* Larghezza del contenitore */
  white-space: nowrap;
  /* Impedisce il ritorno a capo */
  text-overflow: ellipsis;
}

.ui_game .home span,
.ui_game .away span {
  /* Nasconde il testo che eccede */
  text-overflow: ellipsis;
  height: 40px;
  padding: 10px 0;
}

.ui_game .home span {
  text-align: left;
  padding-right: 5px;
  place-self: baseline;
  margin-left: 5px;
}

.ui_game .away span {
  text-align: right;
  padding-right: 5px;
  place-self: end;
  margin-right: 15px;
}

.ui_game .result {
  font-size: 2.5em;
  padding: 15px 0 20px;
  font-weight: 600;
}

.ui_game .dts {
  font-size: 16px;
}

.adatta-font {
  font-size: 30px;
  display: block;
  width: fit-content;
}

.match {
  padding: 10px 0;
  background: #ededed;
  border-radius: 0 30px 0 30px;
  border: 1px solid #000000;
  display: inline-flex;
  flex-direction: column;
  margin: 5px 0;
  width: 100%;
}

.marcatori .flag {
  width: 20px;
  height: fit-content;
  margin: 0 4px;
}

.marcatori span {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: end;
  padding: 0 0 2px;
  font-size: 1em;
}

.marcatore {
  padding: 3px 0;
  margin: 5px 9px 3px 0px;
}

.marcatori {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: right;
  padding: 3px 0;
}

/* /////////////////////////////////////////////////////////////////////////// */
/* GIRONI //////////////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////////////////////////////////////// */

.groups {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 2px solid #045e03;
  border-bottom: 2px solid #045e03;
  border-radius: 0 50px 0 50px;
}

.groups-matches {
  flex: 1;
  padding: 20px;
}

.body-group {
  display: flex;
  flex-direction: row;
  align-self: normal;
  padding: 10px 30px;
}

.gironi {
  display: flex;
  flex-direction: row;
  padding: 40px 60px 20px 30px;
  background: #ededed;
  border-radius: 0 30px 0 30px;
  border: 1px solid #000000;
  margin: 40px 0 5px 0;
  width: fit-content;
  height: fit-content;
}

.table {
  display: flex;
  flex-direction: column;
  flex: 0 0 400px;
  align-items: normal;
}

.table .head,
.table .body {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.table .row-head {
  background: #d9d9d9;
  font-weight: bold;
}

.row {
  display: flex;
}

.row > .cel {
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 5px;
  border-bottom: 1px dotted #999999;
  text-align: center;
  flex: 1;
  box-sizing: border-box;
}

.table .cell2 {
  display: flex;
  flex: 0 0 200px;
  text-align: left;
  align-items: center;
}

.cell2 .team span {
  padding: 0 5px;
  display: block;
  width: 170px;
}

.groups .title-group {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex: 1;
  z-index: 3;
  top: -19px;
  right: 15px;
  color: #045e03;
  text-shadow: 0px 1px white;
  font-weight: 500;
}

.row > .cell10 {
  flex: 1;
  /* uguale alle altre */
}

.groups .title-group .g1 {
  font-size: 20px;
}

.groups .title-group .g2 {
  font-size: 80px;
  font-weight: 500;
  margin-left: 30px;
}

.advanced {
  background-color: rgba(0, 200, 0, 0.5);
}

.gara-bracket {
  border-bottom: 1px solid #999;
  border-top: 1px solid #999;
  border-right: 1px solid #999;
  flex: 1;
  padding: 0 20px;
}

.grid-marcatori {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}
.grid-marcatori-div1 {
  display: grid;
  grid-template-columns: 40px 40px 1fr;
  gap: 3px;
}
.grid-marcatori-div2 {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3px;
  -moz-transition: height 1s linear;
  -webkit-transition: height 1s linear;
  transition: height 1s linear;
}
#classifica_marcatori .grid-marcatori-div2 {
  display: grid !important;
  height: fit-content !important;
}
.grid-marcatori .grid-header {
  font-weight: bold;
  padding: 6px;
  border-bottom: 1px solid #ccc;
}
.grid-marcatori .grid-cell {
  padding: 6px;
  border-bottom: 1px solid #eee;
}

.arrow {
  -moz-transition: transform 1s linear;
  -webkit-transition: transform 1s linear;
  transition: transform 1s linear;
}
.flip {
  transform: rotate(-180deg);
}

.container-torneo {
  padding-bottom: 60px;
}

/* /////////////////////////////////////////////////////////////////////////// */
/* BRACKET /////////////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////////////////////////////////////// */

#mega-menu-item-custom_html-3 .textwidget {
  text-align: right;
  display: flex;
}

#mega-menu-item-34 > ul.mega-sub-menu {
  left: unset !important;
  width: fit-content !important;
}

.menu_torneo {
  display: flex;
  flex-direction: row;
  align-items: start;
}

[class^="menu_torneo-"] {
  display: flex;
  flex-direction: column;
  flex: 0 0 300px;
}

.menu_torneo img {
  display: flex;
  width: 40px;
}

.menu_torneo span {
  white-space: break-spaces;
  display: flex;
  flex: 0 0 200px;
  justify-content: end;
  place-items: end;
}

.menu_torneo a {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 10px 0 !important;
}

.menu_torneo ul {
  font-size: 40px;
  list-style-type: none;
  font-weight: 700;
}

.menu_torneo li {
  border-bottom: 1px dotted #999;
  padding: 0 10px;
  margin: 1px 0;
}

#torneo {
  display: inline-block;
  height: auto;
  max-height: none;
  overflow: visible;
}

.bracket-container {
  display: flex;
  align-items: center;
  position: relative;
  flex-direction: row;
  justify-content: flex-start;
}

.max {
  display: flex;
  flex-direction: column;
  padding-left: 2px;
  margin-right: 42px;
}

.label {
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  flex: 0 0 auto;
  padding: 10px 0;
  display: flex;
}

.partite {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin-top: 15px;
}

.risult {
  padding: 0 0 8px 0;
  display: flex;
  flex-direction: column;
}

.gara-bracket {
  width: 200px;
}

.risult {
  position: relative;
  z-index: 10;
  padding: 0;
  background-color: #fff;
  display: flex;
  align-self: flex-end;
}

.risult .ris {
  text-align: center;
  border: 2px solid black;
  padding: 7px 0;
  width: 37px;
}

.gara-bracket .bold {
  font-weight: bold;
}

.matches {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 22px;
}

.gara-bracket .team {
  padding: 3px 8px 4px;
  margin-bottom: 5px;
}

.risult .ris-2 {
  position: absolute;
  top: 18px;
  left: 0.7em;
  font-size: 0.7em;
  text-shadow: 1px 1px 1px #ffffff;
}

.gara-bracket .home,
.gara-bracket .away {
  display: flex;
  flex-direction: row;
}

.gara-bracket .flag {
  width: 25px;
  height: 25px;
  border-radius: 100px;
  margin-right: 5px;
  border: 0;
  margin-top: 5px;
}

[id^="gr-"] .risult {
  top: -23px;
}

[id^="gr-"] .gara-bracket .home,
[id^="gr-"] .gara-bracket .away {
  margin: 13px 0 -8px 0;
}

[id^="gr-"] .matches {
  margin-bottom: 28px;
}

#r1 .matches,
#r1 .results,
[id^="gr-"] .matches,
[id^="gr-"] .results {
  margin-bottom: 22px;
}

[id^="gr-"] .match:nth-child(odd) {
  background-color: #cdcdcd;
}

#r1 .home .team span,
#r1 .away .team span {
  white-space: nowrap;
  width: 100px;
  overflow: hidden;
  display: inline-block;
  line-height: normal;
  height: 30px;
  margin-bottom: 0px;
}

#final3 {
  position: absolute;
  top: 130px;
  left: 1130px;
}

#final3 svg {
  position: absolute;
  top: -16px;
  left: -2px;
}

#final3 .risult {
  top: -8px;
}

#final3 .gara-bracket .team {
  padding: 3px 8px 0px;
  margin-bottom: 5px;
}

.linee {
  top: -8px;
  position: absolute;
  z-index: -1;
}

.squadre_bottoni,
.torneo_bottoni {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  background: linear-gradient(
    142deg,
    rgba(4, 94, 3, 1) 0%,
    rgba(87, 199, 133, 1) 58%,
    rgba(4, 94, 3, 1) 100%
  );
  padding: 5px 10px;
  border-radius: 0 10px 0 10px;
}

.f3_torneo_bottoni {
  background: linear-gradient(
    142deg,
    rgba(4, 94, 3, 1) -100%,
    rgba(87, 199, 133, 1) 58%,
    rgba(4, 94, 3, 1) 100%
  );
  border-radius: 0 0 10px 10px;
  display: flex;
  flex-direction: row;
  width: fit-content;
  padding: 5px;
  position: relative;
  margin: 0 0 10px 48%;
  top: -100px;
  -webkit-animation: slide-bottom 0.5s ease-in both;
  animation: slide-bottom 0.5s ease-in both;
}

.buttons-box .torneo_bottone,
.buttons-box .f3_bottone,
.buttons-box .squadra_bottone {
  background: #ffffff;
  color: #000000;
}

.squadre_bottoni .squadre_bottone {
  background: #ffffff;
  border: 2px solid #ffff00 !important;
  box-shadow: 0 0 0.1rem #ffff00, 0 0 0.1rem #ffff00,
    0 0 0.5rem var(--neon-button-color-3),
    0 0 0.5rem 8px var(--neon-button-color-3);
  padding: 3px 0 1px 0;
  border-radius: 50px;
}

@-webkit-keyframes slide-bottom {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(50px);
    transform: translateY(50px);
  }
}
@keyframes slide-bottom {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(50px);
    transform: translateY(50px);
  }
}

/* .squadre_bottone,
.torneo_bottone {
  background: #cecece;
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  border-radius: 5px;
  flex: 0 0 150px;
  color: #045e03;
  transition: all 0.3s ease;
}

.squadre_bottone::after,
.torneo_bottone::after,
.squadre_bottone::before,
.torneo_bottone::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #045e03;
  margin-top: 5px;
  transition: all 0.3s ease;
}

.squadre_bottone:hover,
.torneo_bottone:hover {
  background: #045e03;
  color: #cecece;
}

.squadre_bottone::after,
.torneo_bottone:hover::after,
.squadre_bottone::before,
.torneo_bottone:hover::before {
  background: #cecece;
} */

.gara-bracket .team span {
  height: 25px !important;
  width: 200px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  line-height: normal;
  margin-bottom: 0;
}

#torneo .data span,
#torneo .torneo span,
#torneo .marcatori span {
  color: white;
}
#torneo .marcatore span {
  color: #000000;
  font-size: 0.8em;
  line-height: 0.8em;
}
#classifica_marcatori .marcatore span {
  color: #000000;
  font-size: 1em;
  line-height: 1em;
}

#torneo .autogol {
  font-size: 0.6em;
  padding: 0;
  margin: 0 5px 0 0;
}

.cell2 .code span {
  display: none;
}

.cont_info_img {
  display: inline;
  width: 20px;
  height: 20px;
  position: absolute;
  z-index: 10;
  top: -10px;
  right: -10px;
}

.info {
  width: 16px;
  height: 16px;
  margin: 6px 10px 0 0;
}

[class^="elenco_"] .white_row,
.ui_game .home span,
.ui_game .away span {
  position: relative;
}

@media only screen and (min-width: 1350px) {
  #post-475 .et_pb_section,
  #post-475 .et_pb_row {
    padding: 0 !important;
  }
}

/* /////////////////////////////////////////////////////////////////////////// */
/* MOBILE /////////////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////////////////////////////////////// */

@media (max-width: 768px) {
  body {
    margin-bottom: 50px !important;
  }

  .menu_squadre .et_pb_menu .et_pb_menu__menu {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
  }

  #mega-menu-wrap-primary-menu .mega-menu-toggle {
    background: transparent !important;
  }

  #mega-menu-wrap-primary-menu
    .mega-menu-toggle
    .mega-toggle-block-1
    .mega-toggle-label,
  #mega-menu-wrap-primary-menu .mega-menu-toggle .mega-toggle-block-1:after {
    color: #007700 !important;
  }

  .menu_squadre .et_pb_menu .et_pb_menu__menu li {
    margin-bottom: 0;
  }

  .menu_squadre .et_pb_menu .et_pb_menu__menu a {
    border-bottom: none;
  }

  .page-id-12 .background-dinamico {
    margin-top: 0 !important;
  }

  .cell {
    display: block;
  }

  .no-cell {
    display: none;
  }

  .menu_squadre.cell {
    width: 260px;
    margin-right: 0;
    height: fit-content;
  }

  #mega-menu-wrap-primary-menu
    #mega-menu-primary-menu
    li.mega-align-bottom-right
    > ul.mega-sub-menu {
    right: auto;
  }

  #mega-menu-wrap-primary-menu
    .mega-menu-toggle.mega-menu-open
    + #mega-menu-primary-menu {
    left: 0;
    width: 260px;
  }

  #mega-menu-wrap-primary-menu
    #mega-menu-primary-menu
    > li.mega-menu-megamenu
    > ul.mega-sub-menu {
    max-width: 260px;
  }

  .popup_translate {
    width: 100%;
    bottom: 0;
    left: 0;
    position: fixed;
  }

  .et_pb_row_0.et_pb_row.background-dinamico {
    margin-top: -30px !important;
  }

  .df_at_nav_container {
    -ms-flex-direction: row;
    flex-direction: row;
  }

  .df_at_nav {
    padding: 10px;
  }

  .df_at_title {
    font-size: 12px;
    font-weight: 600;
  }

  .df_at_all_tabs {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 5px;
  }

  .df_at_all_tabs a,
  .df_at_all_tabs a:hover {
    color: #000000;
    text-decoration: none;
  }

  .df_at_all_tabs,
  [class^="cage_"],
  .name_state,
  .container_info_box {
    display: flex !important;
    flex-direction: column !important;
    justify-self: stretch !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 96%;
    margin: 0 auto;
  }

  .container_info_box {
    display: inline-block !important;
    width: 100%;
    margin: 0;
  }

  [id^="state-map-"] {
    margin: 10px auto;
    display: inline-block;
    position: relative;
    z-index: 999999;
    touch-action: manipulation !important;
  }

  .info-box {
    width: 98%;
    margin: 0 auto;
  }

  .name_box {
    flex-direction: row !important;
    justify-self: stretch !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  #mega-menu-wrap-primary-menu
    #mega-menu-primary-menu
    li.mega-menu-item.mega-toggle-on
    > ul.mega-sub-menu,
  #mega-menu-wrap-primary-menu
    #mega-menu-primary-menu
    li.mega-menu-megamenu.mega-menu-item.mega-toggle-on
    ul.mega-sub-menu {
    width: fit-content !important;
  }

  .et_pb_menu_inner_container.clearfix {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: anchor-center;
    width: 100%;
  }

  .et_pb_menu__logo-wrap {
    display: flex;
    flex: 0 0 20%;
  }

  .et_pb_menu__wrap {
    align-items: flex-end;
    flex: 0 0 80%;
  }

  #mega-menu-wrap-primary-menu .mega-menu-toggle {
    position: relative;
    background: transparent;
  }

  #mega-menu-wrap-primary-menu
    #mega-menu-primary-menu
    > li.mega-menu-megamenu
    > ul.mega-sub-menu
    li.mega-menu-column-standard,
  #mega-menu-wrap-primary-menu
    #mega-menu-primary-menu
    > li.mega-menu-megamenu
    > ul.mega-sub-menu {
    padding: 0 !important;
  }

  [class^="title-page-"] {
    right: 3rem;
    font-size: 1.8rem;
    line-height: 1.6rem;
    top: 15px;
    height: 50px;
    text-align: right;
    place-content: end;
  }

  [class^="container-page-"] {
    margin: 60px auto 0;
    padding: 15px 10px 30px;
  }

  .single_info_box {
    margin: 0;
    padding: 5px 0;
  }

  .single_info_box .left,
  .single_info_box .right {
    width: 100%;
  }

  .cage_info_stato .single_name {
    margin: 2px;
    display: grid;
    grid-template-columns: 1fr 7fr 1fr;
    background: #e6e6e688;
  }

  .cage_info_stato .name_box span {
    font-size: 12px;
    padding: 0 2px;
    display: inline;
    text-wrap-mode: wrap;
  }

  .cage_info_stato .name_box {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    justify-items: stretch;
    gap: 0 5px;
  }

  .single_info_box .left,
  .single_info_box .big,
  .single_info_box .right {
    font-size: 0.8rem;
    padding: 1px 2px;
  }

  .et_pb_text_0 {
    font-size: 40px;
    text-shadow: 0px 0px 10px#ffffff;
  }

  .et_pb_text_0 {
    padding-top: 110px !important;
  }

  .et_pb_column_0 {
    width: 98%;
  }

  .mappa {
    display: inline-block;
    max-width: 100%;
  }

  .difl_advancedtab .difl_advancedtabitem .df_ati_container {
    flex: 0 0 100%;
    padding: 0px 2px 0 0px;
  }

  .single_info_box {
    flex-direction: column;
  }

  .capital {
    flex-direction: row !important;
  }

  [class^="cage_"] {
    alignment-baseline: middle;
    max-width: 100%;
    height: fit-content;
  }

  .difl_advancedtab .df_at_all_tabs .difl_advancedtabitem {
    margin-bottom: 0;
    width: 100%;
    text-wrap-style: balance;
  }

  [class^="title_"] {
    height: fit-content !important;
    padding-bottom: 10px;
    font-size: large;
    line-height: normal;
    font-weight: 600;
    border-bottom: 2px solid #000000;
  }

  .white_row {
    height: 50px !important;
    border: 0;
    text-align: center;
    vertical-align: middle;
    font-size: x-large;
    font-weight: 700;
    line-height: 1.2rem;
    width: 100%;
  }

  .wcs:before {
    content: "Mondiali giocati: ";
    display: inline-block;
    position: relative;
    font-size: 12px;
    top: 2px;
  }

  .et_pb_module.et_pb_text.et_pb_text_0.et_pb_text_align_right.et_pb_bg_layout_light {
    position: absolute;
    right: 20px;
    bottom: 35px;
    text-shadow: 2px 2px rgba(255, 255, 255, 0.5);
  }

  .et_pb_section.et_pb_section_1.et_section_regular {
    z-index: 5;
    position: relative;
    top: -25px;
  }

  .difl_advancedtab {
    border: 0 !important;
  }

  .df_at_nav_container > div {
    flex: 1 1 20%;
    padding: 15px 5px 5px;
    margin-left: 0.1em;
    clip-path: polygon(
      0 1%,
      60% 0,
      100% 36%,
      100% 100%,
      80% 100%,
      0 100%,
      0% 80%,
      0% 20%
    );
  }

  .df_at_nav_container > div > span > h4 {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    text-wrap-style: pretty;
    text-wrap-mode: wrap;
    display: inline;
  }

  .df_at_nav_container > div > span {
    text-align: left;
    display: inline-block;
    height: 100%;
    align-content: flex-end;
    padding: 0 0 0 3px;
  }

  .player span {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    flex-direction: row;
  }

  .player img {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: -3px 2px 2px;
  }

  .elenco_partite_ai_mondiali .single_torneo {
    padding: 20px 0px;
    width: 100%;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
  }

  .elenco_partite_ai_mondiali .single_torneo:nth-child(even) {
    background: #d3d3d3;
  }

  .lose {
    text-decoration: line-through;
    text-decoration-style: solid;
    text-decoration-color: #595959;
  }

  .difl_advancedtab_0 .df_at_nav {
    flex-direction: column-reverse;
  }

  .bracket-container .popup {
    max-width: 100%;
  }

  .bracket-container {
    flex-direction: column;
  }

  .max {
    height: fit-content !important;
    width: 100%;
    margin: 0;
  }

  .gara-bracket {
    width: 90%;
    margin: 10px;
    padding: 0 20px 0 0 !important;
  }

  .gara-bracket .home,
  .gara-bracket .away {
    margin: 10px 0;
  }

  .menu_torneo {
    flex-direction: column;
  }

  [class^="menu_torneo-"] {
    flex: 0 0 250px;
  }

  .menu_torneo ul {
    font-size: 15px !important;
    padding: 5px 0 !important;
    list-style: none !important;
  }

  #mega-menu-item-custom_html-3 {
    padding: 0 !important;
  }

  #mega-menu-item-34 .mega-sub-menu {
    padding: 5px 0 !important;
  }

  #torneo {
    width: 100%;
  }

  .linee {
    display: none;
  }

  .partite {
    margin-top: 5px !important;
    flex: 1;
  }

  .matches {
    margin-bottom: 5px !important;
  }

  .groups:nth-child(odd),
  .round:nth-child(odd) {
    background: #dedede;
  }

  .groups:nth-child(even),
  .round:nth-child(even) {
    background: #ededed;
  }

  .round:not(:first-child) {
    margin-top: 45px !important;
  }

  .groups:nth-child(odd) .label {
    background: #dedede;
  }

  .groups:nth-child(even) .label {
    background: #ededed;
  }

  .groups:nth-child(odd) .matches:nth-child(odd) {
    background: #dedede;
  }

  .groups:nth-child(odd) .matches:nth-child(even) {
    background: #ededed;
  }

  .groups:nth-child(even) .matches:nth-child(odd) {
    background: #ededed;
  }

  .groups:nth-child(even) .matches:nth-child(even) {
    background: #dedede;
  }

  .risult {
    align-self: center;
    top: 0 !important;
    left: -30px;
  }

  .gara-bracket .home,
  .gara-bracket .away {
    margin: 4px 0 -4px 0 !important;
  }

  .label {
    font-size: 22px;
    padding: 10px 0 0 10px;
    border-bottom: 1px dotted #000;
  }

  #final3 {
    position: relative;
    top: 0 !important;
    left: 0 !important;
    height: fit-content !important;
    width: 100%;
    margin: 0;
    order: 0;
  }

  #r5 {
    order: 1;
  }
  /* .squadre_bottoni,
  .torneo_bottoni {
    flex-wrap: wrap;
    gap: 1%;
  }

  .squadre_bottone,
  .torneo_bottone {
    flex: 0 0 47%;
    padding: 10px 0;
    align-content: center;
    margin: 1%;
  }

  .squadre_bottone::after,
  .torneo_bottone::after,
  .squadre_bottone::before,
  .torneo_bottone::before {
    content: none;
  } */

  .groups {
    margin: 80px 0 50px;
  }

  .cell2 .team,
  .cell9,
  .head .cell2 span {
    display: none !important;
  }

  .gironi {
    padding: 40px 5px 20px 5px;
    margin: 20px 0 5px -35px;
  }

  .row > .cel {
    border: 0;
    padding: 5px 0;
    flex: 1 0 10px;
  }

  .table .cell2 {
    flex: 3;
  }

  .table {
    flex: 0 0 96%;
    margin: -20px 2% -10px;
  }

  .groups-matches {
    flex: 0 0 96%;
    padding: 0;
  }

  .cell2 .flag {
    width: 20px;
    height: 20px;
    border-radius: 100px;
    margin: 0 3px 3px 0;
    border: 0;
  }

  .cell2 .code span {
    padding: 0 0 0 2px;
    display: block;
    width: 40px;
    font-size: 12px;
  }

  .body-group {
    flex-direction: column;
    padding: 10px;
    padding-bottom: 60px;
  }

  .index-container {
    display: flex;
    flex-direction: column;
    margin: -80px 0 0;
    padding-bottom: 80px;
  }

  #torneo .tournament_teams_pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #torneo .tournament_teams,
  #torneo .tournament_teams_last {
    display: grid;
    grid-template-columns: 1fr;
  }

  #torneo .box-team {
    flex: 1 1 30%;
    height: 80px;
    border-radius: 0 20px;
    border-width: 1px 1px 0 1px;
    border-style: solid;
    border-color: #0f6c14;
    margin: 3%;
    position: relative;
    align-content: end;
  }

  #torneo .tournament_teams_last .box-team {
    margin: 0 auto;
  }

  #torneo .box-team-name {
    display: flex;
    justify-content: right;
    align-items: center;
    height: 20px;
    background: #ffffff;
    border-style: solid;
    border-color: #0f6c14;
    border-width: 0px 1px 1px 1px;
    border-radius: 0 0 0 20px;
    text-align: right;
    padding: 1px 3px;
  }

  .gara-bracket .away .team {
    padding: 3px 8px 0px;
    margin: 5px 0 0;
  }

  .gara-bracket .home .team {
    padding: 0px 8px 5px;
    margin: -5px 0 5px;
  }

  .gara-bracket .home .effetto_wrapper {
    margin-top: -10px;
  }

  .gara-bracket .effetto_wrapper {
    width: fit-content !important;
    height: fit-content;
    border-radius: 50px;
    overflow: hidden;
  }
}

.elenco_partite_ai_mondiali {
  width: 100%;
}

/* TABLE */

[class^="table_"] {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.table_all {
  width: 100%;
  font-size: 12px;
  color: #000000;
  line-height: 14px;
  margin: 10px auto 0;
  padding: 5px;
  flex-direction: column;
}

.table_head_all {
  align-items: center;
  width: 100%;
  background: #000000;
  color: #ffffff;
  height: 30px;
  padding: 5px;
}

.table_head_half_all {
  width: 50%;
}

.table_tr_all {
  background: #ffffff;
}

.table_tr_all:nth-child(odd) {
  background: #dedede;
}

.table_tr_half_all {
  width: 50%;
}

.table_th_all,
.table_td_all {
  align-items: end;
  padding: 5px 10px;
}

.table_head_all,
.table_tr_all {
  height: 35px;
  contain: content;
}

/**@media screen and (max-width: 768px) {**/

.table_head_all,
.table_tr_all {
  flex-direction: column;
}
.table_head_half_all,
.table_tr_half_all {
  width: 100%;
}

/* eccezioni per la scheda "Presenze al mondiale" delle singole nazioni */
.cage_presenze_al_mondiale .table_head_all,
.cage_presenze_al_mondiale .table_tr_all {
  flex-direction: row;
}
.cage_presenze_al_mondiale .table_head_half_all,
.cage_presenze_al_mondiale .table_tr_half_all {
  flex: 1;
  text-align: start;
}
.cage_presenze_al_mondiale .table_th_all,
.cage_presenze_al_mondiale .table_td_all {
  justify-content: flex-start;
  line-height: 10px;
}
.cage_presenze_al_mondiale .year {
  width: 35px;
  padding: 5px 0 5px 5px;
}
.cage_presenze_al_mondiale .country {
  width: 100px;
}
.cage_presenze_al_mondiale .traguardo {
  text-align: end;
  flex: 1 0 100%;
  justify-content: end;
}
.cage_presenze_al_mondiale .flag {
  margin: 0 5px 0 0 !important;
}
.cage_presenze_al_mondiale .table_head_all,
.cage_presenze_al_mondiale .table_tr_all {
  height: 40px;
}
.cage_presenze_al_mondiale .table_th_all.country {
  padding-left: 10px;
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@property --bottom-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@property --neon-border-bg-light {
  syntax: "<color>";
  initial-value: white;
  inherits: false;
}
@property --neon-button-bg-light {
  syntax: "<color>";
  initial-value: transparent;
  inherits: false;
}
:root {
  --neon-border-color-1: #045e03;
  --neon-border-color-2: #058404;
  --neon-border-color-3: #08ff07;
  --neon-button-color-1: #045e03ee;
  --neon-button-color-2: #058404ee;
  --neon-button-color-3: #08ff07ee;
}
@keyframes border-angle-rotate {
  0% {
    --border-angle: 0deg;
  }
  to {
    --border-angle: 360deg;
  }
}
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
[class^="container-page-"] {
  --border-angle: 0deg;
  background-color: #fff;
  position: relative;
  padding: 2%;
  width: 90%;
  height: calc(100% + 50px);
  min-height: 100vh;
  display: inline-block;
  border-radius: 30px 30px 0 0;
  border: 6px solid transparent;
  border-bottom: 0;
  animation: border-angle-rotate 2s infinite linear;
  background: linear-gradient(
        var(--neon-border-bg-light),
        var(--neon-border-bg-light)
      )
      padding-box,
    conic-gradient(
        from var(--border-angle),
        var(--neon-border-color-1) 0%,
        var(--neon-border-color-1),
        var(--neon-border-color-2),
        var(--neon-border-color-3),
        var(--neon-border-color-1)
      )
      border-box;
}

.buttons-box .button.active {
  --bottom-angle: 45deg;
  border: 1px solid #ffff00;
  box-shadow: 0 0 0.1rem #ffff00, 0 0 0.1rem #ffff00,
    0 0 0.5rem var(--neon-button-color-3), 0 0 0.5rem var(--neon-button-color-3);
  animation: gradient 10s infinite linear;
  background: linear-gradient(
    var(--bottom-angle),
    var(--neon-button-bg-light),
    var(--neon-button-color-1),
    var(--neon-button-color-2),
    var(--neon-button-color-3)
  );
}
.torneo_bottoni .button.active,
.squadra_bottoni .button.active,
.f3_torneo_bottoni .button.active,
.squadre_bottoni .button.active {
  border: none;
  box-shadow: 0;
  background: #ffffff;
}

.loading {
  position: fixed;
  z-index: 99999999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #045e03cc;
  opacity: 1;
  transition: opacity 0.75s, visibility 0.75s;
}
.loading.container-box-loading {
  position: absolute;
  width: 100%;
  height: 100%;
  align-items: flex-start;
  padding-top: 160px;
  border-radius: 23px;
}
.blurred {
  position: absolute;
  display: flex;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 100%;
  height: 100%;
  padding-top: 160px;
  border-radius: 23px;
  filter: blur(5px);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.image-loading {
  width: 75px;
  height: 75px;
  position: fixed;
  border-color: #045e03;
  border-width: 3px;
  border-style: solid;
  box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #045e03, 0 0 30px #045e03,
    0 0 40px #045e03, 0 0 55px #045e03, 0 0 75px #045e03;
  z-index: 9;
  border-radius: 50%;
  background: #ffffff;
}
.loading-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading::after {
  content: "";
  width: 75px;
  height: 75px;
  border: 15px solid #ffffff;
  border-top-color: #045e03;
  border-radius: 50%;
  animation: loading 0.75s ease infinite;
}
.container-box-loading::after {
  position: fixed;
  top: 272px;
}
@keyframes loading {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}
/**}**/

.loading-blurred {
  filter: blur(5px);
  opacity: 0.5;
  transition: filter 0.3s ease, opacity 0.3s ease; /* Transizione morbida per rimuovere l'offuscamento */
}

.loading-blurred.removing {
  filter: blur(0px);
  opacity: 1;
}

.lazy-reveal {
  opacity: 0;
  transform: translateY(
    20px
  ); /* Inizia spostato verso il basso per simulare "dall'alto" */
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.lazy-reveal.visible {
  opacity: 1;
  transform: translateY(0); /* Torna alla posizione normale */
}

.wip {
  width: 300px;
  height: 300px;
  border: 0;
  border-radius: 0 50px 0 50px;
  box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #045e03, 0 0 30px #045e03,
    0 0 40px #045e03, 0 0 55px #045e03, 0 0 75px #045e03;
  margin-bottom: 50px;
}

footer {
  display: flex;
  width: 100%;
  flex-direction: row;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 99;
  background: rgba(15, 108, 20, 1);
  height: 30px;
  box-shadow: 0px -2px 8px rgba(15, 108, 20, 0.8);
}

.footer-buttons-box {
  justify-content: center;
  padding: 0 20px 15px;
}

footer .space_button {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex: 1 1 calc(100% / 6);
}

footer .footer-button {
  width: 40px;
  font-size: 30px;
  justify-content: center;
  place-self: anchor-center;
  align-items: center;
  margin-bottom: 15px !important;
  box-shadow: 0px -2px 8px rgba(15, 108, 20, 0.8);
}

.footer_flag {
  position: absolute;
  bottom: 55px;
  background: #ffffffab;
  border-radius: 10px 0 10px 0;
  margin: 5px 0;
  max-width: 40px;
  box-shadow: 0px 5px 7px #00000099;
}

.footer_manifest {
  height: 50px !important;
}

.flag_back {
  left: 5px;
}

.flag_forward {
  right: 5px;
}

/* /////////////////////////////////////////////////////////////////////////// */
/* POPUP /////////////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////////////////////////////////////// */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 9998;
}

.popup {
  display: none;
  position: fixed;
  top: 50px;
  background-color: transparent;
  padding: 10px;
  text-align: center;
  z-index: 9999;
}

.link_popup {
  display: inline-block;
  width: 42%;
  padding: 5px;
  background: #cecece;
  margin: 0 3%;
  cursor: pointer;
}

.link_popup:hover {
  background: #b0b0b0;
}

.popup .data span,
.popup .torneo span,
.popup .marcatori span {
  color: white;
}
.popup .marcatore span {
  color: #000000;
  font-size: 0.8em;
  line-height: 0.8em;
}

.popup {
  top: 5px;
}

.popup .ui_game .away {
  margin: 0px 0 -3px 25px !important;
}

.popup .marcatore {
  font-size: 0.8em;
}

.popup .ui_game .marcatori .marcatore span {
  color: #ffffff !important;
  font-size: 1em !important;
  line-height: 1.2em !important;
  margin: 0px 0 0 3px;
}

.popup .marcatori .flag {
  margin: 1px 4px 0 6px !important;
}

.state-geo-map,
.state-geo-map-multi {
  width: 100%;
  height: 300px;
  min-height: 250px;
  position: relative;
  z-index: 1;
}

.state-geo-map,
.state-geo-map-multi {
  height: 250px;
}

[class^="background-"] {
  position: absolute;
  display: inline-block;
  transform: rotate(3deg);
  z-index: -1;
  top: -50px;
  left: -5%;
  margin-left: 0;
  width: 110%;
  height: 300px;
  max-width: 110%;
  opacity: 0.7;
}

#f3_sch2 {
  width: 100%;
  padding: 5px;
}

#f3_sch2 .bracket-container {
  box-shadow: 3px 3px 3px #acacac;
  background-image: radial-gradient(
    farthest-corner at 40px 30px,
    #ededed,
    #e1e1e1,
    #d5d5d5,
    #c9c9c9,
    #bdbdbd
  );
  padding: 10px;
}

.bracket-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  width: 100%;
  overflow: hidden;
  flex-wrap: wrap;
}

[class^="bracket_flags-"] {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: space-around;
  width: 100%;
}

[class^="bracket_linee-v"],
[class^="bracket_linee-h"] {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

[class^="bracket_flags-"] *,
[class^="bracket_linee-v"] *,
[class^="bracket_linee-h"] * {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

[class^="bracket_flags-"] .bracket-flag {
  display: flex;
  border-radius: 100%;
  background-size: auto 100%;
  background-position: center;
}

[class^="bracket_flags-"] .bracket-flag:nth-child(even) {
  margin: 5px 2.5px 5px 0;
}

[class^="bracket_flags-"] .bracket-flag:nth-child(odd) {
  margin: 5px 0 5px 2.5px;
}

.bracket_linea-1 .f3_line_final {
  height: 30px;
  left: 0;
}

.bracket_linea-1 .box-result {
  top: -47px;
}

.bracket_flags-1:nth-child(even) .flag {
  margin: 5px 1px 5px 0;
}

.c-box {
  align-items: center;
  position: relative;
}

.c-box.top.line1 {
  top: -25px;
}

.c-box.top.line2 {
  top: -25px;
}

.c-box.top.line3 {
  top: -25px;
}

.c-box.bottom.line1 {
  top: 10px;
}

.c-box.bottom.line2 {
  top: 3px;
}

.c-box.bottom.line3 {
  top: -9px;
}

.bracket_linea-8:first-child .cont-result .c-box {
    left: -2px;
}

.f3_line_final {
  display: flex;
  border-right: 4px solid #000000;
  height: 20px;
  position: relative;
}

.f3_line_final.top {
  top: -10px;
}

.f3_line_final.bottom {
  bottom: 10px;
}

.box-result {
  position: relative;
  z-index: 5;
  display: flex;
  width: 30px;
  background: #ffffff;
  border: 1px solid black;
  font-size: 7px;
  text-wrap: wrap;
  padding: 2px;
  align-self: center;
  line-height: 8px;
  justify-content: center;
}

.box-result.top {
  top: -20px;
}

.box-result.bottom {
  bottom: -20px;
  top: 0px;
}

.cont-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
  min-height: 30px;
}

.cont-result.bottom {
  top: -15px;
}

.cont-result.top {
  bottom: -15px;
}

[class^="bracket_linee-h"] *.top {
  box-sizing: border-box;
}

[class^="bracket_linee-h"] *.bottom {
  box-sizing: border-box;
  justify-content: flex-start;
}
