﻿/* Custom styles for the events page */

/* Events list container */
.events-list {
    margin-bottom: 2rem;
  }
  
  /* Event row styling - more compact layout */
  .event-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
  }
  
  .event-row:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }
  
  /* Date column */
  .event-date {
    width: 180px;
    min-width: 180px;
    padding: 1rem;
    background-color: #f8f9fa;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
  }
  
  .date-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  /* Single date styling */
  .single-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .date-day {
    font-size: 2rem;
    font-weight: 700;
    color: #8f001d;
    line-height: 1;
    margin-bottom: 0.2rem;
  }
  
  .date-month {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
  }
  
  .date-time {
    display: none;
  }
  
  /* Date range styling - SEMPLIFICATO E INGRANDITO */
  .date-range {
    text-align: center;
    width: 100%;
    padding: 0.5rem 0;
  }
  
  .date-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .date-value {
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.3rem; /* Aumentato ulteriormente */
    color: #8f001d; /* Colore del brand */
    line-height: 1.2;
  }
  
  /* Rimuovi il margine dall'ultimo elemento */
  .date-range .date-value:last-of-type {
    margin-bottom: 0;
  }
  
  /* Event details column */
  .event-details {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .event-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
  }
  
  .event-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
  }
  
  .event-more {
    font-size: 0.8rem;
  }
  
  .more-link {
    color: #8f001d;
    text-decoration: none;
  }
  
  .more-link:hover {
    text-decoration: underline;
  }
  
  /* Action column */
  .event-action {
    width: 150px;
    min-width: 150px;
    padding: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Button styling */
  .button-secondary-color {
    background-color: #8f001d;
    color: white;
    border: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
  }
  
  .button-secondary-color:hover {
    background-color: #6b0016;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(143, 0, 29, 0.2);
  }
  
  .btn-dim {
    padding: 0.5rem 1rem;
    font-weight: 600;
  }
  
  /* Modal styling */
  .modal-content {
    border-radius: 0.5rem;
    border: none;
    overflow: hidden;
  }
  
  .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1.25rem 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 1rem 1.5rem;
  }
  
  /* Form styling */
  .form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }
  
  .form-control:focus {
    border-color: #8f001d;
    box-shadow: 0 0 0 0.2rem rgba(143, 0, 29, 0.25);
  }
  
  .form-check-input:checked {
    background-color: #8f001d;
    border-color: #8f001d;
  }
  
  /* Button tertiary color */
  .button-tertiary-color {
    background-color: #8f001d;
    color: white;
    border: none;
  }
  
  .button-tertiary-color:hover {
    background-color: #6b0016;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .event-row {
      flex-direction: column;
      align-items: stretch;
    }
  
    .event-date {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
  
    .event-action {
      width: 100%;
      padding: 1rem;
    }
  
    .button-secondary-color {
      width: 100%;
    }
  }
  