/*
 RITORNO ALLE ORIGINI - My Calendar, versione compatta 2026-11-22.
 File separato da WordPress/Elementor; selezionare in My Calendar > Aspetto.
 Usa preferibilmente: [my_calendar format="mini" above="nav" below="none" time="month"]
*/

/* 1 - Il contenitore del calendario e' stretto e centrato */
.mc-main,
.mc-main.mini,
.rto-landing .rto-calendar-wrap .mc-main {
  --main-background: #ffffff;
  --main-color: #193d2c;
  --navbar-background: transparent;
  --nav-button-bg: #e5eee3;
  --nav-button-color: #193d2c;
  --nav-button-border: #d4e2d3;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  color: #193d2c !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: inherit;
}
.mc-main *,
.mc-main *::before,
.mc-main *::after { box-sizing: border-box; }

/* 2 - Titolo del mese e comandi */
.mc-main h2,
.mc-main .heading,
.mc-main .mc_month_heading {
  margin: 0 0 20px !important;
  padding: 0 !important;
  color: #193d2c !important;
  font: 500 clamp(21px, 3.2vw, 29px)/1.25 Georgia, 'Times New Roman', serif !important;
  text-align: center !important;
  border: 0 !important;
  background: transparent !important;
}
.mc-main .my-calendar-header,
.mc-main .my-calendar-navigation,
.mc-main .my-calendar-nav,
.mc-main .mc_bottomnav {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}
.mc-main .my-calendar-header a,
.mc-main .my-calendar-header button,
.mc-main .my-calendar-navigation a,
.mc-main .my-calendar-navigation button,
.mc-main .my-calendar-nav a,
.mc-main .my-calendar-nav button,
.mc-main button.mc-navigation-button {
  background: #e5eee3 !important;
  color: #193d2c !important;
  border: 1px solid #d4e2d3 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  padding: 9px 13px !important;
  min-height: 40px;
  font: 600 13px/1.3 system-ui, sans-serif !important;
  text-decoration: none !important;
}
.mc-main .my-calendar-header a:hover,
.mc-main .my-calendar-header button:hover,
.mc-main .my-calendar-navigation a:hover,
.mc-main .my-calendar-navigation button:hover { background: #d3e4d1 !important; }

/* 3 - Griglia: rimuove la linea nera e crea 7 colonne pulite */
.mc-main table,
.mc-main table.my-calendar-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 6px 7px !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
}
.mc-main table thead,
.mc-main table thead tr,
.mc-main table tbody,
.mc-main table tbody tr {
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.mc-main table thead tr { display: table-row !important; }
.mc-main table thead th {
  display: table-cell !important;
  width: 14.285% !important;
  height: 35px !important;
  padding: 8px 2px 12px !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  color: #627f69 !important;
  box-shadow: none !important;
  font: 700 12px/1.2 system-ui,sans-serif !important;
  text-align: center !important;
  text-transform: uppercase;
}

/* 4 - Altezza giorni: corregge le righe compresse viste nello screenshot */
.mc-main table tbody tr { display: table-row !important; height: 60px !important; }
.mc-main table tbody td {
  display: table-cell !important;
  width: 14.285% !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #eff4ed !important;
  box-shadow: none !important;
  color: #193d2c !important;
  text-align: center !important;
  vertical-align: middle !important;
  overflow: visible !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
.mc-main table tbody td .mc-date,
.mc-main table tbody td .mc-date a,
.mc-main table tbody td .mc-date button {
  color: #193d2c !important;
  font: 600 15px/1.25 system-ui,sans-serif !important;
  text-decoration: none !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.mc-main table tbody td .mc-date {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 4px 2px !important;
}

/* 5 - Giorni con eventi e giorno corrente */
.mc-main table tbody td.has-events,
.mc-main table tbody td.event-day,
.mc-main table tbody td.events,
.mc-main table tbody td.event { background: #d7e9d6 !important; }
.mc-main table tbody td.current-day,
.mc-main table tbody td.today {
  outline: 2px solid #8aab8e !important;
  outline-offset: -2px !important;
}
.mc-main :focus-visible {
  outline: 2px solid #b38f55 !important;
  outline-offset: 2px !important;
}

@media (max-width: 600px) {
  .mc-main, .mc-main.mini {max-width: 100% !important;}
  .mc-main table, .mc-main table.my-calendar-table {border-spacing: 3px 5px !important;}
  .mc-main table thead th {height: 26px !important; font-size: 10px !important; padding: 6px 0 8px !important;}
  .mc-main table tbody tr {height: 43px !important;}
  .mc-main table tbody td {height: 43px !important; min-height: 43px !important; border-radius: 8px !important; font-size: 12px !important;}
  .mc-main table tbody td .mc-date {min-height: 43px !important;}
  .mc-main table tbody td .mc-date,
  .mc-main table tbody td .mc-date a,
  .mc-main table tbody td .mc-date button {font-size: 12px !important;}
  .mc-main h2 {font-size: 21px !important;}
}
