body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  background: #f5fbff;
  color: #0c3d67;
}
#dashboardContent > section > h2,
#dashboardContent > section > .section-action-row h2 {
  margin: 0 0 0.5rem;
}
#dashboardContent > section > p {
  margin: 0 0 0.6rem;
}
header {
  background: #1f7bb6;
  color: white;
  padding: 0.5rem 1rem 0.6rem;
  font-family: 'Poppins', Arial, sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 55;
}
.header-utility-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
body.header-compact header {
  padding: 0.4rem 1rem;
}
body.header-compact .top-nav {
  display: none;
}
body.header-compact .header-utility-row {
  margin-top: 0;
}
.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.brand-logo {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-content {
  flex: 1;
}
.brand-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  text-align: center;
  letter-spacing: 0.02em;
}
.brand-subtitle {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  opacity: 0.85;
  margin-top: 0.25rem;
}
.brand-sub-intro {
  font-size: 0.78rem;
  font-weight: 400;
  text-align: center;
  opacity: 0.85;
  margin-top: 0.05rem;
}
header p,
header .header-links {
  margin: 0.4rem 0;
}
.header-utility-row nav a,
.header-utility-row nav button.login-button,
.guest-actions-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: white;
  color: #1f7bb6;
  border: none;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.header-utility-row nav a:hover,
.header-utility-row nav button.login-button:hover,
.guest-actions-row a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.guest-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
#guestActionsRow {
  justify-content: space-between;
}

.instagram-follow-label {
  text-align: center;
  margin: 0.5rem 0 0;
  font-weight: 600;
  color: #557a9a;
}
.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem auto 1.25rem;
  color: #1f7bb6;
  text-decoration: none;
  font-weight: 700;
  justify-content: center;
}
.instagram-link:hover {
  text-decoration: underline;
}
.instagram-icon {
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
}
.instagram-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.header-utility-row nav a {
  margin: 0;
}
main {
  max-width: 960px;
  margin: 0.6rem auto;
  padding: 0 1rem;
  padding-top: 156px;
}
body.static-page main {
  padding-top: 225px;
}
body.has-bottom-nav footer {
  padding-bottom: calc(2rem + 76px + env(safe-area-inset-bottom, 0px));
}
body.has-bottom-nav-admin footer {
  padding-bottom: calc(2rem + 140px + env(safe-area-inset-bottom, 0px));
}
body.is-staff.has-bottom-nav main {
  padding-bottom: calc(2rem + 76px + env(safe-area-inset-bottom, 0px));
}
body.is-staff.has-bottom-nav-admin main {
  padding-bottom: calc(2rem + 140px + env(safe-area-inset-bottom, 0px));
}
.admin-bottom-nav {
  flex-wrap: wrap;
  row-gap: 0.4rem;
}
.admin-bottom-nav .bottom-nav-button {
  flex: 0 1 30%;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  background: #1f7bb6;
  padding: 0.4rem 1.1rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  z-index: 55;
}
.bottom-nav-button {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: white;
  border: none;
  border-radius: 12px;
  padding: 0.35rem 0.3rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #5a7e9a;
  cursor: pointer;
}
.bottom-nav-button.active {
  color: #1f7bb6;
}
.bottom-nav-icon {
  font-size: 1.1rem;
}
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.5rem;
  justify-items: center;
  min-width: 0;
}
.hero-text {
  width: min(100%, 860px);
  text-align: center;
}
.hero-kicker {
  font-size: clamp(1.3rem, 6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: #08355d;
}
.hero-text h2 {
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  margin: 0;
}
.hero-text p {
  max-width: 720px;
  margin: 0.5rem auto 0;
  font-size: clamp(0.8rem, 3vw, 1rem);
}
.hero-text ul {
  padding-left: 1.2rem;
}
.hero-image img {
  width: 100%;
  max-height: 360px;
  border-radius: 12px;
  object-fit: cover;
}
.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.info-boxes div {
  background: white;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.call-to-action {
  background: #d7efff;
  padding: 1.3rem;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 2rem;
}
.call-to-action .button,
.brochure-section .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f7bb6;
  color: white;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  border: none;
}
.brochure-section .button {
  background: white;
  color: #1f7bb6;
  border: 1px solid #1f7bb6;
}
.brochure-section .button:hover {
  background: #1f7bb6;
  color: white;
}
.login-section,
.pdf-upload,
.contact-section,
.contact-page {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}
.login-section form,
.registration-page form,
.pdf-upload form,
.contact-section form,
.contact-page form,
.profile-section form {
  display: grid;
  gap: 0.6rem;
}
.field label,
.registration-page label,
.contact-section label,
.contact-page label,
.profile-section label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 0.92rem;
  gap: 0.2rem;
}
.registration-page fieldset,
.profile-section .child-form,
.profile-section .parent-form {
  display: grid;
  gap: 0.6rem;
}
.registration-page form button[type="submit"] {
  margin-top: 0.5rem;
}
.profile-section form button[type="submit"],
.profile-section .child-form button[type="submit"],
.profile-section .parent-form button[type="submit"] {
  width: auto;
  justify-self: start;
  margin-top: 0.5rem;
}
input,
select,
textarea,
button {
  font: inherit;
}
input,
select,
textarea {
  box-sizing: border-box;
  border: 1px solid #c2d7ec;
  border-radius: 10px;
  padding: 0.6rem;
  width: 100%;
}
textarea {
  min-height: 120px;
}
.avail-notes-small {
  height: 2.6rem;
  min-height: 0;
}
button {
  background: #1f7bb6;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
}
button:hover {
  opacity: 0.95;
}
.status-message {
  background: #e6f4ff;
  border: 1px solid #b2dbff;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.auth-message {
  max-width: 960px;
  margin: 1rem auto;
  text-align: center;
  font-weight: 600;
}
.auth-message.error {
  background: #fde8e8;
  border-color: #f3b4b4;
  color: #a31515;
}
.auth-message.success {
  background: #e6f7ec;
  border-color: #a9e3bf;
  color: #146c2e;
}
.status-message.error {
  background: #fde8e8;
  border-color: #f3b4b4;
  color: #a31515;
}
.status-message.success {
  background: #e6f7ec;
  border-color: #a9e3bf;
  color: #146c2e;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.tab-button {
  border: 1px solid #1f7bb6;
  background: white;
  color: #1f7bb6;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.tab-button.active {
  background: #1f7bb6;
  color: white;
}
.dashboard {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}
.dashboard nav,
.dashboard section {
  margin-bottom: 1.5rem;
}
.table-scroll table {
  min-width: 100%;
  border-collapse: collapse;
}
#financeSummary table {
  width: 100%;
  border-collapse: collapse;
}
.table-scroll th,
.table-scroll td,
#financeSummary th,
#financeSummary td {
  border: 1px solid #e2ecf5;
  padding: 0.75rem;
  text-align: left;
}
.table-scroll th,
#financeSummary th {
  background: #f1f9ff;
}
.col-week-narrow {
  width: 1%;
  white-space: nowrap;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}
.hidden { display: none !important; }
.row-attention {
  background: #fff3b0 !important;
}
.row-aiuto-animatore {
  background: #c8f0c8 !important;
}
.amount-paid {
  color: #1f7a3c;
  font-weight: 700;
}
.amount-unpaid {
  color: #c0392b;
  font-weight: 700;
}
.table-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.table-legend .legend-swatch {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.table-legend .legend-swatch.allergie {
  background: #fff3b0;
}
.table-legend .legend-swatch.aiuto-animatore {
  background: #c8f0c8;
}
.attendance-cell {
  text-align: center;
  padding: 0.4rem !important;
}
.attendance-cell input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.payment-cell {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.25rem 0.35rem;
  border-radius: 8px;
  width: max-content;
  box-sizing: border-box;
}
.payment-cell.paid {
  background: #e6f7ec;
}
.payment-cell.partial {
  background: #fdf3e0;
}
.payment-amount-input {
  width: 42px;
  max-width: 3.2em;
  padding: 0.3rem 0.2rem;
  flex-shrink: 0;
}
.payment-paid-label {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 600;
  font-size: 0.62rem;
  white-space: nowrap;
}
.payment-cell.paid .payment-paid-label {
  color: #146c2e;
}
.payment-due-row,
.payment-partial-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
}
.payment-due-row {
  background: #fbe4e1;
}
.payment-partial-row {
  background: #e6f7ec;
}
.payment-due-label,
.payment-partial-label {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 600;
  font-size: 0.62rem;
  white-space: nowrap;
}
.payment-due-label {
  color: #c0392b;
}
.payment-partial-label {
  color: #146c2e;
}
.payment-due-amount-input,
.payment-partial-amount-input {
  width: 42px;
  max-width: 3.2em;
  padding: 0.3rem 0.2rem;
}
.attendance-count-row td {
  background: #eef6fc;
  font-weight: bold;
  text-align: center;
}
.attendance-count-row td:first-child {
  text-align: left;
}
.table-scroll th:first-child,
.table-scroll td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
}
.table-scroll th:first-child {
  background: #f1f9ff;
  z-index: 2;
}
.table-scroll tr.row-attention td:first-child {
  background: #fff3b0;
}
.table-scroll tr.row-aiuto-animatore td:first-child {
  background: #c8f0c8;
}
.table-scroll tr.attendance-count-row td:first-child {
  background: #eef6fc;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  max-width: 420px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  position: relative;
}
.modal-box-wide {
  max-width: 900px;
}
#financeOverviewModal .modal-box {
  display: flex;
  flex-direction: column;
  overflow-y: visible;
}
#financeOverviewContent {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
#financeOverviewModal .modal-close {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  background: #1f7bb6;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.modal-box-small {
  max-width: 320px;
}
.pdf-preview-box {
  max-width: 98vw;
  width: 98vw;
  max-height: 95vh;
  height: 95vh;
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  overflow: hidden;
}
.pdf-preview-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  flex-shrink: 0;
}
.pdf-preview-back {
  margin: 0;
}
.pdf-preview-share-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: #1f7bb6;
  border: 2px solid #1f7bb6;
  border-radius: 999px;
  padding: 0.6rem 1rem;
}
.pdf-preview-share-label {
  font-weight: 700;
  font-size: 0.95rem;
}
.pdf-preview-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
}
#pdfPreviewPages {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
#pdfPreviewPages canvas {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.phone-action-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.phone-action-content a {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.phone-action-call {
  background: #1f7bb6;
  color: white;
}
.phone-action-whatsapp {
  background: #25d366;
  color: white;
}
.bilancio-centro-estivo {
  font-size: 1rem;
  font-weight: normal;
  margin-left: 0.75rem;
}
.finance-section {
  margin-bottom: 1.5rem;
}
#bilancioRicevuteSection .finance-row-table {
  border-collapse: collapse;
  width: 100%;
}
#bilancioRicevuteSection .finance-row-table th,
#bilancioRicevuteSection .finance-row-table td {
  border: 1px solid #e2ecf5;
  padding: 0.5rem;
  text-align: center;
}
#bilancioRicevuteSection .finance-row-table th {
  background: #f1f9ff;
}
#bilancioRicevuteSection .finance-row-table input,
#bilancioRicevuteSection .finance-row-table select {
  text-align: center;
}
.finance-section h4 {
  margin-bottom: 0.5rem;
}
.finance-section summary {
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.finance-check-block {
  margin-bottom: 0.75rem;
}
.finance-check-block .status-message {
  display: inline-block;
  font-weight: bold;
}
.finance-actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.finance-row-table-inline {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.finance-row-table-inline label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  min-width: 140px;
}
.finance-row-table-inline label.checkbox-label {
  min-width: 0;
}
.finance-row-table-inline input {
  margin-top: 0.25rem;
}
.currency-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.currency-input input {
  flex: 1;
  min-width: 0;
}
.currency-suffix {
  font-weight: bold;
  color: #666;
}
.finance-totals {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
  font-weight: bold;
  align-items: baseline;
}
.summary-detail {
  display: inline;
}
.summary-detail summary {
  display: inline;
  cursor: pointer;
  font-weight: normal;
  font-size: 0.85rem;
  color: #1f7bb6;
  text-decoration: underline;
  list-style: none;
}
.summary-detail summary::-webkit-details-marker {
  display: none;
}
.summary-detail[open] summary {
  margin-right: 0.75rem;
}
.summary-detail span {
  margin-right: 0.75rem;
  font-weight: bold;
}
.finance-row-table input[type="text"],
.finance-row-table input[type="number"],
.finance-row-table input[type="date"],
.finance-row-table select {
  width: 100%;
  box-sizing: border-box;
}
.finance-row-table td {
  vertical-align: top;
}
#notificationSettingsBlock .table-scroll table {
  font-size: 0.72rem;
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
#notificationSettingsBlock .table-scroll th,
#notificationSettingsBlock .table-scroll td {
  padding: 0.35rem 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#notificationSettingsBlock .table-scroll th:first-child,
#notificationSettingsBlock .table-scroll td:first-child {
  white-space: normal;
  overflow-wrap: break-word;
}
#notificationSettingsBlock .table-scroll th:not(:first-child),
#notificationSettingsBlock .table-scroll td:not(:first-child) {
  width: 38px;
  text-align: center;
}
#weeksManagementBlock .table-scroll th,
#weeksManagementBlock .table-scroll td {
  padding: 0.3rem 0.35rem;
  font-size: 0.72rem;
}
#weeksManagementBlock .table-scroll input {
  font-size: 0.72rem;
}
#servicePricesBlock .table-scroll table,
#weeksManagementBlock .table-scroll table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
#servicePricesBlock .table-scroll th,
#servicePricesBlock .table-scroll td {
  padding: 0.35rem 0.4rem;
  font-size: 0.72rem;
  overflow: hidden;
}
#servicePricesBlock .table-scroll input,
#servicePricesBlock .table-scroll select {
  font-size: 0.72rem;
  min-width: 0;
}
#weeksManagementBlock .table-scroll td,
#weeksManagementBlock .table-scroll th {
  overflow: hidden;
}
#weeksManagementBlock .table-scroll input {
  min-width: 0;
}
.lunch-split-value {
  font-size: 0.8rem;
  color: #555;
  white-space: nowrap;
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 1.1rem;
  cursor: pointer;
}
.modal-box .allergy-note {
  background: #fff3b0;
  padding: 0.5rem;
  border-radius: 4px;
}
.note-cell details {
  cursor: pointer;
}
footer {
  text-align: center;
  padding: 1rem 0 2rem;
}
body.is-staff footer {
  display: none;
}
footer a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}
.home-marketing-inactive {
  display: none;
}
.home-operative {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}
.home-greeting {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.home-stats {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.home-stat-card {
  background: #f7fbff;
  border: 1px solid #dceefa;
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.home-stat-label {
  font-weight: 600;
  color: #355;
}
.home-stat-value {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1f7bb6;
  text-align: right;
}
.home-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.home-shortcut-card {
  background: #1f7bb6;
  color: white;
  border: none;
  border-radius: 16px;
  padding: 1rem;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.home-shortcut-card:hover {
  opacity: 0.9;
}
.home-preview-trigger {
  background: transparent;
  color: #1f7bb6;
  border: 2px solid #1f7bb6;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}
.home-stats-columns {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.home-stats-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.home-stat-mini {
  background: #f7fbff;
  border: 1px solid #dceefa;
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
}
.home-stat-mini .home-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #355;
}
.home-stat-mini .home-stat-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f7bb6;
  text-align: left;
}
button.home-stat-mini {
  font: inherit;
  width: 100%;
  cursor: pointer;
}
.home-stat-mini .summary-detail {
  display: block;
  margin-top: 0.35rem;
}
.home-stat-mini .summary-detail summary {
  font-size: 0.7rem;
}
.home-stat-mini .summary-detail span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 0;
}
.home-stat-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: normal;
  color: #1f7bb6;
  text-decoration: underline;
}
.home-preview-banner {
  background: #fff4e0;
  border: 1px solid #f0c987;
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
}
.home-preview-banner button {
  background: #1f7bb6;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.photo-grid {
  margin: 1rem 0 0.4rem;
  text-align: center;
}
.photo-grid h2 {
  text-align: center;
  margin-bottom: 1rem;
}
.photo-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 1rem;
}
.photo-card {
  height: 240px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  box-shadow: 0 16px 30px rgba(0,0,0,0.14);
}
.brochure-section {
  background: linear-gradient(135deg, #f4faff 0%, #eaf6ff 100%);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  margin: 0.5rem 0;
}
.brochure-section h2 {
  margin: 0 0 0.25rem;
}
.brochure-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 0;
}
.brochure-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 340px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  text-decoration: none;
  color: inherit;
  border: 1px solid #dceefa;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.brochure-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}
.pdf-thumbnail {
  width: 100%;
  max-height: 240px;
  overflow: hidden;
  background: #f7fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}
.pdf-thumbnail img {
  width: auto;
  max-width: 100%;
  max-height: 240px;
  display: block;
  object-fit: contain;
}
.brochure-hint {
  margin: 0 0 0.5rem;
  color: #557a9a;
  font-size: 0.95rem;
  line-height: 1.3;
}
.brochure-card .button {
  align-self: center;
  margin: 0 1rem 1rem;
}
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.hero-highlights div {
  background: rgba(31, 123, 182, 0.1);
  border: 1px solid rgba(31, 123, 182, 0.2);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}
.hero-highlights div:nth-child(1) {
  transform: rotate(-3deg) translateY(2px);
}
.hero-highlights div:nth-child(2) {
  transform: rotate(2deg) translateY(-4px);
}
.hero-highlights div:nth-child(3) {
  transform: rotate(-2deg) translateY(3px);
}
.hero-sidebar {
  display: none;
}
.login-card {
  width: 100%;
  max-width: 360px;
  background: white;
  padding: 1.1rem 1.25rem;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}
.login-card h2 {
  margin: 0 0 0.6rem;
}
.login-card form {
  display: grid;
  gap: 0.75rem;
}
.login-card button[type="submit"] {
  margin-top: 0.75rem;
}
.forgot-password-row {
  margin-top: 0.5rem;
}
.action-button {
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  white-space: nowrap;
  margin: 0;
  display: inline-flex;
  width: max-content;
}
.finance-overview-button {
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  width: max-content;
  margin-bottom: 0.5rem;
}
#applicationsActionsRow {
  justify-content: flex-start;
  gap: 0.75rem;
}
.week-link {
  padding: 0;
  margin: 0;
  width: auto;
  display: inline;
  color: #1f7bb6;
  text-decoration: underline;
  cursor: pointer;
}
.loginMessage,
.forgot-password-link,
.text-button {
  background: none;
  border: none;
  color: #1f7bb6;
  font-weight: 700;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
label:has(> .calculate-cf-button) {
  position: relative;
}
label:has(> .calculate-cf-button) input {
  padding-right: 4.2rem;
}
.calculate-cf-button {
  position: absolute;
  right: 0.3rem;
  bottom: 0.2rem;
  padding: 0.65rem 0.5rem;
  font-size: 0.82rem;
}
.motivational-carousel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.motivational-carousel-header .text-button {
  font-size: 1.3rem;
  padding: 0 0.5rem;
}
.motivational-carousel-header span {
  font-weight: 700;
  color: #355;
}
.forgot-password-link:hover,
.text-button:hover {
  text-decoration: underline;
}
.recovery-panel {
  margin-top: 1rem;
}
.first-access-row {
  margin-top: 1rem;
  text-align: center;
}
.first-access-link {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1f7bb6;
  text-decoration: underline;
}
.first-access-link:hover {
  color: #08355d;
}
.recovery-note {
  margin-bottom: 0.75rem;
  color: #557a9a;
}
.login-card h3 {
  margin-top: 0;
}
.header-utility-row nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}
.login-button {
  background: white;
  color: #1f7bb6;
  border: 1px solid #1f7bb6;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
}
.header-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #1f7bb6, #79bfff);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 14px;
  margin-top: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
}
#headerIntro {
  margin: 0;
  line-height: 1.3;
}
.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.button.secondary {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
}
.brochure-preview object {
  min-height: 500px;
}
.settings-section form,
.login-section form,
.registration-page form,
.pdf-upload form,
.contact-section form {
  display: grid;
  gap: 1rem;
}
.settings-section label,
.login-section label,
.registration-page label,
.contact-section label {
  display: block;
  font-weight: bold;
}
.password-field-wrapper {
  position: relative;
  display: block;
}
.password-field-wrapper input {
  width: 100%;
  padding-right: 2.6rem !important;
  box-sizing: border-box;
}
.password-toggle-button {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.2rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
}
.password-toggle-button:hover {
  opacity: 1;
}
.settings-section label input,
.settings-section label textarea,
.settings-section label select {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #c2d7ec;
  border-radius: 10px;
  margin-top: 0.5rem;
}
.photo-selection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.photo-position-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid #e0e8ef;
  border-radius: 6px;
  padding: 0.75rem;
}
.image-position-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hamburger-button {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: white;
  border: 1px solid #1f7bb6;
  font-weight: 700;
  color: #1f7bb6;
  cursor: pointer;
}
.hamburger-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  gap: 4px;
}
.hamburger-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: #1f7bb6;
  margin: 0 auto;
  border-radius: 2px;
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 30, 50, 0.45);
  z-index: 60;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(280px, 80vw);
  background: white;
  box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  z-index: 65;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.sidebar.open {
  transform: translateX(0);
}
.sidebar-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 1.5rem 1rem 1rem;
  box-sizing: border-box;
}
@media (min-width: 1001px) {
  body.sidebar-docked main,
  body.sidebar-docked .dashboard {
    margin-left: calc(min(280px, 80vw) + 1.5rem);
  }
  body.sidebar-docked .hamburger-button {
    display: none;
  }
}
.sidebar-header {
  margin-bottom: 1.5rem;
}
.sidebar-header h2 {
  margin: 0 0 0.25rem;
}
.sidebar-header p {
  margin: 0;
  color: #557a9a;
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sidebar-links-admin {
  margin-top: 1.1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2ecf5;
}
.sidebar .tab-button {
  text-align: left;
  border-radius: 14px;
  width: 100%;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}
.sidebar-footer {
  flex-shrink: 0;
  background: white;
  padding: 0.75rem 1rem;
  box-shadow: 0 -6px 10px -6px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}
.logout-button-near-settings {
  width: 100%;
  margin-top: 0.6rem;
}
.notification-bell-row {
  position: relative;
}
.notification-bell-button {
  text-align: left;
  border-radius: 999px;
  border: 1px solid #1f7bb6;
  background: white;
  padding: 0.6rem 0.9rem;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
}
.header-utility-row .notification-dropdown {
  top: calc(100% + 0.5rem);
  bottom: auto;
  right: 0;
  left: auto;
}
.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #d32f2f;
  color: white;
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1;
  padding: 2px 6px;
  font-weight: 700;
}
.menu-badge {
  background: #d32f2f;
  color: white;
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1;
  padding: 2px 6px;
  font-weight: 700;
  margin-left: 4px;
}
.notification-dropdown {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  width: 280px;
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  background: white;
  color: #0c3d67;
  border: 1px solid #d7e6f2;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 70;
  padding: 0.5rem;
}
.notification-mark-read-button {
  display: block;
  width: 100%;
  text-align: center;
  background: #eef6fc;
  color: #1f7bb6;
  border: none;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.notification-dropdown-item {
  padding: 0.5rem;
  border-bottom: 1px solid #eef4fa;
  font-size: 0.85rem;
}
.notification-dropdown-item:last-child {
  border-bottom: none;
}
.notification-dropdown-item.unread {
  background: #f0f7ff;
}
.notification-dropdown-item strong {
  display: block;
  margin-bottom: 0.2rem;
}
.notification-dropdown-empty {
  padding: 0.75rem;
  color: #557a9a;
  font-size: 0.85rem;
  text-align: center;
}
.required-note {
  font-size: 0.85rem;
  color: #557a9a;
  margin: -0.5rem 0 1rem;
}
.week-locked {
  opacity: 0.5;
}
.section-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.section-action-row h2 {
  margin: 0;
}
.compact-action-row {
  justify-content: flex-start;
  gap: 0.5rem;
}
.compact-action-row select,
.compact-action-row button {
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
}
.payment-info {
  background: #f1f9ff;
  border: 1px solid #b2dbff;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}
.copy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.copy-button {
  background: white;
  color: #1f7bb6;
  border: 1px solid #1f7bb6;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}
.copy-button:hover {
  background: #1f7bb6;
  color: white;
}
.causale-row {
  margin: 0.5rem 0 0;
}
.dropdown-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.dropdown-field-label {
  font-weight: bold;
  font-size: 0.92rem;
}
.dropdown-trigger {
  background: white;
  color: #0c3d67;
  border: 1px solid #c2d7ec;
  border-radius: 10px;
  padding: 0.6rem;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
}
.dropdown-trigger::after {
  content: '▾';
  flex-shrink: 0;
  margin-left: auto;
}
.dropdown-trigger:has(+ .dropdown-panel:not(.hidden))::after {
  content: '▴';
}
.dropdown-trigger:hover {
  border-color: #1f7bb6;
}
.dropdown-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #557a9a;
}
.dropdown-panel {
  border: 1px solid #c2d7ec;
  border-radius: 10px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.dropdown-panel label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.form-fields-panel {
  display: grid;
  gap: 0.6rem;
  max-height: none;
}
.form-fields-panel label {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  text-align: left;
  font-weight: bold;
}
.dropdown-trigger.complete {
  border-color: #2f9e58;
  color: #1f7a3c;
}
.dropdown-trigger.complete:has(+ .dropdown-panel.hidden)::before {
  content: '✓ ';
  flex-shrink: 0;
}
fieldset:has(#childDataTrigger) {
  margin-bottom: 0.35rem;
}
#weeksPanel,
#optionsPanel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 0.6rem;
  max-height: none;
}
#weeksPanel label,
#optionsPanel label {
  font-size: 0.85rem;
}
.dropdown-panel input[type="checkbox"],
.dropdown-panel input[type="radio"] {
  width: auto;
}
.stacked-label {
  flex-direction: column !important;
  align-items: stretch;
  gap: 0.4rem;
}
.checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}
.checkbox-label input[type="checkbox"] {
  width: auto;
  height: 1.1rem;
  width: 1.1rem;
}
.inline-label {
  flex: 1;
  min-width: 200px;
}
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.radio-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}
.radio-label input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
}
.giorno-settimana {
  margin-bottom: 0.6rem;
}
.giorno-day-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #eef4fa;
}
.giorno-day-label {
  width: 5.5rem;
  font-weight: 600;
}
.daily-timeslot-row {
  display: flex;
  gap: 0.6rem;
}
.giorno-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.delete-application-button,
.edit-application-button {
  background: none;
  border: none;
  color: #d6334c;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.edit-application-button {
  color: #1f7bb6;
}
.delete-application-button:hover {
  color: #a30f27;
}
.edit-application-button:hover {
  color: #155a87;
}
.giorno-checkbox-row label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  flex-shrink: 0;
  gap: 0.3rem;
  font-weight: 500;
  white-space: nowrap;
}
.giorno-checkbox-row label input {
  flex-shrink: 0;
  width: auto !important;
}
fieldset {
  border: 1px solid #e2ecf5;
  border-radius: 14px;
  padding: 1rem;
  margin: 0 0 0.75rem;
}
fieldset legend {
  font-weight: 700;
  padding: 0 0.4rem;
}
.registration-page h2,
.registration-page h3,
.registration-page legend,
.registration-page .dropdown-field-label,
.profile-section h2 {
  text-align: left;
}
.registration-page h2,
.profile-section h2 {
  margin: 0 0 0.5rem;
}
.registration-page h3,
.profile-section h3 {
  margin: 0.75rem 0 0.4rem;
  font-size: 1.05rem;
}
.week-accordion {
  border: 1px solid #e0e8ef;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.4rem;
}
.week-accordion summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.15rem 0;
}
.week-accordion[open] summary {
  margin-bottom: 0.3rem;
}
.settings-accordion {
  border: 1px solid #e0e8ef;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  margin-bottom: 0.5rem;
}
.settings-accordion summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.2rem 0;
}
.settings-accordion[open] summary {
  margin-bottom: 0.5rem;
}
.profile-complete-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1f8b4c;
  background: #e6f6ec;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  vertical-align: middle;
  margin-left: 0.4rem;
}
.profile-incomplete-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c62828;
  background: #fdecea;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  vertical-align: middle;
  margin-left: 0.4rem;
}
.collega-iscritti-parent-select {
  min-width: 220px;
  max-width: 100%;
}
.receipt-actions-cell {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.receipt-actions-cell a,
.receipt-actions-cell .text-button {
  padding: 0.5rem 0.3rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.badge-annullata {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c62828;
  background: #fdecea;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  vertical-align: middle;
  margin-left: 0.4rem;
}
.checkbox-list {
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  border: 1px solid #e0e8ef;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}
.checkbox-list .checkbox-label {
  display: block;
  padding: 0.2rem 0;
}
.checkbox-list .checkbox-label small {
  color: #6b7a89;
}
.checkbox-list-compact .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.communication-filters {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.communication-filters .checkbox-label {
  margin: 0;
  font-size: 0.85rem;
}
.communication-week-dropdown {
  margin-bottom: 0.1rem;
}
.notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.notes-list li {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.8rem;
  border: 1px solid #e2ecf5;
  border-radius: 10px;
}
.notes-list .note-link {
  font-weight: 700;
  color: #1f7bb6;
  text-decoration: none;
}
.communication-week-dropdown summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: #1f7bb6;
  font-weight: 600;
  list-style: none;
}
.communication-week-dropdown summary::-webkit-details-marker { display: none; }
.communication-week-dropdown .checkbox-list {
  margin-top: 0.25rem;
  padding: 0.25rem 0;
}
#communicationRecipientsList .checkbox-label {
  font-size: 0.78rem;
  padding: 0.05rem 0;
}
#communicationRecipientsList .checkbox-label input {
  width: auto;
  min-width: 0;
}
.add-child-button {
  background: #1f7bb6;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.add-child-button:hover {
  opacity: 0.9;
}
#infoPrezziFlyerLink {
  white-space: normal;
  text-align: center;
  box-sizing: border-box;
  flex: 0 0 100%;
  width: 100%;
}
.enroll-child-button {
  background: white;
  color: #1f7bb6;
  border: 2px solid #1f7bb6;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-weight: 700;
  text-align: center;
}
.delete-child-button,
.delete-parent-button {
  color: #c0392b;
  font-weight: 600;
}
.profile-section .child-form,
.profile-section .parent-form {
  background: #f7fbff;
  border: 1px solid #dceefa;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: grid;
  gap: 0.75rem;
}
.profile-section .child-form h3,
.profile-section .parent-form h3 {
  margin: 0;
}
.registration-page label[for],
.registration-page > label {
  font-weight: bold;
}
#ownApplicationsContainer,
#historyTableContainer {
  margin-bottom: 1.5rem;
}
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .photo-cards {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}
@media (max-width: 700px) {
  .photo-cards {
    grid-template-columns: 1fr;
  }
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  box-sizing: border-box;
}
.archivio-row-clickable {
  cursor: pointer;
}
.archivio-row-clickable:hover {
  background: #eaf6ff;
}
.archivio-letter-group {
  margin-bottom: 0.5rem;
}
.archivio-letter-group .table-scroll {
  margin-top: 0.5rem;
}
.table-scroll table {
  min-width: 600px;
}
@media (max-width: 950px), (orientation: landscape) and (max-height: 500px) {
  .table-scroll th,
  .table-scroll td {
    padding: 0.4rem 0.5rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .table-scroll table {
    min-width: 0;
  }
  .note-cell {
    white-space: normal;
    max-width: 160px;
  }
  .attendance-cell {
    padding: 0.3rem !important;
  }
  .attendance-cell input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 0.95rem;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .section-action-row {
    flex-direction: column;
    align-items: stretch;
  }
  .section-action-row .add-child-button {
    width: 100%;
  }
  #applicationsActionsRow {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  #applicationsActionsRow #addManualApplicationButton {
    width: auto;
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
  }
  #applicationsActionsRow .finance-overview-button,
  #applicationsActionsRow .export-excel-button {
    font-size: 0.72rem;
    padding: 0.4rem 0.6rem;
    width: auto;
    margin: 0;
  }
  #weeksPanel,
  #optionsPanel {
    grid-template-columns: 1fr;
  }
  .giorno-checkbox-row {
    gap: 0.5rem;
  }
  .copy-row {
    flex-direction: column;
    align-items: stretch;
  }
  .copy-row .copy-button {
    width: 100%;
  }
  .inline-label {
    min-width: 0;
    width: 100%;
  }
}

.info-prezzi-group-title {
  margin: 1.2rem 0 0.5rem;
  color: #1f7bb6;
}
.info-prezzi-item {
  margin-bottom: 0.9rem;
}
.info-prezzi-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}
.info-prezzi-item-desc {
  font-size: 0.85rem;
  color: #557a9a;
  margin: 0 0 0.2rem;
}
.info-prezzi-bullets {
  font-size: 0.85rem;
  color: #557a9a;
  margin: 0;
  padding-left: 1.2rem;
}
.info-prezzi-simple-item {
  font-size: 0.85rem;
  margin: 0.2rem 0;
}
.info-prezzi-orari-hint {
  font-size: 0.85rem;
  color: #557a9a;
  margin: 0 0 0.6rem;
}
.programma-description {
  font-size: 0.85rem;
  color: #557a9a;
  margin: 0 0 0.8rem;
}
.programma-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  table-layout: fixed;
}
.programma-table th,
.programma-table td {
  border: 1px solid #e2ecf5;
  padding: 0.6rem;
  text-align: left;
  font-size: 0.85rem;
  vertical-align: top;
  overflow-wrap: break-word;
}
.programma-table th[data-label="Giorno"],
.programma-table thead th:first-child {
  width: 14%;
}
.programma-table thead th {
  background: #eef6fc;
  text-align: center;
  font-weight: 700;
}
.programma-cell-pranzo {
  background: #fbfdff;
}
.programma-table tbody th[data-label="Giorno"] {
  text-align: center;
  font-size: 1.05rem;
}
.programma-table td[data-label="Mattino"],
.programma-table td[data-label="Pranzo"],
.programma-table td[data-label="Pomeriggio"] {
  text-align: center;
}
@media (max-width: 600px) {
  .programma-table thead {
    display: none;
  }
  .programma-table, .programma-table tbody, .programma-table tr, .programma-table th, .programma-table td {
    display: block;
    width: 100%;
  }
  .programma-table tr {
    border: 1px solid #e2ecf5;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    overflow: hidden;
  }
  .programma-table th[data-label="Giorno"] {
    background: #eef6fc;
    text-align: center;
    font-size: 1.15rem;
    width: 100%;
    box-sizing: border-box;
  }
  .programma-table td, .programma-table th:not([data-label="Giorno"]) {
    border: none;
    border-top: 1px solid #e2ecf5;
  }
  .programma-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    color: #1f7bb6;
    margin-bottom: 0.2rem;
  }
}
.programma-day-fieldset {
  border: 1px solid #e2ecf5;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  padding: 0.6rem 0.8rem;
}
.programma-day-fieldset legend {
  font-weight: 700;
  color: #1f7bb6;
}

/* ---- Inline form (Versamenti Banca, Uscite aggiuntive BR) ---- */
.inline-form {
  background: #f4f8fb;
  border: 1px solid #c8dce9;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.inline-form label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.inline-form input, .inline-form select {
  font-size: 0.85rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid #b0c8d8;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}
.form-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ---- Bilancio Ricevute table ---- */
#bilancioRicevuteSection .finance-row-table tfoot td {
  border-top: 2px solid #1f7bb6;
  padding-top: 0.4rem;
}

/* ---- Riduzione rettangolo bianco su mobile ---- */
@media (max-width: 600px) {
  .dashboard {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
  }
  main {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
  #dashboardContent > section {
    padding: 0 0 0.25rem;
  }
}

/* ---- Landscape focus mode (tabelle wide) ---- */
body.landscape-focus header,
body.landscape-focus .bottom-nav,
body.landscape-focus .sidebar,
body.landscape-focus #headerIntroBox {
  display: none !important;
}
body.landscape-focus main {
  padding-top: 0.5rem;
}
body.landscape-focus .dashboard {
  padding: 0;
}
body.landscape-focus #dashboardContent > section {
  padding: 0;
}
.landscape-focus-exit {
  display: none;
}
body.landscape-focus .landscape-focus-exit:not(.hidden) {
  display: block;
  position: fixed;
  bottom: 0.8rem;
  right: 0.8rem;
  background: #1f7bb6;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  z-index: 9999;
}
