@font-face {
    font-family: "Argumentum";
    src: url("fonts/Argumentum-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Argumentum";
    src: url("fonts/Argumentum-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Argumentum";
    src: url("fonts/Argumentum-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Argumentum";
    src: url("fonts/Argumentum-Ultra.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
}

body {
    font-family: "Argumentum", sans-serif;
    font-weight: 400;
    background-color: #fff;
    margin: 0;
    padding: 0;
    color: #1a1a1a;
}

header {
    background-color: #0d2c37;
    color: white;
    padding: 20px;
    text-align: center;
}

header img {
    height: 60px;
}

.hidden {
    display: none !important;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    font-weight: bold;
}

.breadcrumb span.active {
    color: #f04c23;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.calendar-block {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}

.calendar {
    background-color: #f5f5f5;
    padding: 20px;
    flex: 1 1 auto;
    min-width: 0;
    border: 2px solid #ccc;
    box-sizing: border-box;
}

.summary {
    background-color: #0d2c37;
    color: white;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    border: 2px solid #0d2c37;
    height: min-content;
    margin-left: auto;
    margin-right: auto;
}

.calendar h2 {
    margin-top: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #0d2c37;
}

.calendar table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.calendar td {
    border: 2px solid #ccc;
    padding: 10px;
    cursor: pointer;
}

.calendar td:hover {
    background-color: #ddd;
}

.calendar td.disabled {
    background-color: #eee;
    color: #999;
    cursor: not-allowed;
}

.counter {
    display: inline-block;
    width: 2ex;
    text-align: right;
    padding: 0.25rem;
}

.selected-date {
    background-color: #0d2c37 !important;
    color: white;
}

.tickets {
    margin-top: 20px;
    display: none;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.ticket-row button {
    padding: 10px;
    border: 2px solid #ccc;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 16px;
    border-radius: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ticket-row button:hover {
    background-color: #ddd;
}

.summary_grid {
    display: grid;
    grid-template-areas: "PROD COUNT TEXT PRICE";
    grid-template-columns: 1fr auto auto auto;
    grid-template-rows: auto;
    column-gap: 1ex;
    row-gap: 1ex;
}

.summary h3 {
    text-align: center;
    border-bottom: 1px solid white;
    padding-bottom: 10px;
}

.summary h4 {
    border-bottom: 1px solid white;
    padding-bottom: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.summary-total {
    border-top: 1px solid white;
    margin-top: 10px;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.pay_button {
    margin-top: 20px;
    width: 100%;
    background-color: #2b9e3b;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    height: 70px;
    cursor: pointer;
}
.pay_button:disabled {
    background-color: #87a78b;
    color: black;
}

fieldset.form-section {
    border: none;
    padding: 0;
    margin: 0 0 30px 0;
}
fieldset.form-section legend {
    font-size: 24px;
    font-weight: bold; /* Argumentum-Bold o Ultra potrebbero essere più specifici qui */
    margin-bottom: 20px;
    padding: 0;
    width: 100%;
}

.form-container {
    width: calc(100% - 450px);
    max-width: 700px;
    padding: 20px;
    border: 2px solid #ccc;
    background-color: #f5f5f5;
    box-sizing: border-box;
}
.form-section {
    margin-bottom: 30px;
}
.form-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}
.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.form-field {
    flex: 1 1 calc(50% - 10px);
    display: flex;
    flex-direction: column;
}
.form-field:empty {
    display: none;
}
.form-field.full {
    flex: 1 1 100%;
}
.form-field label {
    font-weight: bold;
    margin-bottom: 5px;
}
.form-field input,
.form-field textarea,
.form-field select {
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ccc;
    outline: none;
    border-radius: 0;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.form-field input:invalid,
.form-field textarea:invalid,
.form-field select:invalid {
    outline: 1px dashed red;
}
#phone {
    width: 100%;
}

.pay-field {
    display: block;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ccc;
    outline: none;
    border-radius: 0;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.field-required::after {
    content: " *";
    white-space: nowrap;
}

.field-error {
    outline: 1px dashed crimson !important;
}

@media screen and (max-width: 992px) {
    .main-content {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
        padding: 10px;
    }

    .form-container,
    .calendar,
    .summary {
        width: 100%;
        max-width: 100%;
    }
}


.LayoutRow {
  display: flex;
  flex-direction: row;
}
.LayoutCol {
  display: flex;
  flex-direction: column;
}
.LayoutFill {
  flex-grow: 1;
}
.LayoutFillAll {
  flex-grow: 1000;
}
.LayoutFull {
  flex-basis: 100%;
}
.LayoutSpaced {
  gap: 0.5rem;
}
.LayoutFlow {
  flex-wrap: wrap;
}
.ItemsAtCenter {
  align-items: center;
}
.ItemsAtStart {
  align-items: start;
}

