/* Solo tema: cio' che nel prototipo statico non esiste (selettore lingua, eventi, loghi, Fluent Forms).
   style.css e' la copia del prototipo e non si tocca qui. Usa i token del prototipo (--tb-*). */

/* ---------- eventi (archivio e singolo) ---------- */
.tb-events__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(32px, 4vw, 56px); }
.tb-events__item { display: grid; gap: 24px; padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid rgba(16,35,63,.18); }
@media (min-width: 720px) { .tb-events__item { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; } }
.tb-events__thumb img { display: block; width: 100%; height: auto; }
.tb-events__title { margin: 0 0 16px; font-family: var(--tb-font-title); font-weight: 400; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; }
.tb-events__pager { margin-top: 48px; display: flex; gap: 16px; font-size: 15px; letter-spacing: .06em; }
.tb-events__pager .page-numbers { padding: 6px 12px; border: 1px solid rgba(16,35,63,.3); }
.tb-events__pager .current { background: var(--tb-blue); color: var(--tb-white); border-color: var(--tb-blue); }
.tb-events__content { max-width: 70ch; margin-bottom: 8px; }
.tb-events__content + .tb-cta { margin-top: 30px; }

/* ---------- Fluent Forms nei Contatti: stesso aspetto dei campi tb-field del prototipo (style.css), scuro e chiaro ----------
   Selettori con .fluentform in piu': fluent-forms-public.css si carica dopo theme.css e a parita' di specificita' vincerebbe;
   il bottone batte anche la regola in linea di Fluent (form.fluent_form_N .ff-btn-submit:not(.ff_btn_no_style), colore bianco). */
.tb-contact__form--fluent .fluentform, .tb-contact__form--fluent .fluentform .frm-fluent-form, .tb-contact__form--fluent .fluentform fieldset { margin: 0; }
.tb-contact__form--fluent .fluentform .ff-el-group { margin: 0 0 28px; }
.tb-contact__form--fluent .fluentform .ff-el-input--label label { display: block; margin: 0 0 10px; font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: inherit; }
.tb-contact__form--fluent .fluentform .ff-el-form-control { width: 100%; box-sizing: border-box; margin: 0; padding: 14px 16px; font: inherit; font-size: var(--tb-text); line-height: 1.4; color: var(--tb-white); background-color: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.4); border-radius: 0; box-shadow: none; transition: border-color .3s, background-color .3s; }
.tb-contact__form--fluent .fluentform .ff-el-form-control::placeholder { color: rgba(255,255,255,.62); opacity: 1; }
.tb-contact__form--fluent .fluentform .ff-el-form-control:hover { border-color: rgba(255,255,255,.7); }
.tb-contact__form--fluent .fluentform .ff-el-form-control:focus, .tb-contact__form--fluent .fluentform .ff-el-form-control:focus-visible { outline: 2px solid var(--tb-teal-2); outline-offset: 3px; border-color: var(--tb-teal-2); background-color: rgba(255,255,255,.1); box-shadow: none; }
.tb-contact__form--fluent .fluentform textarea.ff-el-form-control { resize: vertical; min-height: 140px; }
.tb-contact__form--fluent .fluentform select.ff-el-form-control { appearance: none; -webkit-appearance: none; padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.tb-contact__form--fluent .fluentform select.ff-el-form-control:has(option[value=""]:checked) { color: rgba(255,255,255,.62); }
.tb-contact__form--fluent .fluentform select.ff-el-form-control option { color: var(--tb-ink); background: var(--tb-white); }
.tb-contact__form--fluent .fluentform .ff-el-form-check { margin: 0; }
.tb-contact__form--fluent .fluentform .ff-el-form-check-label { display: flex; align-items: flex-start; gap: 14px; margin: 0; font-size: 15px; font-weight: 400; line-height: var(--tb-text-lh); color: rgba(255,255,255,.88); cursor: pointer; }
.tb-contact__form--fluent .fluentform .ff-el-form-check-label > span { padding-top: 1px; }
.tb-contact__form--fluent .fluentform .ff-el-form-check input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--tb-teal); }
.tb-contact__form--fluent .fluentform .ff-el-form-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--tb-teal-2); outline-offset: 3px; }
/* link Privacy: il colore in linea del modulo (style="color:#3f0003") non si legge sullo scuro; stessa righetta dei link del prototipo */
.tb-contact__form--fluent .fluentform .ff-el-form-check-label a { color: inherit !important; text-decoration: none; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) left bottom / 20px 1px no-repeat; transition: background-size .4s ease, color .3s; }
.tb-contact__form--fluent .fluentform .ff-el-form-check-label a:hover, .tb-contact__form--fluent .fluentform .ff-el-form-check-label a:focus-visible { background-size: 100% 1px; }
.tb-contact__form--fluent .fluentform .ff-el-is-error .ff-el-form-control { border-color: #FFA79B; }
.tb-contact__form--fluent .fluentform .text-danger, .tb-contact__form--fluent .fluentform .error { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: #FFB8AE; }
.tb-contact__form--fluent .fluentform .ff_submit_btn_wrapper { margin: 4px 0 0; }
.tb-contact__form--fluent .fluentform .ff-btn-submit:not(.ff_btn_no_style) { display: inline-block; margin: 0; padding: 14px 22px; font: inherit; font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: inherit; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 0; box-shadow: none; opacity: 1; cursor: pointer; }
.tb-contact__form--fluent .fluentform .ff-btn-submit:not(.ff_btn_no_style):hover { color: inherit; background: color-mix(in srgb, var(--tb-cta-line, var(--tb-teal)) 14%, transparent); opacity: 1; }
.tb-contact__form--fluent .fluentform .ff-btn-submit:not(.ff_btn_no_style):focus-visible { outline: 2px solid var(--tb-teal-2); outline-offset: 4px; }
.tb-contact__form--fluent .fluentform .ff-message-success { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font-size: var(--tb-text); line-height: var(--tb-text-lh); color: var(--tb-teal-2); }
/* variante chiara */
.tb-contact.tb-section--light .tb-contact__form--fluent .fluentform .ff-el-form-control { color: var(--tb-ink); background-color: rgba(16,35,63,.04); border-color: rgba(16,35,63,.4); }
.tb-contact.tb-section--light .tb-contact__form--fluent .fluentform .ff-el-form-control::placeholder, .tb-contact.tb-section--light .tb-contact__form--fluent .fluentform select.ff-el-form-control:has(option[value=""]:checked) { color: rgba(16,35,63,.6); }
.tb-contact.tb-section--light .tb-contact__form--fluent .fluentform .ff-el-form-control:hover { border-color: rgba(16,35,63,.7); }
.tb-contact.tb-section--light .tb-contact__form--fluent .fluentform .ff-el-form-control:focus, .tb-contact.tb-section--light .tb-contact__form--fluent .fluentform .ff-el-form-control:focus-visible { outline-color: var(--tb-teal-4); border-color: var(--tb-teal-4); background-color: rgba(16,35,63,.07); }
.tb-contact.tb-section--light .tb-contact__form--fluent .fluentform select.ff-el-form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2310233F' stroke-width='1.6'/%3E%3C/svg%3E"); }
.tb-contact.tb-section--light .tb-contact__form--fluent .fluentform .ff-el-form-check-label { color: var(--tb-ink-2); }
.tb-contact.tb-section--light .tb-contact__form--fluent .fluentform .ff-el-form-check input[type="checkbox"] { accent-color: var(--tb-teal-4); }
.tb-contact.tb-section--light .tb-contact__form--fluent .fluentform .ff-el-form-check input[type="checkbox"]:focus-visible, .tb-contact.tb-section--light .tb-contact__form--fluent .fluentform .ff-btn-submit:not(.ff_btn_no_style):focus-visible { outline-color: var(--tb-teal-4); }
.tb-contact.tb-section--light .tb-contact__form--fluent .fluentform .ff-el-is-error .ff-el-form-control { border-color: #B3261E; }
.tb-contact.tb-section--light .tb-contact__form--fluent .fluentform .text-danger, .tb-contact.tb-section--light .tb-contact__form--fluent .fluentform .error { color: #B3261E; }
.tb-contact.tb-section--light .tb-contact__form--fluent .fluentform .ff-message-success { color: var(--tb-teal-4); }
