/* ============================================================
   ANVVF Roma — Material Design Theme
   Based on: Bootstrap 5 + Roboto + Red/Amber palette
   ============================================================ */

/* ----- CSS Variables (Design System) ----- */
:root {
  --md-primary: #C62828;
  --md-primary-dark: #8E0000;
  --md-primary-light: #EF5350;
  --md-accent: #FF8F00;
  --md-accent-light: #FFB300;
  --md-warm: #D32F2F;
  --md-warm-light: #E53935;
  --md-bg: #F5F7FA;
  --md-surface: #FFFFFF;
  --md-text: #263238;
  --md-text-secondary: #607D8B;
  --md-border: #E0E0E0;
  --md-radius: 12px;
  --md-radius-sm: 8px;
  --md-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --md-shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --md-shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --md-navbar-height: 70px;
  --md-footer-bg: #8E0000;
  --md-footer-text: rgba(255,255,255,0.8);
}

/* ----- Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  height: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--md-text);
  background: var(--md-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a {
  color: var(--md-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--md-primary); }
a:focus-visible {
  outline: 3px solid var(--md-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: var(--md-primary-dark);
  line-height: 1.3;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { color: var(--md-text); }

hr {
  border: none;
  border-top: 1px solid var(--md-border);
  margin: 2rem 0;
}

/* ----- Skip Link (accessibility) ----- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 10px;
  z-index: 9999;
  background: var(--md-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 var(--md-radius-sm) var(--md-radius-sm);
  font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: none;
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar-material {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--md-navbar-height);
  transition: all 0.3s ease;
  padding: 0 1rem;
  background: transparent;
}
.navbar-material.navbar-scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.navbar-material .navbar-brand {
  padding: 0;
  margin-right: 2rem;
}
.navbar-material .navbar-brand img {
  max-height: 44px;
  width: auto;
  transition: max-height 0.3s;
}
.navbar-scrolled .navbar-brand img { max-height: 38px; }

.navbar-material .navbar-nav {
  width: 100%;
  justify-content: space-between;
}
.navbar-material .navbar-nav .nav-item {
  flex: 1;
  text-align: center;
}
.navbar-material .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 450;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--md-radius-sm);
  transition: all 0.2s;
  position: relative;
}
.navbar-scrolled .nav-link { color: var(--md-text) !important; }

.navbar-material .nav-link:hover,
.navbar-material .nav-link:focus {
  color: #fff !important;
  background: rgba(255,255,255,0.12);
}
.navbar-scrolled .nav-link:hover,
.navbar-scrolled .nav-link:focus {
  color: var(--md-primary) !important;
  background: rgba(198,40,40,0.08);
}
.navbar-scrolled .nav-link.active {
  color: var(--md-primary) !important;
  font-weight: 500;
}
.navbar-scrolled .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--md-primary);
  border-radius: 1px;
}

/* Badge notifiche navbar */
.badge-notifica {
  animation: badgePop 0.3s ease;
}
@keyframes badgePop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Dropdown */
.navbar-material .dropdown-menu {
  border: none;
  border-radius: var(--md-radius-sm);
  box-shadow: var(--md-shadow-hover);
  padding: 0.5rem 0;
  margin-top: 8px;
  min-width: 200px;
  background: #fff;
  z-index: 1050;
}
.navbar-material .dropdown-menu .nav-link,
.navbar-material .dropdown-item {
  color: var(--md-text) !important;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

/* Nested dropdown (submenu) */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -2px;
  margin-left: 2px;
  display: none;
}
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}
.dropdown-submenu > .dropdown-item.dropdown-toggle::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  border: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  vertical-align: middle;
}
.dropdown-submenu:hover > .dropdown-item {
  background: rgba(198,40,40,0.08);
  color: var(--md-primary) !important;
}
.navbar-material .dropdown-item {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  color: var(--md-text);
  transition: all 0.15s;
}
.navbar-material .dropdown-item:hover,
.navbar-material .dropdown-item:focus {
  background: rgba(198,40,40,0.08);
  color: var(--md-primary);
}

/* Hamburger */
.navbar-toggler {
  border: none !important;
  padding: 0.4rem !important;
  color: rgba(255,255,255,0.9) !important;
}
.navbar-scrolled .navbar-toggler { color: var(--md-text) !important; }
.navbar-toggler:focus { box-shadow: none !important; }

/* Navbar buttons */
.navbar-material .btn-login {
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: rgba(255,255,255,0.9);
  background: transparent;
  transition: all 0.2s;
}
.navbar-scrolled .btn-login {
  border-color: var(--md-accent);
  color: var(--md-accent);
}
.navbar-material .btn-login:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.navbar-scrolled .btn-login:hover {
  background: var(--md-accent);
  color: #fff;
  border-color: var(--md-accent);
}

.navbar-material .btn-admin {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--md-warm);
  color: #fff;
  border: none;
  transition: all 0.2s;
}
.navbar-material .btn-admin:hover { background: #E65100; color: #fff; }

/* ================================================================
   HERO (two-column: carousel left, content right)
   ================================================================ */
.hero-section {
  position: relative;
  width: 100%;
  padding-top: calc(var(--md-navbar-height) + 0.75rem);
  margin-bottom: 1.5rem;
}
.hero-section + .main_content.no-hero {
  padding-top: 0;
}
.hero-inner {
  display: flex;
  width: 100%;
}

/* Carousel side (left, ~60%) */
.hero-carousel-side {
  position: relative;
  flex: 0 0 50%;
  max-width: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--md-radius);
  height: 400px;
}
.hero-carousel-side .carousel,
.hero-carousel-side .carousel-inner,
.hero-carousel-side .carousel-item {
  height: 100%;
}
.hero-carousel-side .carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
}
#heroCarousel.carousel-fade .carousel-item {
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
}
.hero-carousel-side .carousel-item img,
.hero-fallback-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--md-radius);
}
.hero-overlay {
  display: none;
}

/* Carousel controls (within left side) */
.hero-carousel-side .carousel-control-prev,
.hero-carousel-side .carousel-control-next {
  z-index: 3;
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  opacity: 1;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-carousel-side .carousel-control-prev { left: 16px; }
.hero-carousel-side .carousel-control-next { right: 16px; }
.hero-carousel-side .carousel-control-prev:hover,
.hero-carousel-side .carousel-control-next:hover {
  background: rgba(0,0,0,0.65);
}
.hero-carousel-side .carousel-control-prev i,
.hero-carousel-side .carousel-control-next i {
  font-size: 1.2rem;
  color: #fff;
}
.hero-carousel-side .carousel-indicators {
  bottom: 15px;
  z-index: 3;
}
.hero-carousel-side .carousel-indicators button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  margin: 0 3px;
}
.hero-carousel-side .carousel-indicators button.active {
  background: #fff;
  border-color: #fff;
}

/* Content side (right, ~40%) */
.hero-content-side {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}
.hero-content-side h1 {
  color: var(--md-primary-dark);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.15;
}
.hero-content-side .lead {
  color: var(--md-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
}
.hero-content-side .carousel-desc {
  color: var(--md-text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  max-width: 400px;
}

/* Hero pills (CTA buttons stacked vertically) */
.hero-pills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.2rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--md-text);
  background: var(--md-surface);
  border: 1.5px solid var(--md-border);
  transition: all 0.25s;
  text-decoration: none;
  max-width: 280px;
  box-shadow: var(--md-shadow);
}
.hero-pill:hover {
  background: var(--md-primary);
  color: #fff;
  border-color: var(--md-primary);
  transform: translateX(4px);
  text-decoration: none;
  box-shadow: var(--md-shadow-hover);
}
.hero-pill-primary {
  background: var(--md-accent);
  border-color: var(--md-accent);
  color: #fff;
}
.hero-pill-primary:hover {
  background: var(--md-warm);
  border-color: var(--md-warm);
  color: #fff;
}

/* Fallback when no carousel (centered) */
.hero-section .hero-content {
  text-align: center;
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.hero-section .hero-content h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.hero-section .hero-content .lead {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-section .hero-content .hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-section .hero-content .hero-cta .btn {
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.hero-section .hero-content .hero-cta .btn-primary {
  background: var(--md-accent);
  color: #fff;
  border: none;
}
.hero-section .hero-content .hero-cta .btn-primary:hover {
  background: var(--md-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.hero-section .hero-content .hero-cta .btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.hero-section .hero-content .hero-cta .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Responsive hero */
@media (max-width: 991.98px) {
  .hero-inner { flex-direction: column; }
  .hero-carousel-side { flex: 0 0 100%; max-width: 100%; height: 240px; }
  .hero-content-side { flex: 0 0 100%; max-width: 100%; padding: 1.5rem 1.5rem 1.5rem; }
  .hero-content-side h1 { font-size: 1.6rem; }
  .hero-pills { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hero-pill { max-width: none; }
}
@media (max-width: 575.98px) {
  .hero-carousel-side { height: 180px; }
  .hero-content-side { padding: 1rem 1rem 1.25rem; }
  .hero-content-side h1 { font-size: 1.3rem; margin-bottom: 0.3rem; }
  .hero-content-side .lead { font-size: 0.85rem; margin-bottom: 1rem; }
  .hero-pills { gap: 0.4rem; }
  .hero-pill { padding: 0.45rem 1rem; font-size: 0.8rem; }
  .hero-pill i { display: none; }
}

/* ================================================================
   FULLCALENDAR
   ================================================================ */
#calendar {
  font-size: 0.85rem;
}
#calendar .fc-header-toolbar {
  margin-bottom: 1rem !important;
}
#calendar .fc-toolbar-title {
  font-size: 1.15rem !important;
  font-weight: 500;
  color: var(--md-primary-dark);
}
#calendar .fc-button {
  background: var(--md-surface);
  border: 1px solid var(--md-border);
  color: var(--md-text);
  font-weight: 450;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--md-radius-sm);
  transition: all 0.15s;
}
#calendar .fc-button:hover {
  background: rgba(198,40,40,0.08);
  border-color: var(--md-primary-light);
  color: var(--md-primary);
}
#calendar .fc-button-primary:not(:disabled).fc-button-active {
  background: var(--md-primary);
  border-color: var(--md-primary);
  color: #fff;
}
#calendar .fc-button-primary:disabled {
  opacity: 0.5;
}
#calendar .fc-theme-standard td,
#calendar .fc-theme-standard th {
  border-color: var(--md-border);
}
#calendar .fc-theme-standard th {
  background: var(--md-bg);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--md-text-secondary);
  padding: 0.4rem 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
#calendar .fc-daygrid-day {
  min-height: 60px !important;
  transition: background 0.15s;
}
#calendar .fc-daygrid-day:hover {
  background: rgba(198,40,40,0.04);
}
#calendar .fc-daygrid-day-number {
  font-size: 0.8rem;
  color: var(--md-text);
  padding: 0.25rem 0.4rem !important;
}
#calendar .fc-day-today {
  background: rgba(198,40,40,0.06) !important;
}
#calendar .fc-day-today .fc-daygrid-day-number {
  background: var(--md-primary);
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0.2rem;
  font-weight: 500;
}
#calendar .fc-day-other {
  background: #fafafa;
}
#calendar .fc-day-other .fc-daygrid-day-number {
  color: #ccc;
}
#calendar .fc-daygrid-day-events {
  min-height: auto !important;
}
#calendar .fc-daygrid-event {
  background: var(--md-accent);
  border: none !important;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  margin: 0 0.2rem 0.2rem;
  font-size: 0.7rem;
  color: #fff !important;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#calendar .fc-daygrid-event:hover {
  background: var(--md-primary-light);
}
#calendar .fc-daygrid-event .fc-event-title {
  font-weight: 400;
  padding: 0;
}
#calendar .fc-daygrid-more-link {
  font-size: 0.7rem;
  color: var(--md-accent);
  font-weight: 500;
  padding: 0 0.3rem;
}
#calendar .fc-scrollgrid {
  border-radius: var(--md-radius-sm);
  overflow: hidden;
}
#calendar .fc-scrollgrid table,
#calendar .fc-scrollgrid td {
  border-color: var(--md-border);
}
#calendar .fc-col-header-cell-cushion {
  padding: 0.3rem 0;
  text-decoration: none;
}
@media (max-width: 575.98px) {
  #calendar { font-size: 0.75rem; }
  #calendar .fc-header-toolbar { flex-direction: column; gap: 0.5rem; }
  #calendar .fc-daygrid-day { min-height: 60px !important; }
  #calendar .fc-toolbar-title { font-size: 1rem !important; }
  #calendar .fc-daygrid-event { font-size: 0.6rem; padding: 0.1rem 0.25rem; margin: 0 0.1rem 0.1rem; }
}

/* ================================================================
   MAIN CONTENT (cards)
   ================================================================ */
.main_content { padding-top: calc(var(--md-navbar-height) + 1.5rem); }
.main_content.no-hero { padding-top: calc(var(--md-navbar-height) + 0.5rem); }

.main_page {
  background: var(--md-surface);
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}

.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--md-border);
}
.page-header.text-center {
  text-align: center;
}
.page-header.solo-titolo {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.page-header h1 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--md-primary-dark);
}
/* Breadcrumb bar (between navbar and content) */
.breadcrumb-bar {
  padding: 0.65rem 0;
  margin-bottom: 0;
}
.breadcrumb-bar .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
}
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  color: var(--md-text-secondary);
  padding-inline: 0.4rem;
}
.breadcrumb-bar .breadcrumb-item a {
  color: var(--md-accent);
  text-decoration: none;
}
.breadcrumb-bar .breadcrumb-item a:hover {
  color: var(--md-primary);
  text-decoration: underline;
}
.breadcrumb-bar .breadcrumb-item.active {
  color: var(--md-text-secondary);
}

/* ================================================================
   PAGE CONTENT (TinyMCE output)
   ================================================================ */
.page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--md-text);
  max-width: 100%;
  overflow-wrap: break-word;
}
.page-content h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin: 2rem 0 1rem;
  color: var(--md-primary-dark);
}
.page-content h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 1.75rem 0 0.75rem;
  color: var(--md-primary-dark);
}
.page-content h4 {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
}
.page-content p { margin: 0 0 1rem; }
.page-content a {
  color: var(--md-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-content a:hover { color: var(--md-primary); }
.page-content ul, .page-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}
.page-content li { margin-bottom: 0.4rem; }
.page-content blockquote {
  border-left: 4px solid var(--md-accent);
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--md-radius-sm) var(--md-radius-sm) 0;
  font-style: italic;
  color: var(--md-text-secondary);
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: var(--md-radius-sm);
  overflow: hidden;
}
.page-content th {
  background: var(--md-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 500;
  text-align: left;
}
.page-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--md-border);
}
.page-content tr:last-child td { border-bottom: none; }
.page-content tr:nth-child(even) td { background: #f8f9fa; }
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--md-radius-sm);
  margin: 1rem 0;
}
.page-content pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: var(--md-radius-sm);
  overflow-x: auto;
  font-size: 0.9rem;
}
.page-content hr { margin: 2rem 0; }

/* wrap tables for mobile */
.table-responsive-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}
.table-responsive-wrapper table { margin: 0; }

/* ================================================================
   CONTENT COMPONENTS (per TinyMCE mini-plugin Blocchi)
   ================================================================ */
.component-info-box {
  background: #e3f2fd;
  border-left: 4px solid var(--md-primary);
  border-radius: var(--md-radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.component-info-box.warn {
  background: #fff8e1;
  border-left-color: var(--md-warm);
}
.component-info-box.success {
  background: #e8f5e9;
  border-left-color: #43a047;
}

.component-progress {
  margin: 1.5rem 0;
}
.component-progress .progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--md-text);
}
.component-progress .progress-track {
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}
.component-progress .progress-bar {
  height: 100%;
  background: var(--md-accent);
  border-radius: 5px;
  transition: width 0.4s;
}

.component-two-cols {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  align-items: center;
}
.component-two-cols .col-text { flex: 1; }
.component-two-cols .col-image { flex: 1; }
.component-two-cols .col-image img {
  width: 100%;
  height: auto;
  border-radius: var(--md-radius-sm);
}

.component-btn-wrapper {
  margin: 1.5rem 0;
  text-align: center;
}

.component-contact p {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.component-list-icon {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}
.component-list-icon li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ================================================================
   CARDS (CTA cards on homepage, etc.)
   ================================================================ */
.card-cta {
  background: var(--md-surface);
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow);
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card-cta:hover {
  transform: translateY(-4px);
  box-shadow: var(--md-shadow-hover);
}

.card-cta h5 {
  margin: 0 0 0.5rem;
  font-weight: 500;
  font-size: 1.05rem;
}
.card-cta p {
  font-size: 0.9rem;
  color: var(--md-text-secondary);
  margin: 0;
  flex: 1;
}
.card-cta .icon-circle {
  width: 100%;
  max-width: 320px;
  height: 200px;
  border-radius: var(--md-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: #fff;
  transition: all 0.3s;
  overflow: hidden;
}
.card-cta .icon-circle .cta-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--md-radius-sm);
}
.card-cta:hover .icon-circle { transform: scale(1.1); }
/* ================================================================
   EVENT CARDS
   ================================================================ */
.event-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--md-surface);
  border-radius: var(--md-radius-sm);
  box-shadow: var(--md-shadow);
  transition: all 0.3s;
  margin-bottom: 1rem;
}
.event-card:hover {
  transform: translateX(4px);
  box-shadow: var(--md-shadow-hover);
}
.event-date-badge {
  min-width: 60px;
  text-align: center;
  background: var(--md-warm);
  color: #fff;
  border-radius: var(--md-radius-sm);
  padding: 0.6rem 0.4rem;
  flex-shrink: 0;
}
.event-date-badge .day {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}
.event-date-badge .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  display: block;
  opacity: 0.9;
  letter-spacing: 0.5px;
}
.event-card .event-info { flex: 1; }
.event-card .event-info h5 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 500;
}
.event-card .event-info .event-meta {
  font-size: 0.85rem;
  color: var(--md-text-secondary);
}
.event-card .event-link {
  color: var(--md-accent);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ================================================================
   AVVISO CARDS
   ================================================================ */
.avviso-card {
  padding: 1.25rem;
  background: var(--md-surface);
  border-radius: var(--md-radius-sm);
  box-shadow: var(--md-shadow);
  transition: all 0.3s;
  margin-bottom: 1rem;
  border-left: 4px solid transparent;
}
.avviso-card.unread {
  border-left-color: var(--md-primary);
  background: rgba(198,40,40,0.04);
}
.event-card.unread {
  border-left: 4px solid var(--md-primary) !important;
  background: rgba(198,40,40,0.04);
}
.avviso-card:hover { box-shadow: var(--md-shadow-hover); }
.avviso-card .avviso-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.avviso-card .badge-importante {
  background: var(--md-warm);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.avviso-card .badge-nuovo,
.badge-nuovo {
  background: var(--md-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.avviso-card .avviso-title {
  margin: 0.25rem 0;
  font-size: 1.05rem;
  font-weight: 500;
}
.avviso-card .avviso-title a { color: inherit; }
.avviso-card .avviso-title a:hover { color: var(--md-primary); }
.avviso-card .avviso-date {
  font-size: 0.8rem;
  color: var(--md-text-secondary);
  display: block;
}
.avviso-card .avviso-excerpt {
  font-size: 0.9rem;
  color: var(--md-text);
  margin: 0.5rem 0 0;
  line-height: 1.6;
}

/* Filter chips */
.chip-group { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 450;
  background: var(--md-surface);
  border: 1.5px solid var(--md-border);
  color: var(--md-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.chip:hover {
  border-color: var(--md-accent);
  color: var(--md-accent);
}
.chip.active {
  background: var(--md-accent);
  color: #fff;
  border-color: var(--md-accent);
}

/* ================================================================
   SIDEBAR (for pages with children)
   ================================================================ */
.sidebar-submenu {
  position: sticky;
  top: calc(var(--md-navbar-height) + 1rem);
}
.sidebar-submenu .card {
  border: none;
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow);
  overflow: hidden;
}
.sidebar-submenu .card-header {
  background: var(--md-warm);
  color: #fff;
  font-weight: 500;
  border: none;
  padding: 0.85rem 1.25rem;
}
.sidebar-submenu .list-group-item {
  border: none;
  border-bottom: 1px solid var(--md-border);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--md-text);
  transition: all 0.15s;
}
.sidebar-submenu .list-group-item:last-child { border-bottom: none; }
.sidebar-submenu .list-group-item:hover,
.sidebar-submenu .list-group-item.active {
  background: rgba(198,40,40,0.06);
  color: var(--md-primary);
  font-weight: 500;
}

/* ================================================================
   SUBMENU GRID (base_tree.php)
   ================================================================ */
.submenu-card {
  background: var(--md-surface);
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow);
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.submenu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--md-shadow-hover);
}
.submenu-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--md-text);
}
.submenu-card .submenu-card-link {
  display: inline-block;
  color: var(--md-primary);
  border: 1.5px solid var(--md-primary);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.submenu-card .submenu-card-link:hover {
  background: rgba(198,40,40,0.08);
}

/* ================================================================
   GALLERY GRID
   ================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.gallery-grid .gallery-item {
  border-radius: var(--md-radius-sm);
  overflow: hidden;
  box-shadow: var(--md-shadow);
  transition: all 0.3s;
}
.gallery-grid .gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--md-shadow-hover);
}
.gallery-grid .gallery-item img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}
@media (max-width: 991.98px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Admin gallery — flexbox per SortableJS */
.admin-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.admin-gallery-grid .gallery-item {
  width: calc(25% - 0.75rem);
  margin-bottom: 0 !important;
  transition: transform 200ms ease, opacity 200ms ease;
  cursor: grab;
}
.admin-gallery-grid .gallery-item:active {
  cursor: grabbing;
}
@media (max-width: 991.98px) {
  .admin-gallery-grid .gallery-item { width: calc(33.333% - 0.75rem); }
}
@media (max-width: 767.98px) {
  .admin-gallery-grid .gallery-item { width: calc(50% - 0.75rem); }
}
@media (max-width: 575.98px) {
  .admin-gallery-grid .gallery-item { width: 100%; }
}

/* SortableJS drag feedback */
.sortable-ghost {
  opacity: 0.25;
  outline: 3px dashed var(--md-primary) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}
.sortable-drag {
  opacity: 0.95 !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3) !important;
  transform: scale(1.03);
  z-index: 9999 !important;
}
.sortable-chosen {
  cursor: grabbing !important;
}

/* ================================================================
   DIRETTIVO (board members)
   ================================================================ */
.member-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--md-surface);
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow);
  transition: all 0.3s;
  height: 100%;
}
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--md-shadow-hover);
}
.member-card .member-photo {
  width: 120px;
  height: 120px;
  border-radius: var(--md-radius-sm);
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--md-primary-light);
  transition: all 0.3s;
}
.member-card:hover .member-photo { border-color: var(--md-accent); }
.member-card .member-role {
  display: block;
  color: var(--md-accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.member-card .member-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--md-primary);
  margin: 0;
}

/* ================================================================
   FORMS (Material style)
   ================================================================ */
.form-material .form-control,
.form-material .form-input {
  border: 1.5px solid var(--md-border);
  border-radius: var(--md-radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--md-text);
  background: var(--md-surface);
  transition: all 0.2s;
  width: 100%;
}
.form-material .form-control:focus,
.form-material .form-input:focus {
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(198,40,40,0.12);
  outline: none;
}
.form-material label {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--md-text-secondary);
  margin-bottom: 0.35rem;
}
.form-material .form-group { margin-bottom: 1.25rem; }
.form-material textarea { min-height: 120px; resize: vertical; }
.form-material select { cursor: pointer; }

/* ================================================================
   BUTTONS (Material style)
   ================================================================ */
.btn-material {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--md-radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-material-primary {
  background: var(--md-primary);
  color: #fff;
}
.btn-material-primary:hover {
  background: var(--md-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(198,40,40,0.3);
}
.btn-material-accent {
  background: var(--md-accent);
  color: #fff;
}
.btn-material-accent:hover {
  background: #0097A7;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,143,0,0.3);
}
.btn-material-outline {
  background: transparent;
  color: var(--md-primary);
  border: 1.5px solid var(--md-primary);
}
.btn-material-outline:hover {
  background: rgba(198,40,40,0.08);
}
.btn-material-danger {
  background: #D32F2F;
  color: #fff;
}
.btn-material-danger:hover {
  background: #B71C1C;
  color: #fff;
}
.btn-material-warm {
  background: var(--md-warm);
  color: #fff;
}
.btn-material-warm:hover {
  background: #E65100;
  color: #fff;
}
.btn-material-sm {
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
}
.btn-material:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: #8E0000;
  color: var(--md-footer-text);
  padding: 3rem 0 0;
  margin-top: 3rem;
  text-align: center;
}
.site-footer h5 { text-align: center; }
.site-footer .footer-links { text-align: center; }
.site-footer .footer-info { text-align: center; }
.site-footer h5 {
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.site-footer a { color: var(--md-footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-links li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.site-footer .footer-links li::before {
  content: '';
  margin: 0;
}
.site-footer .footer-info p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--md-footer-text);
}
.site-footer .footer-info i {
  width: auto;
  color: var(--md-accent-light);
  margin-right: 0.4rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  text-align: center;
}
.footer-bottom p { margin: 0; color: var(--md-footer-text); }

/* ================================================================
   BACK TO TOP FAB
   ================================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1020;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--md-primary);
  color: #fff;
  border: none;
  box-shadow: var(--md-shadow-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--md-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--md-shadow-lg);
}
@media (prefers-reduced-motion: reduce) { .back-to-top { display: none; } }

/* ================================================================
   FLASH MESSAGES (Snackbar style)
   ================================================================ */
.snackbar-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 420px;
}
.snackbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--md-radius-sm);
  background: #323232;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 450;
  box-shadow: var(--md-shadow-hover);
  animation: snackbarIn 0.3s ease;
}
.snackbar-success { background: #2E7D32; }
.snackbar-error { background: #C62828; }
.snackbar-warning { background: #F57F17; color: #fff; }
.snackbar .snackbar-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
}
.snackbar .snackbar-close:hover { color: #fff; }
@keyframes snackbarIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}
.empty-state .empty-icon {
  font-size: 3.5rem;
  color: var(--md-border);
  margin-bottom: 1rem;
  display: block;
}
.empty-state h5 {
  color: var(--md-text-secondary);
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--md-text-secondary);
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

/* ================================================================
   ADMIN AREA
   ================================================================ */
.admin-menu {
  margin-bottom: 1rem;
}
.admin-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.admin-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--md-radius-sm);
  font-size: 0.85rem;
  color: var(--md-text);
  background: var(--md-bg);
  border: 1px solid var(--md-border);
  transition: all 0.2s;
}
.admin-menu li a:hover {
  background: rgba(198,40,40,0.08);
  color: var(--md-primary);
  border-color: var(--md-primary-light);
}
.admin-menu li.active a {
  background: var(--md-primary);
  color: #fff;
  border-color: var(--md-primary);
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--md-radius-sm);
  overflow: hidden;
}
.admin-table thead th {
  background: var(--md-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}
.admin-table tbody tr { transition: background 0.15s; }
.admin-table tbody tr:hover { background: rgba(198,40,40,0.04); }
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--md-border);
  font-size: 0.9rem;
  vertical-align: middle;
}
.admin-table .actions {
  white-space: nowrap;
}
.admin-table .actions a {
  margin-right: 0.2rem;
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem !important;
  line-height: 1.3;
}
.admin-table .actions a i {
  font-size: 0.7rem;
}
.admin-row-muted { opacity: 0.5; }

/* Admin page header */
.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--md-border);
}
.admin-page-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

/* ================================================================
   LOGIN PAGE
   ================================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--md-primary-dark), var(--md-primary));
  padding: 2rem;
}
.login-card {
  background: var(--md-surface);
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}
.login-card .login-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.login-card .login-logo img { max-height: 60px; }
.login-card .login-logo h4 {
  margin: 1rem 0 0;
  color: var(--md-primary-dark);
  font-weight: 500;
}
.login-card .form-control {
  border: 1.5px solid var(--md-border);
  border-radius: var(--md-radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.login-card .form-control:focus {
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(198,40,40,0.12);
}
.login-card .btn-submit {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--md-radius-sm);
  background: var(--md-primary);
  color: #fff;
  border: none;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}
.login-card .btn-submit:hover {
  background: var(--md-primary-dark);
  box-shadow: 0 4px 12px rgba(198,40,40,0.3);
}

/* ================================================================
   ERROR 404
   ================================================================ */
.error-404 {
  text-align: center;
  padding: 4rem 2rem;
}
.error-404 h1 {
  font-size: 6rem;
  font-weight: 700;
  color: var(--md-primary-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-404 h3 { color: var(--md-text-secondary); margin-bottom: 1rem; }
.error-404 p { color: var(--md-text-secondary); margin-bottom: 2rem; }

/* ================================================================
   TOUCH & MISC
   ================================================================ */
button, a, input, select, textarea { touch-action: manipulation; }

/* Ripple effect container */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(3); opacity: 0; }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
  .navbar-material, .site-footer, .back-to-top, .sidebar-submenu,
  .admin-menu, .chip-group, .breadcrumb, .skip-link,
  .carousel-control-prev, .carousel-control-next, .carousel-indicators { display: none !important; }
  .main_content { padding-top: 0 !important; }
  .main_page { box-shadow: none; border: 1px solid #ddd; }
  .page-content a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* ================================================================
   RESPONSIVE (core — main file is responsive.css)
   ================================================================ */
@media (max-width: 991.98px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content .lead { font-size: 1rem; }
  .navbar-material .navbar-collapse {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-radius: var(--md-radius-sm);
    padding: 1rem;
    box-shadow: var(--md-shadow-hover);
    margin-top: 0.5rem;
  }
  .navbar-scrolled .navbar-collapse { background: rgba(255,255,255,0.98); }
  .navbar-material .nav-link { color: var(--md-text) !important; }
  .navbar-material .nav-link:hover { background: rgba(198,40,40,0.08) !important; color: var(--md-primary) !important; }
  .navbar-material .btn-login,
  .navbar-scrolled .btn-login { border-color: var(--md-accent); color: var(--md-accent); }
  .main_page { padding: 1.25rem; }
  .snackbar-container { left: 15px; right: 15px; max-width: none; }
}

@media (max-width: 767.98px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content .lead { font-size: 0.95rem; }
  .hero-content .hero-cta .btn { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
}

@media (max-width: 575.98px) {
  .hero-content { padding: 1rem; }
  .hero-content h1 { font-size: 1.4rem; margin-bottom: 0.4rem; }
  .hero-content .lead { font-size: 0.85rem; margin-bottom: 1.2rem; }
  .hero-content .hero-cta { gap: 0.5rem; }
  .hero-content .hero-cta .btn { padding: 0.4rem 1rem; font-size: 0.8rem; border-radius: 20px; }
  .event-card { flex-direction: column; text-align: center; }
  .event-date-badge { display: flex; align-items: center; gap: 0.5rem; min-width: auto; padding: 0.4rem 1rem; }
  .event-date-badge .day { font-size: 1.2rem; }
  .back-to-top { width: 40px; height: 40px; bottom: 20px; right: 20px; }
  .login-card { padding: 1.5rem; }
  .error-404 h1 { font-size: 4rem; }
  .navbar-material .navbar-brand img { max-height: 34px; }
}
