/*
 * AgendaDiOdino — CSS del sito. Ricrea solo le regole di Event Booking (style.css + themes/brown.css)
 * usate dal markup che emettiamo; stesse classi eb-* così il CSS personalizzato importato continua a valere.
 * (C) 2026 Runa di Odino; derivato da Event Booking (C) 2010-2026 Ossolution Team — GPL v2 o successiva.
 */
:root {
	--adod-brown: #40342A;
	--adod-brown-2: #594732;
	--adod-border: #DBDEE1;
}

/* ---- base ---- */
.eb-container img { border: 0 none; max-width: 100%; height: auto; }
.eb-container .clearfix::after, .eb-container.clearfix::after { content: ""; display: table; clear: both; }
.eb-container .row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.eb-container .row > [class*="col-"] { box-sizing: border-box; padding: 0 10px; width: 100%; }
@media (min-width: 768px) {
	.eb-container .row > .col-md-3 { width: 25%; }
	.eb-container .row > .col-md-4 { width: 33.3333%; }
	.eb-container .row > .col-md-8 { width: 66.6666%; }
	.eb-container .row > .col-md-9 { width: 75%; }
	.eb-container .row > .col-md-12 { width: 100%; }
}
.eb-container .bg-primary { background-color: var(--adod-brown); color: #fff; }
.eb-container .text-info { font-weight: bold; }
.eb-container .table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.eb-container .table td, .eb-container .table th { padding: 6px 8px; vertical-align: top; text-align: left; }
.eb-container .table-bordered td, .eb-container .table-bordered th { border: 1px solid var(--adod-border); }
.eb-container .table-striped tbody tr:nth-of-type(odd) { background: rgba(0, 0, 0, .03); }
.eb-container .btn { display: inline-block; padding: 6px 14px; border: 1px solid var(--adod-brown); border-radius: 3px; line-height: 1.5; cursor: pointer; text-decoration: none; }
.eb-container .btn-primary { background: var(--adod-brown); color: #fff; }
.eb-container .btn-secondary { background: transparent; color: var(--adod-brown); }
.eb-container .btn:hover, .eb-container .btn:focus { opacity: .85; text-decoration: none; }
.adod-icon { display: inline-block; vertical-align: -.125em; width: 1em; height: 1em; }
.eb-invisible-to-visitors { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- immagini e intestazioni (style.css EB) ---- */
img.eb-thumb-left { margin-right: 15px; float: left !important; }
.eb-thumb-left { margin-right: 15px; margin-bottom: 15px; }
.eb-category-description img.eb-thumb-left { padding-bottom: 10px; padding-top: 2px; }
.eb-event-large-image { margin: 0 0 20px; max-width: 100%; }
.eb-box-heading { border-radius: 7px 7px 0 0; color: #333; font-weight: bold; padding: 8px 10px; margin: 0; background: #f2f2f2; border: 1px solid var(--adod-border); }
.eb-box-heading h2, .eb-box-heading h3 { margin: 0; }
#eb-events .eb-description, #eb-event-page .eb-description { background: #fff; border: 1px solid var(--adod-border); border-top: 0; border-radius: 0 0 7px 7px; margin: 0; padding: 10px; }
#eb-events .eb-event { margin: 0 0 20px; }
#eb-event-page h1.eb-page-heading { margin: 0; }
td.eb-event-property-label { text-align: left; font-weight: bold; }
#eb-event-info { margin-top: 15px; }
#eb-event-info table { margin-top: 10px; }
.eb-notice-message { font-size: 130%; font-weight: bold; margin-top: 8px; }
td.eb-agenda-time { width: 15%; }

/* ---- barra pulsanti ---- */
.eb-taskbar { margin: 0; list-style: none; }
.eb-taskbar ul { margin: 0; padding: 0; }
.eb-taskbar li { float: left; list-style-type: none; background-image: none; padding: 0 5px 0 0; margin: .5em 0 2px 0; }
.eb-taskbar li a:link, .eb-taskbar li a:visited, .eb-taskbar li a:hover { text-decoration: none; }
@media screen and (max-width: 640px) { .eb-taskbar li { float: none !important; } }

/* ---- timeline (events_timeline_layout) ---- */
.eb-events-timeline .eb-taskbar { padding: 25px 0; border-bottom: 1px dotted #a5a5a5; margin: 0; }
.eb-event-container { position: relative; margin-top: 0; padding: 0 0 0 100px; }
.eb-event-container::before { content: ""; position: absolute; left: 41px; top: 85px; bottom: 0; border-left: 2px dotted #c9c3bb; }
.eb-event-date-container { background: #fff; border: 1px solid #eee; margin: 0 15px 0 -100px; padding: 5px; border-radius: 100%; display: block; float: left; position: relative; }
.eb-event-date { border-radius: 100%; font-family: inherit; height: 60px; width: 60px; padding: 5px; text-align: center; box-sizing: content-box; }
.eb-event-date-day { color: #fff; font-size: 20px; font-weight: bold; line-height: 20px; padding-top: 4px; }
.eb-event-date-month, .eb-event-date-year { color: #fff; font-size: 14px; line-height: 14px; }
.eb-event-information { padding: 0 0 10px; margin-bottom: 12px; }
.eb-event-date-info { font-size: 130%; line-height: 150%; display: inline-block; }
.eb-event-price-container { display: inline-block; float: right; font-size: 140%; }
.eb-event-price-container .eb-individual-price { color: #fff; display: inline-block; padding: 10px; }
span.eb-time, span.eb-event-time { padding-left: 5px; }
.eb-events-timeline .eb-event-information .adod-icon { min-width: 15px; }
.eb-events-timeline .eb-description-details { margin-top: 5px; }
@media (max-width: 640px) {
	.eb-event-container { padding-left: 0; }
	.eb-event-container::before { display: none; }
	.eb-event-date-container { margin: 0 12px 8px 0; }
}

/* ---- modulo d'iscrizione ---- */
form.form-horizontal .control-label, form.form-horizontal .control-label label { text-align: left; font-weight: bold; }
.eb-container .form-group.form-row { margin-bottom: 15px; }
.eb-container .form-group select, .eb-container .form-group input.radio, .eb-container .form-group input.checkbox { display: inline-block; }
.eb-container .form-control, .eb-container .form-select { box-sizing: border-box; max-width: 100%; }
span.required { color: red; padding-left: 5px; }
.eb-heading { display: inline-block; margin-right: 20px; }
.adod-amount { display: inline-flex; align-items: stretch; max-width: 220px; }
.adod-amount .add-on { display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid #ccc; background: #f5f5f5; }
.adod-amount .add-on:first-child { border-right: 0; }
.adod-amount .add-on:last-child { border-left: 0; }
.adod-amount.is-loading { opacity: .6; }
.eb-payment-method-description { margin-top: 6px; }
.adod-options { border: 0; margin: 0; padding: 0; }
.adod-option { display: block; font-weight: normal; }
.form-actions { margin: 15px 0; }

/* ---- calendario mensile ---- */
.adod-calendar-nav { display: flex; justify-content: space-between; align-items: center; background: var(--adod-brown); color: #fff; padding: 8px 12px; }
.adod-calendar-nav a { color: #fff; font-size: 1.4em; }
.adod-calendar-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.regpro-calendarWeekDayHeader { background: var(--adod-brown-2); color: #fff; font-weight: bolder; text-align: center; padding: 5px; }
.regpro-calendarDay { text-align: left; vertical-align: top; font-size: 12px; padding: 5px; background-color: #efefef; border: 1px solid #fff; height: 80px; }
.regpro-calendarDay.adod-today { background-color: #DAD9CE; }
.regpro-calendarDay .eb_event_link { display: block; margin-top: 3px; padding: 4px; font-size: 11px; color: #fff; background: var(--adod-brown); }
.adod-calendar-daynum { font-weight: bold; }
@media (max-width: 640px) { .regpro-calendarDay { height: auto; font-size: 11px; } .regpro-calendarDay .eb_event_link { font-size: 10px; } }

/* ---- mini calendario (mod_eb_minicalendar + themes/brown.css) ---- */
.extcal_minical .extcal_navbar { border: none; margin: 0 0 1px; border-bottom: 1px solid #B4B4B6; background: var(--adod-brown); }
.extcal_minical .extcal_navbar td { padding: 10px; text-align: center; width: 10%; }
.extcal_minical .extcal_navbar td.extcal_month_label { width: 50%; white-space: nowrap; }
.extcal_minical .extcal_month_label a { color: #fff; font-weight: bold; }
a.mod_eb_minicalendar_link, .mod_eb_minicalendar_link a, .mod_eb_minicalendar_link .adod-icon { color: #fff; cursor: pointer; text-decoration: none; }
a.mod_eb_minicalendar_link:hover, .mod_eb_minicalendar_link a:hover, .mod_eb_minicalendar_link a:focus { color: yellow; }
.mod_eb_mincalendar_table { font-size: 13px; margin-bottom: .25em; text-align: center; width: 100%; border-collapse: collapse; }
.mod_eb_mincalendar_table td { border: 1px solid #ccc; }
.mod_eb_mincalendar_table tbody td { color: #333; font-weight: normal; padding: 3px 2px; }
.mod_eb_mincalendar_td_dayname { background: var(--adod-brown-2); color: #F0F0F0; font-weight: bold; line-height: 15px; text-align: center !important; padding: 10px 2px; }
.mod_eb_mincalendar_today { color: #000; font-weight: bold; }
td.mod_eb_mincalendar_event { background-color: var(--adod-brown); }
a.eb_minical_link { color: #fff; display: block; }
a.eb_minical_link:hover { color: yellow; text-decoration: none; }
.extcal_minical.is-loading .calendar_result, .extcal_minical.is-loading #calendar_result { opacity: .5; }

/* ---- modulo prossimi eventi (mod_eb_events/css/style.css) ---- */
.ebm-upcoming-events { margin: 0; padding: 0; }
.ebm-upcoming-events > div { list-style: none; padding: 0 0 10px; margin: 0 0 10px; border-bottom: 1px solid #e6ecf0; line-height: 1.8; }
.ebm-upcoming-events > div:last-child { padding: 0; margin: 0; border-bottom: none; }
.ebm-upcoming-events .ebm-event-link { font-size: 110%; font-weight: bold; }
.ebm-upcoming-events .ebm-event-thumb { margin: 0 0 8px; display: block; }
.ebm-upcoming-events-improved .up-event-item { display: flex; gap: 10px; }
.ebm-upcoming-events-improved div.ebm-event-date { width: 40px; display: block; text-align: center; flex: 0 0 auto; }
.ebm-upcoming-events-improved div.ebm-event-month { color: #fff; text-transform: uppercase; line-height: 1.1em; font-weight: bold; padding: 3px; background: var(--adod-brown); border: 1px solid var(--adod-brown); }
.ebm-upcoming-events-improved div.ebm-event-day { background: #fff; font-size: 18px; line-height: 18px; font-weight: bold; padding: 1px; border: 1px solid var(--adod-brown); border-top: none; color: var(--adod-brown); }

/* ---- gestione dal sito ---- */
.adod-manage .adod-filters, .adod-manage .adod-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.adod-manage .adod-filters .form-control, .adod-manage .adod-filters .form-select { width: auto; min-width: 180px; }
.adod-table-wrap { overflow-x: auto; }
.adod-table .adod-num { text-align: right; white-space: nowrap; }
.adod-table .adod-check { width: 1%; }
.adod-manage .adod-fieldset { border: 0; padding: 0; margin: 0 0 16px; }
