/* Divi Fotografi Community */
.dfc-form, .dfc-box, .dfc-cta, .dfc-profile, .dfc-list { --dfc-accent: #2b6cb0; --dfc-free: #2e9e5b; --dfc-busy: #d64545; --dfc-mixed: #e0a100; --dfc-line: #d5d9de; box-sizing: border-box; color: inherit; }
.dfc-form *, .dfc-box *, .dfc-cta *, .dfc-profile *, .dfc-list * { box-sizing: border-box; }

/* Campi */
.dfc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 14px; }
.dfc-grid--1 { grid-template-columns: 1fr; }
.dfc-field { margin: 0 0 14px; min-width: 0; }
.dfc-grid .dfc-field { margin: 0; }
.dfc-field--wide { grid-column: 1 / -1; }
.dfc-field > label, .dfc-field > legend, .dfc-genres legend { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.dfc-field input[type="text"], .dfc-field input[type="email"], .dfc-field input[type="password"], .dfc-field input[type="date"], .dfc-field input[type="time"], .dfc-field select, .dfc-field textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--dfc-line); border-radius: 6px; background: #fff; font: inherit; color: #1d1d1f; }
.dfc-field input:focus, .dfc-field select:focus, .dfc-field textarea:focus { outline: 2px solid var(--dfc-accent); outline-offset: 1px; }
.dfc-hint { display: block; color: #666; font-size: 12.5px; margin-top: 4px; }
.dfc-req { color: #d00; font-weight: 700; }
.dfc-legend { font-size: 13px; color: #555; margin: 4px 0 12px; }
.dfc-pw { display: flex; gap: 6px; }
.dfc-pw input { flex: 1; }
.dfc-pw-toggle { border: 1px solid var(--dfc-line); background: #f5f6f8; border-radius: 6px; padding: 0 12px; cursor: pointer; font-size: 13px; }
.dfc-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.dfc-check input { margin-top: 4px; }
.dfc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dfc-invalid input, .dfc-invalid select, .dfc-invalid textarea { border-color: #c62828 !important; }
.dfc-field-err { display: block; color: #c62828; font-size: 13px; font-weight: 600; margin-top: 4px; }
@media (max-width: 640px) { .dfc-grid { grid-template-columns: 1fr; } }

/* Pulsanti e messaggi */
.dfc-btn { display: inline-block; padding: 11px 22px; border: 2px solid var(--dfc-accent); border-radius: 6px; background: var(--dfc-accent); color: #fff !important; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 15px; line-height: 1.2; }
.dfc-btn:hover { filter: brightness(1.1); }
.dfc-btn[disabled] { opacity: .6; cursor: default; }
.dfc-btn--ghost { background: transparent; color: var(--dfc-accent) !important; }
.dfc-btn--small { padding: 7px 14px; font-size: 14px; }
.dfc-link { background: none; border: 0; color: var(--dfc-accent); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; font-size: 13px; }
.dfc-msg { margin-top: 12px; font-size: 14px; }
.dfc-msg.is-ok { color: #1a7f37; }
.dfc-msg.is-err { color: #c62828; }
.dfc-small { font-size: 13px; color: #555; margin-top: 12px; }
.dfc-status { background: #f3f6fa; border-left: 4px solid var(--dfc-accent); padding: 10px 14px; border-radius: 4px; }
.dfc-box, .dfc-cta { border: 1px solid var(--dfc-line); border-radius: 8px; padding: 18px 22px; background: #fafbfc; }
.dfc-cta__title { font-size: 20px; font-weight: 700; margin: 0 0 4px; }

/* Generi */
.dfc-genres { border: 0; padding: 0; margin: 0 0 18px; }
.dfc-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.dfc-chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--dfc-line); border-radius: 999px; background: #fff; font-size: 14px; cursor: pointer; text-decoration: none; color: inherit; }
.dfc-chips--static .dfc-chip { cursor: default; background: #eef3f9; border-color: #cfdcec; }
.dfc-chip:has(input:checked), a.dfc-chip.is-on { background: var(--dfc-accent); border-color: var(--dfc-accent); color: #fff; }
.dfc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.dfc-chip:has(input:focus-visible) { outline: 2px solid var(--dfc-accent); outline-offset: 2px; }

/* Profilo */
.dfc-profile__head { font-size: 18px; margin: 0 0 10px; }
.dfc-profile__city { color: #555; font-size: 14px; }
.dfc-profile section { margin-top: 34px; }
.dfc-profile h3 { margin-bottom: 12px; }
.dfc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 18px 0; }
.dfc-card { border: 1px solid var(--dfc-line); border-radius: 8px; padding: 16px 18px; background: #fff; }
.dfc-card h3 { margin: 0 0 6px; font-size: 18px; }
.dfc-pager { margin-top: 12px; }

/* Calendario */
.dfc-cal { max-width: 440px; border: 1px solid var(--dfc-line); border-radius: 8px; padding: 14px; background: #fff; }
.dfc-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dfc-cal-nav { border: 1px solid var(--dfc-line); background: #f5f6f8; border-radius: 6px; width: 34px; height: 34px; font-size: 20px; line-height: 1; cursor: pointer; }
.dfc-cal-nav[disabled] { opacity: .35; cursor: default; }
.dfc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dfc-cal-wd { text-align: center; font-size: 12px; color: #777; padding: 2px 0; }
.dfc-day { aspect-ratio: 1 / 1; border: 1px solid transparent; border-radius: 6px; background: #f5f6f8; font: inherit; font-size: 14px; cursor: pointer; padding: 0; color: #1d1d1f; position: relative; }
.dfc-day.is-empty { background: none; cursor: default; }
.dfc-day.is-past { opacity: .45; }
.dfc-day.is-free { background: #dff3e7; border-color: var(--dfc-free); }
.dfc-day.is-busy { background: #f8dede; border-color: var(--dfc-busy); }
.dfc-day.is-mixed { background: #fbefcc; border-color: var(--dfc-mixed); }
.dfc-day.is-today { font-weight: 800; box-shadow: inset 0 0 0 2px #1d1d1f33; }
.dfc-day.is-selected { outline: 3px solid var(--dfc-accent); outline-offset: 1px; }
.dfc-day[disabled] { cursor: default; }
.dfc-cal-legend { display: flex; gap: 14px; font-size: 12.5px; color: #555; margin: 10px 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.dot.is-free { background: var(--dfc-free); } .dot.is-busy { background: var(--dfc-busy); } .dot.is-mixed { background: var(--dfc-mixed); }
.dfc-cal-panel h4 { margin: 8px 0; font-size: 15px; text-transform: capitalize; }
.dfc-slots { list-style: none; margin: 0 0 10px; padding: 0; }
.dfc-slots li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #eee; }
.dfc-slot-badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; }
.dfc-slots li.is-free .dfc-slot-badge { background: var(--dfc-free); }
.dfc-slots li.is-busy .dfc-slot-badge { background: var(--dfc-busy); }
.dfc-slot-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.dfc-slot-form select, .dfc-slot-form input[type="time"] { padding: 7px 8px; border: 1px solid var(--dfc-line); border-radius: 6px; font: inherit; }
.dfc-times { display: inline-flex; gap: 6px; align-items: center; }
